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!

    Bug Report: Using Semver2 build metadata with NuGet prevents ProGet from being able to interact with package via Website or nuget.exe

    Scheduled Pinned Locked Moved Support
    nugetproget
    3 Posts 2 Posters 11 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

      We recently started investigating using Semver2 version numbers with ProGet and have encountered issues regarding how it handles packages which have a "+" in the version number.

      We have found that once we introduce a "+", we are no longer able to access the package's page on within the feed. Attempts to upload a new version are met with a HTTP 403 error, as are attempts to delete the already pushed package using nuget.exe.

      Visual Studio 15.5.3 also seems to have difficulty downloading the package from ProGet.

      Below I have reproduced a simple *.nuspec that repros these bugs.

      <?xml version="1.0" encoding="utf-8"?>
      <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
          <metadata>
              <!-- Required elements-->
              <id>test</id>
              <version>1.0.0.0+meta</version>
              <description>test</description>
              <authors>tester</authors>
      
              <!-- Optional elements -->
              <!-- ... -->
          </metadata>
          <!-- Optional 'files' node -->
       </package>
      

      We are running on Windows Server 2012 with SQL 2016

      Product: ProGet
      Version: 5.0.8

      1 Reply Last reply Reply Quote 0
      • T Offline
        thoven
        last edited by

        Hello Chris,

        1.0.0.0+meta is not a valid SemVer2 version number because it contains a 4-part base version number.

        1.0.0+meta would be valid.

        1.0.0-0+meta is also valid as long as the number in the prerelease section does not have extra zeroes before it. That is, 1.0.0-01+meta is not a valid SemVer2 version number.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hey Ben,
          I've updated my nuspec:
          <?xml version="1.0" encoding="utf-8"?>
          <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
          <metadata>
          <!-- Required elements-->
          <id>test</id>
          <version>1.0.0+meta</version>
          <description>test</description>
          <authors>tester</authors>

                  <!-- Optional elements -->
                  <!-- ... -->
              </metadata>
              <!-- Optional 'files' node -->
          </package>
          

          When I upload a package created from this nuspec, I get this result
          Image Text

          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