ASP.NET Core MVC controllers in separate assembly

Still an issue in ASP.Net Core 1.0, not sure if it’s by design now. Easiest solution is to do this in Startup.cs/ConfigureServices services.AddMvc() .AddApplicationPart(typeof(<class in external assembly>).Assembly) .AddControllersAsServices(); AddApplicationPart explicitly includes the assembly in searches for controllers. The call to AddControllersAsServices() will add all the discovered controllers into the services collection, and if you put … Read more