I followed the instructions on Hosting Your Own NuGet Feeds:
- Create an empty web application
- Installed the
NuGet.Server
package - Set
~/Packages
as thepackagesPath
in Web.config - Set my API key in Web.config
- Created the .nupkg file from a class library using
NuGet.exe
- Created a new Application in IIS called "NuGet"
- Granted Read/Write access to the
IUSR
andIIS_IUSRS
users and groups - Ran
nuget setApiKey ABC123 -Source http://localhost/NuGet
from the command line - Ran
nuget push Foo.Bar.dll.nupkg -Source http://localhost/NuGet
The push to the NuGet server succeeded. I can view the folder in Windows Explorer and see the .nupkg file.
When I go to http://localhost/NuGet/nuget/Packages
I get an RSS feed showing the package I just pushed.
When I go to http://localhost/NuGet/nuget/
I get an empty list of packages:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<service xml:base="http://localhost/NuGet/nuget/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
<workspace>
<atom:title>Default</atom:title>
<collection href="Packages">
<atom:title>Packages</atom:title>
</collection>
</workspace>
</service>
After configuring NuGet in Visual Studio to include http://localhost/NuGet
as one of the package sources, I can't install the package I just pushed either.
This is all running on:
- Windows 7
- IIS 7.5
Why does the NuGet package show up in the RSS feed (/NuGet/nuget/Packages
), but not through /NuGet/nuget
?