Open
Description
the api used, Environment.ExpandEnvironmentVariables(rawXmlString)
will only work when the config file has the following <add key="COMPUTERNAME" value="%COMPUTERNAME%" />
Environment.ExpandEnvironmentVariables only expands % delimited tokens.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 9fdfd344-8a4b-f23d-c040-ee6982322041
- Version Independent ID: d9b615a6-1846-e521-b671-c7d384be68cb
- Content: ConfigurationBuilder Class (System.Configuration)
- Content Source: xml/System.Configuration/ConfigurationBuilder.xml
- Product: dotnet-api
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent