[ACCEPTED]-How to resolve "Only one project can be specified" error from <msbuild> task in CruiseControl.NET-cruisecontrol.net
I think maybe it is your space in the artifact 4 directory path. MSBuild really does not 3 like spaces as it considers it a break between 2 arguments. Can you try an remove the space 1 from that path and see what happens?
Why is your msbuild tag empty? It should 1 be something similar to:
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable>
<workingDirectory>C:\dev\ccnet</workingDirectory>
<projectFile>CCNet.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs>
<targets>Build;Test</targets>
<timeout>900</timeout>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
Without more detail since you don't appear 7 to be specifying a project/solution file 6 which leaves MSBuild assuming one. If you 5 have more than one file that MSBuild is 4 able to use as a project file in that directory 3 that might be causing your issue.DO you 2 have an MSbuild .proj and a .sln file by 1 any chance? Or two solution files?
I had a similar problem and (what Alex said) removing 5 my space did fix the problem. I did however 4 run into another situation where removing 3 the space from a name was not possible. In 2 this case, adding quotes around the name 1 fixed the problem for me.
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.