Skip to content

Commit

Permalink
DefaultRuntimeHostConfigurationOptions for WinForms trimming (#41702)
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshanF authored Jul 9, 2024
1 parent 9e47361 commit 8ca5983
Showing 1 changed file with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,16 @@ Copyright (c) .NET Foundation. All rights reserved.
Value="$(_AggressiveAttributeTrimming)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.ComponentModel.DefaultValueAttribute.IsSupported"
Condition="'$(_DefaultValueAttributeSupport)' != ''"
Value="$(_DefaultValueAttributeSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.ComponentModel.Design.IDesignerHost.IsSupported"
Condition="'$(_DesignerHostSupport)' != ''"
Value="$(_DesignerHostSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization"
Condition="'$(EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization)' != ''"
Value="$(EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization)"
Expand Down Expand Up @@ -534,6 +544,11 @@ Copyright (c) .NET Foundation. All rights reserved.
Value="$(EventSourceSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Drawing.Design.UITypeEditor.IsSupported"
Condition="'$(_WinFormsUITypeEditorSupport)' != ''"
Value="$(_WinFormsUITypeEditorSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.GC.Concurrent"
Condition="'$(ConcurrentGarbageCollection)' != ''"
Value="$(ConcurrentGarbageCollection)" />
Expand Down Expand Up @@ -683,6 +698,41 @@ Copyright (c) .NET Foundation. All rights reserved.
Value="$(UseWindowsThreadPool)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.ActiveXImpl.IsSupported"
Condition="'$(_ActiveXImplSupport)' != ''"
Value="$(_ActiveXImplSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.Binding.IsSupported"
Condition="'$(_WinFormsBindingSupport)' != ''"
Value="$(_WinFormsBindingSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.Control.AreDesignTimeFeaturesSupported"
Condition="'$(_WinFormsDesignTimeFeaturesSupport)' != ''"
Value="$(_WinFormsDesignTimeFeaturesSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.Control.UseComponentModelRegisteredTypes"
Condition="'$(_UseComponentModelRegisteredTypes)' != ''"
Value="$(_UseComponentModelRegisteredTypes)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.ImageIndexConverter.IsSupported"
Condition="'$(_WinFormsImageIndexConverterSupport)' != ''"
Value="$(_WinFormsImageIndexConverterSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.MdiWindowDialog.IsSupported"
Condition="'$(_MdiWindowDialogSupport)' != ''"
Value="$(_MdiWindowDialogSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Windows.Forms.Primitives.TypeConverterHelper.UseComponentModelRegisteredTypes"
Condition="'$(_UseComponentModelRegisteredTypes)' != ''"
Value="$(_UseComponentModelRegisteredTypes)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Xml.XmlResolver.IsNetworkingEnabledByDefault"
Condition="'$(XmlResolverIsNetworkingEnabledByDefault)' != ''"
Value="$(XmlResolverIsNetworkingEnabledByDefault)"
Expand Down

0 comments on commit 8ca5983

Please sign in to comment.