In Bamboo, when I create a MSBuild Task,
in "Options" input box, I wanted to add a msbuild property "ReferencePath" and it contained 2 paths:
C:\Program Files (x86)\WiX Toolset v3.7\SDK
C:\Program Files (x86)\DGIT\bin
So in the options, the input was"
/p:ReferencePath="C:\Program Files (x86)\WiX Toolset v3.7\SDK;C:\Program Files (x86)\DGIT\bin"
This would cause a build error because of "MSBUILD : error MSB1006: Property is not valid.". I guess the reason for this is:
When Bamboo handles this input box, it would delete all the quotation marks from the input.
The workaround would be (Cheating):
In the "Project File", the Bamboo takes whatever is in the box, wrap it in a pair of quotation marks. So we can inject code into it by adding another pair of quotation marks:
DGiT.Build.Wix.CA.sln" /p:ReferencePath="C:\Program Files (x86)\WiX Toolset v3.7\SDK;C:\Program Files (x86)\DGIT\bin
- duplicates
-
BAM-11561 Auto removal of quotes from MSBuild options resulting in errors
- Closed
- is duplicated by
-
BAM-11723 Bamboo does not respect the comma (,) in the command line arguments on Windows
- Closed
- relates to
-
BAM-10740 Bamboo does not respect the quotes (") in the command line arguments on windows ( at least for the ANT task)
- Gathering Impact