You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/workflow/trimming/feature-switches.md
+2
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ configurations but their defaults might vary as any SDK can set the defaults dif
36
36
| EnableGeneratedComInterfaceComImportInterop | System.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInterop | When set to true, enables casting source-generated COM object wrappers to built-in COM-based COM interfaces. |
37
37
|_UseManagedNtlm | System.Net.Security.UseManagedNtlm | When set to true, uses built-in managed implementation of NTLM and SPNEGO algorithm for HTTP, SMTP authentication, and NegotiateAuthentication API instead of system provided GSSAPI implementation. |
38
38
|_ComObjectDescriptorSupport | System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported | When set to true, supports creating a TypeDescriptor based view of COM objects. |
39
+
|_DesignerHostSupport | System.ComponentModel.Design.IDesignerHost.IsSupported | When set to true, supports creating design components at runtime. |
40
+
|_DefaultValueAttributeSupport | System.ComponentModel.DefaultValueAttribute.IsSupported | When set to true, supports creating a DefaultValueAttribute at runtime. |
39
41
40
42
Any feature-switch which defines property can be set in csproj file or
41
43
on the command line as any other MSBuild property. Those without predefined property name
Copy file name to clipboardexpand all lines: src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs
-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,6 @@ public AmbientValueAttribute(long value) { }
38
38
publicAmbientValueAttribute(object?value){}
39
39
publicAmbientValueAttribute(floatvalue){}
40
40
publicAmbientValueAttribute(string?value){}
41
-
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
<propertyname="Justification">This warning is left in the product so developers get an ILLink warning when trimming an app with System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported=true.</property>
<propertyname="Justification">This warning is left in the product so developers get an ILLink warning when trimming an app with System.ComponentModel.Design.IDesignerHost.IsSupported=true.</property>
<propertyname="Justification">This warning is left in the product so developers get an ILLink warning when trimming an app with System.StartupHookProvider.IsSupported=true.</property>
<propertyname="Justification">This warning is left in the product so developers get an ILLink warning when trimming an app with System.ComponentModel.DefaultValueAttribute.IsSupported=true.</property>
/// Initializes a new instance of the <see cref='DefaultValueAttribute'/>
31
34
/// class, converting the specified value to the specified type, and using the U.S. English
32
35
/// culture as the translation context.
33
36
/// </summary>
34
-
[RequiresUnreferencedCode("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
[RequiresUnreferencedCode("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
74
+
[RequiresUnreferencedCode("DefaultValueAttribute usage of TypeConverter is not compatible with trimming.")]
73
75
// Looking for ad hoc created TypeDescriptor.ConvertFromInvariantString(Type, string)
Copy file name to clipboardexpand all lines: src/libraries/System.Runtime/ref/System.Runtime.cs
-1
Original file line number
Diff line number
Diff line change
@@ -8047,7 +8047,6 @@ public DefaultValueAttribute(object? value) { }
8047
8047
public DefaultValueAttribute(sbyte value) { }
8048
8048
public DefaultValueAttribute(float value) { }
8049
8049
public DefaultValueAttribute(string? value) { }
8050
-
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
8051
8050
public DefaultValueAttribute([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type type, string? value) { }
0 commit comments