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!

Packages with build metadata are not retrieved



  • I have a NuGet package with a version conforming to SemVer 2.0.
    It looks like: 1.1.0+MyCompany.0.0.1.

    This indicates it's a build from MyCompany (the first one).
    I can upload this package to ProGet, but I can't retrieve it.

    Visual Studio 2017 using NuGet 4.6.2:

    NuGet Package restore failed for project CSAdapter: Unable to find version '1.1.0' of package 'log4cpp.redist'.  
    http://mycompany.com:81/nuget/SharedComponents: Package 'log4cpp.redist.1.1.0' is not found on source 'http://mycompany.com:81/nuget/SharedComponents'.
    . Please see Error List window for detailed warnings and errors.
    NuGet Package restore finished for project 'CSAdapter'.NuGet Package restore failed for project CSAdapter: Unable to find version '1.1.0' of package 'log4cpp'.  
    http://mycompany.com:81/nuget/SharedComponents: Package 'log4cpp.1.1.0' is not found on source 'http://mycompany.com:81/nuget/SharedComponents'.
    . Please see Error List window for detailed warnings and errors.
    

    Manual restore from command as suggested by ProGet doesn't work:

    PM> nuget install log4cpp -Version 1.1.0 -Source http://mycompany.com:81/nuget/SharedComponents/
    Feeds used:
      http://mycompany.com:81/nuget/SharedComponents/
    
    
    Attempting to gather dependency information for package 'log4cpp.1.1.0' with respect to project 'E:\Develop\CSAdapter', targeting 'Any,Version=v0.0'
    Gathering dependency information took 268,62 ms
    Attempting to resolve dependencies for package 'log4cpp.1.1.0' with DependencyBehavior 'Lowest'
    Resolving dependency information took 0 ms
    Resolving actions to install package 'log4cpp.1.1.0'
    Resolved actions to install package 'log4cpp.1.1.0'
    Retrieving package 'log4cpp 1.1.0' from 'http://mycompany.com:81/nuget/SharedComponents/'.
    Retrieving package 'log4cpp.redist 1.1.0' from 'http://mycompany.com:81/nuget/SharedComponents/'.
      GET http://rmycompany.com:81/nuget/SharedComponents/package/log4cpp.redist/1.1.0+MyCompany.0.0.1
      GET http://mycompany.com:81/nuget/SharedComponents/package/log4cpp/1.1.0+MyCompany.0.0.1
      NotFound http:/mycompany.com:81/nuget/SharedComponents/package/log4cpp/1.1.0+MyCompany.0.0.1 172ms
      NotFound http://mycompany.com:81/nuget/SharedComponents/package/log4cpp.redist/1.1.0+MyCompany.0.0.1 401ms
    WARNING: Install failed. Rolling back...
    

    Notice how the version is expanded to 1.1.0+MyCompany.0.0.1
    So I can't get to my NuGet package. Is this a bug? Am I doing something wrong?

    Product: ProGet
    Version: 5.1.2


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation