简体   繁体   English

ASP.NET 5平台和MVC 6有什么区别

[英]What is the difference between ASP.NET 5 platform and MVC 6

I came across the following statement in the ASP.NNEdocumentation 我在ASP.NNEdocumentation中遇到了以下语句

ASP.NET 5: The next version of ASP.NET, the open source Microsoft platform for building Modern Web Applications on Windows, Linux and Mac. ASP.NET 5:ASP.NET的下一版本,这是用于在Windows,Linux和Mac上构建现代Web应用程序的开源Microsoft平台。 ASP.NET 5 includes the MVC 6 framework for building web applications. ASP.NET 5包括用于构建Web应用程序的MVC 6框架。 It combines the features of MVC, Web API and Web Pages into a single web framework. 它将MVC,Web API和Web页面的功能组合到一个Web框架中。 ASP.NET 5 also includes SignalR 3 for adding real time functionality to cloud connected applications. ASP.NET 5还包括SignalR 3,用于向连接到云的应用程序添加实时功能。

ASP.NET MVC 6: The framework for building web apps on the ASP.NET 5 platform. ASP.NET MVC 6:在ASP.NET 5平台上构建Web应用程序的框架。 It features the merged MVC, Web Pages, and Web API from the previous version of ASP.NET. 它具有ASP.NET以前版本中合并的MVC,Web页和Web API的功能。

So what is the difference between the ASP.NET 5 platform and the MVC 6 framework and SignalR? 那么ASP.NET 5平台与MVC 6框架和SignalR之间有什么区别?

All the following items have their own version number : 以下所有项目都有其自己的版本号:

  • C# C#
  • .NET (framework, platform) .NET(框架,平台)
  • ASP.NET platform ASP.NET平台
  • ASP.NET MVC framework ASP.NET MVC框架
  • CLR CLR

How can we figure out what this means? 我们如何弄清楚这意味着什么?

So what is the difference between the asp.net 5 plateform and the asp.net mvc 6 framework ? 那么,asp.net 5平台和asp.net mvc 6框架有什么区别?

The ASP.NET Documentation does a pretty good job of explaning what ASP.NET 5 is: ASP.NET文档在解释什么是ASP.NET 5方面做得很好:

ASP.NET 5 is a new open-source an cross-platform framework for building modern cloud-based Web applications using .NET. ASP.NET 5是一个新的开源跨平台框架,用于使用.NET构建基于云的现代Web应用程序。 We built it from the ground up to provide an optimized development framework for apps that are either 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 5 applications cross-platform on Windows, Mac and Linux. 您可以在Windows,Mac和Linux上跨平台开发和运行ASP.NET 5应用程序

ASP.NET 5 is the framework which MVC 6 is built on. ASP.NET 5是构建 MVC 6 的框架 In the new version of ASP.NET, they've torn apart System.Web into separate, detachable components and encapsulated them in NuGet packages. 在新版本的ASP.NET中,他们将System.Web撕成单独的可分离组件,并将它们封装在NuGet包中。 Under the hood, what powers ASP.NET 5 is an execution environment (VM) called DNX (see Is .NET Execution Environment (DNX) similar to mono? for more on that) which enables it to run on multiple operating systems, not Windows only. 在幕后,使ASP.NET 5 强大的 称为DNX的执行环境(VM)(有关更多信息,请参见.NET Execution Environment(DNX)是否类似于mono? ),这使它可以在多个操作系统(而不是Windows)上运行只要。

On-top of ASP.NET 5, they've assembled the MVC framework which is version 6. On the side of that they've built SignalR. 他们在ASP.NET 5的顶部组装了版本6的MVC框架。此外,他们还构建了SignalR。 Think of it as ASP.NET 5 being the (portable) BCL, and MVC 6 being your custom made application which is built on top of that. 可以将其视为ASP.NET 5是(便携式)BCL,而MVC 6是基于此的定制应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM