MSBUILD错误:文件夹包含多个解决方案文件

8

我正在尝试设置CCNET,但遇到了问题。

我的构建失败了,出现了以下错误:

MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.

在我的配置文件ccnet.config中,我的msbuild块如下所示。
  <msbuild>
  <executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
   <workingDirectory>C:\example\directory</workingDirectory>
  <projectFile>ExampleSolution.sln</projectFile>
  <buildArgs>/noconsolelogger /v:quiet
   /p:Configuration=Debug
   /p:ReferencePath="C:\Program Files (x86)\NUnit 2.5.10\bin\net-2.0\"
  </buildArgs>
  <targets>ReBuild</targets>
  <timeout>600</timeout>
  </msbuild>

在这种情况下,C:\example\directory 有多个解决方案文件。即使我指定了项目文件,我仍然会收到该错误。

哪个版本的Cruise Control?还有一个愚蠢的问题,你没有多个msbuild任务吧(你可能在看错任务...)? - Damien_The_Unbeliever
版本号为1.6.7981.1。不,我只有一个msbuild任务。 - pfista
1个回答

1

最终我只需要在<buildArgs>之后添加ExampleSolution.sln,同时去掉ReferencePath中的最后一个“\”。 - pfista

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接