dotnet / dotnet/aspnetcore

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

Open
#39,765 7 comments 26 reactions 0 assignees View on GitHub
area-commandlinetools enhancement feature-hot-reload Pillar: Dev Experience triaged
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.