Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version: 2.1.400
Commit: 8642e60a0f
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.400\
Host (useful for support):
Version: 2.1.2
Commit: 811c3ce6c0
VS Code version: 1.27.1
C# Extension version: 1.16.1
Steps to reproduce
Create a launchSettings.json which uses a wildcard applicationUrl, e.g.
{
"profiles": {
"MyProject": {
"commandName": "Project",
"commandLineArgs": "startWeb",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://*:8095/"
}
}
}
Create a launch.json which uses ${auto-detect-url} in its launchBrowser section, e.g.
"launchBrowser": {
"enabled": true,
"args": "${auto-detect-url}",
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
}
Expected behavior
When web project is launched, browser is opened on localhost, e.g. localhost:8095, as has been the case in past versions of VSCode and the C# extension.
Actual behavior
Browser is opened with zero IPv6 address, e.g. [::]:8095, instead.
Environment data
dotnet --infooutput:VS Code version: 1.27.1
C# Extension version: 1.16.1
Steps to reproduce
Create a
launchSettings.jsonwhich uses a wildcardapplicationUrl, e.g.{ "profiles": { "MyProject": { "commandName": "Project", "commandLineArgs": "startWeb", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "http://*:8095/" } } }Create a
launch.jsonwhich uses${auto-detect-url}in itslaunchBrowsersection, e.g.Expected behavior
When web project is launched, browser is opened on localhost, e.g.
localhost:8095, as has been the case in past versions of VSCode and the C# extension.Actual behavior
Browser is opened with zero IPv6 address, e.g.
[::]:8095, instead.