gpt4 book ai didi

visual-studio - msbuild 错误 : The property DirectoryName does not exist or was not found

转载 作者:行者123 更新时间:2023-12-01 12:32:21 25 4
gpt4 key购买 nike

这是我第一次尝试在 Visual Studio Online 上配置自动构建。

创建新构建后,我将其排队等待运行。第一步已成功完成(获取源代码)。现在我在构建步骤中遇到错误。这是一个包含消息的小片段:

782 2015-08-31T16:30:52.4324803Z Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\tasks\VSBuild\1.0.13\VSBuild.ps1

783 2015-08-31T16:30:54.0509690Z ##[error]The property DirectoryName does not exist or was not found.

784 2015-08-31T16:30:54.1321607Z C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "C:\a\5bc0b6a3\MySolution" /nologo /m /nr:false /fl /flp:"logfile=C:\a\5bc0b6a3\MySolution.log" /dl:CentralLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="any cpu" /p:configuration="debug" /p:VisualStudioVersion="14.0"

785 2015-08-31T16:30:54.2859104Z MSBUILD : error MSB1009: Project file does not exist.

我在整个解决方案中搜索了 DirectoryName 字符串,但没有成功,现在知道它的含义了。

编译在我的电脑上运行良好,我不知道从哪里开始看。

有什么想法吗?

最佳答案

你错过了真正的错误:

785 2015-08-31T16:30:54.2859104Z MSBUILD : error MSB1009: Project file does not exist.

您需要指定解决方案文件的路径。你可以看到你不是:

C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "C:\a\5bc0b6a3\MySolution" /nologo /m /nr:false /fl /flp:"logfile=C:\a\5bc0b6a3\MySolution.log" /dl:CentralLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="any cpu" /p:configuration="debug" /p:VisualStudioVersion="14.0"

您只需为“Solutions”参数指定**\*.sln,它就会发现并构建您映射的工作区中的所有解决方案。如果您需要更具体,也可以这样做。

关于visual-studio - msbuild 错误 : The property DirectoryName does not exist or was not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32316286/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com