Skip to content

[browser] Support AppContext switches on runtime #97449

@maraf

Description

@maraf

AppContext switches defined in csproj are not available on runtime

<ItemGroup>
    ...
    <RuntimeHostConfigurationOption Include="System.Runtime.OptionalFeatureBehavior"
                                    Condition="'$(UnoptimizedUserFacingBehavior)' != ''"
                                    Value="$(UnoptimizedUserFacingBehavior)"
                                    Link="false" />
    ...
</ItemGroup>

On other platforms, they end up in runtime.config.json. We should put them into blazor.boot.json as that's the only config required (for both wasmbrowser and blazor experience)

Metadata

Metadata

Assignees

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutarch-wasmWebAssembly architecturearea-Build-monoos-browserBrowser variant of arch-wasm

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions