ASP.NET Core is a significant redesign of ASP.NET. This topic introduces the new concepts in ASP.NET Core and explains how they help you develop modern web apps.
慶云網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、成都響應(yīng)式網(wǎng)站建設(shè)等網(wǎng)站項(xiàng)目制作,到程序開發(fā),運(yùn)營維護(hù)。創(chuàng)新互聯(lián)于2013年成立到現(xiàn)在10年的時(shí)間,我們擁有了豐富的建站經(jīng)驗(yàn)和運(yùn)維經(jīng)驗(yàn),來保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)。
Asp.net Core是重新設(shè)計(jì)過得新一代Asp.Net。此篇文章介紹Asp.net Core 如何幫助你開發(fā)先進(jìn)的web應(yīng)用。
ASP.NET Core is a new open-source and cross-platform framework for building modern cloud based internet connected applications, such as web apps, IoT apps and mobile backends. ASP.NET Core apps can run on .NET Core or on the full .NET Framework. It was architected to provide an optimized development framework for apps that are deployed to the cloud or run on-premises. It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. You can develop and run your ASP.NET Core apps cross-platform on Windows, Mac and Linux. ASP.NET Core is open source at GitHub.
Asp.Net Core 是一個(gè)新的、開源的、跨平臺(tái)的開發(fā)框架,為了更好的構(gòu)建基于云網(wǎng)絡(luò)的先進(jìn)應(yīng)用,比如web app、IoT(物聯(lián)網(wǎng)) app和移動(dòng)后端。Asp.net Core應(yīng)用能夠運(yùn)行在.Net Core或者.Net Framework環(huán)境下。這種新架構(gòu)為應(yīng)用部署到云或者本地提供了高性能開發(fā)框架。它是由模塊化組件構(gòu)成,這樣你就能很靈活的構(gòu)建自己的解決方案。你可以在Windows、Mac和Linux下開發(fā)和運(yùn)行你的Asp.net Core 應(yīng)用。Asp.Net Core在GitHub上已經(jīng)開源。
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框架的一部分,Asp.Net從第一個(gè)預(yù)覽版到現(xiàn)在已經(jīng)過去15年了。數(shù)以百萬計(jì)的開發(fā)者使用它開發(fā)和運(yùn)行優(yōu)秀的web app,這么多年來我們也不斷的升級(jí)和添加更多的功能。
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從架構(gòu)上有很多的改變,這些改變從而使它成為一個(gè)靈活性和模塊化的框架。Asp.Net Core 不再基于System.Web.dll。它是基于顆粒狀和分解的NuGet 包。這使你可以優(yōu)化你的應(yīng)用程序僅僅包含所需的 NuGet 包。這種pay-for-what-you-use(按需使用)模式的好處包括加強(qiáng)安全、減少維護(hù)、提高性能和降低成本。
With ASP.NET Core you gain the following foundational improvements:
使用Asp.net Core你將獲得以下改進(jìn)的功能:
A unified story for building web UI and web APIs
web UI和web Apis使用統(tǒng)一的庫
Integration of modern client-side frameworks and development workflows
現(xiàn)代客戶端框架和開發(fā)工作流的集合
A cloud-ready environment-based configuration system
一個(gè)適合云計(jì)算環(huán)境的配置系統(tǒng)
Built-in dependency injection
內(nèi)置的依賴注入
New light-weight and modular HTTP request pipeline
全新的輕量級(jí)和模塊化HTTP請(qǐng)求管道
Ability to host on IIS or self-host in your own process
在自己的進(jìn)程中運(yùn)行IIS或者Self-host的能力
Built on .NET Core, which supports true side-by-side app versioning
以.Net Core為基礎(chǔ),支持真正的多應(yīng)用版本管理
Ships entirely as NuGet packages
完全使用NuGet包管理
New tooling that simplifies modern web development
新的簡(jiǎn)化的現(xiàn)代化web開發(fā)工具
Build and run cross-platform ASP.NET apps on Windows, Mac and Linux
在Windows,Mac和Linux下構(gòu)造和運(yùn)行多平臺(tái)的Asp.Net的應(yīng)用
Open source and community focused
開源社區(qū)共同管理
You can create well-factored and testable web apps that follow the Model-View-Controller (MVC) pattern. See MVC and Testing.
你能創(chuàng)建一個(gè)遵循MVC模式的可分解和可測(cè)試的Web應(yīng)用。詳見 MVC 和 Testing。
You can build HTTP services that support multiple formats and have full support for content negotiation. See Formatting Response Data
你可以構(gòu)建支持多格式和完全支持內(nèi)容協(xié)議的HTTP服務(wù)。詳見 Formatting Response Data。
Razor provides a productive language to create Views
Razor 提供了一種創(chuàng)建視圖的高效語言。
Tag Helpers enable server-side code to participate in creating and rendering HTML elements in Razor files
在Razor文件中,標(biāo)簽助手使服務(wù)器端代碼參與創(chuàng)建和渲染Html元素成為可能。
You can create HTTP services with full support for content negotiation using custom or built-in formatters (JSON, XML)
你可以創(chuàng)建完全支持使用自定義或者內(nèi)置格式化(Json,Xml)內(nèi)容協(xié)商的Http服務(wù)。
Model Binding automatically maps data from HTTP requests to action method parameters
自動(dòng)的從Http請(qǐng)求中的action方法參數(shù)中映射數(shù)據(jù)進(jìn)行模型綁定。
Model Validation automatically performs client and server side validation
自動(dòng)執(zhí)行前端和服務(wù)端的模型驗(yàn)證。
ASP.NET Core is designed to integrate seamlessly with a variety of client-side frameworks, including AngularJS, KnockoutJSandBootstrap. See Client-Side Development for more details.
Asp.Net Core的核心目的是為了和各式各樣的前端框架無縫連接,包括了AngularJS,KnockoutJS和Bootstrap。詳見Client-side Development。