Saturday, December 22, 2018

What’s New in .Net Core 2.0

.Net Core 2.0 is the 2nd Major version of .Net Core released in August 2017, it was released along with Asp.Net 2.0 and Entity Framework 2.0. .Net Core 2.0 brings some improvements like tooling support, language support, support for .Net Standard 2.0, Side-by-side support for .NET Core SDKs, better integration with Visual Studio etc. In this post we shall see each of these in detail.
Tooling support
With .Net Core 2.0 the we don’t have to run the dotnet restore command explicitly to get the project dependencies. In .Net Core 1.0 we should run this command explicitly to download the dependencies when we create a new project or try to open a downloaded project. With .Net Core 2.0 the dotnet restore command is run implicitly by all commands that require a restore to occur, such as dotnet new, dotnet build and dotnet run.

Language Support
.Net Core 2.0 now supports Visual Basic, earlier version of .Net Core (.Net Core 1.0) did support only C# and F#. .Net Core 2.0 allows creating the following project types using Visual Basic.

.NET Core console apps
.NET Core class libraries
.NET Standard class libraries
.NET Core unit test projects
.NET Core xUnit test projects

Platform Support
.Net Core improves the platform support, especially with Linux .NET Core 2.0 offers a single Linux implementation that works on multiple Linux distributions. .NET Core 1.x required that you download a distribution-specific Linux implementation.

Support for .NET Standard 2.0
NET Core code can reference existing .NET Framework libraries, including existing NuGet packages as long as the libraries use APIs that are found in .NET Standard. .NET Standard 2.0 broadens the set of APIs available to include a lot of the missing features. It now supports 32,000+ APIs. It is now much easier to port your code to a .NET Standard library without major code changes.


Search Flipkart Products:
Flipkart.com

No comments: