Microsoft Releases .NET Core 3.1
.NET Core 3.1 has been released, Microsoft announced on Tuesday.
Because Microsoft has been primarily polishing up those and other existing features in the milestone 3.0 release, version 3.1 is mostly notable for its licensing, indicated Microsoft program manager Richard Lander in the announcement.
"The most important feature is that .NET Core 3.1 is an long-term supported (LTS) release and will be supported for three years," Lander said. "As we've done in the past, we wanted to take our time before releasing the next LTS release. The extra two months (after .NET Core 3.0) allowed us to select and implement the right set of improvements over what was already a very stable base. .NET Core 3.1 is now ready to be used wherever your imagination or business need takes it."
In a separate post outlining what's new in ASP.NET Core 3.1, Microsoft highlighted partial class support for Razor components. "Razor components are now generated as partial classes," Microsoft said. "Code for a Razor component can be written using a code-behind file defined as a partial class rather than defining all the code for the component in a single file. For more information, see Partial class support."
While that covers the Web/Blazor side of things, the other main point of focus, desktop development, is marked by one "unfortunate breaking change" in .NET Core 3.1 resulting from the removal of Windows Forms controls -- specifically, DataGrid, ToolBar, ContextMenu, Menu, MainMenu and MenuItem. They are being replaced by newer controls that have been around for a while, but still may be in use by some developers.
"You will see build breaks if you are using the controls we removed in your applications," Microsoft said. "Also, if you open .NET Core 3.0 applications in the latest versions of the .NET Core Windows Forms designer, you will see errors if you are using these controls. We recommend you update your applications to .NET Core 3.1 and move to the alternative controls. Replacing the controls is a straight-forward process, essentially 'find and replace.'"
About the Author
David Ramel is an editor and writer for Converge360.