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!

    Leading 0 before the version is remove when package is add in a feed

    Scheduled Pinned Locked Moved Support
    packagesprogetnuget
    5 Posts 2 Posters 109 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,

      When we push a package to a nuget feed with version 2.7.5.046 the proget server remove the leading 0 at the from of the number. when trying to get the package in visual studio 2017
      package name mycompany.BusinessEntities.2.7.5.046.nupkg
      with get error:

      ..\nuget_4_5_1.exe install Mycompany.BusinessEntities -Version 2.7.5.46 -Source http://nuget.mycompany.com:8888/nuget/Release/
      Feeds used:
      C:\Users\Username.nuget\packages
      http://nuget.mycompany.com:8888/nuget/Release/

      Attempting to gather dependency information for package 'Mycompagny.BusinessEntities.2.7.5.46' with respect to project 'C:\Users\Username\Downloads\test', targeting 'Any,Version=v0.0'
      Gathering dependency information took 244.79 ms
      Attempting to resolve dependencies for package 'Mycompagny.BusinessEntities.2.7.5.46' with DependencyBehavior 'Lowest'
      Resolving dependency information took 0 ms
      Resolving actions to install package 'Mycompagny.BusinessEntities.2.7.5.46'
      Resolved actions to install package 'Mycompagny.BusinessEntities.2.7.5.46'
      Retrieving package 'Mycompagny.BusinessEntities 2.7.5.46' from 'http://nuget.mycompany.com:8888/nuget/Release/'.
      GET http://nuget.mycompany.com:8888/nuget/Release/package/Mycompagny.BusinessEntities/**2.7.5.046**
      NotFound http://nuget.mycompany.com:8888/nuget/Release/package/Mycompagny.BusinessEntities/**2.7.5.046** 67ms
      WARNING: Install failed. Rolling back...
      Executing nuget actions took 121.75 ms
      ..\nuget_4_5_1.exe : Package 'Mycompagny.BusinessEntities.2.7.5.46' is not found on source 'http://nuget.mycompany.com:8888/nuget/Release/'.
      At line:1 char:1

      • ..\nuget_4_5_1.exe install Mycompagny.BusinessEntities -Version ...
      •   + CategoryInfo          : NotSpecified: (Package 'AppFra...uget/Release/'.:String) [], RemoteException
          + FullyQualifiedErrorId : NativeComm
          
          the file is not found because the proget server don't have the package 2.7.5.046 because the 0 was remove when the package is add and the .nuspec version have that 2.7.5.046
          
          who i can fix that error, we have a lot of package that have the 0 before the digit and i don't what to repackage all of them.
          
          Patrick
        
        

      Product: ProGet
      Version: 5.0.10

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Are you using a "Legacy NuGet Feed" (created in v4), or is this a "new" (SemVer2) NuGet feed?

        Leading zeros are no longer supported by Microsoft for NuGet packages, nor the ProGet SemVer2 feeds. So if you are still using them in your process, you really ought to change your process to use semantic versioning.

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

          Hi,

          Is a legacy feed (proget 3.1.6.1), we import it in a new nuget feed in proget 5.0.

          Patrick

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

            If you're using a NuGet feed in ProGet v5, then it does not support leading zeros. You can use a legacy feed or an old version of ProGet if you really really need to keep this quirky legacy process....

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

              Thank you
              with version 4.8.12, it's working.

              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