Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 MSBuild 发布模式,但它始终默认为调试。知道为什么吗?
msbuild LP.sln /p:buildmode=release
我检查了以下帖子;
MSBuild 任务 - 构建失败,因为在发布而不是调试中构建了一个解决方案
MSBuild 任务配置属性
这取决于该构建脚本的内容。Visual Studio C# 使用参数Configuration在Release和Debug之间切换。不是构建模式。您可能想尝试以下方法:
msbuild LP.sln /p:Configuration=Release