You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related: #1852
Of note, I believe this comment is incorrect.
Perhaps WithProperty("DefineConstants", "A=a", "B=b"); should instead generate:
/p:DefineConstants=A=a;DefineConstants=B=b
The text was updated successfully, but these errors were encountered:
Lordfirespeed
changed the title
Bash interprets semicolon-delimited property values for MSBuild incorrectly
MSBuild properties are incorrectly formatted
Mar 10, 2024
Leaving this here for any future unfortunate souls -
When working with DefineConstants, semicolons within its property value need to be escaped with %3B.
The solution I proposed above will not work, each subsequence DefineConstants overwrites the value of the previous. The rendered constants ["foo", "bar", "baz'] should loook like:
Prerequisites
Cake runner
Cake Frosting
Cake version
4.0.0
Operating system
Linux
Operating system architecture
64-Bit
CI Server
No response
What are you seeing?
MSBuild arguments are rendered like so:
Which leads to an error:
What is expected?
MSBuild properties should be specified in the correct format. For example:
Steps to Reproduce
Create a task with the following
Run
implementation:Ensure that
context.RootDirectory
is defined.Run the task.
Notes
Related: #1852
Of note, I believe this comment is incorrect.
Perhaps
WithProperty("DefineConstants", "A=a", "B=b");
should instead generate:The text was updated successfully, but these errors were encountered: