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 有什么区别以及核心框架背后的原因?
基础教程推荐
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
