As I ran my .NET 5 application on Linux, I was greeted with the following error:
Process terminated. 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.
Aborted (core dumped)
Underlying cause was my ancient Red Hat installation missing localization support and the easy way to deal with it is was to simply set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT environment variable. On command line that would look something like this:
However, if we really don’t need globalization support, setting it directly in
.csproj might be better: