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

MSBuild should better handle spaces to avoid (MSB1008: Only one project can be specified)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • None
    • .NET
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Problem:
      If a Visual studio solution has spaces on it the user need to put the solution name between double quotes.
      There no clue for that in the UI and if it is not used the build with fail with the following errors:

      22-Nov-2016 10:44:51	Microsoft (R) Build Engine Version 2.0.50727.7905
      22-Nov-2016 10:44:51	[Microsoft .NET Framework, Version 2.0.50727.8000]
      22-Nov-2016 10:44:51	Copyright (C) Microsoft Corporation 2005. All rights reserved.
      22-Nov-2016 10:44:51	
      22-Nov-2016 10:44:51	MSBUILD : error MSB1008: Only one project can be specified.
      22-Nov-2016 10:44:51	Switch: Application3.sln
      22-Nov-2016 10:44:51	
      22-Nov-2016 10:44:51	For switch syntax, type "MSBuild /help"
      

      In the previous test the the Project File field was populated with the following value: Console Application3.sln

      This is the result when using double quotes "Console Application3.sln":

      22-Nov-2016 10:47:43	[Microsoft .NET Framework, version 4.0.30319.42000]
      22-Nov-2016 10:47:43	Copyright (C) Microsoft Corporation. All rights reserved.
      22-Nov-2016 10:47:43	
      22-Nov-2016 10:47:43	Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
      22-Nov-2016 10:47:43	Build started 11/22/2016 10:47:43 AM.
      22-Nov-2016 10:47:43	Project "C:\Users\Administrator\bamboo-home-5.13.2\xml-data\build-dir\TES-VS-JOB1\Console Application3.sln" on node 1 (default targets).
      22-Nov-2016 10:47:43	ValidateSolutionConfiguration:
      22-Nov-2016 10:47:43	  Building solution configuration "Debug|Any CPU".
      22-Nov-2016 10:47:43	Project "C:\Users\Administrator\bamboo-home-5.13.2\xml-data\build-dir\TES-VS-JOB1\Console Application3.sln" (1) is building "C:\Users\Administrator\bamboo-home-5.13.2\xml-data\build-dir\TES-VS-JOB1\Console Application3\Console Application3.csproj" (2) on node 1 (default targets).
      

      Suggestions:

      1. Add a message under the field telling the user that he should use double quotes if using spaces
      2. Add a validation in that field so the user won't be able to save it with invalid values
      3. Scape the spaces in the task code, so the user won't need to add quotes

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsantos Daniel Santos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: