Skip to content

Add SDK Support for new runtime feature switches #12217

@eerhardt

Description

@eerhardt

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:

We also should add Trim='true' for the System.Globalization.Invariant RuntimeHostConfigurationOption so the non-invariant globalization code can be trimmed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions