Ability to set port for browser refresh websocket connection when using dotnet watch #39765
Labels
area-commandlinetools
Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-dotnetwatch
This issue is related to the dotnet-watch command-line tool (now external)
Pillar: Dev Experience
triaged
Milestone
Is your feature request related to a problem? Please describe.
I am trying to use docker when working with dotnet. Currently when I use dotnet watch a websocket connection is created for browser refresh, but the port is randomly assigned. Because of this I can't set the port in my dockerfile and thus can't use auto refresh in browser.
Describe the solution you'd like
A way to set the ports for browser refresh. Perhaps in the launch settings as an optional setting. And still assign a random port if no preference is provided.
The text was updated successfully, but these errors were encountered: