-
-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect escaping of semi-colon in property values for MS Build #1852
Comments
@cake-build/cake-team I kinda feel this Potentially one could have an dictionary of properties that doesn't support multiple properties beginning with |
I'm running into this issue as well, and I agree with @devlead that when passing multiple values into |
I am having the same issue trying to pass the |
Though, I did find a way to workaround it using the string excludeFiles = "\"" + string.Join(";", configuration.ExcludeFilesFromDeployment) + "\"";
MSBuildSettings settings = new MSBuildSettings() {
ArgumentCustomization = args=>args.Append("/p:ExcludeFilesFromDeployment=" + excludeFiles)
}; |
Hi team, |
Hi, I'm willing to give this a shot. I will keep you updated on progress. |
Please see #1852 for proposed changes. If this is not quite what you had in mind -- or if there are any issues, please let me know and I will do my best to amend them. |
🎉 This issue has been resolved in version v2.3.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
What You Are Seeing?
When using
.WithProperty("DefineConstants", "A=a;B=b".Quote());
the semi-colon is escaped which is invalid. The escaping behaviour was added in #1625What is Expected?
The semi-colon should not be escaped in this scenario as the resulting command is invalid.
What version of Cake are you using?
0.22.2
Are you running on a 32 or 64 bit system?
64
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
TeamCity
How Did You Get This To Happen? (Steps to Reproduce)
MS Build with property.
.WithProperty("DefineConstants", "A=a;B=b".Quote());
Output Log
The text was updated successfully, but these errors were encountered: