程序包还原失败/.Net Core安装错误 [英] Package Restore Failed / .Net Core Install Bug

查看:168
本文介绍了程序包还原失败/.Net Core安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装Vs 2015 Community&之后DotNetCore.1.0.0-VS2015Tools.Preview2.0.1.exe(.Net Core),我试图创建一个新的.Net Core应用&继续收到打包还原失败"消息.

After installing Vs 2015 Community & DotNetCore.1.0.0-VS2015Tools.Preview2.0.1.exe (.Net Core), I tried to create a new .Net Core app & keep getting the 'Package Restore Failed' message.

我要重新安装Win 10,因为重新安装Visual Studio并没有帮助,但我的两台计算机上都发生了这种情况.

I was about to reinstall the Win 10 since reinstalling Visual studio didn't help but saw this happens on both of my computers.

请问有人知道如何解决此问题吗?

Anyone know how to fix this, please?

推荐答案

我遇到了相同的问题,并通过以下方式解决了问题

I had the same issue and I fixed it by

  1. 工具->选项-> NugetPackageManager->包源
  2. 通过单击+图标添加新的程序包源
  3. 将名称设置为"dotnet-core"并来源 https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
  4. 打开程序包管理器控制台并运行命令"dotnet restore"
  1. Tools -> Options -> NugetPackageManager -> Package Sources
  2. Add a new package source by clicking on the + icon
  3. Set name as "dotnet-core" and source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
  4. Open the Package Manager Console and run the command "dotnet restore"

那应该解决它.希望这会有所帮助

That should fix it. Hope this helps

这篇关于程序包还原失败/.Net Core安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆