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?

查看:399
本文介绍了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 Core.

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

You can read about here: http://www.hanselman.com/blog/ASPNET5IsDeadIntroducingASPNETCore10AndNETCore10.aspx

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

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