I cannot update the nuget packages in my solution. I always get the error:
"Package Restore Failed. Rolling back package changes."
Here is a screenshot of the packages:
If there is anybody looking for alternative solutions you can follow my answer.
Recently I came across this problem when I cleared the NuGet caches in the project.
I was able to restore the packages only after moving the project files to a directory with a shorter length.
Example:
Initial project path (package restoration failed): D:\Folder01\Folder02\Folder03\TheProjectFolder
New file path (package restoration succeeded):D:\TheProjectFolder
By changing so, you will be able to restore the NuGet packages, and having finished again you can move the project to the previous location.
This was the only solution that enabled the NuGet package manager restoration. (Sometimes in the error console it will output different errors. But the root course for all the errors is the length of the folder path. It hinders the restoration of NuGet packages)
global.json
in you project folder? Are you migrating you project from .net core 1.1 to .net core 2.0 ? I have the same issue with you when I migrating. – doublnt