0

I'm trying to scaffold Identity in my Asp.net MVC project, but I always get the error:

There was an error runnning the selected code generator: 'Package restore failed. Rolling back package changes for 'myProject'

I read that some people resolve that issue with clicking on the 'update all' button but I can't do that because i am using .net6 and some packagas upgrade too were they depend on .net7 I have tried updating all relevant dependencies to the same version, but still no luck. Any suggestions or ideas that I can try? enter image description here

enter image description here

Yumaisch
  • 17
  • 4
  • 1
    See the output in the Visual Studio to identify what package/version is failed to restore. And try to use `Update-Package package_name -Version required_version` from the Package Manager Console. See [Update-Package (Package Manager Console in Visual Studio)](https://learn.microsoft.com/en-us/nuget/reference/ps-reference/ps-ref-update-package) for details. – Jackdaw Jan 17 '23 at 15:21

0 Answers0