-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtimeos-wasiRelated to WASI variant of arch-wasmRelated to WASI variant of arch-wasm
Milestone
Description
Background and motivation
Adding new RID for compiling Mono to WebAssembly System Interface platform.
Related discussion #77780 and #78376
API Proposal
namespace System;
public sealed class OperatingSystem : ISerializable, ICloneable
{
+ public static bool IsWasi();
}API Usage
if (OperatingSystem.IsWasi())
{
throw new PlatformNotSupportedException();
}Alternative Designs
WASI is abreviation so it could be all upper case.
public static bool IsWASI();
Risks
No response
SommerEngineering
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtimeos-wasiRelated to WASI variant of arch-wasmRelated to WASI variant of arch-wasm