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!
Cannot restore package using ProGet feed with FindPackagesById()
-
I've recently installed ProGet. Using the latest version of the NuGet command line client (3.4.4.1321) and ProGet (4.1.0 beta), we have a package 'foo' with a version '1.10' that ProGet is not exposing to the NuGet client during a package restore of a solution. The NuGet client tries a bunch of different ways to download it, but they all return 404:
> nuget restore path\to\solution.sln MSBuild auto-detection: using msbuild version '12.0' from 'C:\Program Files (x86)\MSBuild\12.0\bin'. Restoring NuGet package foo.1.10.0. GET http://nuget.ourserver.com/Packages(Id='foo',Version='1.10.0') NotFound http://nuget.ourserver.com/Packages(Id='foo',Version='1.10.0') 13ms GET http://nuget.ourserver.com/FindPackagesById()?id='foo' NotFound http://nuget.ourserver.com/FindPackagesById()?id='foo' 12ms GET https://api.nuget.org/v3-flatcontainer/foo/1.10.0/foo.1.10.0.nupkg NotFound https://api.nuget.org/v3-flatcontainer/foo/1.10.0/foo.1.10.0.nupkg 137ms WARNING: Unable to find version '1.10.0' of package 'foo'. C:\Users\user\AppData\Local\NuGet\Cache: Package 'foo.1.10.0' is not found on source 'C:\Users\user\AppData\Local\NuGet\Cache'. http://nuget.ourserver.com/: The V2 feed at 'http://nuget.ourserver.com/FindPackagesById()?id='foo'' returned an unexpected status code '404 Not Found'.
It was my understanding that ProGet implements the NuGet v2 feed protocol -- but it seems like FindPackagesById() and the Packages(Id=) syntax is not supported. Is this normal?
Product: ProGet
Version: 4.1.0
-
Hi there, based on the error I'm guessing you specified an incorrect feedsource of http://nuget.ourserver.com/
It should be http://nuget.ourserver.com/nuget/FeedName
-
Aha! Thank you! I didn't realize the feed wasn't at the root, since normal 'nuget push' and 'nuget install' commands worked with just the root URL as the '-Source' parameter. Only the 'nuget restore' failed.