-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF Framework Tools try to build with old SDK #27385
Comments
@SebastianStehle ASP.NET Core 3.0 and later require that "Microsoft.AspNetCore.App" be removed. See Migrate from ASP.NET Core 2.2 to 3.0 |
But it is a class library and documented here to be the correct approach: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/target-aspnetcore?view=aspnetcore-6.0&tabs=visual-studio As i said: It builds and runs fine. If I use powershell and go to the project folder:
|
/cc @bricelam |
I'm having the same issue with v6.0.2 trying to scaffold. `Build started...
|
Installing .NET Core 2.2 Runtime (v2.2.8) allowed me to continue, but I'd rather not install an unsupported runtime. |
The fix is to add Microsoft.EntityFrameworkCore.Design to your project. At least works for me. But it is weird. |
This effectively adds the following to your csproj. Adding it directly should also work around the issue. <PropertyGroup>
<GenerateRuntimeConfigurationFiles>True</GenerateRuntimeConfigurationFiles>
</PropertyGroup> |
Ask a question
I have a DBContext in a class library for which I want to add migrations:
When I execute this command I get the following output in Powershell:
But the project builds find and the csproj looks like this (shortened)
The verbose output does not show more information.
What am I doing wrong?
Include provider and version information
EF Core version: 6.0.1
EF Core Tools version: 6.0.1
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer): MySql
Target framework: 6.0.0
Operating system:
IDE: (e.g. Visual Studio 2019 16.3)
The text was updated successfully, but these errors were encountered: