Skip to content

Ability to set port for browser refresh websocket connection when using dotnet watch #39765

Open

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Pillar: Dev Experiencearea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-dotnetwatchThis issue is related to the dotnet-watch command-line tool (now external)triaged

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions