为什么要做ASP.NET Core
The first preview release of ASP.NET came out almost 15 years ago as part of the .NET Framework. Since then millions of developers have used it to build and run great web apps, and over the years we have added and evolved many capabilities to it.
作为.Net Framework的一部分的ASP.NET第一版预览版发行距今大约已有15年了。 从那时起,数以百万计的开发者们使用它来生成并运行着伟大的web应用,并且我们这些年来也在不断的添加和改善许多功能。
ASP.NET Core has a number of architectural changes that result in a much leaner and modular framework. ASP.NET Core is no longer based on System.Web.dll. It is based on a set of granular and well factored NuGet packages. This allows you to optimize your app to include just the NuGet packages you need. The benefits of a smaller app surface area include tighter security,reduced servicing,improved performance,and decreased costs in a pay-for-what-you-use model.
ASP.NET Core 有许多架构上的变化,现在是一个非常轻量级并且模块化的框架。ASP.NET Core不再依赖于 System.Web.dll。它是基于一组轻量级的包和良好组织的Nuget包。 这就允许你只包含你需要的Nuget包来优化你的应用。较小较轻量级的应用程序的有许多好处,例如更严格的安全性,减少维护成本,提高性能,减少你各种花费的成本
With ASP.NET Core you gain the following foundational improvements:
- A unified story for building web UI and web APIs
- Integration of modern client-side frameworks and development workflows
- A cloud-ready environment-based configuration system
- Built-in dependency injection
- New light-weight and modular HTTP request pipeline
- Ability to host on IIS or self-host in your own process
- Built on .NET Core, which supports true side-by-side app versioning
- Ships entirely as NuGet packages
- New tooling that simplifies modern web development
- Build and run cross-platform ASP.NET apps on Windows, Mac and Linux
- Open source and community focused
使用ASP.NET Core 你可以获得以下基础性的改善:
- 一套统一的框架来做Web用户界面和Web接口
- 现代客户端框架和开发流的集成
- 一套随时可以部署到云的环境为基础的配置系统
- 内置的依赖注入
- 全新的轻量级的模块化的 HTTP 请求管道
- 能够部署在IIS上或者自定义部署在你自定义的可以实现服务器托管的进程上
- 在支持真正的端到端的应用版本的.NETCore的基础上
- 完全以Nuget包为单元模块
- 新型简化现代网站开发的工具
- 可以在Windows,Mac和Linux上开发并运行跨平台的ASP.NET应用
- 开放源代码并广受社区关注