![]() |
VOOZH | about |
dotnet add package Microsoft.Configuration.ConfigurationBuilders.Environment --version 3.0.0
NuGet\Install-Package Microsoft.Configuration.ConfigurationBuilders.Environment -Version 3.0.0
<PackageReference Include="Microsoft.Configuration.ConfigurationBuilders.Environment" Version="3.0.0" />
<PackageVersion Include="Microsoft.Configuration.ConfigurationBuilders.Environment" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="Microsoft.Configuration.ConfigurationBuilders.Environment" />Project file
paket add Microsoft.Configuration.ConfigurationBuilders.Environment --version 3.0.0
#r "nuget: Microsoft.Configuration.ConfigurationBuilders.Environment, 3.0.0"
#:package Microsoft.Configuration.ConfigurationBuilders.Environment@3.0.0
#addin nuget:?package=Microsoft.Configuration.ConfigurationBuilders.Environment&version=3.0.0Install as a Cake Addin
#tool nuget:?package=Microsoft.Configuration.ConfigurationBuilders.Environment&version=3.0.0Install as a Cake Tool
This package offers the most basic of the config builders. It draws its values from Environment, and it does not have any additional configuration options. More comprehensive documentation exists at the MicrosoftConfigBuilders project.
The basic usage of this builder is given below. Parameters inside []s are optional. Parameters grouped in ()s are mutually exclusive. Parameters beginning with @ allow appSettings substitution. The first line of parameters are common to all builders and optional. Their meaning, usage, and defaults are documented here. They are grouped on one line for brevity. When a builder uses a different default value than the project default, the differing value is also listed. Builder-specific settings are listed on each line thereafter followed by a brief explanation.
<add name="Environment"
[@mode|@enabled="optional"|@charMap=":=__"|@prefix|@stripPrefix|tokenPattern|@escapeExpandedValues]
type="Microsoft.Configuration.ConfigurationBuilders.EnvironmentConfigBuilder, Microsoft.Configuration.ConfigurationBuilders.Environment" />
A more complete list of updates lives here. These are the ones most relevant to this builder:
Expand mode is gone. It has been replaced by Token mode.optional attribute is obsolete ⇒ enabled attribute which provides more versatility. (The optional attribute is still parsed and recognized in the absence of the newer enabled attribute, but builders should migrate to use the new attribute name when possible. Installation scripts should try to handle this automatically.)charMap attribute to allow this character mapping to work with all KeyValueConfigBuilders and to be handled in an easily configurable manner.A more complete list of updates lives here. These are the ones most relevant to this builder:
appSettings. Read more about it here.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net471 net471 is compatible. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
Showing the top 2 NuGet packages that depend on Microsoft.Configuration.ConfigurationBuilders.Environment:
| Package | Downloads |
|---|---|
|
Sitecore.XmCloud.Kernel
Package Description |
|
|
Foundation.SitecoreExtensions
Foundation.SitecoreExtensions |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 1,362,923 | 4/12/2023 |
| 3.0.0-preview2 | 2,750 | 1/18/2023 |
| 3.0.0-preview1 | 22,444 | 4/1/2022 |
| 2.0.0 | 3,256,978 | 2/22/2020 |
| 2.0.0-rc | 8,983 | 1/10/2020 |
| 2.0.0-beta | 58,717 | 2/26/2019 |
| 1.0.2 | 5,688,046 | 7/9/2018 |
| 1.0.1 | 53,021 | 5/25/2018 |
| 1.0.0-preview3 | 2,364 | 5/4/2018 |
| 1.0.0-preview2 | 3,726 | 3/10/2018 |
| 1.0.0-preview | 3,462 | 11/17/2017 |