Loading, please wait...

What's new features in Asp.NET Core 2.0

Here I will explain the new features and point out some benefits of Asp.NET Core 2.0 over Asp.NET Core 1.x

The Asp.net Team announced the release of Asp.net Core 2.0 on 14 Aug 2017 and introducing some top new features like Performance, Razor Pages, Language Support, new and updated templates. You can also build your .NET Core 2.0 application using command line console. If you are using Visual Studio then you can download recently released Visual Studio 2017 Update 3(or VS Core).

 

You can download .NET Core 2.0 from here: Download .NET Core 2.0

 

Asp.net Core 2.0 eliminate many painful tasks of version 1.0 like when you performing migration from project.json to MSBuild was a painful task, but now this problem goes far away.  In this article, we are going to provide more details about the feature of Asp.NET Core 2.0.

I wanted to point out some features in Asp.net Core 2.0

 

OS Support Improvement

.NET Core offers portability across multiple operating systems, including desktops, Servers, and Mobiles. Linux is now treated as single OS instead of different distribution.

 

Razor Pages

Razor pages are a page first structure that allows user to focus on user interface and simplify the server side experience by PageModel objects. Razor pages are works with Asp.net Core 2.0 and supported by Visual studio 2017 v 15.3

 

Razor Support C# 7.1

Razor engine is updated to work with C# 7.1 features like Default expression, Pattern Matching with Generics and Inferred Tuple Names. For use C# 7.1 features in your project, you need to add following properties in your project file.

<LangVersion>latest</LangVersion>

 

Language Support

.Net Core 2.0 support C#, F# and Visual Basic.

 

Full .Net Assembly Support:

If you already create .NET assembly that contains code and you want to share your code between Asp.NET and Core then in .NET core 2.0 you can now reference a full .NET assembly in .NET Core.

 

Retargeting to .NET Core 2.0

When .NET core 2.0 SDK is installed, project that targeted .NET Core 1.x can be retargeted to .NET Core 2.0.

 

You can get more details about Asp.NET Core from the following video.