Solutions for ICU Issues When Running .NET Core on Linux

2020年4月22日 52点热度 3人点赞 1条评论
内容目录

Method 1:

Add the following to the .csproj file:

<ItemGroup>
    <RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
</ItemGroup>

Method 2:

Add the following to the .runtimeconfig.json file:

{
    "runtimeOptions": {
        "configProperties": {
            "System.Globalization.Invariant": true
        }
    }
}
/*

    "configProperties": {
      "System.Globalization.Invariant": true
    }

*/

痴者工良

高级程序员劝退师

文章评论