Microsoft.EntityFrameworkCore.Tools 8.0.20

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

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 (485)

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 164,083 1/13/2026
10.0.1 1,016,952 12/9/2025
10.0.0 1,319,156 11/11/2025
10.0.0-rc.2.25502.107 42,610 10/14/2025
10.0.0-rc.1.25451.107 37,167 9/9/2025
10.0.0-preview.7.25380.108 15,191 8/12/2025
10.0.0-preview.6.25358.103 10,946 7/15/2025
10.0.0-preview.5.25277.114 15,228 6/6/2025
10.0.0-preview.4.25258.110 11,800 5/12/2025
10.0.0-preview.3.25171.6 16,800 4/10/2025
10.0.0-preview.2.25163.8 14,733 3/18/2025
10.0.0-preview.1.25081.1 13,210 2/25/2025
9.0.12 30,536 1/13/2026
9.0.11 902,213 11/11/2025
9.0.10 2,440,944 10/14/2025
9.0.9 3,040,387 9/9/2025
9.0.8 2,956,993 8/5/2025
9.0.7 2,351,288 7/8/2025
9.0.6 3,094,722 6/10/2025
9.0.5 2,831,267 5/13/2025
9.0.4 4,179,765 4/8/2025
9.0.3 3,433,998 3/11/2025
9.0.2 3,614,690 2/11/2025
9.0.1 4,007,149 1/14/2025
9.0.0 6,856,643 11/12/2024
9.0.0-rc.2.24474.1 107,561 10/8/2024
9.0.0-rc.1.24451.1 53,924 9/10/2024
9.0.0-preview.7.24405.3 27,727 8/13/2024
9.0.0-preview.6.24327.4 26,317 7/9/2024
9.0.0-preview.5.24306.3 17,270 6/11/2024
9.0.0-preview.4.24267.1 23,023 5/21/2024
9.0.0-preview.3.24172.4 113,027 4/11/2024
9.0.0-preview.2.24128.4 32,852 3/12/2024
9.0.0-preview.1.24081.2 50,610 2/13/2024
8.0.23 32,059 1/13/2026
8.0.22 665,906 11/11/2025
8.0.21 633,544 10/14/2025
8.0.20 767,729 9/9/2025
8.0.19 976,822 8/5/2025
8.0.18 784,111 7/8/2025
8.0.17 1,114,915 6/10/2025
8.0.16 1,544,664 5/13/2025
8.0.15 1,652,861 4/8/2025
8.0.14 2,008,382 3/11/2025
8.0.13 2,184,991 2/11/2025
8.0.12 2,336,963 1/14/2025
8.0.11 8,161,977 11/12/2024
8.0.10 11,563,730 10/8/2024
8.0.8 12,608,594 8/13/2024
8.0.7 7,608,214 7/9/2024
8.0.6 8,478,107 5/28/2024
8.0.5 3,212,031 5/14/2024
8.0.4 8,540,506 4/9/2024
8.0.3 5,483,775 3/12/2024
8.0.2 6,886,895 2/13/2024
8.0.1 5,455,896 1/9/2024
8.0.0 8,895,615 11/14/2023
8.0.0-rc.2.23480.1 76,812 10/10/2023
8.0.0-rc.1.23419.6 40,785 9/12/2023
8.0.0-preview.7.23375.4 32,348 8/8/2023
8.0.0-preview.6.23329.4 46,436 7/11/2023
8.0.0-preview.5.23280.1 78,657 6/13/2023
8.0.0-preview.4.23259.3 44,827 5/16/2023
8.0.0-preview.3.23174.2 81,694 4/11/2023
8.0.0-preview.2.23128.3 38,176 3/14/2023
8.0.0-preview.1.23111.4 79,768 2/21/2023
7.0.20 1,883,921 5/28/2024
7.0.19 259,157 5/14/2024
7.0.18 687,984 4/9/2024
7.0.17 542,346 3/12/2024
7.0.16 719,236 2/13/2024
7.0.15 1,060,272 1/9/2024
7.0.14 2,209,919 11/14/2023
7.0.13 2,414,598 10/24/2023
7.0.12 1,813,348 10/10/2023
7.0.11 4,345,709 9/12/2023
7.0.10 3,862,129 8/8/2023
7.0.9 3,063,776 7/11/2023
7.0.8 2,587,993 6/22/2023
7.0.7 1,246,811 6/13/2023
7.0.5 8,072,655 4/11/2023
7.0.4 3,605,249 3/14/2023
7.0.3 4,456,346 2/14/2023
7.0.2 5,741,957 1/10/2023
7.0.1 3,307,422 12/13/2022
7.0.0 4,043,538 11/7/2022
7.0.0-rc.2.22472.11 90,968 10/11/2022
7.0.0-rc.1.22426.7 37,733 9/14/2022
7.0.0-preview.7.22376.2 33,198 8/9/2022
7.0.0-preview.6.22329.4 25,072 7/12/2022
7.0.0-preview.5.22302.2 21,934 6/14/2022
7.0.0-preview.4.22229.2 27,864 5/10/2022
7.0.0-preview.3.22175.1 43,233 4/13/2022
7.0.0-preview.2.22153.1 17,774 3/14/2022
7.0.0-preview.1.22076.6 14,475 2/17/2022
6.0.36 795,996 11/12/2024
6.0.35 310,036 10/8/2024
6.0.33 457,907 8/13/2024
6.0.32 296,903 7/9/2024
6.0.31 404,536 5/28/2024
6.0.30 260,414 5/14/2024
6.0.29 712,730 4/9/2024
6.0.28 677,903 3/12/2024
6.0.27 664,623 2/13/2024
6.0.26 842,664 1/9/2024
6.0.25 1,316,458 11/14/2023
6.0.24 612,635 10/24/2023
6.0.23 553,094 10/10/2023
6.0.22 1,190,031 9/12/2023
6.0.21 1,232,396 8/8/2023
6.0.20 1,250,672 7/11/2023
6.0.19 741,140 6/22/2023
6.0.18 529,163 6/13/2023
6.0.16 2,763,722 4/11/2023
6.0.15 1,420,944 3/14/2023
6.0.14 1,866,038 2/14/2023
6.0.13 2,563,470 1/10/2023
6.0.12 2,316,622 12/13/2022
6.0.11 3,522,327 11/7/2022
6.0.10 6,276,623 10/11/2022
6.0.9 5,407,963 9/13/2022
6.0.8 6,964,834 8/9/2022
6.0.7 6,783,703 7/12/2022
6.0.6 4,357,375 6/14/2022
6.0.5 6,623,691 5/10/2022
6.0.4 4,970,904 4/11/2022
6.0.3 5,513,040 3/8/2022
6.0.2 4,619,010 2/8/2022
6.0.1 7,428,167 12/14/2021
6.0.0 8,338,604 11/8/2021
6.0.0-rc.2.21480.5 62,372 10/12/2021
6.0.0-rc.1.21452.10 62,032 9/14/2021
6.0.0-preview.7.21378.4 41,999 8/10/2021
6.0.0-preview.6.21352.1 21,343 7/14/2021
6.0.0-preview.5.21301.9 42,272 6/15/2021
6.0.0-preview.4.21253.1 24,418 5/24/2021
6.0.0-preview.3.21201.2 46,002 4/8/2021
6.0.0-preview.2.21154.2 16,733 3/11/2021
6.0.0-preview.1.21102.2 33,128 2/12/2021
5.0.17 2,785,794 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 503,398 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 780,734 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 961,939 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,561,174 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,785,305 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,323,288 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 4,175,212 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,428,666 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,225,851 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,712,850 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,860,638 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,925,544 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,700,590 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,559,782 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,595,032 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,409,651 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,720,336 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 73,627 10/13/2020
5.0.0-rc.1.20451.13 55,648 9/14/2020
5.0.0-preview.8.20407.4 34,521 8/25/2020
5.0.0-preview.7.20365.15 33,519 7/21/2020
5.0.0-preview.6.20312.4 33,211 6/25/2020
5.0.0-preview.5.20278.2 17,403 6/10/2020
5.0.0-preview.4.20220.10 27,534 5/18/2020
5.0.0-preview.3.20181.2 39,176 4/23/2020
5.0.0-preview.2.20159.4 27,606 4/2/2020
5.0.0-preview.2.20120.8 15,071 3/16/2020
3.1.32 1,413,178 12/13/2022
3.1.31 229,936 11/8/2022
3.1.30 279,178 10/11/2022
3.1.29 883,410 9/13/2022
3.1.28 196,882 8/9/2022
3.1.27 166,862 7/12/2022
3.1.26 215,710 6/14/2022
3.1.25 381,797 5/10/2022
3.1.24 198,639 4/11/2022
3.1.23 438,100 3/8/2022
3.1.22 1,038,463 12/14/2021
3.1.21 1,065,397 11/7/2021
3.1.20 392,827 10/11/2021
3.1.19 647,758 9/14/2021
3.1.18 970,773 8/10/2021
3.1.17 619,077 7/13/2021
3.1.16 651,991 6/8/2021
3.1.15 860,476 5/11/2021
3.1.14 1,073,543 4/6/2021
3.1.13 1,270,959 3/9/2021
3.1.12 1,108,779 2/9/2021
3.1.11 1,479,222 1/12/2021
3.1.10 2,450,584 11/9/2020
3.1.9 3,604,077 10/13/2020
3.1.8 5,315,970 9/8/2020
3.1.7 3,167,453 8/11/2020
3.1.6 3,654,943 7/14/2020
3.1.5 4,471,859 6/9/2020
3.1.4 4,538,920 5/12/2020
3.1.3 6,055,677 3/24/2020
3.1.2 4,298,120 2/19/2020
3.1.1 4,290,114 1/14/2020
3.1.0 4,696,713 12/3/2019
3.1.0-preview3.19554.8 39,950 11/13/2019
3.1.0-preview2.19525.5 16,653 11/1/2019
3.1.0-preview1.19506.2 839,809 10/15/2019
3.0.3 88,591 2/19/2020
3.0.2 64,564 1/14/2020
3.0.1 521,394 11/18/2019
3.0.0 4,777,824 9/23/2019
3.0.0-rc1.19456.14 23,321 9/16/2019
3.0.0-preview9.19423.6 39,747 9/4/2019
3.0.0-preview8.19405.11 44,027 8/13/2019
3.0.0-preview7.19362.6 31,310 7/23/2019
3.0.0-preview6.19304.10 40,107 6/12/2019
3.0.0-preview5.19227.1 50,499 5/6/2019
3.0.0-preview4.19216.3 9,557 4/18/2019
3.0.0-preview3.19153.1 30,606 3/6/2019
3.0.0-preview.19074.3 16,613 1/29/2019
3.0.0-preview.18572.1 15,194 12/3/2018
2.3.0 48,345 1/14/2025
2.2.6 11,284,090 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,963,252 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,830,115 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,112,843 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,680,480 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 11,770,557 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 89,964 10/17/2018
2.2.0-preview2-35157 78,028 9/12/2018
2.2.0-preview1-35029 18,826 8/22/2018
2.1.14 2,193,765 11/18/2019
2.1.11 1,890,292 5/14/2019
2.1.8 2,280,856 2/12/2019
2.1.4 6,955,584 10/1/2018
2.1.3 3,325,707 9/11/2018
2.1.2 2,568,942 8/21/2018
2.1.1 13,583,679 6/18/2018
2.1.0 4,774,578 5/29/2018
2.1.0-rc1-final 52,851 5/6/2018
2.1.0-preview2-final 69,616 4/10/2018
2.1.0-preview1-final 213,018 2/26/2018
2.0.3 4,336,571 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,339,885 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 7,088,985 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,402,882 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 65,959 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 37,884 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 105,087 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 213,804 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 50,869 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 94,246 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 778,281 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 322,665 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 331,358 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 48,922 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 45,417 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 37,798 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 45,404 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 716,489 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 30,526 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,968 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 385,687 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 64,506 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 37,657 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 14,961 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 18,433 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.