dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.75k stars 1.07k forks source link

Provide a way to override the system default browser in launchSettings.json #16051

Open ThatRendle opened 3 years ago

ThatRendle commented 3 years ago

Following on from #9038, which appears to be done in 5.0.

It would be great to be able to specify e.g. browserCommand to control which browser is launched, with command line arguments.

Particularly when working with Blazor, which requires a bunch of arguments to be passed to Edge, Chrome etc to enable the Dev Tools experience, e.g.

chrome --remote-debugging-port=9222 --user-data-dir="C:\Users\mark\AppData\Local\Temp\blazor-chrome-debug" https://localhost:5001/

Currently when working with Blazor, dotnet run launches the system default browser, then you hit Alt+Shift+D to open the developer tools, then you get the page telling you how to re-launch the browser from Win+R, and it's a drag.

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

wli3 commented 3 years ago

@vijayrkn

maxild commented 3 years ago

https://github.com/dotnet/sdk/issues/9038#issuecomment-795886812