How to use the dotnet-pack –version-suffix with csproj?

According the documentation, the Version property override the version on packing, instead, use the VersionPrefix.

<PropertyGroup>
  <VersionPrefix>1.0.0</VersionPrefix>
</PropertyGroup>

And use the command to pack solution:

dotnet pack --version-suffix beta

Optionally you can set VersionPrefix and VersionSuffix in .csproj file.

<PropertyGroup>
  <VersionPrefix>1.0.0</VersionPrefix>
  <VersionSuffix>alpha</VersionSuffix>
</PropertyGroup>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)