MSBuild建立默认值以调试配置 [英] MSBuild builds defaults to debug configuration
本文介绍了MSBuild建立默认值以调试配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用MSBuild发布模式,但它始终默认为调试状态.知道为什么吗?
I am trying to use MSBuild release mode, but it always defaults to debug. Any idea why?
msbuild LP.sln/p:buildmode = release
msbuild LP.sln /p:buildmode=release
我检查了以下帖子;
MSBuild任务-构建失败,因为在发布而不是调试中构建了一个解决方案
推荐答案
这取决于该构建脚本的内容.Visual Studio C#使用参数配置在发布和 Debug 之间切换.不是buildmode.您可能要尝试以下操作:
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
这篇关于MSBuild建立默认值以调试配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文