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


Hello, I would like to know what's the difference between asp.net core and asp.net mvc, which one should I when?

I am currently working on MVC, but would like to know benefits of .NET Core.


Asked by:- Vinnu
0
: 2852 At:- 6/13/2018 6:39:19 AM
ASP.NET MVC ASP.NET CORE Difference







1 Answers
profileImage Answered by:- manish

Simple difference between ASP.NET Core and ASP.NET MVC 

Asp. Net core allows you to build applications that can run on every operating system (linux, mac, windows) , i.e, it is cross platform whereas Asp. Net MVC helps you build web applications that run only on windows

Detailed difference between ASP.NET Core and MVC 

ASP.NET Core ASP.NET
Build for Windows, macOS, or Linux Build for Windows
Razor Pages is the recommended approach to create a Web UI as of ASP.NET Core 2.x. See also MVC, Web API, and SignalR. Use Web FormsSignalRMVCWeb APIWebHooks, or Web Pages
Multiple versions per machine One version per machine
Develop with Visual Studio, Visual Studio for Mac, or Visual Studio Code using C# or F# Develop with Visual Studio using C#, VB, or F#
Higher performance than ASP.NET Good performance
Choose .NET Framework or .NET Core runtime Use .NET Framework runtime

ASPNET MVC (1,2,3,4,5):

  1. Built on top of full .NET framework.
  2. Not cross-platform (Windows only) unless you port it to Mono (Limited API set).
  3. ASPNET Web API and Web pages comes as different modules/framework altogether.

ASP.NET Core:

  1. Ready for cross-platform cloud hosting.
  2. Cloud ready, Azure is build in.
  3. Default project structure got renewed with typescript and JSON configurations.
  4. Build-in support for dependency injection.
  5. Roslyn compiler for compiling code dynamically.
  6. In project structure “wwwroot” is now placed for static files.
  7. Everything is in NuGet package, no dependencies installed by default.
  8. ASP.NET Core is open source.
  9. Very fast
  10. Ability to host on IIS, Mac, Linux or self-host in your own process.
2
At:- 6/13/2018 3:14:50 PM Updated at:- 6/13/2018 3:15:42 PM
Thanks for your detailed answer 0
By : Vinnu - at :- 6/20/2018 3:41:39 PM






Login/Register to answer
Or
Register directly by posting answer/details

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use