Microsoft.EntityFrameworkCore.Tools 8.0.22

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.22
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 8.0.22
                    
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.22">
  <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.22" />
                    
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.22
                    
#r "nuget: Microsoft.EntityFrameworkCore.Tools, 8.0.22"
                    
#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.22
                    
#: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.22
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=8.0.22
                    
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 (323)

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

Redis并发优化

ImmediaC.SimpleCms

ASP.NET Core based CMS

StatisticManagers-CMS

Page Display Auth Process

GitHub repositories (568)

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.
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.
rmcrackan/Libation
Libation: Liberate your Library
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
DearVa/Everywhere
A context-aware AI assistant for your desktop. Ready to respond intelligently, seamlessly integrating multiple LLMs and MCP tools.
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
Version Downloads Last Updated
10.0.1 372,426 12/9/2025
10.0.0 1,025,575 11/11/2025
10.0.0-rc.2.25502.107 40,203 10/14/2025
10.0.0-rc.1.25451.107 35,680 9/9/2025
10.0.0-preview.7.25380.108 14,819 8/12/2025
10.0.0-preview.6.25358.103 10,737 7/15/2025
10.0.0-preview.5.25277.114 14,940 6/6/2025
10.0.0-preview.4.25258.110 11,547 5/12/2025
10.0.0-preview.3.25171.6 16,528 4/10/2025
10.0.0-preview.2.25163.8 14,386 3/18/2025
10.0.0-preview.1.25081.1 12,721 2/25/2025
9.0.11 603,730 11/11/2025
9.0.10 2,137,970 10/14/2025
9.0.9 2,789,364 9/9/2025
9.0.8 2,784,257 8/5/2025
9.0.7 2,213,603 7/8/2025
9.0.6 2,912,438 6/10/2025
9.0.5 2,716,274 5/13/2025
9.0.4 4,005,254 4/8/2025
9.0.3 3,308,196 3/11/2025
9.0.2 3,513,874 2/11/2025
9.0.1 3,836,432 1/14/2025
9.0.0 6,590,248 11/12/2024
9.0.0-rc.2.24474.1 106,196 10/8/2024
9.0.0-rc.1.24451.1 53,215 9/10/2024
9.0.0-preview.7.24405.3 27,286 8/13/2024
9.0.0-preview.6.24327.4 26,124 7/9/2024
9.0.0-preview.5.24306.3 17,172 6/11/2024
9.0.0-preview.4.24267.1 22,857 5/21/2024
9.0.0-preview.3.24172.4 112,761 4/11/2024
9.0.0-preview.2.24128.4 32,553 3/12/2024
9.0.0-preview.1.24081.2 50,352 2/13/2024
8.0.22 425,028 11/11/2025
8.0.21 535,231 10/14/2025
8.0.20 695,644 9/9/2025
8.0.19 901,565 8/5/2025
8.0.18 722,130 7/8/2025
8.0.17 1,053,197 6/10/2025
8.0.16 1,458,880 5/13/2025
8.0.15 1,576,005 4/8/2025
8.0.14 1,925,804 3/11/2025
8.0.13 2,093,284 2/11/2025
8.0.12 2,257,363 1/14/2025
8.0.11 7,832,656 11/12/2024
8.0.10 11,227,790 10/8/2024
8.0.8 12,286,415 8/13/2024
8.0.7 7,455,056 7/9/2024
8.0.6 8,306,391 5/28/2024
8.0.5 3,153,300 5/14/2024
8.0.4 8,382,512 4/9/2024
8.0.3 5,395,104 3/12/2024
8.0.2 6,756,091 2/13/2024
8.0.1 5,377,110 1/9/2024
8.0.0 8,640,629 11/14/2023
8.0.0-rc.2.23480.1 76,566 10/10/2023
8.0.0-rc.1.23419.6 40,733 9/12/2023
8.0.0-preview.7.23375.4 32,254 8/8/2023
8.0.0-preview.6.23329.4 46,285 7/11/2023
8.0.0-preview.5.23280.1 74,623 6/13/2023
8.0.0-preview.4.23259.3 41,300 5/16/2023
8.0.0-preview.3.23174.2 80,975 4/11/2023
8.0.0-preview.2.23128.3 38,102 3/14/2023
8.0.0-preview.1.23111.4 79,662 2/21/2023
7.0.20 1,822,949 5/28/2024
7.0.19 252,981 5/14/2024
7.0.18 674,323 4/9/2024
7.0.17 533,161 3/12/2024
7.0.16 710,438 2/13/2024
7.0.15 1,048,492 1/9/2024
7.0.14 2,191,828 11/14/2023
7.0.13 2,397,759 10/24/2023
7.0.12 1,801,468 10/10/2023
7.0.11 4,288,451 9/12/2023
7.0.10 3,833,600 8/8/2023
7.0.9 3,041,817 7/11/2023
7.0.8 2,574,801 6/22/2023
7.0.7 1,235,887 6/13/2023
7.0.5 8,019,030 4/11/2023
7.0.4 3,580,400 3/14/2023
7.0.3 4,426,324 2/14/2023
7.0.2 5,704,651 1/10/2023
7.0.1 3,285,359 12/13/2022
7.0.0 4,018,674 11/7/2022
7.0.0-rc.2.22472.11 89,761 10/11/2022
7.0.0-rc.1.22426.7 37,593 9/14/2022
7.0.0-preview.7.22376.2 33,071 8/9/2022
7.0.0-preview.6.22329.4 25,016 7/12/2022
7.0.0-preview.5.22302.2 21,897 6/14/2022
7.0.0-preview.4.22229.2 27,832 5/10/2022
7.0.0-preview.3.22175.1 43,200 4/13/2022
7.0.0-preview.2.22153.1 17,727 3/14/2022
7.0.0-preview.1.22076.6 14,428 2/17/2022
6.0.36 755,859 11/12/2024
6.0.35 300,326 10/8/2024
6.0.33 449,489 8/13/2024
6.0.32 290,948 7/9/2024
6.0.31 395,811 5/28/2024
6.0.30 253,776 5/14/2024
6.0.29 700,279 4/9/2024
6.0.28 666,965 3/12/2024
6.0.27 655,463 2/13/2024
6.0.26 832,618 1/9/2024
6.0.25 1,299,168 11/14/2023
6.0.24 605,523 10/24/2023
6.0.23 546,947 10/10/2023
6.0.22 1,178,310 9/12/2023
6.0.21 1,220,076 8/8/2023
6.0.20 1,237,119 7/11/2023
6.0.19 734,316 6/22/2023
6.0.18 524,088 6/13/2023
6.0.16 2,747,610 4/11/2023
6.0.15 1,411,873 3/14/2023
6.0.14 1,853,700 2/14/2023
6.0.13 2,550,583 1/10/2023
6.0.12 2,303,126 12/13/2022
6.0.11 3,507,569 11/7/2022
6.0.10 6,248,021 10/11/2022
6.0.9 5,382,761 9/13/2022
6.0.8 6,935,839 8/9/2022
6.0.7 6,757,594 7/12/2022
6.0.6 4,328,133 6/14/2022
6.0.5 6,597,753 5/10/2022
6.0.4 4,949,816 4/11/2022
6.0.3 5,492,812 3/8/2022
6.0.2 4,599,674 2/8/2022
6.0.1 7,400,046 12/14/2021
6.0.0 8,281,783 11/8/2021
6.0.0-rc.2.21480.5 62,161 10/12/2021
6.0.0-rc.1.21452.10 61,910 9/14/2021
6.0.0-preview.7.21378.4 41,969 8/10/2021
6.0.0-preview.6.21352.1 21,243 7/14/2021
6.0.0-preview.5.21301.9 42,097 6/15/2021
6.0.0-preview.4.21253.1 24,399 5/24/2021
6.0.0-preview.3.21201.2 45,953 4/8/2021
6.0.0-preview.2.21154.2 16,713 3/11/2021
6.0.0-preview.1.21102.2 33,073 2/12/2021
5.0.17 2,766,505 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 499,326 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 775,773 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 957,588 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,550,353 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,778,339 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,311,723 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,163,077 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,418,864 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,218,069 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,700,693 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,852,463 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,911,380 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,691,404 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,553,141 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,587,585 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,403,258 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,707,311 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 73,473 10/13/2020
5.0.0-rc.1.20451.13 55,538 9/14/2020
5.0.0-preview.8.20407.4 34,474 8/25/2020
5.0.0-preview.7.20365.15 33,480 7/21/2020
5.0.0-preview.6.20312.4 33,165 6/25/2020
5.0.0-preview.5.20278.2 17,372 6/10/2020
5.0.0-preview.4.20220.10 27,501 5/18/2020
5.0.0-preview.3.20181.2 39,146 4/23/2020
5.0.0-preview.2.20159.4 27,540 4/2/2020
5.0.0-preview.2.20120.8 15,045 3/16/2020
3.1.32 1,380,005 12/13/2022
3.1.31 225,648 11/8/2022
3.1.30 275,497 10/11/2022
3.1.29 860,363 9/13/2022
3.1.28 193,100 8/9/2022
3.1.27 162,750 7/12/2022
3.1.26 211,455 6/14/2022
3.1.25 377,435 5/10/2022
3.1.24 195,114 4/11/2022
3.1.23 434,362 3/8/2022
3.1.22 1,029,045 12/14/2021
3.1.21 1,060,110 11/7/2021
3.1.20 388,708 10/11/2021
3.1.19 644,091 9/14/2021
3.1.18 964,806 8/10/2021
3.1.17 613,289 7/13/2021
3.1.16 647,547 6/8/2021
3.1.15 855,659 5/11/2021
3.1.14 1,066,297 4/6/2021
3.1.13 1,266,114 3/9/2021
3.1.12 1,104,089 2/9/2021
3.1.11 1,473,049 1/12/2021
3.1.10 2,442,936 11/9/2020
3.1.9 3,594,533 10/13/2020
3.1.8 5,305,597 9/8/2020
3.1.7 3,157,988 8/11/2020
3.1.6 3,646,220 7/14/2020
3.1.5 4,459,775 6/9/2020
3.1.4 4,512,493 5/12/2020
3.1.3 6,041,617 3/24/2020
3.1.2 4,288,055 2/19/2020
3.1.1 4,280,956 1/14/2020
3.1.0 4,685,630 12/3/2019
3.1.0-preview3.19554.8 39,757 11/13/2019
3.1.0-preview2.19525.5 16,573 11/1/2019
3.1.0-preview1.19506.2 836,662 10/15/2019
3.0.3 85,377 2/19/2020
3.0.2 61,577 1/14/2020
3.0.1 518,023 11/18/2019
3.0.0 4,766,038 9/23/2019
3.0.0-rc1.19456.14 23,293 9/16/2019
3.0.0-preview9.19423.6 39,722 9/4/2019
3.0.0-preview8.19405.11 43,979 8/13/2019
3.0.0-preview7.19362.6 31,264 7/23/2019
3.0.0-preview6.19304.10 40,078 6/12/2019
3.0.0-preview5.19227.1 50,321 5/6/2019
3.0.0-preview4.19216.3 9,541 4/18/2019
3.0.0-preview3.19153.1 30,578 3/6/2019
3.0.0-preview.19074.3 16,580 1/29/2019
3.0.0-preview.18572.1 15,140 12/3/2018
2.3.0 43,788 1/14/2025
2.2.6 11,252,926 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,949,627 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,825,862 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,106,439 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,674,749 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 11,723,968 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 89,854 10/17/2018
2.2.0-preview2-35157 77,837 9/12/2018
2.2.0-preview1-35029 18,803 8/22/2018
2.1.14 2,185,532 11/18/2019
2.1.11 1,885,421 5/14/2019
2.1.8 2,276,135 2/12/2019
2.1.4 6,948,088 10/1/2018
2.1.3 3,318,553 9/11/2018
2.1.2 2,563,446 8/21/2018
2.1.1 13,459,800 6/18/2018
2.1.0 4,765,897 5/29/2018
2.1.0-rc1-final 52,822 5/6/2018
2.1.0-preview2-final 69,572 4/10/2018
2.1.0-preview1-final 212,810 2/26/2018
2.0.3 4,320,971 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,329,428 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 7,068,631 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,385,048 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 65,834 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 37,858 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 101,693 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 210,564 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 47,960 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 91,363 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 773,847 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 319,466 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 331,270 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 48,889 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 42,540 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 34,932 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 42,543 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 701,054 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 30,498 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,938 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 385,580 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 64,480 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 37,629 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 14,849 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 18,292 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.