From a227f0053ee85c651a4c1a37075369eee5800bd6 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Thu, 28 Jan 2021 09:26:35 -0800 Subject: [PATCH] Improve msg for missing libicu (#47511) * Improve msg for missing libicu * add comment * add aka.ms * better link --- .../src/System/Globalization/GlobalizationMode.Unix.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs index 7d91ed4713a..0149463c6aa 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs @@ -25,8 +25,11 @@ private static bool GetGlobalizationInvariantMode() int loaded = Interop.Globalization.LoadICU(); if (loaded == 0 && !OperatingSystem.IsBrowser()) { + // This can't go into resources, because a resource lookup requires globalization, which requires ICU string message = "Couldn't find a valid ICU package installed on the system. " + - "Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support."; + "Please install libicu using your package manager and try again. " + + "Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. " + + "Please see https://aka.ms/dotnet-missing-libicu for more information."; Environment.FailFast(message); } -- GitLab