2014-04-02 140 views
0

我在Jenkins和Asp.net中构建项目时遇到了错误。我的源代码在TFS上。以下是我的版本的错误消息(控制台输出)。MSBUILD:错误MSB1008:只能在Jenkins中指定一个项目

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 

请解决。 在此先感谢。

回答

0

这可能是由于Platform =“Any CPU”中的双引号造成的。尝试删除它,看看它是否工作。

或者尝试在切换之前将SLN文件路径移动到命令的开头。

0

在vs2012只是尝试创建构建定义“测试版本”使用默认模板TFS“DefaultTemplate .... XAML”(通常是它的复制品)

这将失败,通常自我解释 - 错误

MSBUILD : error MSB1008: Only one project can be specified.Switch: Activities` 

当然在默认模板TFS某处的一些“缺少这样的MSBuild将获得作为参数的非逃脱含目录空间,将导致多个项目(?!)

所以从不使用你的空间TFS构建Definitio ñ名字,相当悲伤和简单在同一时间 R.Ballarino

相关问题