Skip to content

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 #1116

Description

BinSkim version 1.9.5 on Linux keeps crashing with System.Globalization.Invariant exception.

Microsoft.CodeAnalysis.BinSkim.1.9.5/tools/netcoreapp3.1/linux-x64/BinSkim analyze --config default --ignorePdbLoadError --recurse --hashes --statistics --sarif-output-version OneZeroZero --output /mnt/vss/_work/....

##[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.
##[error]   at System.Environment.FailFast(System.String)
##[error]   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
##[error]   at System.Globalization.GlobalizationMode..cctor()
##[error]   at System.Globalization.CultureData.CreateCultureWithInvariantData()
##[error]   at System.Globalization.CultureData.get_Invariant()
##[error]   at System.Globalization.CultureInfo..cctor()
##[error]   at System.Globalization.CultureInfo.get_InvariantCulture()
##[error]   at CommandLine.ParserSettings..ctor()
##[error]   at CommandLine.Parser+<>c.<.cctor>b__20_0()
##[error]   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ViaFactory(System.Threading.LazyThreadSafetyMode)
##[error]   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ExecutionAndPublication(System.LazyHelper, Boolean)
##[error]   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CreateValue()
##[error]   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Value()
##[error]   at CommandLine.Parser.get_Default()
##[error]   at Microsoft.CodeAnalysis.IL.BinSkim.Main(System.String[])

Is there a way to resolve this issue without changing parameters?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions