visual studio - How to properly handle /p arguments in MSBuild with cygwin -


currently, trying find way cygwin handle quotations in cmd. if run command in cygwin:

msbuild.exe /p:test="foo;bar"\;test2="foo;bar" my.sln 

bash strip double quotes out each of properties, , msbuild fail error message.

msbuild : error msb1006: property not valid. switch: bar 

escaping double quotes , semicolons command

msbuild.exe /p:test=\"foo;bar\"\;test2=\"foo;bar\" my.sln 

does allow msbuild compile project. however, properties set not expect them be. running /v:diag, there 1 property set:

what expected (based on running build cmd): test = foo;bar test2 = foo;bar  got: test = "foo;bar";test2="foo;bar" 

my guess msbuild interpreting quotes , semicolons literally , processing 1 big environment variable. there easy way process semicolons , quotes in cmd? unfortunately, build relies on these environment variables function properly.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -