-1

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

user16168859
  • 35
  • 1
  • 4
  • 1
    Have you investigated the Nuget references in your project, or the contents of your Startup.cs file? – gunr2171 Jun 22 '21 at 12:07
  • 3
    If ur asking for disabling the auto-opening browser after build, you can disable it. Click on the small triangle right to the "IIS Express" build button, click on debug properties, deselect "launch browser" option. – Sahin Apr 15 '22 at 07:09

1 Answers1

1

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.

KvartzC
  • 21
  • 5