ASP.NET Core 简介Introduction to ASP.NET Core

作者:Daniel RothRick AndersonShaun LuttinBy Daniel Roth, Rick Anderson, and Shaun Luttin

ASP.NET Core 是一个跨平台的高性能开源框架,用于生成基于云且连接 Internet 的新式应用程序。ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications. 使用 ASP.NET Core,可以:With ASP.NET Core, you can:

  • 生成 Web 应用和服务、IoT 应用和移动后端。Build web apps and services, IoT apps, and mobile backends.
  • 在 Windows、macOS 和 Linux 上使用喜爱的开发工具。Use your favorite development tools on Windows, macOS, and Linux.
  • 部署到云或本地。Deploy to the cloud or on-premises.
  • .NET Core 或 .NET Framework 上运行。Run on .NET Core or .NET Framework.

为何使用 ASP.NET Core?Why use ASP.NET Core?

数百万开发人员使用过(并将继续使用)ASP.NET 4.x 创建 Web 应用。Millions of developers have used (and continue to use) ASP.NET 4.x to create web apps. ASP.NET Core 是重新设计的 ASP.NET 4.x,更改了体系结构,形成了更精简的模块化框架。ASP.NET Core is a redesign of ASP.NET 4.x, with architectural changes that result in a leaner, more modular framework.

ASP.NET Core 具有如下优点:ASP.NET Core provides the following benefits:

ASP.NET Core 完全作为 NuGet 包的一部分提供。ASP.NET Core ships entirely as NuGet packages. 这样一来,可以将应用优化为只包含必需 NuGet 包。This allows you to optimize your app to include only the necessary NuGet packages. 实际上,定目标到 .NET Core 的 ASP.NET Core 2.x 应用只需要使用一个 NuGet 包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.

使用 ASP.NET Core MVC 生成 Web API 和 Web UIBuild web APIs and web UI using ASP.NET Core MVC

ASP.NET Core MVC 提供生成 Web APIWeb 应用所需的功能:ASP.NET Core MVC provides features to build web APIs and web apps:

客户端开发Client-side development

ASP.NET Core 与常用客户端框架和库(包括 AngularReactBootstrap)无缝集成。ASP.NET Core integrates seamlessly with popular client-side frameworks and libraries, including Angular, React, and Bootstrap. 有关详细信息,请参阅客户端开发See Client-side development for more details.

后续步骤Next steps

有关更多信息,请参见以下资源:For more information, see the following resources: