
- #VISUAL STUDIO 2022 BREAKING CHANGES INSTALL#
- #VISUAL STUDIO 2022 BREAKING CHANGES UPDATE#
- #VISUAL STUDIO 2022 BREAKING CHANGES CODE#
#VISUAL STUDIO 2022 BREAKING CHANGES UPDATE#
To update EF Core to version 6 requires the projects that use EF Core / ASP.NET Core NuGet packages to have a target framework of net6.0.

Update projects that have EF Core / ASP.NET Core packages in them TIP: Make a new branch for the changes, as its useful to check back to the older version if something doesn’t work. Visual Studio 2022 does support Visual Studio 2019 solutions so you can run any tests or check your application before you start the upgrade. Then run Visual Studio 2022 and open your application. You also need to download Visual Studio 2022, as Visual Studio 2019 doesn’t support Net 6.
#VISUAL STUDIO 2022 BREAKING CHANGES INSTALL#
To start, you need to download and install the correct NET 6 SDK for your development machine.

Overall, the update from EF Core 5 / ASP.NET Core was fairly easy.

#VISUAL STUDIO 2022 BREAKING CHANGES CODE#
The resulting code can be found in the Part3-Net6 branch, and you can look at all the changes by comparing Part3 branch with Part3-Net6 branch. NOTE: I did NOT plan to change the code to use new NET 6 features, such as ASP.NET Core simplified Program class or EF Core features such as the new SQL Server Temporal Tables support or improved Cosmos DB support.

You have to use Visual Studio 2022 (or VSCode) – Visual Studio 2019 doesn’t work.Overall, it was pretty easy and only took a few days. I updated a non-trivial ASP.NET Core / EF Core application (22 projects) from EF Core 5 to EF Core 6.This code is based on ASP.NET Core 5 and EF Core 5 and this article describes what I had to do to update the NET 5 version of the code to NET 6, plus a look at any performance improvements. With the release of NET 6 I wanted to update the code in the repo called EfCoreinAction-SecondEdition which contains the code that goes with my book “ Entity Framework Core in Action 2 nd edition”. Last Updated: Novem| Created: November 17, 2021
