【发布时间】:2014-10-19 02:26:02
【问题描述】:
我能够使用 MSBuild.exe 构建解决方案,但我的问题是我只能设法让它在 DEBUG 模式下构建。我需要使用 MSBUILD 在发布模式下构建我的解决方案。
这是我尝试过的
Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Config=Release");
和
Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Configuration=Release");
【问题讨论】:
-
从命令行(而不是代码)运行 MSBuild 时,能否在发布模式下构建解决方案?
标签: c# msbuild release mode solution