According to your description, I have created an empty web application project and install the package according to your command. It works well.
Result as below:
I suggest you could post more details information about how you build your web api project.
Accoridng to this github
article, different application host environment need different swagger setting.
Do you have some special settings in the SwaggerConfig.cs file?
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
1 Points
3 Posts
Cant get Swashbuckle (swagger) to work
May 30, 2019 01:12 AM|lasseedsvik|LINK
I've built a small Web API and I ran these commands:
Installed worked, but when I run it...... I cannot navigate to /swagger to see it work...
What might be wrong? It's like it's not running
Star
9831 Points
3120 Posts
Re: Cant get Swashbuckle (swagger) to work
May 30, 2019 05:44 AM|Brando ZWZ|LINK
Hi lasseedsvik,
According to your description, I have created an empty web application project and install the package according to your command. It works well.
Result as below:
I suggest you could post more details information about how you build your web api project.
Accoridng to this github article, different application host environment need different swagger setting.
Do you have some special settings in the SwaggerConfig.cs file?
Best Regards,
Brando
Member
1 Points
3 Posts
Re: Cant get Swashbuckle (swagger) to work
May 31, 2019 02:58 PM|lasseedsvik|LINK
I redid the project and now it works... not sure what was missing in the first one...