包还原失败.回滚包更改 [英] Package restore failed. Rolling back package changes

查看:42
本文介绍了包还原失败.回滚包更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 VS2017 中为 asp.net core 安装任何 nuget 包时.它不断显示每个​​包的包恢复失败.正在回滚包更改".

When I am trying to install any nuget package in VS2017 for asp.net core. it is constantly showing "Package restore failed. Rolling back package changes" for each package.

推荐答案

您可以执行以下步骤:

  1. VS 工具
  2. 选项
  3. Nuget 包管理器
  4. 一般
  5. 清除所有 Nuget 缓存.

您需要将目标 .net core 1.1 更改为 2.0,如果您将 VS 2017 更新为最新版本(例如 VS 2017 15.3)

You need to change target .net core 1.1 to 2.0, and this is possible if you update your VS 2017 with the latest version(ex. VS 2017 15.3)

这篇关于包还原失败.回滚包更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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