我能够使用 MSBuild.exe 构建解决方案,但我的问题是我只能设法让它在 DEBUG 模式下构建.我需要使用 MSBUILD 在发布模式下构建我的解决方案.
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
这篇关于使用 MSBuild.exe 在发布模式下构建 C# 解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
是否有执行 Excel NORMINV 函数的 C# 库?Is there a C# library that will perform the Excel NORMINV function?(是否有执行 Excel NORMINV 函数的 C# 库?)
从 C# 中的加权列表中选择 x 个随机元素(无需替换Select x random elements from a weighted list in C# (without replacement)(从 C# 中的加权列表中选择 x 个随机元素(无需替换))
给定轮班列表,创建时间表的摘要描述Create a summary description of a schedule given a list of shifts(给定轮班列表,创建时间表的摘要描述)
C# 普通随机数C# Normal Random Number(C# 普通随机数)
通用列表的标准偏差?Standard deviation of generic list?(通用列表的标准偏差?)
AsyncCTP:创建一个 IAwaitable 的类AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:创建一个 IAwaitable 的类)