Support launchSettings.json defaults
See original GitHub issueEnvironment data
dotnet --info
output:
.NET Command Line Tools (2.1.4)
Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2190
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.1.4/
Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
VS Code version: 1.19.3
C# Extension version: 1.13.1
Steps to reproduce
- Configure a dotnet core app
- Set
applicationUrl
orASPNETCORE_URLS
in launchSettings.json - Launch project with
dotnet run
- See project running on the right URL + PORT
- Start project in VSCode
- See project running from default URL
localhost:5000
Expected behavior
The settings in Properties/launchSettings.json
are used as defaults for the projects in launch.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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
ASP.NET Core launchSettings.json File - Dot Net Tutorials
If you open the launchSettings.json file, then by default you will find the following code or you can say settings within that file...
Read more >launchSettings.json - Visual Studio for Mac - Microsoft Learn
Select Run > Configurations > Default. "Run," "Configurations," and "Default" in project options to. Primarily, you'll configure two things here ...
Read more >launchSettings.json & Debug Profile in ASP.NET Core
Select Project · Right Click and click on Property option · Select Debug Tab · Click on the New button · Enter the...
Read more >What is launchsetting.json in ASP.NET Core - Talking Dotnet
This json file holds project specific settings associated with each debug profile, Visual Studio is configured to use to launch the application, ...
Read more >Using .NET Core launchSettings.json to run/debug apps in Rider
A .NET Core application can have a file called launchSettings.json, which describes how a project can be launched. It describes the command ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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. 🎉
@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