I am using Visual Studio 2022 and creating new Asp.net Core MVC application using dotnet Core 6.0 framework and following nuget packages:
- Microsoft.EntityFrameworkCore.Design 6.0
- Microsoft.EntityFrameworkCore.SqlServer 6.0but adding new scaffolded item following error message is showing:
There was an error running the selected code generator: 'Package restore failed. Rolling back package changes for 'MvcMovie'.'
I have tried to change the versions of dotnet core and nuget packages but nothing happened.