task in CruiseControl.NET-cruisecontrol.net">

[ACCEPTED]-How to resolve "Only one project can be specified" error from <msbuild> task in CruiseControl.NET-cruisecontrol.net

Accepted answer
Score: 27

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?

Score: 3

Why is your msbuild tag empty? It should 1 be something similar to:

  <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs>
  <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
Score: 1

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?

Score: 1

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