无法从自托管的nuget服务器下载软件包(404错误) [英] Unable to download packages from a self hosted nuget server (404 error)

查看:804
本文介绍了无法从自托管的nuget服务器下载软件包(404错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个自托管的Nuget服务器,如这里所述
我使用的是Windows 2008 R2,IIS 7.5和Nuget 1.7。

I installed a self hosted Nuget server as described here. I am using Windows 2008 R2, IIS 7.5 and Nuget 1.7.

从VS中我可以在包管理器窗口中看到我自己托管的包,但当我尝试安装其中任何一个时,我收到错误远程服务器返回错误:(404)Not Found。

From within VS I am able to see my self hosted packages in the package manager window, but when I try to install any of them, I am getting an error "The remote server returned an error: (404) Not Found".

帮助任何人?

推荐答案

我要执行3个操作才能让它最终运行

I hade to perform 3 actions in order to get this to work finally

1)我的一些软件包的扩展名为.symbols.nupkg我发现Nuget服务器不能只为这些包服务。如果我将包文件的扩展名从.symbols.nupkg更改为.nupkg,一切正常。

1) Some of my packages has the extension ".symbols.nupkg" and I found out that the Nuget server cannot serve those packages only. If I change the extension of the package file from "".symbols.nupkg" to ".nupkg" everything works fine.

2)所有包都必须放置在包文件夹下没有(没有子文件夹)。

2) All the packages has to be placed flat under the packages folder (no sub-folders).

3)包文件夹必须放在网站下面(原始位置很好,〜/ Packages我试图将它放在绝对路径C:\NugetPackages中,但它没有用。

3) The packages folder has to be placed below the website (original location is fine, "~/Packages"). I tried to put it in absolute path "C:\NugetPackages" and it did not work.

这篇关于无法从自托管的nuget服务器下载软件包(404错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆