What's new in .NET Core 3.1
This article describes what is new in .NET Core 3.1. This release contains minor improvements to .NET Core 3.0, focusing on small, but important, fixes. The most important feature about .NET Core 3.1 is that it's a long-term support (LTS) release.
If you're using Visual Studio 2019, you must update to Visual Studio 2019 version 16.4 or later to work with .NET Core 3.1 projects. For information on what's new in Visual Studio version 16.4, see What's New in Visual Studio 2019 version 16.4.
Visual Studio for Mac also supports and includes .NET Core 3.1 in Visual Studio for Mac 8.4.
For more information about the release, see the .NET Core 3.1 announcement.
- Download and get started with .NET Core 3.1 on Windows, macOS, or Linux.
.NET Core 3.1 is an LTS release with support from Microsoft for three years after its release. It's highly recommended that you move your apps to the latest LTS release. See the .NET and .NET Core support policy page for a list of supported releases.
|Release||End of life date|
|.NET Core 3.1||End of life on December 13, 2022.|
|.NET Core 3.0||End of life on March 3, 2020.|
|.NET Core 2.2||End of life on December 23, 2019.|
|.NET Core 2.1||End of life on August 21, 2021.|
For more information, see the .NET and .NET Core support policy.
macOS appHost and notarization
Starting with the notarized .NET Core SDK 3.1 for macOS, the appHost setting is disabled by default. For more information, see macOS Catalina Notarization and the impact on .NET Core downloads and projects.
When the appHost setting is enabled, .NET Core generates a native Mach-O executable when you build or publish. Your app runs in the context of the appHost when it is run from source code with the
dotnet run command, or by starting the Mach-O executable directly.
You can either configure the appHost at the project level, or toggle the appHost for a specific
dotnet command with the
<PropertyGroup> <UseAppHost>true</UseAppHost> </PropertyGroup>
dotnet run -p:UseAppHost=true
For more information about the
UseAppHost setting, see MSBuild properties for Microsoft.NET.Sdk.
There are breaking changes in Windows Forms.
Legacy controls were included in Windows Forms that have been unavailable in the Visual Studio Designer Toolbox for some time. These were replaced with new controls back in .NET Framework 2.0. These have been removed from the Desktop SDK for .NET Core 3.1.
|Removed control||Recommended replacement||Associated APIs removed|
We recommend you update your applications to .NET Core 3.1 and move to the replacement controls. Replacing the controls is a straightforward process, essentially "find and replace" on the type.
Support has been added for creating C++/CLI (also known as "managed C++") projects. Binaries produced from these projects are compatible with .NET Core 3.0 and later versions.
To add support for C++/CLI in Visual Studio 2019 version 16.4, install the Desktop development with C++ workload. This workload adds two templates to Visual Studio:
- CLR Class Library (.NET Core)
- CLR Empty Project (.NET Core)
Submit and view feedback for