Visual studio 推送到私有NuGet提要(NuGet.Server,IIS)后,NuGet包不显示
我遵照以下指示:Visual studio 推送到私有NuGet提要(NuGet.Server,IIS)后,NuGet包不显示,visual-studio,iis,nuget,nuget-server,Visual Studio,Iis,Nuget,Nuget Server,我遵照以下指示: 创建一个空的web应用程序 安装了NuGet.Server软件包 将~/Packages设置为Web.config中的packagesPath 在Web.config中设置我的API密钥 使用NuGet.exe 在IIS中创建了一个名为“NuGet”的新应用程序 授予对IUSR和IIS\u IUSRS用户和组的读/写访问权限 Rannuget setApiKey ABC123-源代码http://localhost/NuGet从命令行 运行nuget push Foo.Bar.
NuGet.Server
软件包~/Packages
设置为Web.config中的packagesPath
NuGet.exe
IUSR
和IIS\u IUSRS
用户和组的读/写访问权限nuget setApiKey ABC123-源代码http://localhost/NuGet
从命令行nuget push Foo.Bar.dll.nupkg-源代码http://localhost/NuGet
http://localhost/NuGet/nuget/Packages
我收到一个RSS提要,显示我刚刚推送的包
当我转到http://localhost/NuGet/nuget/
我得到一个空的包列表:
违约
包装
在Visual Studio中配置NuGet以包含http://localhost/NuGet
作为软件包源之一,我也无法安装我刚刚推送的软件包
这一切都是在:
- 视窗7
- IIS 7.5
为什么NuGet包出现在RSS提要中(
/NuGet/NuGet/Packages
),而不是通过/NuGet/NuGet
?/p>因为/NuGet/Packages
是列出包的URL(它恰好是RSS格式的,因为这是最初的实现决策),而/NuGet/NuGet
是用于推送、删除等包操作的API端点
您发布的XML不是一个空的包列表,它更像是一个服务描述符。包的空列表将是在以下位置找到的结果:/NuGet/NuGet/packages()?$filter=1 eq 2