Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package restore failed. Rolling back package changes

Tags:

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.

like image 250
Lalit Kamboj Avatar asked Aug 27 '17 16:08

Lalit Kamboj


2 Answers

You can do the following steps:

  1. VS Tools
  2. Options
  3. Nuget Package Manager
  4. General
  5. Clear All Nuget Cache(s).

OR

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)

enter image description here

like image 77
sebu Avatar answered Sep 19 '22 11:09

sebu


You Simply need to clear the NuGet Cache. To do this ->

  1. Go to Tools
  2. Options
  3. NuGet Package Manager
  4. General
  5. Clear All NuGet Cache(s)
like image 35
Musab Avatar answered Sep 21 '22 11:09

Musab