1

Does anyone know which options we have to run an ASP.NET Core 5 Web API (with kestrel) on a Windows host without having the console window open/visible?

The thing is that the "host" will be a regular PC with other applications on it and users not only could see the console window but also close it.

Unfortunately running it on dedicated hardware is not an option (for now).

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
monty
  • 7,888
  • 16
  • 63
  • 100
  • 2
    You can run it as a service https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-5.0&tabs=visual-studio See this SO response as well https://stackoverflow.com/questions/58960607/web-api-as-a-windows-service – Mike Aug 02 '22 at 19:17

0 Answers0