Unable to install package 2 integer

I need to downgrade my application from 4.5 to 3.5, and I had unity 3. Now I cannot install unity 2.1 from nuget, due to this error:

PM> Install-Package Unity -Version 2.1.505.2
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local Cache at C:\Users\voskresenskiy\AppData\Local\NuGet\Cache
Install-Package : Unable to find version '2.1.505.2' of package 'Unity'.
At line:1 char:16
+ Install-Package <<<<  Unity -Version 2.1.505.2
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

What am I doing wrong? I will be grateful for any help

+4
source share
1 answer

It seems that your Internet connection is missing or Nuget Org is temporarily unavailable, and the desired version of Unity is not available in the cache.

Take alook in this :

NuGet , NuGet, , , . , NuGet - NuGet. NuGet 2.8 . , jQuery, :

PM > Install-Package jquery nuget.org [https://www.nuget.org/api/v2/] . NuGet C:\Users\me\AppData\Local\NuGet\Cache 'jQuery 2.0.3'. ​​ "jQuery 2.0.3". 'jQuery 2.0.3 ' WebApplication18. "jQuery 2.0.3" WebApplication18.

EDIT:

, , , nuget, nuget , nuget.org .

+1

Source: https://habr.com/ru/post/1534389/


All Articles