Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15879

MSBUILD throws "Only one project can be specified" if there is a space in the directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 5.8.1, 5.12.3.1
    • .NET, Windows
    • None

      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
      1. stop Bamboo
      2. add -Dbamboo.plugin.dotnet.msbuild.useResponseFile=true to JVM_REQUIRED_ARGS in $BAMBOO_INSTALL/bin/setenv.sh
      3. start Bamboo

              Unassigned Unassigned
              dlee@atlassian.com Deric Lee (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: