Skip to content

Correct EF Tasks startup guidance and diagnostics - #39296

Merged
AndriySvyryd merged 2 commits into
mainfrom
copilot/fix-ef-tasks-documentation
Nov 2, 2026
Merged

AndriySvyryd merged 2 commits into
mainfrom
copilot/fix-ef-tasks-documentation

Conversation

Copilot AI commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

The Tasks package readme and validation errors still recommend the removed EFStartupProject workflow. The retained EFStartupAssembly selector does not restore separate-startup project support.

  • Package guidance: Require a self-sufficient context project, with IDesignTimeDbContextFactory<TContext> when needed; distinguish MSBuild integration from CLI --startup-project.
  • Diagnostics: Remove obsolete recommendations from startup-suffix and .NET Standard errors; name EFStartupAssembly and its lowercase .exe requirement.
  • Selector contract: Document .exe-to-.dll command rendering and conditional companion-file arguments without implying runtime compatibility or separate-startup support.

Validation logic, command rendering, and build dependencies remain unchanged.

Copilot AI changed the title [WIP] Fix EF Tasks package documentation to remove EFStartupProject references Correct EF Tasks startup guidance and diagnostics Oct 16, 2026
Copilot AI requested a review from AndriySvyryd October 16, 2026 22:14
@AndriySvyryd
AndriySvyryd requested a lite review from Copilot October 17, 2026 02:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified in the reviewed changes.

No open issues 🎉

1 file not reviewed
  • src/EFCore.Tasks/Properties/Resources.Designer.cs: Generated file
What changed in this PR

Corrects EF Tasks startup guidance and diagnostics to reflect supported EFStartupAssembly behavior and self-sufficient context projects.

Changes:

  • Removes obsolete EFStartupProject guidance.
  • Documents .exe validation and .dll command rendering.
  • Updates diagnostics and generated resource documentation.
File Description
src/​EFCore.Tasks/​Tasks/​Internal/​OperationTaskBase.cs Clarifies the startup selector contract.
src/​EFCore.Tasks/​README.md Updates MSBuild usage guidance.
src/​EFCore.Tasks/​Properties/​Resources.resx Updates validation diagnostics.
src/​EFCore.Tasks/​Properties/​Resources.Designer.cs Synchronizes generated resource documentation.

Review effort: Lite

@AndriySvyryd
AndriySvyryd marked this pull request as ready for review October 17, 2026 03:55
@AndriySvyryd
AndriySvyryd requested a review from a team as a code owner October 17, 2026 03:55
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage

main 2e88827 copilot/fix-ef-tasks... bd35578 +/-
76% 76% 0%
View coverage of the 10 most impacted files.
File main 2e88827 copilot/fix-ef-tasks... bd35578 +/-
src/EFCore.Sqli...ryRepository.cs 97% 91% -6%
src/EFCore.Rela...erExtensions.cs 96% 96% 0%
src/EFCore.Cosm...erExtensions.cs 100% 100% 0%
src/EFCore.Cosm...erExtensions.cs 46% 46% 0%
src/EFCore.Cosm...peExtensions.cs 73% 73% 0%
src/EFCore.Cosm...StreamHelper.cs 87% 87% 0%
src/EFCore.Cosm...delValidator.cs 98% 98% 0%
src/EFCore.Cosm...orConvention.cs 94% 94% 0%
src/EFCore.Cosm...IdConvention.cs 94% 94% 0%
src/Shared/NonC...yInitializer.cs 11% 12% +1%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@AndriySvyryd
AndriySvyryd enabled auto-merge (squash) October 31, 2026 00:26
@AndriySvyryd
AndriySvyryd merged commit 82a0c43 into main Nov 2, 2026
26 of 29 checks passed
@AndriySvyryd
AndriySvyryd deleted the copilot/fix-ef-tasks-documentation branch November 2, 2026 13:34
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 3, 2026
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.

EF Tasks package docs and startup validation still recommend removed EFStartupProject property

4 participants