ASP.NET MVC 6 和 ASP.NET Core 1.0 有什么区别以及核心框架背后的原因? [英] What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?

查看:19
本文介绍了ASP.NET MVC 6 和 ASP.NET Core 1.0 有什么区别以及核心框架背后的原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解 ASP.NET Core 是一个模块化框架,它将 ASP.NET MVC 和 Web API 等技术整合到一个单一的编程模型中.

I understand that ASP.NET Core is a modular framework which unites technologies like ASP.NET MVC and Web API into a single programming model.

但是 ASP.NET MVC 6 的特性之一是引入了 MVC 6 和 Web API 的合并以及以下特性.依赖注入是内置的,是 MVC 的一部分.

But one of the features of ASP.NET MVC 6 was introducing the merging of MVC 6 and Web API together along with following features. Dependency injection is inbuilt and part of MVC.

1) 并排 - 将运行时和框架与您的应用程序一起部署

1) Side by side - deploy the runtime and framework with your application

2) 使用 NuGet 打包的所有内容,包括 .NET 运行时本身.

2) Everything packaged with NuGet, Including the .NET runtime itself.

3) 基于 JSON 的新项目结构.

3) New JSON based project structure.

4) 无需为每次更改重新编译.只需点击保存并刷新浏览器即可.

4) No need to recompile for every change. Just hit save and refresh the browser.

5) 使用新的 Roslyn 实时编译器完成编译.

5) Compilation done with the new Roslyn real-time compiler.

那么为什么会有 2 个独立的 ASP.NET 框架呢?既然核心框架已经存在,以后会不会用MVC 6?

So why there are 2 standalone ASP.NET frameworks? since core framework has been in existence, will MVC 6 not be used hereafter?

如果有人能澄清一下就好了.

would be great if someone can clarify.

推荐答案

MVC 6 是 ASP.NET 5 的一部分,但由于代码库的一些重大变化,他们决定将其名称从 ASP.NET 5 更改为ASP.NET 核心.

MVC 6 was part of ASP.NET 5, but due to some major changes in the code base, they decided to change its name from ASP.NET 5 to ASP.NET Core.

您可以在这里阅读:http://www.hanselman.com/blog/ASPNET5IsDeadIntroducingASPNETCore10AndNETCore10.aspx

这篇关于ASP.NET MVC 6 和 ASP.NET Core 1.0 有什么区别以及核心框架背后的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆