NuGet 2.2.3 extention problems. Cannot connect to

2019-09-02 13:37发布

I have project where NugGet is used.

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.

An error occurred while trying to restore packages. Please try again enter image description here

Default visual studio online extensions search is working without problems!

I am not using proxy:

enter image description here

VS 2012 is running under admin rights.

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?

3条回答
劳资没心,怎么记你
2楼-- · 2019-09-02 13:58

I also had this problem but found that it was a glitch with the NuGet package manager. 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. After doing so the 'restore missing packages' option succeeded. This was a very frustrating glitch and oddly only affected one of my VS2010 solutions!

查看更多
乱世女痞
3楼-- · 2019-09-02 13:59

Found problem. Source for NuGet was not set by default in visual studio 2012.

enter image description here

查看更多
姐就是有狂的资本
4楼-- · 2019-09-02 14:08

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.

查看更多
登录 后发表回答