Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    progetpublishingbuildmasternuget
    2 Posts 2 Posters 14 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer
        last edited by

        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.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better đŸ’—

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation