小编use*_*000的帖子

使用MSBuild.exe在发布模式下构建C#解决方案

我能够使用MSBuild.exe构建一个解决方案,但我的问题是我只能设法让它在DEBUG模式下构建.我需要使用MSBUILD在Release模式下构建我的解决方案.

这是我尝试过的

Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Config=Release");
Run Code Online (Sandbox Code Playgroud)

Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Configuration=Release");
Run Code Online (Sandbox Code Playgroud)

c# msbuild release mode solution

109
推荐指数
1
解决办法
8万
查看次数

标签 统计

c# ×1

mode ×1

msbuild ×1

release ×1

solution ×1