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

标签 .net asp.net-core asp.net-core-mvc dnx .net-core

我在 ASP.NNE 文档中看到了下面的语句

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 includes the MVC 6 framework for building web applications. It combines the features of MVC, Web API and Web Pages into a single web framework. ASP.NET 5 also includes SignalR 3 for adding real time functionality to cloud connected applications.

ASP.NET MVC 6: The framework for building web apps on the ASP.NET 5 platform. It features the merged MVC, Web Pages, and Web API from the previous version of ASP.NET.

那么ASP.NET 5平台与MVC 6框架和SignalR有什么区别呢?

以下所有项目都有自己的版本号:

  • C#
  • .NET(框架、平台)
  • ASP.NET 平台
  • ASP.NET MVC 框架
  • 清除

我们如何弄清楚这意味着什么?

最佳答案

So what is the difference between the asp.net 5 plateform and the asp.net mvc 6 framework ?

ASP.NET Documentation很好地解释了 ASP.NET 5 是什么:

ASP.NET 5 is a new open-source an cross-platform framework for building modern cloud-based Web applications using .NET. 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.

ASP.NET 5 是构建 MVC 6 的框架。在新版本的 ASP.NET 中,他们将 System.Web 拆分为单独的、可分离的组件,并将它们封装在 NuGet 包中。在幕后,支持 ASP.NET 5 的是一个名为 DNX 的执行环境 (VM) (有关更多信息,请参阅 Is .NET Execution Environment (DNX) similar to mono?)这使它能够在多个操作系统上运行,而不仅仅是 Windows。

在 ASP.NET 5 之上,他们组装了版本 6 的 MVC 框架。此外,他们还构建了 SignalR。将其视为 ASP.NET 5 是(可移植)BCL,而 MVC 6 是构建在其之上的定制应用程序。

关于.net - ASP.NET 5 平台和 MVC 6 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31959953/

相关文章:

c# - web api 无法在 azure 上的 Linux 容器中使用 Net Core 3 Web api 启动

asp.net-core - Asp.Net Core - MVC Vs Web API 路由区别

c# - 有没有任何工具可以帮助我们将 IEnumerator 属性重构为 IList<T> 或类似的?

.net - 知名 GUID 列表

.net - 引用另一个约定方法时是否应该重复条件?

asp.net-core-mvc - 如何在 vs2019 MVC Core 3.1 中的包管理器控制台中搭建 Controller ?

asp.net-core-mvc - 类型 'IdentityRole' 在未引用的程序集中定义

C# - 如何使 AutoMapper 不区分大小写?

c# - 无法在 ASP.NET Core 中使用 webpack 中间件

c# - Process.Start 在 .net 核心中给出文件未指定错误