-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Milestone
Description
We are introducing new runtime options in dotnet/runtime to allow unnecessary code to be trimmed in size sensitive apps (Blazor, Xamarin).
To complete this experience we should add a RuntimeHostConfigurationOption and MSBuild property to set each feature switch. For example:
<RuntimeHostConfigurationOption Include="System.Diagnostics.Tracing.EventSource.IsSupported"
Condition="'$(EventSourceSupport)' != ''"
Value="$(EventSourceSupport)"
Trim="true" />Feature switches being added to dotnet/runtime:
- System.Diagnostics.Tracing.EventSource.IsSupported
- System.Resources.UseSystemResourceKeys
- System.Diagnostics.Debugger.IsSupported
- System.Text.Encoding.EnableUnsafeUTF7Encoding
We also should add Trim='true' for the System.Globalization.Invariant RuntimeHostConfigurationOption so the non-invariant globalization code can be trimmed.
joperezr and sbomer
Metadata
Metadata
Assignees
Labels
No labels