-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
${auto-detect-url} no longer works correctly when applicationUrl contains wildcard binding #2528
Comments
@rjgotten Thanks for reporting this! This may be obvious, but just in case - you can sort of work around this by either -- 1: changing This broke in 1.16 because this extension used to ignore |
Ah. That kind of explains it. Yes, we know about the localhost workaround, but it doesn't quite work when you have to debug web-apps on a device and can't bridge localhost; while you also have to have a configuration that should work on any developer's local workstation. Right now we're re-configuring with localhost and require those that need to test on devices, to temporarily update the configuration and not commit that change. Not ideal, you can imagine. |
Oops... mistakingly closed the issue with that last comment. That was not intended. |
@rjgotten: In case this is useful to you, you can effectively get back to the old behavior (where "env": {
"ASPNETCORE_URLS":"http://localhost:4000"
} |
@gregg-miskelly |
Environment data
dotnet --info
output:VS Code version: 1.27.1
C# Extension version: 1.16.1
Steps to reproduce
Create a
launchSettings.json
which uses a wildcardapplicationUrl
, e.g.Create a
launch.json
which uses${auto-detect-url}
in itslaunchBrowser
section, 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.The text was updated successfully, but these errors were encountered: