Closed andrewmd5 closed 1 year ago
Is there a way to detect if the current platform is WASI? I could pass some sort of environment variable, but it would be nice to have a means built-in.
The answer is var isWasm = RuntimeInformation.OSArchitecture is Architecture.Wasm;
var isWasm = RuntimeInformation.OSArchitecture is Architecture.Wasm;
Is there a way to detect if the current platform is WASI? I could pass some sort of environment variable, but it would be nice to have a means built-in.