From b2ad865b85f2219e93e3cd6c8490d0454c9a622d Mon Sep 17 00:00:00 2001 From: Medeni Baykal <433724+Haplois@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:22:15 +0100 Subject: [PATCH] Fixed .nuspec files to mitigate NU5050 error. (#1011) --- scripts/Build.ps1 | 7 +- src/Package/MSTest.TestAdapter.Enu.nuspec | 85 ------------------- src/Package/MSTest.TestFramework.enu.nuspec | 71 ---------------- src/Package/MSTest.TestFramework.nuspec | 12 +-- .../MSTest.TestFramework.symbols.nuspec | 16 ++-- 5 files changed, 13 insertions(+), 178 deletions(-) delete mode 100644 src/Package/MSTest.TestAdapter.Enu.nuspec delete mode 100644 src/Package/MSTest.TestFramework.enu.nuspec diff --git a/scripts/Build.ps1 b/scripts/Build.ps1 index 774f42c2d8..857377a9f5 100644 --- a/scripts/Build.ps1 +++ b/scripts/Build.ps1 @@ -247,12 +247,7 @@ function Create-NugetPackages { "" > "$stagingDir\_._" # Copy over the nuspecs to the staging directory - if ($TFB_Official) { - $nuspecFiles = @("MSTest.TestAdapter.nuspec", "MSTest.TestAdapter.symbols.nuspec", "MSTest.TestFramework.nuspec", "MSTest.TestFramework.symbols.nuspec", "MSTest.Internal.TestFx.Documentation.nuspec") - } - else { - $nuspecFiles = @("MSTest.TestAdapter.Enu.nuspec", "MSTest.TestFramework.enu.nuspec") - } + $nuspecFiles = @("MSTest.TestAdapter.nuspec", "MSTest.TestAdapter.symbols.nuspec", "MSTest.TestFramework.nuspec", "MSTest.TestFramework.symbols.nuspec", "MSTest.Internal.TestFx.Documentation.nuspec") foreach ($file in $nuspecFiles) { Copy-Item $tfSrcPackageDir\$file $stagingDir -Force diff --git a/src/Package/MSTest.TestAdapter.Enu.nuspec b/src/Package/MSTest.TestAdapter.Enu.nuspec deleted file mode 100644 index 853c0c4c34..0000000000 --- a/src/Package/MSTest.TestAdapter.Enu.nuspec +++ /dev/null @@ -1,85 +0,0 @@ - - - - MSTest.TestAdapter - 1.1.17 - MSTest.TestAdapter.Enu - true - Microsoft - Microsoft - - The adapter to discover and execute MSTest Framework based tests. - - Supported platforms: - - .NET 4.5.0+ - - .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017) - - .NET 5.0 Windows.17763+ (WinUI Desktop Apps) (Visual Studio 2019) - - ASP.NET Core 1.0+ (Visual Studio 2017) - - https://github.com/microsoft/testfx - MIT - https://licenses.nuget.org/MIT - http://go.microsoft.com/fwlink/?LinkID=288859 - Icon.png - © Microsoft Corporation. All rights reserved. - MSTest TestFramework TestAdapter VisualStudio Unittest MSTestV2 Microsoft - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Package/MSTest.TestFramework.enu.nuspec b/src/Package/MSTest.TestFramework.enu.nuspec deleted file mode 100644 index de36aaf02e..0000000000 --- a/src/Package/MSTest.TestFramework.enu.nuspec +++ /dev/null @@ -1,71 +0,0 @@ - - - - MSTest.TestFramework - 1.1.17 - MSTest.TestFramework.Enu - true - Microsoft - Microsoft - This is MSTest V2, the evolution of Microsoft's Test Framework. - - This is MSTest V2, the evolution of Microsoft's Test Framework. - - Supported platforms: - - .NET 4.5.0+ - - .NET Core 1.0+ (Universal Windows Apps 10+) - - .NET 5.0 Windows.17763+ (WinUI Desktop Apps) (Visual Studio 2019) - - ASP.NET Core 1.0+ - - To discover and execute tests install MSTest.TestAdapter. - - https://github.com/microsoft/testfx - MIT - https://licenses.nuget.org/MIT - http://go.microsoft.com/fwlink/?LinkID=288859 - Icon.png - © Microsoft Corporation. All rights reserved. - MSTest TestFramework Unittest MSTestV2 Microsoft Test Testing TDD Framework - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Package/MSTest.TestFramework.nuspec b/src/Package/MSTest.TestFramework.nuspec index e18d299ff0..a071a50440 100644 --- a/src/Package/MSTest.TestFramework.nuspec +++ b/src/Package/MSTest.TestFramework.nuspec @@ -43,33 +43,29 @@ - - + - - + - - + - - + diff --git a/src/Package/MSTest.TestFramework.symbols.nuspec b/src/Package/MSTest.TestFramework.symbols.nuspec index ab9df30e31..4b28269ceb 100644 --- a/src/Package/MSTest.TestFramework.symbols.nuspec +++ b/src/Package/MSTest.TestFramework.symbols.nuspec @@ -42,9 +42,9 @@ - - + + @@ -52,9 +52,9 @@ - - + + @@ -62,9 +62,9 @@ - - + + @@ -72,9 +72,9 @@ - - + +