Update Libraries Feature Switches for DynamicCodeSupport (#80397)
authorEric Erhardt <eric.erhardt@microsoft.com>
Tue, 10 Jan 2023 02:29:19 +0000 (20:29 -0600)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 02:29:19 +0000 (18:29 -0800)
docs/workflow/trimming/feature-switches.md

index 5a693bd..7600b3d 100644 (file)
@@ -27,6 +27,7 @@ configurations but their defaults might vary as any SDK can set the defaults dif
 | _EnableConsumingManagedCodeFromNativeHosting | System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting | Getting a managed function from native hosting is disabled when set to false and related functionality can be trimmed. |
 | VerifyDependencyInjectionOpenGenericServiceTrimmability | Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability | When set to true, DependencyInjection will verify trimming annotations applied to open generic services are correct |
 | NullabilityInfoContextSupport | System.Reflection.NullabilityInfoContext.IsSupported | Nullable attributes can be trimmed when set to false |
+| DynamicCodeSupport | System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported | Changes RuntimeFeature.IsDynamicCodeSupported to false to allow testing AOT-safe fallback code without publishing for Native AOT. |
 | _AggressiveAttributeTrimming | System.AggressiveAttributeTrimming | When set to true, aggressively trims attributes to allow for the most size savings possible, even if it could result in runtime behavior changes |
 
 Any feature-switch which defines property can be set in csproj file or