'VSCode ASP.Net Core 6.0 launch chrome browser

I am using the latest version of VS Code. I have the following launch.json:

            "serverReadyAction": {
                "action": "openExternally",
                "pattern": "ApplicationStarted",
                "uriFormat": "https://localhost:%s",
            },

I don't have specific output string when application starts. Should I put one? Where should I put it?

Reference: How do I set the default browser as chrome in Visual Studio Code?

Using the suggest by @Deepak-MSFT results in the following exception:

enter image description here



Solution 1:[1]

Try to add "type": "pwa-chrome", under configurations in launch.json file.

Example:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-chrome",
      "request": "launch",
      "name": "Launch my cool app",
      "url": "http://localhost:8000"
    }
  ]
}

Reference: Launching browsers

See whether it helps to launch the Google Chrome browser.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Deepak-MSFT