Drew Noakes
Drew Noakes

Reputation: 310792

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.

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.

Upvotes: 2

Views: 2053

Answers (1)

Drew Noakes
Drew Noakes

Reputation: 310792

Add the VersionSuffix property to your msbuild arguments:

msbuild /p:VersionSuffix=rc2 ...

Upvotes: 5

Related Questions