Open nick5454 opened 3 years ago
@nick5454 What is the content of build/build_cake.ps1
? This is the script that is ultimately executing Cake and not adding the required quotes.
@nick5454 What is the content of
build/build_cake.ps1
? This is the script that is ultimately executing Cake and not adding the required quotes.
@augustoproiete I assume I could escape it inside the ps1 file at the end where cakeArguments are
For the work around I pass in AnyCPU and added a platform.Replace("", " ") which works
@nick5454 Great. I'm moving this issue to the resources repo as the fix would be in the bootstrapper template for .NET Framework and not in Cake itself.
N.B.: Our recommendation is to migrate your builds to use the .NET Tool for running Cake if possible. This issue would not happen with the .NET tool because the new bootstrappers handle quotes correctly.
Prerequisites
Cake runner
Cake Frosting
Cake version
1.1.0
Operating system
macOS
Operating system architecture
64-Bit
CI Server
Azure Devops
What are you seeing?
When passing variable with a space, the logic parses the space and causes an error. "Any CPU" becomes Platform=Any CPU=???
What is expected?
variable: Platform = "Any CPU" should be passed as "Any CPU" to build.cake. This could be a powershell issue, but I believe it's a cake parsing issue.
Steps to Reproduce
Using the yml below, notice Platform has a space and when calling build.cake the parsing fails
yml: