Skip to content

Commit 2cc7c31

Browse files
committed
System.TimeZoneInfo.Invariant feature
1 parent 0f5a8e5 commit 2cc7c31

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,11 @@ Copyright (c) .NET Foundation. All rights reserved.
600600
Value="$(InvariantGlobalization)"
601601
Trim="true" />
602602

603+
<RuntimeHostConfigurationOption Include="System.TimeZoneInfo.Invariant"
604+
Condition="'$(InvariantTimezone)' != ''"
605+
Value="$(InvariantTimezone)"
606+
Trim="true" />
607+
603608
<RuntimeHostConfigurationOption Include="System.Globalization.Hybrid"
604609
Condition="'$(HybridGlobalization)' != ''"
605610
Value="$(HybridGlobalization)"

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
6969
""System.Diagnostics.Tracing.EventSource.IsSupported"": false,
7070
""System.Drawing.Design.UITypeEditor.IsSupported"": true,
7171
""System.Globalization.Invariant"": true,
72+
""System.TimeZoneInfo.Invariant"": true,
7273
""System.Globalization.PredefinedCulturesOnly"": true,
7374
""System.GC.Concurrent"": false,
7475
""System.GC.Server"": true,

0 commit comments

Comments
 (0)