我在Visual Studio 2010中的解决方案在TFS源代码控制下。当我打开NuGet UI并尝试安装一个新软件包时,出现HTTP 401 Unauthorized错误。使用NuGet安装包与TFS连接并出现401错误
如果我同时运行Fiddler,我可以看到NuGet试图连接到我的TFS服务器(而不是NuGet服务器)。
这里究竟发生了什么,为了安装软件包我需要做些什么?
UPDATE:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.microsoft.com/TeamFoundation/2005/06/VersionControl/ClientServices/03"
xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<GetRepositoryProperties/>
</soap:Body>
</soap:Envelope>
我已更新我的问题以显示请求消息。我的“Package Source”列表中唯一的东西是官方的NuGet源代码。 – 2011-05-13 08:00:16
我添加了一个链接到我的答案,有一点点的信息可能会有所帮助。 – 2011-05-13 08:22:29
精彩,我只是在Visual Studio的NuGet dir中重命名了'NuGet.TeamFoundationServer.dll'文件,重新启动VS2010,然后一切正常。我认为我们的TFS设置有点奇怪,但至少现在我可以安装软件包,直到它被分类。 – 2011-05-13 08:39:58