MSBuild throws the following error if there is a space in the solution file directory:
MSBUILD : error MSB1008: Only one project can be specified.
When reading the response file, MSBuild splits the parameter up at the space and treat it as 2 different parameters.
Workaround
Wrap the solution/project directory in quotes.
or
Remote agents.
If you're starting agent manually you simply provide -Dbamboo.plugin.dotnet.msbuild.useResponseFile=true on the command line. If your agent is run as a service then make a change in the $BAMBOO_AGENT_HOME/conf/wrapper.conf configuration file:
# The Bamboo Agent home configuration file wrapper.java.additional.1=-Dbamboo.home=/home/bamboo/bamboo-agent-home wrapper.java.additional.2=-Dbamboo.agent.ignoreServerCertName=false wrapper.java.additional.3=-Dbamboo.plugin.dotnet.msbuild.useResponseFile=true
Bamboo server
- stop Bamboo
- add -Dbamboo.plugin.dotnet.msbuild.useResponseFile=true to JVM_REQUIRED_ARGS in $BAMBOO_INSTALL/bin/setenv.sh
- start Bamboo