phil2
(Philip Munts)
December 7, 2018, 9:26am
1
I need to build my .Net Core applications with Globalization Invariant Mode (https://github.com/dotnet/corefx/blob/master/Documentation/architecture/globalization-invariant-mode.md ) set, which ultimately means that:
"configProperties": {
"System.Globalization.Invariant": true
}
gets added to the .runtimeconfig.json file. With Microsoft tools I can accomplish this automatically by adding:
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
</ItemGroup>
to the .csproj file. But that doesn’t work in Elements.
Thanks, logged as bugs://81530
mh
(marc hoffman)
December 7, 2018, 4:22pm
3
Thanx for reporting this. i was not aware of this oprion yet, i’ll add support for RuntimeHostConfigurationOption for next weeks build — should be an easy fix once i’m back in the office.
bugs://81530 got closed with status fixed.
mh
(marc hoffman)
December 14, 2018, 8:18pm
5
Fixed:
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
<RuntimeHostConfigurationOption Include="Foo" Value="false" />
<RuntimeHostConfigurationOption Include="Bar" Value="xxx" />
<RuntimeHostConfigurationOption Include="Baz" Value="35" />
{
"runtimeOptions": {
"tfm": ".NETCoreApp,Version=v2.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "2.1.2"
},
"runtimeOptions": {
"System.Globalization.Invariant": true,
"Foo": false,
"Bar": "xxx",
"Baz": 35
}
}
}
phil2
(Philip Munts)
December 20, 2018, 1:26pm
6
Very close: But System.Globalization.Invariant needs to be inside configProperties, not runtimeOptions.
mh
(marc hoffman)
December 20, 2018, 1:36pm
7
Oops, of course, yes. that’s a typo/copy-paste error. fixed.