Skip to content

Latest commit

 

History

History
117 lines (92 loc) · 5.8 KB

dotnet9.md

File metadata and controls

117 lines (92 loc) · 5.8 KB

First Edition's support for .NET 9 and 10

.NET 9 downloads and announcements

Microsoft will release previews of .NET 9 regularly starting in February 2024 until the final version on Tuesday, November 12, 2024, one week after the US Presidential Election on November 5.

  • Download .NET 9.0 SDK
  • .NET 9 Release Index
  • February 13, 2024: Our Vision for .NET 9
  • March 12, 2024: .NET 9 Preview 2
  • April, 2024: Announcing .NET 9 Preview 3
  • May, 2024: Announcing .NET 9 Preview 4
  • June, 2024: Announcing .NET 9 Preview 5
  • July, 2024: Announcing .NET 9 Preview 6
  • August, 2024: Announcing .NET 9 Preview 7
  • September, 2024: Announcing .NET 9 Release Candidate 1
  • October, 2024: Announcing .NET 9 Release Candidate 2
  • November 12, 2024: Announcing .NET 9.0

How to switch from .NET 8 to .NET 9

After downloading and installing .NET 9.0 SDK, follow the step-by-step instructions in the book and they should work as expected since the project file will automatically reference .NET 9.0 as the target framework.

Upgrading the target framework for a project

To upgrade a project in the GitHub repository from .NET 8.0 to .NET 9.0 just requires a target framework change in your project file.

Change this:

<TargetFramework>net8.0</TargetFramework>

To this:

<TargetFramework>net9.0</TargetFramework>

Upgrading packages for a project

For projects that reference additional NuGet packages, use the latest NuGet package version instead of the version given in the book. For example, on page ?, you must reference two packages, as shown in the following markup:

<ItemGroup>
  <PackageReference
    Include="Microsoft.EntityFrameworkCore.Design"
    Version="8.0.0" />
  <PackageReference
    Include="Microsoft.EntityFrameworkCore.SqlServer"
    Version="8.0.0" />
</ItemGroup>

To use .NET 9 Preview 2 packages, search https://www.nuget.org for the package and find its latest preview version number. For example, for Preview 1, as shown in the following markup:

<ItemGroup>
  <PackageReference
    Include="Microsoft.EntityFrameworkCore.Design"
    Version="9.0.0-preview.1.24081.2" />
  <PackageReference
    Include="Microsoft.EntityFrameworkCore.SqlServer"
    Version="9.0.0-preview.1.24081.2" />
</ItemGroup>

To always use latest .NET 9 preview, release candidate, or patch version package, use a version number wildcard, as shown in the following markup:

<ItemGroup>
  <PackageReference
    Include="Microsoft.EntityFrameworkCore.Design"
    Version="9.0-*" />
  <PackageReference
    Include="EntityFrameworkCore.SqlServer"
    Version="9.0-*" />
</ItemGroup>

You can search for the correct NuGet package version numbers yourself at the following link: https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Binder.

What's New in .NET 9 and where will I cover those new features?

Official page: https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview

Preview updates: https://github.com/dotnet/core/discussions

The following new features will be covered in the 9th edition of C# 13 and .NET 9 - Modern Cross-Platform Development Fundamentals to be published in November 2024:

The following new features will be mentioned in the 1st edition of Tools and Skills for .NET 8 to be published in Summer 2024:

.NET 10 downloads and announcements

Microsoft will release previews of .NET 10 regularly starting in February 2025 until the final version on Tuesday, November 11, 2025.

  • Download .NET 10.0 SDK. Warning! This link will not activate until February 2025.
  • August 2024 to January 2025: Download alpha versions of .NET 10. Warning! This link will not show .NET 10 downloads until July/August 2024.
  • February, 2025: Announcing .NET 10 Preview 1
  • March, 2025: Announcing .NET 10 Preview 2
  • April, 2025: Announcing .NET 10 Preview 3
  • May, 2025: Announcing .NET 10 Preview 4
  • June, 2025: Announcing .NET 10 Preview 5
  • July, 2025: Announcing .NET 10 Preview 6
  • August, 2025: Announcing .NET 10 Preview 7
  • September, 2025: Announcing .NET 10 Release Candidate 1
  • October, 2025: Announcing .NET 10 Release Candidate 2
  • November, 2025: Announcing .NET 10.0