'Error running the selected code generator in Visual Studio
Solution 1:[1]
It looks like scaffolding the items installing the older version of Microsoft.EntityFrameworkCore.SqlServer or Microsoft.EntityFrameworkCore then your project currently depends on.
There are several ways that might help you fix the said issue. You could try them one by one.
- Try to clear Nuget Cache.
- Go to Tools in the Visual Studio
- Options
- NuGet Package Manager
- General
- Clear All NuGet Cache(s)
If the issue persists, try to manually update the packages
Microsoft.EntityFrameworkCore.SqlServerorMicrosoft.EntityFrameworkCoreTry to update the rest of the NuGet packages.
Reference: Package restore failed. Rolling back package changes
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Deepak-MSFT |


