Wednesday, May 30, 2018

.Net Core 2.1 Released

Good news for .Net Core developers. Microsoft just announced the release of the .Net Core 2.1 SDK (2.1.300). Click here to download it.

I've using the NET Core 2.1.0 RC 1 SDK for a couple of days already because I'm testing some SignalR.Core functionalities available initially for that revision and am very happy to know that the final is here.

Long-term Support

Microsoft also announced that this is a Long-term Support (LTS) version. What does that mean?
  • supported for three years
  • security improvements
  • added platform support 
  • superior performance
  • improved reliability
  • much easier to manage .NET Core and ASP.NET Core versions in project files and with self-contained application publishing.

Features

The most important features IMHO are listed below.

Performance and Reliability Improvements

As previously mentioned, there were significant gains related to performance on this version.

Improved Platform Support

Windows, Mac, Linux and Docker. There's a .net core version for everyone. The list keeps growing!

SignalR.Core

As I mentioned above, yes, the new SignalR.Core is finally available with this release. That's awesome news for those who are using this library and were waiting for that upgrade!

Razor Class Libraries

We can now embbed Razor in class libraries so Razor is used in your backend to build views and pages into reusable class libraries.

.NET Core Tools

This is a very important feature. Existing already in NPM, it basically allows us to install global applications from nuget packages. .NET Core tools run on all .NET Core supported operating system and chip architecture by default, with one set of binaries.

Usage:
dotnet tool install -g dotnetsay
dotnetsay
 The following existing DotNetCliReferenceTool tools have been converted to in-box tools.
  • dotnet watch
  • dotnet dev-certs
  • dotnet user-secrets
  • dotnet sql-cache
  • dotnet ef

Build Performance Improvements

Builds are faster on .Net Core 2.1. Here's a comparison from Microsoft:
.NET Core 2.1 Incremental Build-time performance improvements
Source: https://blogs.msdn.microsoft.com/dotnet/2018/05/30/announcing-net-core-2-1/

Docker Support 

Updated Docker images for .NET Core 2.1 are available at microsoft/dotnet on Docker Hub and contain many improvements and simplifications from Microsoft.

See Also

Why you should start using .Net Core
Package Management in .Net Core
Exporting Html to Pdf using only JavaScript
Importing CSVs with .Net Core and C#
Exporting a CSV generated in-memory in Asp.Net with C#
Building and Running Asp.Net Core apps on Linux
Asp.Net / Asp.Net Core: Generating views in the backend

For more posts on .Net Core, please click here.

References

For more information, please visit the urls below:
https://blogs.msdn.microsoft.com/dotnet/2018/05/30/announcing-net-core-2-1/
https://docs.microsoft.com/en-us/aspnet/core/aspnetcore-2.1?view=aspnetcore-2.1