Swagger breaks when adding an API Controller to my Host Project in aspnetboilerplate
问题 I downloaded a new .Net Core MVC project template from https://aspnetboilerplate.com/Templates, setup everything (database and restored nuget packages) and ran the Host application. All good as I get the Swagger UI going and can see all the standard services. I then proceeded to create a simple API controller in the Host application: [Route("api/[controller]")] [ApiController] public class FooBarController : MyAppControllerBase { public string HelloWorld() { return"Hello, World!"; } } And