-
Notifications
You must be signed in to change notification settings - Fork 671
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
launch.json does not pickup a seondary launchConfigurationId from Properties/launchSettings.JSON #7584
Comments
@patoJamriska Do you have C# Dev Kit installed?
The |
@WardenGnaw I had a similar issue to @patoJamriska because the documentation isn't very clear on this. Is When I tried (this was ~2mo back at this point) it just ignored everything and would always pick the first profile in launchSettings.json anyways. This was true of manually configured launch profiles or the dynamic configuration. I also found Anyways about the documentation
|
Yes, I am using the C# developer extension |
|
I have still being doing research on this Because of other issues arising on the work I am doing, and run into this on the MS documentation. https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-8.0#development-and-launchsettingsjson This section actually shows how to use the coreclr to pass environment variables at the launch.json level, but obviosuly that is not an option since we are using the c# plugin and the launch is "type": "dotnet". Not sure if there has been anyone looking into this besides what has been shared by now? PD: going thru the github LaunchSettings is using coreclr, and doing a bit more digging on the console, I can see that the dotnet type does launch coreclr in the brackground regardless, so I think until this can be properly investigated and I can see some reply about it, I will most likely switch to use coreclr again on the launch.json to have full control on vscode.
|
Did something changed or update? I check docs and setting |
Trying to debug an application using different environment variables for the use use of appSettings.env.json i.e.:
does not pick up a secondary profile. So I can have a Development env and a UAT env but it only picks up the first one when I hit debug. Same thing happens on Compounds:
launch.json sample:
LaunchSettings.Json sample:
If the
CSharp: Report an issue
command doesn't appear, make sure that you have C# extension version 1.17.0 or newer installed.Environment data
VS Code version: 1.93.1 (Universal)
C# Extension version: current latest and Pre-release versions
Steps to reproduce
Expected behavior
the UI will pick the correct profile to launch
Additional context
This was working on a few versions ago, but I didnt had to use vscode on this project for a while until recently that realized it was not picking up my other environments.
The text was updated successfully, but these errors were encountered: