From 04586c02de7302ca90ff122ba3a027c1e91332b8 Mon Sep 17 00:00:00 2001 From: Eriawan Kusumawardhono Date: Thu, 10 Dec 2020 14:11:14 +0700 Subject: [PATCH] migrate Microsoft.Interop.Tests to target .NET Core 3.1 (#8411) * migrate Microsoft.Interop.Tests to target .NET Core 3.1 * put the stylecop nuget and stylecop.json * refactor Microsoft.Interop.Tests.csproj to have x64 platform target * Update build-powertoys-steps.yml Getting interop tests actually on CI Co-authored-by: Clint Rutkas --- .../ci/templates/build-powertoys-steps.yml | 1 + .../Microsoft.Interop.Tests.csproj | 197 +++++++----------- src/common/interop-tests/packages.config | 5 - 3 files changed, 75 insertions(+), 128 deletions(-) delete mode 100644 src/common/interop-tests/packages.config diff --git a/.pipelines/ci/templates/build-powertoys-steps.yml b/.pipelines/ci/templates/build-powertoys-steps.yml index 8839b0a9c8..a90befc692 100644 --- a/.pipelines/ci/templates/build-powertoys-steps.yml +++ b/.pipelines/ci/templates/build-powertoys-steps.yml @@ -88,6 +88,7 @@ steps: **\Wox.Test.dll **\*Microsoft.PowerToys.Settings.UI.UnitTests.dll **\UnitTest-ColorPickerUI.dll + **\Microsoft.Interop.Tests.dll !**\obj\** # .NetFramework assemblies - task: VSTest@2 diff --git a/src/common/interop-tests/Microsoft.Interop.Tests.csproj b/src/common/interop-tests/Microsoft.Interop.Tests.csproj index c8582f3940..3c7656a17a 100644 --- a/src/common/interop-tests/Microsoft.Interop.Tests.csproj +++ b/src/common/interop-tests/Microsoft.Interop.Tests.csproj @@ -1,136 +1,87 @@ - - - - + - + - interop-tests - Microsoft Corp. - Copyright (C) 2020 Microsoft Corp. + netcoreapp3.1 + false + + win-x64 + false + false + win-x64 + x64 + interop-tests + Microsoft Corp. + Copyright (C) 2020 Microsoft Corp. - - - - - - - - - - - - - - - - - - - - - - - - - - + - Debug - AnyCPU - {437AD818-3F1F-4CA5-A79B-25233A157026} - Library - Properties - Microsoft.Interop.Tests - Microsoft.Interop.Tests - v4.7.2 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 15.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - + true - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x64 - 7.3 - prompt - MinimumRecommendedRules.ruleset - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - 7.3 - prompt - MinimumRecommendedRules.ruleset - - - true - - - true - - - - ..\..\..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - - - ..\..\..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll - - - + + + Debug + Library + Microsoft.Interop.Tests + Microsoft.Interop.Tests + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + prompt + MinimumRecommendedRules.ruleset + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + prompt + MinimumRecommendedRules.ruleset + + + true + + + true + + + + + + + + + + + + 3.3.0 + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + 1.1.118 + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + GlobalSuppressions.cs - - - - Code - - - + - StyleCop.json - - + StyleCop.json + + - - 3.3.0 - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - 1.1.118 - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + - - - {f055103b-f80b-4d0c-bf48-057c55620033} - interop - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file + + diff --git a/src/common/interop-tests/packages.config b/src/common/interop-tests/packages.config deleted file mode 100644 index a80302faef..0000000000 --- a/src/common/interop-tests/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file