An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi @Jonathan ,
The problem is a package version conflict. Swashbuckle.AspNetCore 10.1.1 needs Microsoft.OpenApi ≥ 2.4.1, but your project has 1.6.28.
To fix it:
- Update Microsoft.OpenApi:
dotnet add package Microsoft.OpenApi --version 2.4.1
- Clean and rebuild:
dotnet clean
dotnet build
- Run the app and check Swagger:
http://<your-server-address>/swagger