Skip to content

OSPlatform support for WASM/Blazor #33328

@terrajobst

Description

@terrajobst

For WASM, we need to provide the capability to do runtime checks, which means we should provide an OSPlatform entry for it:

namespace System.Runtime.InteropServices
{
    public partial enum Architecture
    {
         Wasm
    }
    public partial struct OSPlatform
    {
         public static OSPlatform Browser { get; } = new OSPlatform(nameof(Browser));
    }
}

@dotnet/fxdc @marek-safar @mhutch @lewing @SteveSandersonMS @danroth27

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions