标签:gap format target bsp building ges surf sof surface
Orignal Link: Introduction to ASP.NET Core
09/13/2018
The following content typing by hands.
ASP.NET Core is a cross-platform , hight-performance, open source framework for building modern, cloud-based, Internet-connected applications. With ASP.NET Core, you can:
* Build web apps and Services, IoT apps, and mobile backends.
* Use your favorite development tools on Windows, macOS, and Linux.
* Deploy to the cloud or on-premises.
* Run on .NET Core or .NET Framework.
Why use ASP.NET Core?
Millions of developers have used(and continue to use) ASP.NET 4.x to create web apps. ASP.NET Core is a redesign of ASP.NET 4.x, with architechural change that result in a leaner, more modular framework.
ASP.NET Core providers the following benefits:
* A unified story for building web UI and web APIs.
* Intergration of modern, client-side frameworks and development workflows.
* A cloud-ready, environment-based configuration system.
* Built-in dependency injection.
* A lightweight, high-performance, and modular HTTP request pipeline.
* Ability to host on IIS, Nginx, Apache, Docker, or self-host in your own process.
* Side-by-side app versioning when targeting .NET Core.
* Tooling that simplifies modrn web development.
* Ability to build and run on Windows, macOS, and Linux.
* Open-source and community-focuesd.
ASP.NET Core ship entirely as Nuget packages. Using NuGet packages allow you to optimize you app to include only the necessary dependencies. In fact, ASP.NET Core 2.X apps targeting .NET Core only require a single NuGet package. The benefits of a smaller app surface area include tighter security, reduced servicing, and improved performance.
Build web APIs and web UI using ASP.NET Core MVC
ASP.NET Core MVC provides features to build web APIs and web apps:
* The Model-View-Controller(MVC) pattern helps make your web APIs and web apps testable.
* Razor Pages(new in ASP.NET Core 2.0) is a page-based programing model that makes building web UI easier and more productive.
* Razor markup provides a rpoductive syntax for Razor Pages and MVC views.
* Tag Helpers enable server-side code to participate in creating and rending HTML elements in Razor files.
* Built-in support for multiple data formats and content negotiation lets you web APIs reach a broad range of clients, including browsers and mobile devices.
* Model binding automatically maps data from HTTP requests to action method parameters.
* Model validation automatically performs client- and server-side validation.
Client-Side development
ASP.NET Core integrates seamlessly with popular client-side frameworks and libraries, including Angular, React, and Bootstrap. For more information, see Client-side development.
ASP.NET Core targeting .NET Framework
ASP.NET Core can target .NET Core or .NET Framework. ASP.NET Core apps targeting .NET Framework aren‘t corss-platform they run on Windows only. There are no plans to remove support for targeting .NET framework in ASP.NET Core. Generally, ASP.NET Core is made up of .NET Standard libraries. APPs written .NET Standard 2.0 run anywhere that .NET Standard 2.0 is supported.
There are several advantages to targeting .NET Core, and thses advantages increase with each release. Some advantages of .NET Core over .NET Framwork include:
* Coress-platform. Runs on macOS, Linux, and Windows.
* Improved performance
* Side-by-side versioning
* New APIs
* Open source
We‘re woking hard to close the API gap from .NET Framework to .NET Core. The Windows Compatiblility Pack made thousands of Windows-only APIs available in .NET core. These weren‘t available in .NET Core 1.x.
[Translation] Introduction to ASP.NET Core
标签:gap format target bsp building ges surf sof surface
原文地址:https://www.cnblogs.com/chinaniit/p/9644138.html