From 7b519c8e428c8dbc059b0854bc01632ad5c950e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Fri, 20 Dec 2024 14:01:29 +0100 Subject: [PATCH] Simplify adapter props and targets (#4397) --- eng/verify-nupkgs.ps1 | 2 +- .../MSTest.TestAdapter.NonWindows.nuspec | 18 ++-- .../MSTest.TestAdapter.csproj | 2 +- .../MSTest.TestAdapter.nuspec | 22 ++--- .../MSTest.TestAdapter.targets | 0 .../MSTest.TestAdapter.targets | 88 ------------------- .../build/uwp/MSTest.TestAdapter.props | 29 +----- .../build/uwp/MSTest.TestAdapter.targets | 34 +++++-- 8 files changed, 44 insertions(+), 151 deletions(-) rename src/Adapter/MSTest.TestAdapter/build/{net => common}/MSTest.TestAdapter.targets (100%) delete mode 100644 src/Adapter/MSTest.TestAdapter/build/netfx-netcore-netstandard/MSTest.TestAdapter.targets diff --git a/eng/verify-nupkgs.ps1 b/eng/verify-nupkgs.ps1 index f13aa658aa..bef6bb99db 100644 --- a/eng/verify-nupkgs.ps1 +++ b/eng/verify-nupkgs.ps1 @@ -22,7 +22,7 @@ function Confirm-NugetPackages { "MSTest.Sdk" = 15; "MSTest.Internal.TestFx.Documentation" = 10; "MSTest.TestFramework" = 148; - "MSTest.TestAdapter" = 82; + "MSTest.TestAdapter" = 74; "MSTest" = 6; "MSTest.Analyzers" = 10; } diff --git a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.NonWindows.nuspec b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.NonWindows.nuspec index 9e6505d523..62d93b1975 100644 --- a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.NonWindows.nuspec +++ b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.NonWindows.nuspec @@ -36,48 +36,42 @@ - - + - - + - - + - - + - - + - - + diff --git a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj index ec2308022d..3c92cb4996 100644 --- a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj +++ b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj @@ -101,7 +101,7 @@ PreserveNewest - + PreserveNewest diff --git a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.nuspec b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.nuspec index fab41babbc..845b2f2dee 100644 --- a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.nuspec +++ b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.nuspec @@ -44,8 +44,7 @@ - - + @@ -53,23 +52,20 @@ - - - + - - + @@ -78,32 +74,28 @@ - - + - - + - - + - - + diff --git a/src/Adapter/MSTest.TestAdapter/build/net/MSTest.TestAdapter.targets b/src/Adapter/MSTest.TestAdapter/build/common/MSTest.TestAdapter.targets similarity index 100% rename from src/Adapter/MSTest.TestAdapter/build/net/MSTest.TestAdapter.targets rename to src/Adapter/MSTest.TestAdapter/build/common/MSTest.TestAdapter.targets diff --git a/src/Adapter/MSTest.TestAdapter/build/netfx-netcore-netstandard/MSTest.TestAdapter.targets b/src/Adapter/MSTest.TestAdapter/build/netfx-netcore-netstandard/MSTest.TestAdapter.targets deleted file mode 100644 index 64fb79bf30..0000000000 --- a/src/Adapter/MSTest.TestAdapter/build/netfx-netcore-netstandard/MSTest.TestAdapter.targets +++ /dev/null @@ -1,88 +0,0 @@ - - - - - $(EnableMSTestRunner) - $(EnableMSTestRunner) - false - true - - - - - Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - PreserveNewest - False - - - Microsoft.TestPlatform.AdapterUtilities.dll - PreserveNewest - False - - - - - - - - - - - - - - - $(MSBuildThisFileDirectory)Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll - - - - - - - - - - - - - - - - - - - - - - - %(CurrentUICultureHierarchy.Identity) - - - - - - - %(MSTestV2Files.UICulture)\%(FileName).dll - PreserveNewest - %(FullPath) - False - - - - - diff --git a/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.props b/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.props index 365706e987..259e47a969 100644 --- a/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.props +++ b/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.props @@ -1,30 +1,7 @@ - - - Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - PreserveNewest - False - - - Microsoft.TestPlatform.AdapterUtilities.dll - PreserveNewest - False - - - - - - - + + true + diff --git a/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.targets b/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.targets index c33b561416..7fac02bef5 100644 --- a/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.targets +++ b/src/Adapter/MSTest.TestAdapter/build/uwp/MSTest.TestAdapter.targets @@ -1,13 +1,31 @@ - - true - - $(EnableMSTestRunner) - $(EnableMSTestRunner) - false - true - + + + Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll + PreserveNewest + False + + + Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll + PreserveNewest + False + + + Microsoft.TestPlatform.AdapterUtilities.dll + PreserveNewest + False + + + + + + +