Skip to content
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

Use the DOTNET_ env var prefix #1084

Merged
merged 1 commit into from Feb 7, 2019
Merged

Use the DOTNET_ env var prefix #1084

merged 1 commit into from Feb 7, 2019

Conversation

Tratcher
Copy link
Member

@Tratcher Tratcher commented Feb 7, 2019

@Tratcher Tratcher added this to the 3.0.0-preview3 milestone Feb 7, 2019
@Tratcher Tratcher self-assigned this Feb 7, 2019
@davidfowl
Copy link
Member

Needs a test

@@ -20,7 +20,7 @@ public static IHostBuilder CreateDefaultBuilder(string[] args)
builder.UseContentRoot(Directory.GetCurrentDirectory());
builder.ConfigureHostConfiguration(config =>
{
config.AddEnvironmentVariables(); // TODO: Prefix?
config.AddEnvironmentVariables("DOTNET_");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tratcher
Copy link
Member Author

Tratcher commented Feb 7, 2019

@davidfowl reliably testing env vars needs out-of-proc functional testing. We don't have that infrastructure in Extensions and it isn't worth building for this.

@Tratcher Tratcher merged commit 40dc8fa into master Feb 7, 2019
@Tratcher Tratcher deleted the tratcher/env branch February 7, 2019 20:02
@Tratcher Tratcher mentioned this pull request Feb 7, 2019
@davidfowl
Copy link
Member

@Tratcher we need more than 0 coverage. I think it would be reasonable to write those tests in ASP.NET Core hosting since we do that the infrastructure on that side.

@Tratcher
Copy link
Member Author

Tratcher commented Feb 8, 2019

Or part of the template I'm working on.

maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Feb 28, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 2, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 11, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 27, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants