Escaping external command arguments #18867
Replies: 2 comments 8 replies
-
Hello @savornicesei, I think that you're calling the msbuild command correctly. If your problem is that you're getting In general I don't think you even have to put any additional quotes in |
Beta Was this translation helpful? Give feedback.
-
I am wondering how you run Visual Studio on Linux. If you want cross platform builds have you considered using "dotnet" to do the builds rather than building using Visual Studio? You should be able to build just with the dotnet sdk. |
Beta Was this translation helpful? Give feedback.
-
I have a powershell script that is run on linux (pwsh v7.2.latest) and windows (pwsh v7.3.latest) and just builds a project:
The command executed should be:
But the required quotes for DefineExtraConstants are not passed as they are but they're re-escaped, the command line being
I've tried all kinds of escaping sequences in
MSBUILD_PARAMS
but the escaping in command line still happens.What is the correct solution here? I'm not sure if it's related to #15239
Thank you and Happy Winter Holidays! ☃️ 🎅
Beta Was this translation helpful? Give feedback.
All reactions