I create a project by using .Net web Api, and when I run the project, swagger appears.
Is there way to delete or turn off?
Thanks
I create a project by using .Net web Api, and when I run the project, swagger appears.
Is there way to delete or turn off?
Thanks
You could remove all the Swagger references in your Startup.cs
file, but all that will do is remove swagger and not the actual browser window.
If it's a console window you want, you can instead change the debug profile from IIS Express
to YourProjectName
.
It's under the little dropdown button next to the Execute button.
Note: Just make sure that the profile doesn't launch the browser when debugging. To check if it's off, navigate to: Project > Properties > Debug
, select your Profile
and make sure the Launch browser
checkbox is turned off.