Skip to main content Skip to footer

Package restore failed. Rolling back package changes

Background:

This article discusses what to do when your package restore fails.

Steps to Complete:

1. In Visual Studio 2019, goto Tools > Options > Nuget Package Manager >Package Manager Setting > General > Clear All Nuget Cache(s).

2. You may need to change your target framework in your project to what was it before

  • You can do this by opening the .csproject file in a text editor

3. Ex:

<PropertyGroup><TargetFramework>netcoreapp2.0</TargetFramework></PropertyGroup>

For more information, refer to this post: https://stackoverflow.com/questions/45906856/package-restore-failed-rolling-back-package-changes

Evan Warren