开发者

cygwin - Running msbuild with switches

开发者 https://www.devze.com 2023-04-09 22:50 出处:网络
I\'m trying to improve our build automation using bash. My shell scripting leaves a lot to be desired but essentially I want to be able to use a bash shell script to run MSBuild.exe passing in certain

I'm trying to improve our build automation using bash. My shell scripting leaves a lot to be desired but essentially I want to be able to use a bash shell script to run MSBuild.exe passing in certain build switches. So in myscript.sh there's a line :

C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe /maxcpucount:8 /verbosity:q /p:Configuration=Debug C:/Myfolder/Main.sln 

This fails due to the /p:Configuration=Debug. I can say that with certainty as without it the execution of MSBuild.exe work开发者_JS百科s.

Can anyone help on this?


As it turns out it was due to

/p:

When using /property:Configuration=Debug it works.

Thanks for the help.

Tim

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号