开发者

MSBuild builds defaults to debug configuration

开发者 https://www.devze.com 2022-12-09 07:15 出处:网络
I am trying to use MSBuild release mode, but it always defaults to debug. Any idea why? msbuild LP.sln /p:buildmode=release

I am trying to use MSBuild release mode, but it always defaults to debug. Any idea why?

msbuild LP.sln /p:buildmode=release

I checked through the following posts;

MSBuild task - Build fails because one solution being built in release instead of debug

MSBuild task configuration prop开发者_如何学编程erty


That depends on the contents of that buildscript. Visual Studio C# uses the parameter Configuration to switch between Release and Debug. Not buildmode. You might want to try the following:

msbuild LP.sln /p:Configuration=Release
0

精彩评论

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