Skip to content
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

Refactor compiled models MSBuild integration. #33700

Merged
merged 1 commit into from
May 13, 2024
Merged

Refactor compiled models MSBuild integration. #33700

merged 1 commit into from
May 13, 2024

Conversation

AndriySvyryd
Copy link
Member

Run build normally first and if the DbContext assembly was (re)built then generate the compiled model and compile again.
Don't use the previously generated compiled model during normal compilation.
Make the .Tasks NuGet package a development dependency Improve exception messages for common negative cases.
Rename OptimizeContext task to OptimizeDbContext.

Fixes #33487

Run build normally first and if the DbContext assembly was (re)built then generate the compiled model and compile again.
Don't use the previously generated compiled model during normal compilation.
Disable PublishAOT when compiling the DbContext assembly for model generation.
Make the .Tasks NuGet package a development dependency
Improve exception messages for common negative cases.
Rename OptimizeContext task to OptimizeDbContext.

Fixes #33487
@AndriySvyryd AndriySvyryd requested a review from a team May 10, 2024 21:56
@AndriySvyryd AndriySvyryd merged commit 36135f7 into main May 13, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue33487 branch May 13, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-generated compiled model results in an error after entity type rename
2 participants