简体   繁体   English

Visual Studio 2017-无法还原Nuget程序包

[英]Visual studio 2017 - Not able to restore Nuget packages

I am using Visual Studio Enterprise 2017, I created a ASP.NET Web API project and it was working fine. 我正在使用Visual Studio Enterprise 2017,创建了一个ASP.NET Web API项目,并且运行良好。

Today I got a new clone and when I tried to restore my packages, it keeps showing me this error 今天我有了一个新的克隆,当我尝试恢复我的软件包时,它一直向我显示此错误

错误截图

I have tried the following 我尝试了以下

  1. Restarted Visual Studio as administrator 以管理员身份重新启动Visual Studio
  2. Rebooted PC 重新启动电脑
  3. Disabled firewall settings 禁用的防火墙设置
  4. Disabled antivirus 禁用的防病毒
  5. Checked the port too, which is not being used 也检查了端口,未使用

Nothing seems to work. 似乎没有任何作用。 Has anyone faced a similar issue? 有没有人遇到过类似的问题? Is there any alternative way? 还有其他方法吗?

Not sure if this is an issue related to Visual Studio 2017, I managed to resolve this by opening the solution in visual studio 2015. 不确定这是否与Visual Studio 2017有关,我设法通过在Visual Studio 2015中打开解决方案来解决此问题。

Again by opening in 2017, this is the solution for now. 再次于2017年开业,这是目前的解决方案。 If anyone comes up with a better solution it will be great. 如果有人想出更好的解决方案,那就太好了。

暂无
暂无

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

相关问题 使用 Visual Studio 2017 调试 NuGet 包 - Debugging NuGet packages using Visual Studio 2017 Visual Studio 2017代码编译,但nuget包是红色下划线 - Visual Studio 2017 code compiles, but nuget packages are red underlined Visual Studio 2012的NuGet包不会在MonoDevelop 5.0.1中恢复 - NuGet Packages for Visual Studio 2012 will not Restore in MonoDevelop 5.0.1 dotnet还原不会提取与Visual Studio 2017相同的软件包 - dotnet restore doesn't pull same packages as Visual Studio 2017 Visual Studio:执行“还原NuGet包”时如何添加nuget包作为引用 - Visual Studio: how to add nuget packages as references when doing “Restore NuGet packages” Visual Studio编译错误-计算机中缺少nuget软件包,但是nuget restore表示已安装所有软件包? - Visual Studio compile error - nuget package missing from computer, but nuget restore says all packages installed? Visual Studio 2017仅具有适用于.NET Core 2.x的脱机Nuget包。如何获得在线套餐? - Visual Studio 2017 only has offline Nuget Packages for .NET Core 2.x. How to get online packages? Visual Studio + nuget + TFS:检查nuget包? - Visual Studio + nuget + TFS: checking in nuget packages? 在Microsoft Visual Studio 2017安装程序项目中无法创建依赖于NuGet包的安装文件 - Creating installation files depended on NuGet packages doesn’t work in Microsoft Visual Studio 2017 Installer Projects 在 Visual Studio 2017 中更改项目的 nuget 包搜索和安装文件夹 - Change nuget packages search&install folder for a project in Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM