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
Migration commands crash when running against an SDK-based csproj #230
Comments
Use a standard "Classic" class library? |
That's what we're doing today =) The old csproj format works, but the whole point of this issue is to figure out how to migrate to the new csproj format while keep using EF 6. |
You will be entering a world of pain, suggest you wait for a new EF version (ie 6.3) with support for new project format NuGet/Home#4876 |
I have logged #231 |
"World of pain" is a relative term, the old csproj isn't that pleasant to deal with either ;) If this can't be done without some substantial engineering work in the EF codebase, then there's no other choice but to wait for the update. However, if it's possible to make migrations work via some manual adjustments to project file/app.config/migration script/whatever, then it might just be worth it. |
Closing this as a dupe of #231, which we are investigating. |
@ajcvickers Think you forgot to actually close? |
@ErikEJ Thanks. You are our process bot. 😉 |
Sorry! 😄 |
@ErikEJ Don't apologize. It is much appreciated. 😸 |
@DeshmukhParag could you please explain the intent of your previous comment? Is there something not working according to your expectations? |
@bricelam - In above image, |
Ha, nice. It's a bug. dotnet/efcore#9150 |
I've encountered this problem when trying to convert a project to the new SDK-based csproj. It had worked fine until I tried to add a new migration, which crashed with the following error:
You can easily reproduce this with a new project:
Running
Enable-Migrations
against it will cause the same error.This is a very unpleasant blocker for us, is there any way to at least work around this problem?
The text was updated successfully, but these errors were encountered: