TeamCity plugin - nuget package version changed (zero added)
Baggs
Posts: 4 Bronze 1
I run "Redgate SQL Change Automation Build" step in TeamCity using plugin "Redgate SQL Change Automation" version 5.0.1.
I have issue with generated NuGet package:
If my "build.number" has only major.minor numbers (eg. 2.5-beta.3) generated nuget package is MyPackage-2.5.0-beta.3. Actaully I have found function Get-NormalizedVersionString in PSModule.psm1 file that does that.
Adding 0 to version number for me is unnecessary, very confusing and problematic. Can we have this behavior removed or at least have a configuration option to disable it?
Piotr
I have issue with generated NuGet package:
If my "build.number" has only major.minor numbers (eg. 2.5-beta.3) generated nuget package is MyPackage-2.5.0-beta.3. Actaully I have found function Get-NormalizedVersionString in PSModule.psm1 file that does that.
Adding 0 to version number for me is unnecessary, very confusing and problematic. Can we have this behavior removed or at least have a configuration option to disable it?
Piotr
Tagged:
Answers
We package our applications using Octopack (from Octopus Deploy) and we don't have such problem. It seems Octopus Deploy solved that by creating custom nuget build https://github.com/OctopusDeploy/Issues/issues/2898
Piotr
Currently we support valid Nuget version formats only.
If you wish to you can post this on the SQL Change Automation forum: https://redgate.uservoice.com/forums/267000-sql-change-automation
That forum is monitored by the Product Management team who use it as an important source when deciding what features to add or enhance in the tool.
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools