简体   繁体   English

使用MSBuild.exe时相当于dotnet build --version-suffix

[英]Equivalent of dotnet build --version-suffix when using MSBuild.exe

With the dotnet build tool from the .NET SDK, you can pass --version-suffix , for example to make prerelease packages with suffixes such as rc1 , etc. 使用.NET SDK中的dotnet build工具,您可以传递--version-suffix ,例如制作带有后缀的预发行版程序包,例如rc1等。

I am having to use MSBuild.exe directly in order to work around a bug with targetting net35 and want to know what the equivalent command line argument is for this. 我必须直接使用MSBuild.exe来解决以net35为目标的错误,并想知道与此等效的命令行参数是什么。

Add the VersionSuffix property to your msbuild arguments: VersionSuffix属性添加到您的msbuild参数中:

msbuild /p:VersionSuffix=rc2 ... msbuild / p:VersionSuffix = rc2 ...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 csproj 中使用 dotnet-pack --version-suffix? - How to use the dotnet-pack --version-suffix with csproj? Bamboo随机运行不同版本的msbuild.exe并生成失败 - Bamboo randomly runs different version of msbuild.exe and build fails 在Dev和Jenkins机器之间使用不同版本的MSBUILD.exe - Using different version of MSBUILD.exe between Dev and Jenkins machine 发布后事件不与msbuild.exe一起使用 - Post build event not working with msbuild.exe 使用 MSBuild.exe 发布 net5.0 控制台应用程序,因为 dotnet 无法正常工作 - Using MSBuild.exe to release a net5.0 console application because dotnet not working Visual Studio SSDT 数据库项目 (.sqlproj) 构建 - 使用没有 MSBUILD (msbuild.exe) 的 CLI 生成.dacpac - Visual Studio SSDT Database project (.sqlproj) build - generate .dacpac using CLI without MSBUILD (msbuild.exe) 使用BuildTools_Full.exe安装时,Windows中的MSBuild.exe安装在哪里? - Where is MSBuild.exe installed in Windows when installed using BuildTools_Full.exe? 以编程方式使用msbuild.exe构建我的.NET解决方案并输出日志 - Build my .NET Solution using msbuild.exe programmatically and output the logs 正确的MSBuild.exe位置,以使用命令行构建.net 4.5应用程序 - Correct location of MSBuild.exe to build .net 4.5 application using command line 以编程方式发布版本(如ClickOnce),淘汰msbuild.exe - Publish version programatically (like ClickOnce) whitout msbuild.exe
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM