-3

package restore failed rolling back package change for ' my project' in vs 2017 .net MVC core project while updating packages

User4694
  • 9
  • 1
  • 1
  • 2
    This question is poorly worded (no question is asked) and does not provide much information ... did you just add a new package ? what's the context ? – Mathieu VIALES Aug 24 '17 at 08:17
  • please describe your problem, environment and what you have tried so far to fix it – WhatsThePoint Aug 24 '17 at 08:18
  • Hi, did find solution around this matter? if not try, tools--> option--> NuGet Package Manager--> Click 'Clear all Nuget Cache(s)' and that should do the trick. – Neo Soko Sep 04 '17 at 21:42
  • Visit this link: https://stackoverflow.com/questions/45906856/package-restore-failed-rolling-back-package-changes/46144314#46144314 – sebu Sep 21 '17 at 05:20

2 Answers2

2

I have the same problem. Created a new app ASP.Net Core(.Net Framework). And wanted to add the library, but faced the error. When trying to update the same problem. enter image description hereenter image description here

FIXED

The solution was simple. When creating the project I chose ASP.NET CORE v 1. After rebuilding the project ASP.NET CORE v 2, it worked.

enter image description here

al.koval
  • 2,087
  • 4
  • 28
  • 35
0

Try to delete the "packages" folder in your solution and all the projects and colse-reopen Visual Studio

Mathieu VIALES
  • 4,526
  • 3
  • 31
  • 48