Swashbuckle.AspNetCore.Cli not working with appsettings.json

Viewed 572

It seems I cannot get Swashbuckle.AspNetCore.Cli to work with my .NET Core 3.1 project. I've installed the Cli using the these instruction and building the project works fine. But whenever I try to generate the swagger.json it gives me unhandled exceptions related to appsettings.json variables which cannot be found. It seems the running the assembly with the Cli tool doesn't load my settings. Has someone else run into this problem before?

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
0 Answers
Related