Microsoft.Extensions.Configuration.EnvironmentVariables 10.0.0-preview.5.25277.114
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.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
|
3 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/7b22a279ec975335bbb0a7cbadef2e45ee15aa9c
|
3 |
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/dotnet/tree/ddf39a1b4690fbe23aea79c78da67004a5c31094
|
3 |
Microsoft.AspNetCore
Microsoft.AspNetCore
|
3 |
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/c49ccc8727c620ce1cb8fb431bb3fe8f2e747236
|
2 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/1f050242559e7b90ff6c4ee7f99d92b3a5af5a62
|
2 |
Microsoft.Extensions.Logging.AzureAppServices
Logger implementation to support Azure App Services 'Diagnostics logs' and 'Log stream' features.
|
2 |
Jaeger
Jaeger .NET Tracing
|
2 |
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
|
2 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
|
2 |
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/6a6d775f49623bbd742c02f89d373630668547bb
|
2 |
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/0a715692d8e2536c899faa0bb4f0cec2c2e33e36
|
2 |
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/5a4c82ec57fadddef9ce841d608de5c7c8c74446
|
2 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.5.25277.114)
.NET 8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.5.25277.114)
.NET 9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.5.25277.114)
.NET 10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.5.25277.114)
.NET Standard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Configuration (>= 10.0.0-preview.5.25277.114)