Skip to main content
net10.0

MSBuild tasks for Entity Framework Core projects.

Published
Jul 15, 2025
1y ago
Total Downloads
224.1K
224,142

Install

dotnet add package Microsoft.EntityFrameworkCore.Tasks --version 10.0.0-preview.6.25358.103
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, set <EFOptimizeContext Condition="'$(Configuration)'=='Release'">true</EFOptimizeContext> and then run build normally.

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 v10.0.0-preview.5.25277.114 and v10.0.0-preview.6.25358.103.

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.