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

XMLWordPrintable

    • Type: Bug
    • Resolution: Low Engagement
    • Priority: Medium
    • None
    • Affects Version/s: 5.8.1, 5.12.3.1
    • Component/s: .NET, Windows
    • 4
    • Severity 2 - Major
    • 0

      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

            Assignee:
            Unassigned
            Reporter:
            Deric Lee (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: