Skip to content

Commit

Permalink
linker feature System.TimeZoneInfo.Invariant (#45792)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara authored Jan 23, 2025
2 parents 15f99ba + 2114dbd commit 807cd29
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static class Properties
public static readonly string PublishTrimmed = nameof(PublishTrimmed);
public static readonly string PublishSelfContained = nameof(PublishSelfContained);
public static readonly string InvariantGlobalization = nameof(InvariantGlobalization);
public static readonly string InvariantTimezone = nameof(InvariantTimezone);
}

public static class Items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,11 @@ Copyright (c) .NET Foundation. All rights reserved.
Value="$(InvariantGlobalization)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.TimeZoneInfo.Invariant"
Condition="'$(InvariantTimezone)' != ''"
Value="$(InvariantTimezone)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Globalization.Hybrid"
Condition="'$(HybridGlobalization)' != ''"
Value="$(HybridGlobalization)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
""System.Diagnostics.Tracing.EventSource.IsSupported"": false,
""System.Drawing.Design.UITypeEditor.IsSupported"": true,
""System.Globalization.Invariant"": true,
""System.TimeZoneInfo.Invariant"": true,
""System.Globalization.PredefinedCulturesOnly"": true,
""System.GC.Concurrent"": false,
""System.GC.Server"": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<EventSourceSupport>false</EventSourceSupport>
<_WinFormsUITypeEditorSupport>true</_WinFormsUITypeEditorSupport>
<InvariantGlobalization>true</InvariantGlobalization>
<InvariantTimezone>true</InvariantTimezone>
<PredefinedCulturesOnly>true</PredefinedCulturesOnly>
<ConcurrentGarbageCollection>false</ConcurrentGarbageCollection>
<ServerGarbageCollection>true</ServerGarbageCollection>
Expand Down

0 comments on commit 807cd29

Please sign in to comment.