I have service which is written in C# and I am trying to run it from visual studio for Mac. I can see the launchSettings.json file in my path. But due to some reason the environment variables in launchSettings.json is not loading at all. Everything seems to be working fine in Jetbrains rider. But not in VS for Mac.
It's not that it's not working at all. some times it does. But rider offers me a way to manually select a lauchsettings.json in case it's not detecting automatically and that's reliable. This how my typical launchsettings.json looks like. In rider I have an option to select Run -> Edit Configurations -> Add Configuration -> Launch Profile where I can select a launch profile in case it don't work. My project is an asp.net core api
{
"profiles": {
"Service Name": {
"commandName": "Project",
"launchBrowser": false,
"environmentVariables": {
"VAR_A": "TRUE",
"VAR_B": "something",
"SOME_KEY":"SOMEVAL"
}
}
}
}
Also, thanks for the quick reply