Reputation: 260
How to use Swagger in asp.net core API. i used core framework-2. i try
Swashbuckle.AspNetCore
package, but it's not supported in framework-2.
Upvotes: 2
Views: 583
Reputation: 2472
I had the same issue and could be able to fix it by installing Microsoft.AspNetCore.StaticFiles
Nuget package.
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" />
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/438
Upvotes: 4