-
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
Simplified output path (UseArtifactsOutput) isn't friendly with ef migrations #30725
Comments
Note from triage: consider as part of #18840. |
Took me like 30 minutes to figure out why this didn't work :| |
The workaround of adding the option |
This is also broken when |
I think I'm seeing the same in release version. Can't make it work. Ended up disabling artifacts output layout. |
It happens because This folder can be overridden by As a dirty workaround try do not use a separate startup project and use |
Isn't this basically the same as #23853? |
#23853 (comment) works for me when I have migrations/startup assembly in a different project to the context assembly. A nice workaround for now that also works with Rider UI EF tools |
File a bug
When using simplified output path adding a migration results in:
Include your code
Run the following
Set up project
Notice that
obj
directory doesn't exist.Create DbContext.cs with:
This won't work
but this will, though unfriendly
Include verbose output
The error when not including msbuildprojectextensionspath is:
Include provider and version information
EF Core version: 8.0.0-preview.3.23174.2
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: 8.0.0-preview.3
The text was updated successfully, but these errors were encountered: