-
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
Dotnet-ef mismatch causes apply Entity Framework migration fails when publishing an individual web app. #32782
Comments
@ajcvickers This issue can be workaround by installing runtime 8.0.1 or dotnet-ef 8.0.0, but would still like to confirm with you if this is a by design issue as we can wait until the 8.0.1 is plugged into VS 17.9 at the release stage. Any thoughts about this? |
@v-elenafeng I'm not aware of any intentional change in design from the EF side here. @bricelam might have made some changes to this before he left the company. Either that, or something changed in the way tools are built. |
same issue on linux, manjaro (arch):
dotnet info:
it looks like dotnet-ef is looking for runtime 8.0.100 but after the sdk update the runtimes remain at 8.0.0. in |
No changes from me. I suspect something either in Arcade or the .NET SDK (PackAsTool related) or EF's build files changed. Version 8.0.1 of the dotnet-ef.runtimeconfig.json file takes an explicit dependency on 8.0.1: {
"runtimeOptions": {
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.1"
}
} But version 7.0.15 is correct: {
"runtimeOptions": {
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
} This may be related to some of @AndriySvyryd's changes around TFMs. |
Interesting. On main it still uses "8.0.0", while on |
So, this is the commit that causes this - 4ab9231 |
Hmm, release/6.0 also bumps that, but I don’t think it has the same problem. I don’t see anything in the EF build scripts that have changed around this since release/6.0. 🤷♂️ |
Ah, might need to take this code out of the servicing branch. |
Yep, that fixes it |
REGRESSION INFO: Worked in: 17.8.4 (Contains runtime 8.0.1).
TESTCASES AFFECTED
[8.0/7.0/6.0] SimpleWebAppWithIndAuth
INSTALL STEPS
REPRO STEPS
ACTUAL
EF Migrations error: You must install or update .NET to run this application.
Workaround 1: Uninstall the dotnet-ef 8.0.1 and install version 8.0.0
Workaround 2: Install runtime 8.0.1 Separately
EXPECTED
The text was updated successfully, but these errors were encountered: