Closed
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