[PR #98] Add command option to set package version #232

Closed
opened 2026-01-29 16:31:25 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/quamotion/dotnet-packaging/pull/98

State: closed
Merged: No


I needed to set a custom version for my deb packages but nothing seemed to go right.

The ---version-suffix command option sets the $(VersionSuffix) property in the project, however this property is not used anywhere, as opposed to $(Version) or $(PackageVersion).

I was only able to set custom version for my deb packages by invoking the package tools manually and setting /p:Version={version} property.

This pull request changes the command option from ---version-suffix to a simple -v | --version that sets the $(Version) property, the one actually used by Packaging.Targets.

**Original Pull Request:** https://github.com/quamotion/dotnet-packaging/pull/98 **State:** closed **Merged:** No --- I needed to set a custom version for my deb packages but nothing seemed to go right. The `---version-suffix` command option sets the `$(VersionSuffix)` property in the project, however this property is not used anywhere, as opposed to `$(Version)` or `$(PackageVersion)`. I was only able to set custom version for my deb packages by invoking the package tools manually and setting `/p:Version={version}` property. This pull request changes the command option from `---version-suffix` to a simple `-v | --version` that sets the `$(Version)` property, the one actually used by `Packaging.Targets`.
claunia added the pull-request label 2026-01-29 16:31:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#232