From a2765452c6eaf13f0895eac340e35aabe0644cf1 Mon Sep 17 00:00:00 2001 From: nohwnd Date: Mon, 3 Aug 2020 10:34:13 +0200 Subject: [PATCH] Revert changes --- src/xunit.runner.visualstudio/Utility/RunSettings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xunit.runner.visualstudio/Utility/RunSettings.cs b/src/xunit.runner.visualstudio/Utility/RunSettings.cs index bc267846..2724ea11 100644 --- a/src/xunit.runner.visualstudio/Utility/RunSettings.cs +++ b/src/xunit.runner.visualstudio/Utility/RunSettings.cs @@ -118,12 +118,12 @@ public bool IsMatchingTargetFramework() TargetFrameworkVersion.StartsWith("FrameworkCore10", StringComparison.OrdinalIgnoreCase)); #elif WINDOWS_UAP return string.IsNullOrWhiteSpace(TargetFrameworkVersion) || // Short circuit on null since we don't have anything to detect, return true - TargetFrameworkVersion.StartsWith(".NETCore,", StringComparison.OrdinalIgnoreCase) || + (TargetFrameworkVersion.StartsWith(".NETCore,", StringComparison.OrdinalIgnoreCase) || TargetFrameworkVersion.StartsWith("Uap,", StringComparison.OrdinalIgnoreCase) || TargetFrameworkVersion.StartsWith("FrameworkUap10", StringComparison.OrdinalIgnoreCase)); #else if (!string.IsNullOrWhiteSpace(TargetFrameworkVersion) && - TargetFrameworkVersion.StartsWith(".NETCore", StringComparison.OrdinalIgnoreCase) || + (TargetFrameworkVersion.StartsWith(".NETCore", StringComparison.OrdinalIgnoreCase) || TargetFrameworkVersion.StartsWith("Uap,", StringComparison.OrdinalIgnoreCase) || TargetFrameworkVersion.StartsWith("FrameworkCore10", StringComparison.OrdinalIgnoreCase) || TargetFrameworkVersion.StartsWith("FrameworkUap10", StringComparison.OrdinalIgnoreCase)))