Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dotnet watch start - starts http and https and opens a browser

In ASP.NET Core 3.1, dotnet watch start did not open a window and i dont know if it started http and https. In the lates ASP.NET 5 a window with the http address goes up. I dont want windows to go up. How can this be configured? I dont find anything for that which worked.

Its like:

watch : Started info: Microsoft.Hosting.Lifetime[0] Now listening on: http://localhost:5000 info: Microsoft.Hosting.Lifetime[0] Now listening on: https://localhost:5001

Regards

like image 961
Peter Bucher Avatar asked Feb 27 '26 18:02

Peter Bucher


1 Answers

Remove launchBrowser from launchSettings.json inside Properties folder

    "mvctest": {
      "commandName": "Project",
      "dotnetRunMessages": "true",
      "launchBrowser": true, /* this one */
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
like image 136
JL0PD Avatar answered Mar 02 '26 07:03

JL0PD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!