Skip to main content
net10.0

MSBuild tasks for Entity Framework Core projects.

Published
Oct 13, 2026
7d ago
Total Downloads
224.1K
224,142

Install

dotnet add package Microsoft.EntityFrameworkCore.Tasks --version 11.0.0-rc.2.26504.105
ProductVersions
.NET
net10.0

README

The Entity Framework Core MSBuild tasks integrate EF design-time tools into the build process. They're primarily used to generate the compiled model.

This package should be referenced by the project containing the derived DbContext.

Usage

Install the package into your project and if PublishAOT is true then just publish normally. Otherwise you can control code generation by the $(EFScaffoldModelStage) and $(EFPrecompileQueriesStage) properties, which can be set to either publish or build to control at what stage the code will be generated. Any other value will disable the corresponding generation.

If the startup project is different from the current project it needs to be specified: <EFStartupProject>..\Startup\Startup.csproj</EFStartupProject>

The startup project must also reference the Microsoft.EntityFrameworkCore.Tasks package.

Getting started with EF Core

See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.

Feedback

If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.

Changes from Previous Version

No structural changes between v11.0.0-rc.1.26425.128 and v11.0.0-rc.2.26504.105.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.