Skip to content

Commit a5a35bd

Browse files
authored
Stop trying to launch browser from codespaces (dotnet#39505)
This isn't a supported operation and yields `dotnet watch 🌐 Unable to launch the browser. Navigate to https://localhost:<PORT>` every time.
1 parent 07d728b commit a5a35bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"remoteEnv": {
3838
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
3939
"DOTNET_MULTILEVEL_LOOKUP": "0",
40-
"TARGET": "net7.0"
40+
"TARGET": "net7.0",
41+
"DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER": "true"
4142
},
4243
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
4344
"remoteUser": "vscode"

0 commit comments

Comments
 (0)