c# – 无法安装nuget包unity 2

c# – 无法安装nuget包unity 2,第1张

概述我需要将我的应用程序从4.5降级到3.5并且我安装了unity 3.现在我无法从nuget安装unity 2.1,因为这个错误: PM> Install-Package Unity -Version 2.1.505.2The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to Nu 我需要将我的应用程序从4.5降级到3.5并且我安装了unity 3.现在我无法从nuget安装unity 2.1,因为这个错误:

PM> Install-Package Unity -Version 2.1.505.2The 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\CacheInstall-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

我究竟做错了什么?我会感激任何帮助

解决方法 看起来您的互联网连接已关闭或Nuget Org暂时无法访问,并且所需的Unity版本在缓存中无法使用.

在this接受:

Though NuGet packages are typically consumed from a remote gallery
such as the NuGet gallery using a network connection,there are many
scenarios where the clIEnt is not connected. Without a network
connection,the NuGet clIEnt was not able to successfully install
packages – even when those packages were already on the clIEnt’s
machine in the local NuGet cache. NuGet 2.8 adds automatic cache
fallback to the package manager console. For example,when
disconnecting the network adapter and installing jquery,the console
shows the following:

PM> Install-Package jquery The source at nuget.org
[https://www.nuget.org/API/v2/] is unreachable. Falling back to NuGet
Local Cache at C:\Users\me\AppData\Local\NuGet\Cache Installing
‘jquery 2.0.3’. Successfully installed ‘jquery 2.0.3’. Adding ‘jquery
2.0.3’ to WebApplication18. Successfully added ‘jquery 2.0.3’ to WebApplication18.

编辑:

在测试相同的命令后,我可以确认它工作正常,使用相同的版本,我可以使用nuget安装它,检查nuget的设置,并确保nuget.org检查为包源.

总结

以上是内存溢出为你收集整理的c# – 无法安装nuget包unity 2全部内容,希望文章能够帮你解决c# – 无法安装nuget包unity 2所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1230638.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-06
下一篇2022-06-06

发表评论

登录后才能评论

评论列表(0条)

    保存