-
Notifications
You must be signed in to change notification settings - Fork 677
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
Support launchSettings.json defaults #2017
Comments
Sounds like a reasonable request. If I am reading the code in https://github.com/dotnet/cli/blob/master/src/dotnet/commands/dotnet-run/RunCommand.cs#L113 |
Yeah, that looks like it. Is there anything I can do to maybe help push it up to the 1.14 milestone? |
1.14 will ship any day now. So only high priority bug fixes will go into that release. |
Ah, oops. 1.15 it is then. |
Hey @gregg-miskelly, thanks for fixing this! Is see a fixed status, but 1.15 is still in beta. Any timeframe on when 1.15 is released? Thanks for the hard work, I have a PR ready for our projects to simplify our configs. 🎉 |
Maybe I'm doing something wrong but this does only work partly for me with 1.15. My launchSettings.json looks like that: {
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:61525/",
"sslPort": 0
}
},
"profiles": {
"WebApplication2": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:61527/"
}
}
} It still tries to bind to :5000 instead of 8100 as it should and does when using dotnet run. Would it be possible to also support applicationurl as that's what VS uses when configuring the Port/URL? |
@WolfspiritM Sure. At the time this feature request was made, the CLI didn't support |
@gregg-miskelly Thanks. I thought it was supported as the Feature Request even contains applicationUrl under "Steps to reproduce". I created an issue for it: #2296 |
Environment data
dotnet --info
output:VS Code version:
1.19.3
C# Extension version:
1.13.1
Steps to reproduce
applicationUrl
orASPNETCORE_URLS
in launchSettings.jsondotnet run
localhost:5000
Expected behavior
The settings in
Properties/launchSettings.json
are used as defaults for the projects inlaunch.json
Actual behavior
launchSettings.json
is ignored.Discussion
The
dotnet
cli has implemented this at it's core. But the debugger is unfortunately not taking this file into account. See the discussion / implementation at https://github.com/dotnet/cli/issues/6617 (@DustinCampbell is looped-in there as well.)I'd be happy to create a PR when pointed into the right direction.
The text was updated successfully, but these errors were encountered: