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.
ASP.NET MVC is no longer in active development.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With