问题描述
我能够使用 msbuild.exe 构建百家乐凯发k8的解决方案,但我的问题是我只能设法让它在 debug 模式下构建.我需要使用 msbuild 在发布模式下构建我的百家乐凯发k8的解决方案.
i am able to build a solution using msbuild.exe, but my issue is i can only manage to get it to build in debug mode. i need to build my solution in release mode using 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.exe [path to your solution(*.sln)] /t:build /p:configuration=release /p:targetframeworkversion=v4.0