Friday, April 6, 2018

New In .NET Core 2.0

.NET Core is Microsoft’s open source, cross platform framework to build Web and mobile apps.


ASP.NET Core is a complete new framework in which many concepts have changed. In this course, Building Your First ASP.NET Core Web Application, you'll learn how you can build a fully working website with ASP.NET Core, Bethany's Pie Shop. First, you'll start from scratch and you can follow along to build the entire solution in a practical way. Next, you'll learn about the project structure and project files and will see how the application is built up starting from the model and the database using Entity Framework Core. Then, you'll learn about controllers, how routing is handled in ASP.NET Core, and how you'll build several views using the new tag helpers and Razor. Finally, you'll explore what Dependency Injection is and why it plays a central role in ASP.NET Core and when the app is ready, you'll deploy it to Azure.

Asp Core 2.0 is 20% faster than its previous version .NET Core 1.0.

API Improvements

Core – Primitives, Collections, Reflection, Interop, Linq
Serialization – BinaryFormatter, Data Contract, XML
Threading – Threads, Thread Pool, Tasks
Networking – Sockets, HTTP, Mail, WebSockets

IO – Files, Compression, MMF

Platform Improvement

.NET Core 1.x on macOS required the OpenSSL toolkit's cryptographic library. .NET Core 2.0 uses the Apple cryptographic libraries and doesn't require OpenSSL, so you no longer need to install it.

.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.


Language support
.NET Core 2.0 support C#, F#, and Visual Basic. C# 7.1 version is supported now that has few new features including async Main method, inferred tuple names, and default expressions.
Runtime Store
In .NET Core 2.0, dotnet store command runs implicitly.