English Original:ASP.NET Core 2 Preview Released
New features in ASP.NET Core 2 include meta-packages, new Web Host default configuration, simplified logging, and improved ASP.NET Core Identity system to change the authentication provider. New features meta-packages provide new ways to set items, that is, just add
Microsoft.AspNetCore.AllPackage to start the project, the project can be automatically cut after the unused sub-components. New features are based on some performance improvements. According to Microsoft, compared with ASP.NET 1.x, improved Web applications generated faster, faster to run, and take up less disk space.
At the Build 2017 conference, Microsoft's Daniel Roth and Scott Hanselman were on site for the first timeShowASP.NET Core 2 for developers to provide the function. In the development of ASP.NET Core process, the development team trying to achieve four main objectives:
ASP.NET Core 2 added a pairRazor pagesupport. Razor provides developers with a way to start building Web applications without the need for an overall MVC application architecture. Since the Razor page is built in view of MVC, this approach facilitates the evolving application and is then translated into the appropriate MVC solution. Razor page used
@pageThe instruction directly processes the request without the need for a corresponding controller.
If the developer wants to use ASP.NET Core 2 in Visual Studio 2017, you need to install the latest version of VS (that is, 15.3 preview). ASP.NET Core 2 applications can run from the Windows command line, without Visual Studio, and on Mac and Linux. Current ASP.NET Core 2provideBinary installation files for these three platforms.
Remember, ASP.NET Core 2 works with the VS2017 15.2 currently used by the developer. GitHub alreadyprovideA complete release note. It should be noted that ASP.NET Core 2 applicationsfutureWill be available on Mono, .NET Core and o.NET Framework.