Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Nuget package version parse failed



  • Hi,

    I am trying to push a nuget package to proget and I get the following error:

    An error occurred processing a PUT request to http://10.255.11.19:81/nuget/Default/: Invalid version number.
    
    System.FormatException: Invalid version number.
    at Inedo.ProGet.Feeds.NuGet.LegacyNuGetVersion.Parse(String version)
    at Inedo.ProGet.Feeds.NuGet.NuGetPackage.ReadFromNuspecFile(Stream nuspecStream, Boolean legacyVersion)
    at Inedo.ProGet.Feeds.NuGet.NuGetFeed.ParsePackage(Stream stream)
    at Inedo.ProGet.Feeds.NuGet.NuGetFeed.<InstallOrUpdatePackageAsync>d__46.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.PutHandler.<ProcessPutRequestAsync>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.<ProcessRequestAsync>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    

    The version that I try to push is:
    0.1.0-20180221T113336.28ecd3c.0
    Which is a valid semantic versioned version, at least to my understanding.

    The Proget version I use is: 5.0.8 (Build 5)

    Am I doing something wrong, or do I hit a bug in Proget?

    Cheers,
    André

    Product: BuildMaster
    Version: 6.0.0


  • inedo-engineer

    Hello Andre,

    The version number you posted is indeed a valid SemVer2 version number.

    If you go to the Manage Feed page for the NuGet feed, is there an orange button near the top of the page that says Migrate? If that button is present, the feed is not marked as supporting SemVer2.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation