How can we help you today? How can we help you today?

TeamCity plugin - nuget package version changed (zero added)

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
Baggs
0

Comments

4 comments

  • Sean_Lively
    The nuget team forced SemVer as the standard a few years ago, and has no desire to roll it back: https://github.com/NuGet/Home/issues/3050
    Sean_Lively
    0
  • Baggs
    Thanks for the issue link SeanL. I can fully understand forcing SemVer on nuget packages if they are intented to land on public nuget feeds, however many companies use internal nuget feeds for deployment pipeline. In that case I think SemVer doesn't need to be forced.
    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
    Baggs
    0
  • Sean_Lively
    That's the frustrating thing about the way the Nuget team handled this- it's a subtle problem that will continue to creep through the ecosystem, randomly breaking processes as the tools are updated. I'm sure eventually I'll update my ProGet server to find half of my deployment processes failed due to SemVer normalization.
    Sean_Lively
    0
  • Sergio R
    Hi 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.
    Sergio R
    0

Add comment

Please sign in to leave a comment.