Skip to content

Commit

Permalink
Merge pull request #11276 from umbraco/v9/bugfix/force_icu_on_windows…
Browse files Browse the repository at this point in the history
…_in_template

Force ICU usage on windows.
  • Loading branch information
nikolajlauridsen committed Oct 6, 2021
2 parents 1bd827c + 931e917 commit 83e79f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/templates/UmbracoProject/UmbracoProject.csproj
Expand Up @@ -8,6 +8,12 @@
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot/media/**;</DefaultItemExcludes>
</PropertyGroup>

<!-- 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 -->
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="68.2.0.6" />
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="68.2" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="UMBRACO_VERSION_FROM_TEMPLATE" />
<PackageReference Include="Umbraco.Cms.SqlCe" Version="UMBRACO_VERSION_FROM_TEMPLATE" Condition="'$(UseSqlCe)' == 'true'" />
Expand Down

0 comments on commit 83e79f9

Please sign in to comment.