Microsoft.Extensions.Configuration.EnvironmentVariables 10.0.0-preview.1.25080.5
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.
How to Use
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"]}");
}
}
Additional Documentation
Feedback & Contributing
Microsoft.Extensions.Configuration.EnvironmentVariables is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.EnvironmentVariables.
Packages | Downloads |
---|---|
Microsoft.AspNetCore
Microsoft.AspNetCore
|
46 |
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
|
16 |
Microsoft.Extensions.Logging.AzureAppServices
Logger implementation to support Azure App Services 'Diagnostics logs' and 'Log stream' features.
|
8 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/cd9340856ed85215a911c97c44d52373f6cba2f9
|
8 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/6939d9ab90aa1e57bb0619bb28819f7bcbfdbb54
|
8 |
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
|
8 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
When using NuGet 3.x this package requires at least version 3.4.
|
7 |
Microsoft.AspNetCore
Microsoft.AspNetCore
|
7 |
Microsoft.Extensions.Logging.AzureAppServices
Logger implementation to support Azure App Services 'Diagnostics logs' and 'Log stream' features.
|
7 |
Stackage.Aws.Lambda
Custom runtime for .NET console bootstrap
|
7 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
7 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/3f1acb59718cadf111a0a796681e3d3509bb3381
|
7 |
Microsoft.Extensions.Logging.AzureAppServices
Logger implementation to support Azure App Services 'Diagnostics logs' and 'Log stream' features.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/e1ad9117a4dac3b0f5f2a7e2b10b43b7016379b9
|
7 |
Microsoft.Extensions.Logging.AzureAppServices
Logger implementation to support Azure App Services 'Diagnostics logs' and 'Log stream' features.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/70048beee894074e9718206a0017d9b080ee66ff
|
7 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.1.25080.5)
.NET 8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.1.25080.5)
.NET 9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.1.25080.5)
.NET 10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.1.25080.5)
.NET Standard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.1.25080.5)
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.1.25080.5 | 1 | 02/28/2025 |
9.0.2 | 1 | 02/27/2025 |
9.0.1 | 3 | 01/18/2025 |
9.0.0 | 4 | 11/18/2024 |
9.0.0-rc.2.24473.5 | 6 | 11/18/2024 |
9.0.0-rc.1.24431.7 | 4 | 10/07/2024 |
9.0.0-preview.7.24405.7 | 6 | 09/18/2024 |
9.0.0-preview.6.24327.7 | 5 | 10/07/2024 |
9.0.0-preview.5.24306.7 | 5 | 10/07/2024 |
9.0.0-preview.4.24266.19 | 6 | 10/07/2024 |
9.0.0-preview.3.24172.9 | 4 | 10/07/2024 |
9.0.0-preview.2.24128.5 | 5 | 10/07/2024 |
9.0.0-preview.1.24080.9 | 4 | 06/12/2024 |
8.0.0 | 5 | 03/10/2024 |
8.0.0-rc.2.23479.6 | 5 | 10/07/2024 |
8.0.0-rc.1.23419.4 | 5 | 10/07/2024 |
8.0.0-preview.7.23375.6 | 4 | 10/07/2024 |
8.0.0-preview.6.23329.7 | 4 | 10/04/2024 |
8.0.0-preview.5.23280.8 | 4 | 10/07/2024 |
8.0.0-preview.4.23259.5 | 5 | 10/07/2024 |
8.0.0-preview.3.23174.8 | 4 | 10/07/2024 |
8.0.0-preview.2.23128.3 | 4 | 10/07/2024 |
8.0.0-preview.1.23110.8 | 6 | 10/07/2024 |
7.0.0 | 8 | 01/19/2023 |
7.0.0-rc.2.22472.3 | 5 | 10/07/2024 |
7.0.0-rc.1.22426.10 | 5 | 10/07/2024 |
7.0.0-preview.7.22375.6 | 4 | 10/05/2024 |
7.0.0-preview.6.22324.4 | 4 | 10/05/2024 |
7.0.0-preview.5.22301.12 | 5 | 10/07/2024 |
7.0.0-preview.4.22229.4 | 4 | 10/07/2024 |
7.0.0-preview.3.22175.4 | 4 | 10/07/2024 |
7.0.0-preview.2.22152.2 | 4 | 10/04/2024 |
7.0.0-preview.1.22076.8 | 4 | 10/07/2024 |
6.0.2 | 4 | 11/18/2024 |
6.0.1 | 5 | 10/07/2024 |
6.0.0 | 6 | 04/19/2022 |
6.0.0-rc.2.21480.5 | 5 | 10/07/2024 |
6.0.0-rc.1.21451.13 | 5 | 10/07/2024 |
6.0.0-preview.7.21377.19 | 6 | 10/07/2024 |
6.0.0-preview.6.21352.12 | 6 | 10/07/2024 |
6.0.0-preview.5.21301.5 | 5 | 10/07/2024 |
6.0.0-preview.4.21253.7 | 4 | 10/07/2024 |
6.0.0-preview.3.21201.4 | 5 | 10/04/2024 |
6.0.0-preview.2.21154.6 | 3 | 10/07/2024 |
6.0.0-preview.1.21102.12 | 4 | 10/07/2024 |
5.0.0 | 6 | 10/03/2022 |
5.0.0-rc.2.20475.5 | 5 | 10/05/2024 |
5.0.0-rc.1.20451.14 | 5 | 10/04/2024 |
5.0.0-preview.8.20407.11 | 4 | 10/06/2024 |
5.0.0-preview.7.20364.11 | 4 | 10/06/2024 |
5.0.0-preview.6.20305.6 | 4 | 10/07/2024 |
5.0.0-preview.5.20278.1 | 4 | 10/07/2024 |
5.0.0-preview.4.20251.6 | 4 | 10/06/2024 |
5.0.0-preview.3.20215.2 | 5 | 10/07/2024 |
5.0.0-preview.2.20160.3 | 4 | 10/07/2024 |
5.0.0-preview.1.20120.4 | 3 | 10/07/2024 |
3.1.32 | 6 | 10/07/2024 |
3.1.31 | 5 | 10/03/2024 |
3.1.30 | 6 | 10/03/2024 |
3.1.29 | 5 | 10/07/2024 |
3.1.28 | 6 | 10/07/2024 |
3.1.27 | 6 | 10/07/2024 |
3.1.26 | 6 | 10/07/2024 |
3.1.25 | 6 | 10/07/2024 |
3.1.24 | 6 | 10/07/2024 |
3.1.23 | 5 | 10/07/2024 |
3.1.22 | 6 | 10/07/2024 |
3.1.21 | 7 | 10/06/2024 |
3.1.20 | 7 | 10/04/2024 |
3.1.19 | 5 | 10/07/2024 |
3.1.18 | 6 | 10/07/2024 |
3.1.17 | 5 | 10/07/2024 |
3.1.16 | 6 | 10/07/2024 |
3.1.15 | 6 | 10/04/2024 |
3.1.14 | 6 | 10/07/2024 |
3.1.13 | 6 | 10/07/2024 |
3.1.12 | 6 | 10/04/2024 |
3.1.11 | 6 | 10/07/2024 |
3.1.10 | 6 | 10/07/2024 |
3.1.9 | 7 | 02/05/2022 |
3.1.8 | 5 | 10/07/2024 |
3.1.7 | 5 | 10/07/2024 |
3.1.6 | 5 | 10/07/2024 |
3.1.5 | 5 | 10/02/2024 |
3.1.4 | 4 | 10/07/2024 |
3.1.3 | 6 | 11/23/2022 |
3.1.2 | 4 | 10/03/2024 |
3.1.1 | 4 | 10/07/2024 |
3.1.0 | 5 | 12/02/2022 |
3.1.0-preview3.19553.2 | 4 | 10/07/2024 |
3.1.0-preview2.19525.4 | 4 | 10/07/2024 |
3.1.0-preview1.19506.1 | 5 | 10/07/2024 |
3.0.3 | 5 | 10/07/2024 |
3.0.2 | 4 | 10/07/2024 |
3.0.1 | 5 | 10/07/2024 |
3.0.0 | 5 | 10/07/2024 |
3.0.0-rc1.19456.10 | 4 | 10/07/2024 |
3.0.0-preview9.19423.4 | 4 | 10/06/2024 |
3.0.0-preview8.19405.4 | 5 | 10/06/2024 |
3.0.0-preview7.19362.4 | 5 | 10/07/2024 |
3.0.0-preview6.19304.6 | 5 | 10/07/2024 |
3.0.0-preview5.19227.9 | 3 | 10/07/2024 |
3.0.0-preview4.19216.2 | 4 | 10/07/2024 |
3.0.0-preview3.19153.1 | 4 | 10/07/2024 |
3.0.0-preview.19074.2 | 4 | 10/07/2024 |
3.0.0-preview.18572.1 | 5 | 10/07/2024 |
2.2.4 | 6 | 05/19/2022 |
2.2.0 | 20 | 12/08/2021 |
2.2.0-preview3-35497 | 4 | 10/04/2024 |
2.2.0-preview2-35157 | 5 | 10/07/2024 |
2.2.0-preview1-35029 | 4 | 10/07/2024 |
2.1.1 | 6 | 10/04/2024 |
2.1.0 | 5 | 10/07/2024 |
2.1.0-rc1-final | 4 | 10/07/2024 |
2.1.0-preview2-final | 5 | 10/07/2024 |
2.1.0-preview1-final | 6 | 10/07/2024 |
2.0.2 | 5 | 10/07/2024 |
2.0.1 | 5 | 10/07/2024 |
2.0.0 | 5 | 10/07/2024 |
2.0.0-preview2-final | 5 | 10/03/2024 |
2.0.0-preview1-final | 5 | 10/07/2024 |
1.1.2 | 5 | 10/05/2024 |
1.1.1 | 5 | 10/07/2024 |
1.1.0 | 5 | 10/07/2024 |
1.1.0-preview1-final | 4 | 10/07/2024 |
1.0.2 | 5 | 10/02/2024 |
1.0.1 | 4 | 10/05/2024 |
1.0.0 | 5 | 10/07/2024 |
1.0.0-rc2-final | 4 | 10/07/2024 |
1.0.0-rc1-final | 5 | 10/03/2024 |