mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 21:32:52 +00:00
How can I specify the Version for the dotnet rpm command? #90
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SparkyTD on GitHub (Dec 2, 2020).
Before using this project, I was deploying to linux by using
dotnet publishand passing the version (a git tag) as a-p:Version=$currentTagparameter to it. Unfortunately it seems like dotnet rpm doesn't accept this command line argument, and the only way to specify the rpm's version is by changing the<Version>tag in the .csproj file.Is there a better way to pass a version to dotnet when creating an rpm so I can integrate this tool into my deployment pipeline?
@markpendlebury commented on GitHub (Oct 23, 2021):
+1 this issue is the reason i'm no longer using this package. It's massivley overly complicated to update the version number in CI due to this. Having to change the version number as part of my ci and create an additional commit simply to bump the version number just isn't feasable.
If we could pass the version number in from a parameter for example
dotnet deb --version=${VERSION_NUMBER}i'll start using this package again, until then i'm back to doing it manually