Microsoft.Extensions.Configuration.EnvironmentVariables 8.0.0-preview.3.23174.8
About
Environment variables configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from environment variables. You can use EnvironmentVariablesExtensions.AddEnvironmentVariables extension method on IConfigurationBuilder
to add the environment variables configuration provider to the configuration builder.
For more information, see the documentation: Environment variable configuration provider.
Example
The following example shows how to read application configuration from environment variables.
using System;
using Microsoft.Extensions.Configuration;
class Program
{
static void Main()
{
// Build a configuration object from environment variables
IConfiguration config = new ConfigurationBuilder()
.AddEnvironmentVariables()
.Build();
// Read configuration values
Console.WriteLine($"Server: {config["Server"]}");
Console.WriteLine($"Database: {config["Database"]}");
}
}
Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.EnvironmentVariables.
Packages | Downloads |
---|---|
Microsoft.AspNetCore
Microsoft.AspNetCore
|
6 |
Microsoft.AspNetCore
Microsoft.AspNetCore
|
7 |
Microsoft.AspNetCore
Microsoft.AspNetCore
|
10 |
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application.
This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
|
6 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
|
6 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
This package was built from the source code at https://github.com/aspnet/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
|
8 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
This package was built from the source at:
https://github.com/aspnet/Hosting/tree/687a99438a1a596a11b7dbd0bf9da5035b3b74eb
|
6 |
Microsoft.Azure.WebJobs
This package contains the runtime assemblies for Microsoft.Azure.WebJobs.Host. It also adds rich diagnostics capabilities which makes it easier to monitor the WebJobs in the dashboard. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=320971
|
7 |
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
|
7 |
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
|
8 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
6 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
7 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
12 |
Microsoft.Identity.Client.Extensions.Msal
This package contains extensions to Microsoft Authentication Library for .NET (MSAL.NET)
|
6 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-preview.3.23174.8)
- Microsoft.Extensions.Configuration (>= 8.0.0-preview.3.23174.8)
.NET 6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-preview.3.23174.8)
- Microsoft.Extensions.Configuration (>= 8.0.0-preview.3.23174.8)
.NET 7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-preview.3.23174.8)
- Microsoft.Extensions.Configuration (>= 8.0.0-preview.3.23174.8)
.NET 8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-preview.3.23174.8)
- Microsoft.Extensions.Configuration (>= 8.0.0-preview.3.23174.8)
.NET Standard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-preview.3.23174.8)
- Microsoft.Extensions.Configuration (>= 8.0.0-preview.3.23174.8)