diff --git a/src/BenchmarkDotNet/Validators/DotNetSdkVersionValidator.cs b/src/BenchmarkDotNet/Validators/DotNetSdkVersionValidator.cs index f444adb8e4..8b61a0d51c 100644 --- a/src/BenchmarkDotNet/Validators/DotNetSdkVersionValidator.cs +++ b/src/BenchmarkDotNet/Validators/DotNetSdkVersionValidator.cs @@ -222,11 +222,13 @@ private static string GetSdkVersionFromMoniker(RuntimeMoniker runtimeMoniker) RuntimeMoniker.Mono70 => "7.0", RuntimeMoniker.Mono80 => "8.0", RuntimeMoniker.Mono90 => "9.0", + RuntimeMoniker.Wasm => Portability.RuntimeInformation.IsNetCore && CoreRuntime.TryGetVersion(out var version) ? $"{version.Major}.{version.Minor}" : "5.0", RuntimeMoniker.WasmNet50 => "5.0", RuntimeMoniker.WasmNet60 => "6.0", RuntimeMoniker.WasmNet70 => "7.0", RuntimeMoniker.WasmNet80 => "8.0", RuntimeMoniker.WasmNet90 => "9.0", + RuntimeMoniker.MonoAOTLLVM => Portability.RuntimeInformation.IsNetCore && CoreRuntime.TryGetVersion(out var version) ? $"{version.Major}.{version.Minor}" : "6.0", RuntimeMoniker.MonoAOTLLVMNet60 => "6.0", RuntimeMoniker.MonoAOTLLVMNet70 => "7.0", RuntimeMoniker.MonoAOTLLVMNet80 => "8.0",