We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d12c4 commit 495855aCopy full SHA for 495855a
src/BenchmarkDotNet/Detectors/Cpu/Windows/MosCpuDetector.cs
@@ -1,4 +1,5 @@
1
-using System.Collections.Generic;
+using System;
2
+using System.Collections.Generic;
3
using System.Linq;
4
using System.Management;
5
using BenchmarkDotNet.Extensions;
@@ -14,7 +15,8 @@ internal class MosCpuDetector : ICpuDetector
14
15
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
16
#endif
17
public bool IsApplicable() => OsDetector.IsWindows() &&
- RuntimeInformation.IsFullFramework &&
18
+ (RuntimeInformation.IsFullFramework ||
19
+ (RuntimeInformation.IsNetCore && Environment.Version.Major >= 5)) &&
20
!RuntimeInformation.IsMono;
21
22
#if NET6_0_OR_GREATER
0 commit comments