Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

ASP.NET Core 3 MVC : IHost not starting browser unlike IWebHost

$
0
0

ASP.NET Core 3 MVC suggests using IHost instead of IWebHost (HostBuilder replaces WebHostBuilder and .NET Generic Host Settings for web apps).

Here is a section of launch.json

"launchBrowser": {
            "enabled": true,
            "args": "${auto-detect-url}",
            "windows": {
                "command": "cmd.exe",
                "args": "/C start ${auto-detect-url}"
            },
            "osx": {
                "command": "open"
            },
            "linux": {
                "command": "xdg-open"
            }
        },

This doesn't however launch the browser for debugging locally.

  • OS: Linux
  • Editor: VSCode

Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>