diff options
author | kasper3 <33230602+kasper3@users.noreply.github.com> | 2018-01-02 23:12:44 +0300 |
---|---|---|
committer | Tarek Mahmoud Sayed <tarekms@microsoft.com> | 2018-01-02 23:12:44 +0300 |
commit | ca9de5b0a5646479c729a8860c54215dbdb5cefa (patch) | |
tree | a698abadf00de2a602bd7f541abca2f05a2bcea4 /Documentation | |
parent | b1737de9d53386da84cff232304f7143b0998d47 (diff) |
Show example to set invariant globalization in xml (#26110)
* Show example to set invariant globalization in xml
* Update doc with third, environment variable option
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/architecture/globalization-invariant-mode.md | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/Documentation/architecture/globalization-invariant-mode.md b/Documentation/architecture/globalization-invariant-mode.md index 52205aab59..6d568ef1cb 100644 --- a/Documentation/architecture/globalization-invariant-mode.md +++ b/Documentation/architecture/globalization-invariant-mode.md @@ -98,18 +98,32 @@ When running on Linux, ICU is used to get the time zone display name. In invaria ## Enabling the invariant mode -Applications can enable the invariant mode by setting the config switch System.Globalization.Invariant to true, in the `runtimeconfig.json` file, as you can see in the following example: +Applications can enable the invariant mode by either of the following: -```json -{ - "runtimeOptions": { - "configProperties": { - "System.Globalization.Invariant": true +1. in project file: + + ```xml + <ItemGroup> + <RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" /> + </ItemGroup> + ``` + +2. in `runtimeconfig.json` file: + + ```json + { + "runtimeOptions": { + "configProperties": { + "System.Globalization.Invariant": true + } } } -} -``` - + ``` + +3. setting environment variable value `DOTNET_SYSTEM_GLOBALIZATION_INVARIANT` to `true` or `1`. + +Note: value set in project file or `runtimeconfig.json` has higher priority than the environment variable. + ## APP behavior with and without the invariant config switch - If the invariant config switch is not set or it is set false |