question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support launchSettings.json defaults

See original GitHub issue

Environment 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 or ASPNETCORE_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:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
guidoboumancommented, May 1, 2018

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. 🎉

0reactions
WolfspiritMcommented, May 14, 2018

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found