Skip to content

Commit 83e79f9

Browse files
Merge pull request #11276 from umbraco/v9/bugfix/force_icu_on_windows_in_template
Force ICU usage on windows.
2 parents 1bd827c + 931e917 commit 83e79f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/templates/UmbracoProject/UmbracoProject.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot/media/**;</DefaultItemExcludes>
99
</PropertyGroup>
1010

11+
<!-- Force windows to use ICU. Otherwise Windows 10 2019H1+ will do it, but older windows 10 and most if not all winodws servers will run NLS -->
12+
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
13+
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="68.2.0.6" />
14+
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="68.2" />
15+
</ItemGroup>
16+
1117
<ItemGroup>
1218
<PackageReference Include="Umbraco.Cms" Version="UMBRACO_VERSION_FROM_TEMPLATE" />
1319
<PackageReference Include="Umbraco.Cms.SqlCe" Version="UMBRACO_VERSION_FROM_TEMPLATE" Condition="'$(UseSqlCe)' == 'true'" />

0 commit comments

Comments
 (0)