Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AspNetCore.Mvc vs AspNetCore.Mvc.Core

What's the difference between the AspNetCore.Mvc and AspNetCore.Mvc.Core NuGet packages? Is Mvc.Core just bare bones stuff while Mvc is an all-inclusive package? That's what I would guess from looking at the descriptions here and here but it's not totally clear.

like image 500
John Avatar asked Aug 01 '16 18:08

John


People also ask

Is ASP NET core MVC still used?

ASP.NET MVC is no longer in active development.

Is there MVC in .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.

What is the main reason of using .NET Core rather than MVC?

The main reason of . Net core is cross platform support that enables the application to run on Windows, Mac and Linux OS whereas MVC application can be run only on Windows. build web application, IoT (Internet of things) apps, services and mobile Backends. You can do your development on Linux, Windows and MacOS.

What is difference between MVC4 and MVC5?

Identity feature in mvc4 is not available where as this is available in mvc5. 2. Authentication filter is not available in MVC4 where as Authentication filter is available in MVC5. Authentication filter is a new kind of filter in ASP.NET that runs prior to the authentication in MVC.


1 Answers

see https://github.com/aspnet/Mvc/issues/4785

AspNetCore.Mvc has all the basic stuff already set for you

if you want to use AspNetCore.Mvc.Core you will have to configure them yourself

it seems wise to use AspNetCore.Mvc unless you KNOW you need AspNetCore.Mvc.Core

  • If you use .AddMvc() then you get a lot of "opinionated" features, e.g. what kind of app are you building, which formatters are registered and in what order, which application conventions are there by default.
  • If you use .AddMvcCore() ("and you know what you're doing) then the behavior of your application will be decided by your own opinions and not the built-in default opinions.
like image 155
Nahum Avatar answered Sep 28 '22 19:09

Nahum