Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?

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.

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) Side by side - deploy the runtime and framework with your application

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

3) New JSON based project structure.

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

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

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.

like image 438
V.Sriram Avatar asked Jun 29 '16 20:06

V.Sriram


People also ask

What is the difference between ASP.NET MVC and ASP.NET Core MVC?

The main difference between ASP.NET Core and ASP.NET MVC 5 is their cross-platform approach. ASP.NET Core can be used on Windows, Mac, or Linux, whereas ASP.NET MVC 5 can only be used for applications on Windows. The ASP.NET Core MVC is a framework for building web apps and APIs, optimized for use with ASP.NET Core.

What is the difference between ASP.NET Core and framework?

NET Framework to create Windows desktop and server-based applications. This includes ASP.NET web applications. On the other hand, . NET Core is used to create server applications that run on Windows, Linux and Mac.

What is ASP.NET MVC and ASP.NET Core?

The ASP.NET Core MVC framework is a lightweight, open source, highly testable presentation framework optimized for use with ASP.NET Core. ASP.NET Core MVC provides a patterns-based way to build dynamic websites that enables a clean separation of concerns.


1 Answers

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.

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

like image 129
gnllucena Avatar answered Oct 16 '22 19:10

gnllucena