I am using JetBrains Rider and attempting to set environment variables for an integration test project I have. In my launchsettings.json
I have it set but in code when I use Environment.GetEnvironmentVariable("COSMOSDB_KEY") it returns null.
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"FooBar.IntegrationTests": {
"commandName": "Project",
"environmentVariables": {
"COSMOSDB_KEY": "SUPERMAN",
"foo": "bar"
}
}
}
}
When running the test I am selecting FooBar.IntegrationTests
under the profile. Am I missing something here?