Skip to content

Commit

Permalink
Fix DiscovererHelper condition
Browse files Browse the repository at this point in the history
dotnet#7965 wasn't quite right as it would be true on full framework
  • Loading branch information
Steve Pfister committed Sep 29, 2021
1 parent 9a94c6b commit cd06045
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal static class DiscovererHelpers
{
private static readonly Lazy<bool> s_isMonoRuntime = new Lazy<bool>(() => Type.GetType("Mono.RuntimeStructs") != null);
public static bool IsMonoRuntime => s_isMonoRuntime.Value;
public static bool IsRunningOnNetCoreApp { get; } = (Environment.Version.Major >= 5 || RuntimeInformation.FrameworkDescription.StartsWith(".NET", StringComparison.OrdinalIgnoreCase));
public static bool IsRunningOnNetCoreApp { get; } = (Environment.Version.Major >= 5 || !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase));
public static bool IsRunningOnNetFramework { get; } = RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase);

public static bool TestPlatformApplies(TestPlatforms platforms) =>
Expand Down

0 comments on commit cd06045

Please sign in to comment.