Should I use AddMvc or AddMvcCore for ASP.NET Core MVC development?
问题 I am learning ASP.NET Core MVC from a book, the code snippet in question is as follows: // CHAPTER 4 - ESSENTIAL C# FEATURES namespace LanguageFeatures { public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddMvc(); } // etc. Because the book is about ASP.NET Core MVC rather than ASP.NET MVC, I think I have to use AddMvcCore() rather than AddMvc() as follows: public void ConfigureServices(IServiceCollection services) { services.AddMvcCore(); // as