Skip to content

Blazor WASM apps should default new runtime config options to link out unnecessary code #23716

Closed
@eerhardt

Description

@eerhardt

In order to support smaller applications, the following feature switches are being added to dotnet/runtime:

See the SDK support at dotnet/sdk#12362.

The Blazor SDK should default these new properties in order to get as small of app as possible.

<EventSourceSupport Condition="'$(EventSourceSupport)' == ''">false</EventSourceSupport>
<UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">true</UseSystemResourceKeys>
<EnableUnsafeUTF7Encoding Condition="'$(EnableUnsafeUTF7Encoding)' == ''">false</EnableUnsafeUTF7Encoding>

<RuntimeHostConfigurationOption Include="System.Net.Http.EnableActivityPropagation"
                                Value="false"
                                Trim="true" />

Note the Debugger.IsSupported is not implemented yet.

@pranavkm @SteveSandersonMS

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions