What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?(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 有什么区别以及核心框架背后的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:ASP.NET MVC 6 和 ASP.NET Core 1.0 有什么区别以及核心框架背后的原因?
基础教程推荐
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
