NuGet 2.2.3 extention problems. Cannot connect to server?

怎甘沉沦 提交于 2020-01-07 02:28:25

问题


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

Default visual studio online extensions search is working without problems!

I am not using proxy:

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?


回答1:


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!




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/14689747/nuget-2-2-3-extention-problems-cannot-connect-to-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!