-
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
Create a migration failed with PowerShell command in PMC #27457
Comments
I just tested following steps. it seems working fine but there is a warning message.
An operation was scaffolded that may result in the loss of data. Please review the migration for accuracy. It is obvious that there are some changes in 'Add-Migration' |
Duplicate of #27306. Workaround in this comment: #27306 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I try to create a migration in Visual Studio PMC with the command 'Add-Migration'. It seems the ef-core tool tries to start our app and waits until the web host return timeout.
We just upgraded the framework to .net6 and vs2022 to v17.1.0. Before the upgrade, both commands are working fine.
Logs:
But it works if using the ef-core CLI command. it didn't start our app.
Include provider and version information
EF Core version: efcore 6.0.1
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL
Target framework: .NET6
Operating system: Windows 10
IDE: VS2022 17.1.0
The text was updated successfully, but these errors were encountered: