Microsoft.EntityFrameworkCore.Tools 8.0.21

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.

Requires NuGet 3.6 or higher.

dotnet add package Microsoft.EntityFrameworkCore.Tools --version 8.0.21
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 8.0.21
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.21">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.21" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.EntityFrameworkCore.Tools --version 8.0.21
                    
#r "nuget: Microsoft.EntityFrameworkCore.Tools, 8.0.21"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.EntityFrameworkCore.Tools@8.0.21
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=8.0.21
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=8.0.21
                    
Install as a Cake Tool

The Entity Framework Core tools help with design-time development tasks. They're primarily used to manage Migrations and to scaffold a DbContext and entity types by reverse engineering the schema of a database.

This package, Microsoft.EntityFrameworkCore.Tools is for PowerShell tooling that works in the Visual Studio Package Manager Console (PMC).

Usage

Install the tools package by running the following in the Visual Studio PMC:

Install-Package Microsoft.EntityFrameworkCore.Tools

The available commands are listed in the following table.

PMC Command Usage
Add-Migration Adds a new migration.
Bundle-Migration Creates an executable to update the database.
Drop-Database Drops the database.
Get-DbContext Gets information about a DbContext type.
Get-Help EntityFramework Displays information about Entity Framework commands.
Get-Migration Lists available migrations.
Optimize-DbContext Generates a compiled version of the model used by the DbContext.
Remove-Migration Removes the last migration.
Scaffold-DbContext Generates a DbContext and entity type classes for a specified database.
Script-DbContext Generates a SQL script from the DbContext. Bypasses any migrations.
Script-Migration Generates a SQL script from the migrations.
Update-Database Updates the database to the last migration or to a specified migration.

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.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (325)

Showing the top 5 NuGet packages that depend on Microsoft.EntityFrameworkCore.Tools:

Package Downloads
Microsoft.AspNetCore.App

Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.AspNetCore.All

Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

JoreNoe

优化一写函数

ImmediaC.SimpleCms

ASP.NET Core based CMS

StatisticManagers-CMS

Page Display Auth Process

GitHub repositories (486)

Showing the top 20 popular GitHub repositories that depend on Microsoft.EntityFrameworkCore.Tools:

Repository Stars
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
dotnet/eShop
A reference .NET application implementing an eCommerce site
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
DearVa/Everywhere
Context-aware AI assistant for your desktop. Ready to respond intelligently, seamlessly integrating multiple LLMs and MCP tools.
rmcrackan/Libation
Libation: Liberate your Library
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
immense/Remotely
A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
Version Downloads Last Updated
10.0.2 389,686 1/13/2026
10.0.1 1,135,754 12/9/2025
10.0.0 1,418,145 11/11/2025
10.0.0-rc.2.25502.107 43,378 10/14/2025
10.0.0-rc.1.25451.107 37,656 9/9/2025
10.0.0-preview.7.25380.108 15,244 8/12/2025
10.0.0-preview.6.25358.103 11,007 7/15/2025
10.0.0-preview.5.25277.114 15,426 6/6/2025
10.0.0-preview.4.25258.110 11,872 5/12/2025
10.0.0-preview.3.25171.6 16,857 4/10/2025
10.0.0-preview.2.25163.8 14,834 3/18/2025
10.0.0-preview.1.25081.1 13,301 2/25/2025
9.0.12 72,040 1/13/2026
9.0.11 977,708 11/11/2025
9.0.10 2,543,894 10/14/2025
9.0.9 3,127,587 9/9/2025
9.0.8 3,016,021 8/5/2025
9.0.7 2,397,425 7/8/2025
9.0.6 3,159,795 6/10/2025
9.0.5 2,868,717 5/13/2025
9.0.4 4,234,734 4/8/2025
9.0.3 3,479,103 3/11/2025
9.0.2 3,653,132 2/11/2025
9.0.1 4,057,315 1/14/2025
9.0.0 6,941,063 11/12/2024
9.0.0-rc.2.24474.1 107,759 10/8/2024
9.0.0-rc.1.24451.1 54,215 9/10/2024
9.0.0-preview.7.24405.3 27,807 8/13/2024
9.0.0-preview.6.24327.4 26,382 7/9/2024
9.0.0-preview.5.24306.3 17,289 6/11/2024
9.0.0-preview.4.24267.1 23,052 5/21/2024
9.0.0-preview.3.24172.4 113,104 4/11/2024
9.0.0-preview.2.24128.4 32,933 3/12/2024
9.0.0-preview.1.24081.2 50,719 2/13/2024
8.0.23 72,938 1/13/2026
8.0.22 726,547 11/11/2025
8.0.21 667,618 10/14/2025
8.0.20 791,279 9/9/2025
8.0.19 1,001,202 8/5/2025
8.0.18 805,541 7/8/2025
8.0.17 1,134,693 6/10/2025
8.0.16 1,569,999 5/13/2025
8.0.15 1,680,933 4/8/2025
8.0.14 2,037,824 3/11/2025
8.0.13 2,216,907 2/11/2025
8.0.12 2,364,879 1/14/2025
8.0.11 8,272,827 11/12/2024
8.0.10 11,686,481 10/8/2024
8.0.8 12,712,454 8/13/2024
8.0.7 7,662,910 7/9/2024
8.0.6 8,537,563 5/28/2024
8.0.5 3,230,803 5/14/2024
8.0.4 8,592,724 4/9/2024
8.0.3 5,514,849 3/12/2024
8.0.2 6,928,182 2/13/2024
8.0.1 5,480,954 1/9/2024
8.0.0 8,975,246 11/14/2023
8.0.0-rc.2.23480.1 76,884 10/10/2023
8.0.0-rc.1.23419.6 40,845 9/12/2023
8.0.0-preview.7.23375.4 32,368 8/8/2023
8.0.0-preview.6.23329.4 46,489 7/11/2023
8.0.0-preview.5.23280.1 79,126 6/13/2023
8.0.0-preview.4.23259.3 45,118 5/16/2023
8.0.0-preview.3.23174.2 81,941 4/11/2023
8.0.0-preview.2.23128.3 38,197 3/14/2023
8.0.0-preview.1.23111.4 79,794 2/21/2023
7.0.20 1,905,286 5/28/2024
7.0.19 260,485 5/14/2024
7.0.18 692,292 4/9/2024
7.0.17 544,372 3/12/2024
7.0.16 721,662 2/13/2024
7.0.15 1,063,691 1/9/2024
7.0.14 2,215,305 11/14/2023
7.0.13 2,419,430 10/24/2023
7.0.12 1,816,682 10/10/2023
7.0.11 4,363,947 9/12/2023
7.0.10 3,870,553 8/8/2023
7.0.9 3,070,931 7/11/2023
7.0.8 2,592,153 6/22/2023
7.0.7 1,249,550 6/13/2023
7.0.5 8,088,586 4/11/2023
7.0.4 3,612,730 3/14/2023
7.0.3 4,465,233 2/14/2023
7.0.2 5,757,596 1/10/2023
7.0.1 3,313,503 12/13/2022
7.0.0 4,051,135 11/7/2022
7.0.0-rc.2.22472.11 91,391 10/11/2022
7.0.0-rc.1.22426.7 37,764 9/14/2022
7.0.0-preview.7.22376.2 33,228 8/9/2022
7.0.0-preview.6.22329.4 25,086 7/12/2022
7.0.0-preview.5.22302.2 21,939 6/14/2022
7.0.0-preview.4.22229.2 27,883 5/10/2022
7.0.0-preview.3.22175.1 43,242 4/13/2022
7.0.0-preview.2.22153.1 17,790 3/14/2022
7.0.0-preview.1.22076.6 14,483 2/17/2022
6.0.36 810,562 11/12/2024
6.0.35 313,071 10/8/2024
6.0.33 460,501 8/13/2024
6.0.32 298,256 7/9/2024
6.0.31 406,390 5/28/2024
6.0.30 262,234 5/14/2024
6.0.29 715,976 4/9/2024
6.0.28 681,220 3/12/2024
6.0.27 667,304 2/13/2024
6.0.26 845,070 1/9/2024
6.0.25 1,321,235 11/14/2023
6.0.24 614,221 10/24/2023
6.0.23 554,757 10/10/2023
6.0.22 1,192,944 9/12/2023
6.0.21 1,236,449 8/8/2023
6.0.20 1,254,434 7/11/2023
6.0.19 742,611 6/22/2023
6.0.18 530,073 6/13/2023
6.0.16 2,768,791 4/11/2023
6.0.15 1,423,650 3/14/2023
6.0.14 1,869,702 2/14/2023
6.0.13 2,567,094 1/10/2023
6.0.12 2,320,624 12/13/2022
6.0.11 3,527,259 11/7/2022
6.0.10 6,285,465 10/11/2022
6.0.9 5,415,588 9/13/2022
6.0.8 6,973,434 8/9/2022
6.0.7 6,792,835 7/12/2022
6.0.6 4,364,177 6/14/2022
6.0.5 6,631,534 5/10/2022
6.0.4 4,978,028 4/11/2022
6.0.3 5,519,914 3/8/2022
6.0.2 4,624,196 2/8/2022
6.0.1 7,438,291 12/14/2021
6.0.0 8,354,097 11/8/2021
6.0.0-rc.2.21480.5 62,432 10/12/2021
6.0.0-rc.1.21452.10 62,060 9/14/2021
6.0.0-preview.7.21378.4 42,008 8/10/2021
6.0.0-preview.6.21352.1 21,366 7/14/2021
6.0.0-preview.5.21301.9 42,464 6/15/2021
6.0.0-preview.4.21253.1 24,431 5/24/2021
6.0.0-preview.3.21201.2 46,013 4/8/2021
6.0.0-preview.2.21154.2 16,738 3/11/2021
6.0.0-preview.1.21102.2 33,151 2/12/2021
5.0.17 2,791,759 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 504,239 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 781,786 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 962,778 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,563,836 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,787,182 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,326,551 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,178,349 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,431,010 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,227,775 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,715,982 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,862,540 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,929,187 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,702,910 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,561,186 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,597,252 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,411,289 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,723,611 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 73,655 10/13/2020
5.0.0-rc.1.20451.13 55,669 9/14/2020
5.0.0-preview.8.20407.4 34,530 8/25/2020
5.0.0-preview.7.20365.15 33,523 7/21/2020
5.0.0-preview.6.20312.4 33,225 6/25/2020
5.0.0-preview.5.20278.2 17,411 6/10/2020
5.0.0-preview.4.20220.10 27,538 5/18/2020
5.0.0-preview.3.20181.2 39,186 4/23/2020
5.0.0-preview.2.20159.4 27,634 4/2/2020
5.0.0-preview.2.20120.8 15,078 3/16/2020
3.1.32 1,425,398 12/13/2022
3.1.31 230,717 11/8/2022
3.1.30 279,962 10/11/2022
3.1.29 889,431 9/13/2022
3.1.28 197,519 8/9/2022
3.1.27 167,806 7/12/2022
3.1.26 216,416 6/14/2022
3.1.25 382,609 5/10/2022
3.1.24 199,148 4/11/2022
3.1.23 438,675 3/8/2022
3.1.22 1,040,885 12/14/2021
3.1.21 1,066,577 11/7/2021
3.1.20 393,677 10/11/2021
3.1.19 648,525 9/14/2021
3.1.18 971,981 8/10/2021
3.1.17 620,304 7/13/2021
3.1.16 652,985 6/8/2021
3.1.15 861,386 5/11/2021
3.1.14 1,075,662 4/6/2021
3.1.13 1,272,326 3/9/2021
3.1.12 1,109,667 2/9/2021
3.1.11 1,480,425 1/12/2021
3.1.10 2,452,293 11/9/2020
3.1.9 3,606,923 10/13/2020
3.1.8 5,318,695 9/8/2020
3.1.7 3,169,155 8/11/2020
3.1.6 3,657,367 7/14/2020
3.1.5 4,475,087 6/9/2020
3.1.4 4,546,463 5/12/2020
3.1.3 6,060,024 3/24/2020
3.1.2 4,300,122 2/19/2020
3.1.1 4,292,436 1/14/2020
3.1.0 4,699,705 12/3/2019
3.1.0-preview3.19554.8 40,013 11/13/2019
3.1.0-preview2.19525.5 16,672 11/1/2019
3.1.0-preview1.19506.2 840,963 10/15/2019
3.0.3 89,035 2/19/2020
3.0.2 64,950 1/14/2020
3.0.1 521,968 11/18/2019
3.0.0 4,781,010 9/23/2019
3.0.0-rc1.19456.14 23,331 9/16/2019
3.0.0-preview9.19423.6 39,753 9/4/2019
3.0.0-preview8.19405.11 44,030 8/13/2019
3.0.0-preview7.19362.6 31,324 7/23/2019
3.0.0-preview6.19304.10 40,114 6/12/2019
3.0.0-preview5.19227.1 50,541 5/6/2019
3.0.0-preview4.19216.3 9,561 4/18/2019
3.0.0-preview3.19153.1 30,615 3/6/2019
3.0.0-preview.19074.3 16,622 1/29/2019
3.0.0-preview.18572.1 15,201 12/3/2018
2.3.0 49,228 1/14/2025
2.2.6 11,293,291 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,966,886 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,830,922 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,114,120 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,681,724 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 11,784,717 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 89,999 10/17/2018
2.2.0-preview2-35157 78,073 9/12/2018
2.2.0-preview1-35029 18,834 8/22/2018
2.1.14 2,195,588 11/18/2019
2.1.11 1,891,363 5/14/2019
2.1.8 2,281,763 2/12/2019
2.1.4 6,957,844 10/1/2018
2.1.3 3,327,328 9/11/2018
2.1.2 2,569,953 8/21/2018
2.1.1 13,622,002 6/18/2018
2.1.0 4,776,661 5/29/2018
2.1.0-rc1-final 52,861 5/6/2018
2.1.0-preview2-final 69,631 4/10/2018
2.1.0-preview1-final 213,086 2/26/2018
2.0.3 4,340,348 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,342,452 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 7,094,214 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,407,307 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 66,002 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 37,892 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 105,588 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 214,331 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 51,253 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 94,624 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 779,081 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 323,176 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 331,403 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 48,931 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 45,789 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 38,168 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 45,773 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 720,930 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 30,535 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,977 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 385,740 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 64,520 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 37,670 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 15,001 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 18,477 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.