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.
Answered by:- manish
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
| 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 Forms, SignalR, MVC, Web API, WebHooks, 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):
ASP.NET Core:
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly