Asp.net MSBUILD:错误MSB1008:在Jenkins中只能指定一个项目
在Jenkins和Asp.net中构建项目时,我遇到了一个错误。我的源代码在TFS上。下面是我的构建的控制台输出的错误消息Asp.net MSBUILD:错误MSB1008:在Jenkins中只能指定一个项目,asp.net,msbuild,Asp.net,Msbuild,在Jenkins和Asp.net中构建项目时,我遇到了一个错误。我的源代码在TFS上。下面是我的构建的控制台输出的错误消息 No history entries were found for the item and version combination specified. Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe Executing the command cmd.exe /
No history entries were found for the item and version combination specified.
Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
Executing the command cmd.exe /C C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /t:Rebuild "/p:Configuration=Debug:Platform="Any CPU":CustomBuildPath="C:\\Program Files (x86)\\Jenkins\\jobs\\PerformanceTest\\workspace\\PerformanceTest"" "C:\Program Files (x86)\Jenkins\jobs\PerfomanceTest\workspace\PerformanceTest\PerformanceTest.sln" && exit %%ERRORLEVEL%% from C:\Program Files (x86)\Jenkins\jobs\PerfomanceTest\workspace
[workspace] $ cmd.exe /C C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /t:Rebuild '/p:Configuration=Debug:Platform="Any CPU":CustomBuildPath="C:\\Program Files (x86)\\Jenkins\\jobs\\PerformanceTest\\workspace\\PerformanceTest"' "C:\Program Files (x86)\Jenkins\jobs\PerfomanceTest\workspace\PerformanceTest\PerformanceTest.sln" && exit %%ERRORLEVEL%%
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18063]
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1008: Only one project can be specified.
Switch: Files
For switch syntax, type "MSBuild /help"
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
Finished: FAILURE
请解决它。
提前感谢。这可能是由于平台=任何CPU中的双引号造成的。试着移除它,看看它是否有效
或者尝试将SLN文件路径移动到命令开头,在切换之前。在vs2012中,只需尝试使用默认TFS模板DefaultTemplate创建生成定义测试生成…xaml通常是它的副本 它将以通常的自我解释错误失败
MSBUILD : error MSB1008: Only one project can be specified.Switch: Activities`
当然,在默认TFS模板的某个地方缺少一些,因此msbuild将作为参数接收包含空格的非转义目录,因此将导致多个项目
所以不要在TFS构建定义名称中使用空格,这既令人伤心又简单
巴拉里诺