简体   繁体   English

NuGet 2.2.3扩展问题。 无法连接到服务器?

[英]NuGet 2.2.3 extention problems. Cannot connect to server?

I have project where NugGet is used. 我有使用NugGet的项目。

I am trying to build project and i have next errors: 我正在尝试构建项目,但出现下一个错误:

    ...

Error   88  Unable to find version '2.1.505.2' of package 'Unity'.  Common

Error   84  Unable to find version '1.0' of package 'CommonServiceLocator'. Common


Error   90  The command ""D:\Development\root\.nuget\nuget.exe" install "D:\Development\root\Common\packages.config" -source ""  -RequireConsent -solutionDir "D:\Development\root\ "" exited with code 1.  common

Also i get error when trying to download packages in NuGet package manager. 当尝试在NuGet软件包管理器中下载软件包时,我也收到错误消息。

An error occurred while trying to restore packages. 尝试还原软件包时发生错误。 Please try again 请再试一次 在此处输入图片说明

Default visual studio online extensions search is working without problems! 默认的Visual Studio在线扩展搜索可以正常工作!

I am not using proxy: 我没有使用代理:

在此处输入图片说明

VS 2012 is running under admin rights. VS 2012在管理员权限下运行。

Also visual studio config was modified: 视觉工作室的配置也被修改:

<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy usesystemdefault="True"/>
</defaultProxy>
<settings>
<servicePointManager expect100Continue="false" />
<ipv6 enabled="true"/>
</settings>
</system.net>

But this is doesnot helps. 但这无济于事。

any suggestions? 有什么建议么?

I also had this problem but found that it was a glitch with the NuGet package manager. 我也遇到了这个问题,但是发现它与NuGet软件包管理器有关。 Although my package sources were defined (the default nuget.org and an internal nuget gallery), I had to de-select, click 'OK', then reopen and select the sources again. 尽管已经定义了包源(默认的nuget.org和内部nuget画廊),但我必须取消选择,单击“确定”,然后重新打开并再次选择源。 After doing so the 'restore missing packages' option succeeded. 这样做后,“恢复丢失的软件包”选项成功。 This was a very frustrating glitch and oddly only affected one of my VS2010 solutions! 这是一个非常令人沮丧的故障,奇怪地仅影响了我的VS2010解决方案之一!

Found problem. 发现问题。 Source for NuGet was not set by default in visual studio 2012. 在Visual Studio 2012中默认未设置NuGet的源。

在此处输入图片说明

In package repository does not exists one/many of project requiring packages. 在软件包存储库中不存在一个/许多需要软件包的项目。 We have local nuget repository and after getting project to new PC it was impossible to restore missing packages, because they was old and only newer version of those packages where exists in repository. 我们有本地nuget存储库,将项目移植到新的PC后,无法恢复丢失的软件包,因为它们是旧的,而存储库中只有这些软件包的较新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM