From f70bb54c78e256362eb0bf0c526ccac2898e6295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Thu, 23 Jan 2025 13:12:19 +0100 Subject: [PATCH] Drop unsupported frameworks (#10565) Update to net8 and net9. --- Directory.Build.props | 67 +- azure-pipelines-official.yml | 6 +- eng/SourceBuildPrebuiltBaseline.xml | 24 +- eng/Version.Details.xml | 2 +- eng/Versions.props | 37 +- eng/verify-nupkgs.ps1 | 10 +- playground/MSTest1/MSTest1.csproj | 4 +- playground/MSTest2/MSTest2.csproj | 4 +- .../TestPlatform.Playground.csproj | 36 +- scripts/perf/perf.ps1 | 12 +- scripts/test.ps1 | 14 +- scripts/test.sh | 4 +- src/AttachVS/AttachVS.csproj | 2 +- .../DumpMinitool.arm64.csproj | 9 +- .../DumpMinitool.x86/DumpMinitool.x86.csproj | 11 +- .../DumpMinitool/DumpMinitool.csproj | 9 +- ...atform.Extensions.EventLogCollector.csproj | 2 +- .../{net462 => net48}/PublicAPI.Shipped.txt | 0 .../{net462 => net48}/PublicAPI.Unshipped.txt | 0 .../{net6.0 => net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../{net7.0 => net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 ...osoft.TestPlatform.AdapterUtilities.csproj | 10 +- ...osoft.TestPlatform.AdapterUtilities.nuspec | 16 - .../Microsoft.TestPlatform.Build.csproj | 7 +- .../Microsoft.TestPlatform.Client.csproj | 9 +- .../{net462 => net48}/PublicAPI.Shipped.txt | 0 .../{net462 => net48}/PublicAPI.Unshipped.txt | 0 .../{net6.0 => net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../{net7.0 => net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../Microsoft.TestPlatform.Common.csproj | 4 +- .../{net6.0 => net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../{net7.0 => net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../Utilities/AssemblyProperties.cs | 2 +- ...TestPlatform.CommunicationUtilities.csproj | 4 +- .../{net6.0 => net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../Extensions/StringBuilderPolyfill.cs | 12 - .../Friends.cs | 3 + ...icrosoft.TestPlatform.CoreUtilities.csproj | 21 +- .../PublicAPI/net481/PublicAPI.Shipped.txt | 15 + .../PublicAPI.Unshipped.txt | 0 .../PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 .../Friends.cs | 3 + ...rosoft.TestPlatform.CrossPlatEngine.csproj | 4 +- .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 .../HangDumperFactory.cs | 2 +- ...tform.Extensions.BlameDataCollector.csproj | 13 +- .../ProcDumpArgsBuilder.cs | 11 +- .../PublicAPI/net48}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net48}/PublicAPI.Unshipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 .../{net472 => net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 ....TestPlatform.Extensions.HtmlLogger.csproj | 8 +- .../PublicAPI/net48}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net48}/PublicAPI.Unshipped.txt | 0 ...t.TestPlatform.Extensions.TrxLogger.csproj | 23 +- .../Microsoft.TestPlatform.ObjectModel.csproj | 10 +- .../Microsoft.TestPlatform.ObjectModel.nuspec | 22 +- .../PublicAPI/PublicAPI.Shipped.txt | 1 - .../{net7.0 => net6.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 ...t.TestPlatform.PlatformAbstractions.csproj | 24 +- .../PublicAPI/PublicAPI.Shipped.txt | 1 - .../PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0/PublicAPI.Unshipped.txt | 1 + .../Hosting/DefaultTestHostManager.cs | 2 +- .../Hosting/DotnetTestHostManager.cs | 6 +- ...osoft.TestPlatform.TestHostProvider.csproj | 8 +- .../PublicAPI/net48}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net48}/PublicAPI.Unshipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 .../{net462 => net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI.Unshipped.txt | 0 .../Microsoft.TestPlatform.Utilities.csproj | 8 +- .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 ...form.VsTestConsole.TranslationLayer.csproj | 4 +- .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 src/SettingsMigrator/SettingsMigrator.csproj | 11 +- .../datacollector.arm64.csproj | 17 +- .../PublicAPI/net48}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net48}/PublicAPI.Unshipped.txt | 0 .../PublicAPI/net6.0/PublicAPI.Shipped.txt | 1 - .../PublicAPI/net6.0/PublicAPI.Unshipped.txt | 1 - .../PublicAPI/net7.0/PublicAPI.Shipped.txt | 1 - .../PublicAPI/net7.0/PublicAPI.Unshipped.txt | 1 - .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 .../PublicAPI/net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net9.0}/PublicAPI.Unshipped.txt | 0 .../netcoreapp3.1/PublicAPI.Shipped.txt | 1 - .../netcoreapp3.1/PublicAPI.Unshipped.txt | 1 - src/datacollector/app.config | 12 + src/datacollector/datacollector.csproj | 17 +- .../Microsoft.CodeCoverage.csproj | 8 +- .../Microsoft.CodeCoverage.nuspec | 4 +- .../Microsoft.NET.Test.Sdk.nuspec | 8 +- .../Microsoft.TestPlatform.CLI.csproj | 43 +- .../Microsoft.TestPlatform.CLI.nuspec | 800 +++++------ ...rosoft.TestPlatform.CLI.sourcebuild.nuspec | 2 - ...estPlatform.CLI.sourcebuild.product.nuspec | 2 - .../Microsoft.TestPlatform.Portable.csproj | 37 +- .../Microsoft.TestPlatform.Portable.nuspec | 1201 +++++++++-------- .../Microsoft.TestPlatform.TestHost.csproj | 4 +- .../Microsoft.TestPlatform.TestHost.nuspec | 110 +- .../Microsoft.TestPlatform.csproj | 49 +- .../Microsoft.TestPlatform.nuspec | 1167 ++++++++-------- ...tudio.TestTools.TestPlatform.V2.CLI.csproj | 9 +- src/testhost.arm64/testhost.arm64.csproj | 8 +- src/testhost.x86/app.config | 12 + src/testhost.x86/testhost.x86.csproj | 12 +- src/testhost/testhost.csproj | 8 +- .../vstest.console.arm64.csproj | 8 +- .../InProcessVsTestConsoleWrapper.cs | 2 +- .../PublicAPI/net462/PublicAPI.Shipped.txt | 1 - .../PublicAPI/net462/PublicAPI.Unshipped.txt | 1 - .../PublicAPI/net48}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net48}/PublicAPI.Unshipped.txt | 0 .../PublicAPI/net6.0/PublicAPI.Shipped.txt | 1 - .../PublicAPI/net6.0/PublicAPI.Unshipped.txt | 1 - .../PublicAPI/net7.0/PublicAPI.Shipped.txt | 1 - .../PublicAPI/net7.0/PublicAPI.Unshipped.txt | 1 - .../PublicAPI/net8.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0}/PublicAPI.Unshipped.txt | 0 .../PublicAPI/net9.0}/PublicAPI.Shipped.txt | 0 .../PublicAPI/net9.0}/PublicAPI.Unshipped.txt | 0 src/vstest.console/app.config | 12 + src/vstest.console/vstest.console.csproj | 14 +- test/.editorconfig | 3 + ...ensions.EventLogCollector.UnitTests.csproj | 2 +- .../Intent.Primitives.csproj | 2 +- test/Intent/Intent.csproj | 2 +- .../AcceptanceTestBase.cs | 26 +- .../AssemblyMetadataProviderTests.cs | 16 +- .../AssemblyPropertiesTests.cs | 4 +- .../BlameDataCollectorTests.cs | 33 +- .../DataCollectorTests.Coverlet.cs | 2 +- .../DiaSessionTests.cs | 8 +- .../DotnetArchitectureSwitchTests.cs | 36 +- .../DotnetHostArchitectureVerifierTests.cs | 2 +- .../DotnetTestMSBuildOutputTests.cs | 4 +- .../ExecutionTests.cs | 12 +- .../Extension/CompatibilityRowsBuilder.cs | 4 +- .../Extension/NetCoreRunnerAttribute.cs | 4 +- ...tCoreTargetFrameworkDataSourceAttribute.cs | 4 +- .../Extension/NetFrameworkRunnerAttribute.cs | 6 +- .../TestPlatformCompatibilityDataSource.cs | 2 +- .../FrameworkTests.cs | 8 +- ...latform.Acceptance.IntegrationTests.csproj | 14 +- .../TranslationLayer/TelemetryPerfTestBase.cs | 2 +- .../ProcessesInteractionTests.cs | 4 +- .../SelfContainedAppTests.cs | 4 +- .../DifferentTestFrameworkSimpleTests.cs | 12 +- ...RunTestsWithDifferentConfigurationTests.cs | 6 +- ...Platform.AdapterUtilities.UnitTests.csproj | 4 +- ...rosoft.TestPlatform.Build.UnitTests.csproj | 4 +- ...osoft.TestPlatform.Client.UnitTests.csproj | 10 +- ...osoft.TestPlatform.Common.UnitTests.csproj | 10 +- ...icationUtilities.Platform.UnitTests.csproj | 11 +- ...rm.CommunicationUtilities.UnitTests.csproj | 6 +- ...estPlatform.CoreUtilities.UnitTests.csproj | 24 +- ...ProcDataCollectionExtensionManagerTests.cs | 2 +- ...tPlatform.CrossPlatEngine.UnitTests.csproj | 12 +- ...nsions.BlameDataCollector.UnitTests.csproj | 11 +- .../XmlReaderWriterTests.cs | 20 - ...orm.Extensions.HtmlLogger.UnitTests.csproj | 11 +- ...form.Extensions.TrxLogger.UnitTests.csproj | 11 +- ....TestPlatform.ObjectModel.UnitTests.csproj | 11 +- .../Hosting/DotnetTestHostManagerTests.cs | 32 +- ...Platform.TestHostProvider.UnitTests.csproj | 11 +- .../IntegrationTestBase.cs | 10 +- .../IntegrationTestEnvironment.cs | 4 +- ...icrosoft.TestPlatform.TestUtilities.csproj | 10 +- ...ft.TestPlatform.Utilities.UnitTests.csproj | 11 +- .../MigratorTests.cs | 4 +- .../SettingsMigrator.UnitTests.csproj | 2 +- .../ArchitectureSwitch.csproj | 4 +- test/TestAssets/Directory.Build.props | 4 +- .../NewtonSoftDependency.csproj | 2 +- .../SelfContainedAppTestProject.csproj | 4 +- .../SimpleTestProjectARM64.csproj} | 3 +- .../UnitTest1.cs | 0 test/TestAssets/TestAssets.sln | 2 +- test/TestAssets/Tools/Tools.csproj | 2 +- test/TestAssets/child-crash/UnitTest1.cs | 2 +- .../TestAssets/child-crash/child-crash.csproj | 2 +- test/TestAssets/child-hang/UnitTest1.cs | 2 +- test/TestAssets/child-hang/child-hang.csproj | 2 +- test/TestAssets/crash/crash.csproj | 2 +- .../hanging-child/hanging-child.csproj | 2 +- .../MSTest1000Passing.csproj | 2 +- .../MSTest100Passing/MSTest100Passing.csproj | 2 +- .../MSTest10kPassing/MSTest10kPassing.csproj | 2 +- .../MSTest1Passing/MSTest1Passing.csproj | 2 +- .../NUnit1000Passing/NUnit1000Passing.csproj | 2 +- .../NUnit100Passing/NUnit100Passing.csproj | 2 +- .../NUnit10kPassing/NUnit10kPassing.csproj | 2 +- .../NUnit1Passing/NUnit1Passing.csproj | 2 +- .../Perfy.TestAdapter.csproj | 2 +- .../XUnit1000Passing/XUnit1000Passing.csproj | 2 +- .../XUnit100Passing/XUnit100Passing.csproj | 2 +- .../XUnit10kPassing/XUnit10kPassing.csproj | 2 +- .../XUnit1Passing/XUnit1Passing.csproj | 2 +- .../problematic-child.csproj | 2 +- test/TestAssets/timeout/timeout.csproj | 2 +- .../TranslationLayer.UnitTests.csproj | 8 +- .../coverlet.collector.csproj | 2 +- .../datacollector.PlatformTests.csproj | 11 +- .../datacollector.UnitTests.csproj | 11 +- .../testhost.UnitTests.csproj | 13 +- .../vstest.ProgrammerTests.csproj | 6 +- .../Internal/ConsoleLoggerTests.cs | 17 +- .../vstest.console.UnitTests.csproj | 12 +- 227 files changed, 2378 insertions(+), 2314 deletions(-) rename src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/{net462 => net48}/PublicAPI.Shipped.txt (100%) rename src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/{net462 => net48}/PublicAPI.Unshipped.txt (100%) rename src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/{net6.0 => net8.0}/PublicAPI.Shipped.txt (100%) rename src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/{net6.0 => net8.0}/PublicAPI.Unshipped.txt (100%) rename src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/{net7.0 => net9.0}/PublicAPI.Shipped.txt (100%) rename src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/{net7.0 => net9.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.Client/PublicAPI/{net462 => net48}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.Client/PublicAPI/{net462 => net48}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.Client/PublicAPI/{net6.0 => net8.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.Client/PublicAPI/{net6.0 => net8.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.Client/PublicAPI/{net7.0 => net9.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.Client/PublicAPI/{net7.0 => net9.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.Common/PublicAPI/{net6.0 => net8.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.Common/PublicAPI/{net6.0 => net8.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.Common/PublicAPI/{net7.0 => net9.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.Common/PublicAPI/{net7.0 => net9.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/{net6.0 => net8.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/{net6.0 => net8.0}/PublicAPI.Unshipped.txt (100%) delete mode 100644 src/Microsoft.TestPlatform.CoreUtilities/Extensions/StringBuilderPolyfill.cs create mode 100644 src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net481/PublicAPI.Shipped.txt rename src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/{net6.0_and_net7.0 => net481}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/{net6.0_and_net7.0 => net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.ObjectModel/PublicAPI/net7.0 => Microsoft.TestPlatform.CoreUtilities/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net7.0 => Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net7.0 => Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net6.0 => Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net48}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net6.0 => Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net48}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net7.0 => Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net7.0 => Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/{net472 => net9.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/{net472 => net9.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net6.0 => Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net48}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net6.0 => Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net48}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.ObjectModel/PublicAPI/{net7.0 => net6.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.ObjectModel/PublicAPI/{netcoreapp3.1 => net6.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.ObjectModel/PublicAPI/{netcoreapp3.1 => net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net6.0_and_net7.0 => Microsoft.TestPlatform.ObjectModel/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/{net6.0_and_net7.0 => net8.0}/PublicAPI.Shipped.txt (100%) create mode 100644 src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net8.0/PublicAPI.Unshipped.txt rename src/{Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net7.0 => Microsoft.TestPlatform.TestHostProvider/PublicAPI/net48}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net7.0 => Microsoft.TestPlatform.TestHostProvider/PublicAPI/net48}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net462 => Microsoft.TestPlatform.TestHostProvider/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net462 => Microsoft.TestPlatform.TestHostProvider/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/{net462 => net9.0}/PublicAPI.Shipped.txt (100%) rename src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/{net462 => net9.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.TestHostProvider/PublicAPI/net6.0 => Microsoft.TestPlatform.Utilities/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.TestHostProvider/PublicAPI/net6.0 => Microsoft.TestPlatform.Utilities/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.TestHostProvider/PublicAPI/net7.0 => Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.TestHostProvider/PublicAPI/net7.0 => Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.Utilities/PublicAPI/net6.0 => datacollector/PublicAPI/net48}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.Utilities/PublicAPI/net6.0 => datacollector/PublicAPI/net48}/PublicAPI.Unshipped.txt (100%) delete mode 100644 src/datacollector/PublicAPI/net6.0/PublicAPI.Shipped.txt delete mode 100644 src/datacollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt delete mode 100644 src/datacollector/PublicAPI/net7.0/PublicAPI.Shipped.txt delete mode 100644 src/datacollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename src/{Microsoft.TestPlatform.Utilities/PublicAPI/net7.0 => datacollector/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.Utilities/PublicAPI/net7.0 => datacollector/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/{Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net6.0 => datacollector/PublicAPI/net9.0}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net6.0 => datacollector/PublicAPI/net9.0}/PublicAPI.Unshipped.txt (100%) delete mode 100644 src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt delete mode 100644 src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt delete mode 100644 src/vstest.console/PublicAPI/net462/PublicAPI.Shipped.txt delete mode 100644 src/vstest.console/PublicAPI/net462/PublicAPI.Unshipped.txt rename src/{Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net7.0 => vstest.console/PublicAPI/net48}/PublicAPI.Shipped.txt (100%) rename src/{Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net7.0 => vstest.console/PublicAPI/net48}/PublicAPI.Unshipped.txt (100%) delete mode 100644 src/vstest.console/PublicAPI/net6.0/PublicAPI.Shipped.txt delete mode 100644 src/vstest.console/PublicAPI/net6.0/PublicAPI.Unshipped.txt delete mode 100644 src/vstest.console/PublicAPI/net7.0/PublicAPI.Shipped.txt delete mode 100644 src/vstest.console/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename src/{datacollector/PublicAPI/net462 => vstest.console/PublicAPI/net8.0}/PublicAPI.Shipped.txt (100%) rename src/{datacollector/PublicAPI/net462 => vstest.console/PublicAPI/net8.0}/PublicAPI.Unshipped.txt (100%) rename src/{datacollector/PublicAPI/net472 => vstest.console/PublicAPI/net9.0}/PublicAPI.Shipped.txt (100%) rename src/{datacollector/PublicAPI/net472 => vstest.console/PublicAPI/net9.0}/PublicAPI.Unshipped.txt (100%) rename test/TestAssets/{SimpleTestProjectARM/SimpleTestProjectARM.csproj => SimpleTestProjectARM64/SimpleTestProjectARM64.csproj} (88%) rename test/TestAssets/{SimpleTestProjectARM => SimpleTestProjectARM64}/UnitTest1.cs (100%) diff --git a/Directory.Build.props b/Directory.Build.props index 778e8f488c..59d4f521d2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -26,7 +26,7 @@ $(TPVersionPrefix)-dev 15.0.0 - + false @@ -52,15 +52,72 @@ net462 - - net9.0 - netcoreapp3.1 + net8.0 + net9.0 + --> $(NetMinimum) + + + net48 + + $(NetCoreAppStable) + + $(NetCoreAppMinimum) + $(NetSDKTargetFramework);$(NetPortableTargetFrameworks) + $(NetFrameworkRunnerTargetFramework);$(NetRunnerTargetFrameworks) + + + $(RunnerTargetFrameworks) + + netstandard2.0 + + + $(NetCoreAppMinimum);$(NetFrameworkMinimum) + + $(TestHostMinimumTargetFrameworks);net47;net471;net472;net48;net481 + + + $(NetFrameworkMinimum);netstandard2.0 diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index 7b3507d431..41ef5852c2 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -127,7 +127,7 @@ extends: enabled: true pool: name: $(DncEngInternalBuildPool) - image: 1es-windows-2022 + image: windows.vs2022preview.amd64 os: windows customBuildTags: - ES365AIMigrationTooling @@ -151,7 +151,7 @@ extends: timeoutInMinutes: 120 pool: name: $(DncEngInternalBuildPool) - image: 1es-windows-2022 + image: windows.vs2022preview.amd64 os: windows steps: # This steps help to understand versions of .NET runtime installed on the machine, @@ -255,7 +255,7 @@ extends: - ${{ pool.os }} pool: name: $(DncEngInternalBuildPool) - image: 1es-windows-2022 + image: windows.vs2022preview.amd64 os: windows steps: # The template job needs a log, otherwise it writes a warning. We can disable log uploading only for diff --git a/eng/SourceBuildPrebuiltBaseline.xml b/eng/SourceBuildPrebuiltBaseline.xml index 60430ce23a..7ea9e1d42c 100644 --- a/eng/SourceBuildPrebuiltBaseline.xml +++ b/eng/SourceBuildPrebuiltBaseline.xml @@ -3,18 +3,24 @@ - + + - - - - - - - - + + + + + + + + + + diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 33d2c7c568..55294cdb75 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -29,7 +29,7 @@ - https://github.com/dotnet/corefx + https://github.com/dotnet/runtime 30ab651fcb4354552bd4891619a0bdd81e0ebdbf diff --git a/eng/Versions.props b/eng/Versions.props index b205af0cc8..77c3694aa1 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -29,6 +29,12 @@ Because you will need to update Microsoft.TestPlatform.Build.UnitTests to build using that concrete .NET TFM, e.g. net8.0 for 17.8.3. Otherwise it will restore the netstandard2.0 *reference* library into test project bin, and the test project will fail with File not found error. + + Could not load file or assembly 'Microsoft.Build.Utilities.Core... + --> + 17.8.3 $(MicrosoftBuildFrameworkPackageVersion) @@ -36,32 +42,34 @@ $(MicrosoftBuildFrameworkPackageVersion) $(MicrosoftBuildFrameworkPackageVersion) $(MicrosoftBuildFrameworkPackageVersion) - 3.11.0 - 3.11.0-beta1.23525.2 - 3.11.0-beta1.23525.2 + 4.11.0 + 3.3.4 + 3.3.4 17.7.0 0.2.606601 - 3.1.0 - 2.0.0 - 17.9.0-beta.24058.4 + 6.0.0 + 6.0.0 + 17.12.0 17.14.0-preview.25067.3 17.13.35716.53 $(MicrosoftVisualStudioDiagnosticsUtilitiesVersion) - 17.10.525-preview.1 - 17.6.46 - 16.3.42 + 17.12.40418 + 17.13.24 + 16.3.90 17.4.2124 + 5.0.0 13.0.3 - 13.0.3 - 1.5.0 - 4.5.0 + 8.0.0 + 8.0.0 4.5.5 4.3.4 - 1.6.0 + 8.0.0 4.3.2 17.10.0-preview-2-34602-162 17.10.0-preview-2-34602-162 - 17.9.34504.149 + 17.12.35519.223 + 5.0.0 + 6.1.0 @@ -74,7 +82,6 @@ 3.4.3 3.4.3 1.0.3-preview - 2.4.2 2.4.5 2.4.2 diff --git a/eng/verify-nupkgs.ps1 b/eng/verify-nupkgs.ps1 index 6fb1274ada..e5915567eb 100644 --- a/eng/verify-nupkgs.ps1 +++ b/eng/verify-nupkgs.ps1 @@ -19,13 +19,13 @@ function Verify-Nuget-Packages { $expectedNumOfFiles = @{ "Microsoft.CodeCoverage" = 59; "Microsoft.NET.Test.Sdk" = 15; - "Microsoft.TestPlatform" = 609; + "Microsoft.TestPlatform" = 619; "Microsoft.TestPlatform.Build" = 20; - "Microsoft.TestPlatform.CLI" = 471; + "Microsoft.TestPlatform.CLI" = 481; "Microsoft.TestPlatform.Extensions.TrxLogger" = 34; "Microsoft.TestPlatform.ObjectModel" = 92; - "Microsoft.TestPlatform.AdapterUtilities" = 75; - "Microsoft.TestPlatform.Portable" = 592; + "Microsoft.TestPlatform.AdapterUtilities" = 61; + "Microsoft.TestPlatform.Portable" = 608; "Microsoft.TestPlatform.TestHost" = 62; "Microsoft.TestPlatform.TranslationLayer" = 122; "Microsoft.TestPlatform.Internal.Uwp" = 38; @@ -63,7 +63,7 @@ function Verify-Nuget-Packages { Write-Host "Found $(@($nugetPackages).Count) nuget packages:`n $($nugetPackages.FullName -join "`n ")" - Write-Host "Unzipping NuGet packages." + Write-Host "Unzipping NuGet packages to '$tmpDirectory'." $unzipNugetPackageDirs = @() foreach ($nugetPackage in $nugetPackages) { $unzipNugetPackageDir = Join-Path $tmpDirectory $nugetPackage.BaseName diff --git a/playground/MSTest1/MSTest1.csproj b/playground/MSTest1/MSTest1.csproj index 407633246a..302cbc6a14 100644 --- a/playground/MSTest1/MSTest1.csproj +++ b/playground/MSTest1/MSTest1.csproj @@ -1,7 +1,7 @@ - $(TargetFrameworks);net472;net5.0;net6.0;net7.0 + $(TargetFrameworks);net48;net9.0;net8.0 false false @@ -11,7 +11,7 @@ - + diff --git a/playground/MSTest2/MSTest2.csproj b/playground/MSTest2/MSTest2.csproj index 407633246a..302cbc6a14 100644 --- a/playground/MSTest2/MSTest2.csproj +++ b/playground/MSTest2/MSTest2.csproj @@ -1,7 +1,7 @@ - $(TargetFrameworks);net472;net5.0;net6.0;net7.0 + $(TargetFrameworks);net48;net9.0;net8.0 false false @@ -11,7 +11,7 @@ - + diff --git a/playground/TestPlatform.Playground/TestPlatform.Playground.csproj b/playground/TestPlatform.Playground/TestPlatform.Playground.csproj index 9a5dcbffbe..620c160e2d 100644 --- a/playground/TestPlatform.Playground/TestPlatform.Playground.csproj +++ b/playground/TestPlatform.Playground/TestPlatform.Playground.csproj @@ -8,7 +8,7 @@ Exe - $(TargetFrameworks);net472 + $(RunnerTargetFrameworks) @@ -17,10 +17,16 @@ - - - - + + + + + + + + @@ -34,7 +40,7 @@ - + @@ -53,24 +59,26 @@ - - + + - + - + - + - + + + - + @@ -89,7 +97,7 @@ - + --> + $(NetFrameworkMinimum) + false Exe false win10-arm64 diff --git a/src/DataCollectors/DumpMinitool.x86/DumpMinitool.x86.csproj b/src/DataCollectors/DumpMinitool.x86/DumpMinitool.x86.csproj index 6216d6b5c0..e1613e1b01 100644 --- a/src/DataCollectors/DumpMinitool.x86/DumpMinitool.x86.csproj +++ b/src/DataCollectors/DumpMinitool.x86/DumpMinitool.x86.csproj @@ -2,12 +2,17 @@ - net7.0;$(NetFrameworkMinimum) + + $(NetFrameworkMinimum) AnyCPU - true + true Exe false - win7-x86 + win-x86 false true + $(NetFrameworkMinimum) AnyCPU - false + false Exe false win7-x64 diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/Microsoft.TestPlatform.Extensions.EventLogCollector.csproj b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/Microsoft.TestPlatform.Extensions.EventLogCollector.csproj index 2fea4d4fb1..f7c86f1bae 100644 --- a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/Microsoft.TestPlatform.Extensions.EventLogCollector.csproj +++ b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/Microsoft.TestPlatform.Extensions.EventLogCollector.csproj @@ -3,7 +3,7 @@ Microsoft.TestPlatform.Extensions.EventLogCollector - net7.0;$(NetFrameworkMinimum) + $(NetCoreMinimum);$(NetFrameworkRunnerTargetFramework) false true diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net462/PublicAPI.Shipped.txt b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net462/PublicAPI.Shipped.txt rename to src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net462/PublicAPI.Unshipped.txt b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net462/PublicAPI.Unshipped.txt rename to src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.csproj b/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.csproj index 53049b4413..9f62e98bb9 100644 --- a/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.csproj +++ b/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.csproj @@ -1,7 +1,13 @@ - netstandard2.0;$(NetFrameworkMinimum);net6.0;net8.0;$(NetCurrent) + + $(TestHostMinimumTargetFrameworks);$(ExtensionTargetFrameworks);net9.0 Microsoft.TestPlatform.AdapterUtilities Microsoft.TestPlatform.AdapterUtilities @@ -17,7 +23,7 @@ - + false diff --git a/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.nuspec b/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.nuspec index c3a40455c8..1b93aed8de 100644 --- a/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.nuspec +++ b/src/Microsoft.TestPlatform.AdapterUtilities/Microsoft.TestPlatform.AdapterUtilities.nuspec @@ -6,7 +6,6 @@ - @@ -17,7 +16,6 @@ - @@ -49,20 +47,6 @@ - - - - - - - - - - - - - - diff --git a/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.Build.csproj b/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.Build.csproj index 0fdd27966b..0707e1b107 100644 --- a/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.Build.csproj +++ b/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.Build.csproj @@ -3,7 +3,12 @@ Microsoft.TestPlatform.Build - netstandard2.0 + + $(ExtensionTargetFrameworks) false true diff --git a/src/Microsoft.TestPlatform.Client/Microsoft.TestPlatform.Client.csproj b/src/Microsoft.TestPlatform.Client/Microsoft.TestPlatform.Client.csproj index 26f5d313c7..ec5cfaeae2 100644 --- a/src/Microsoft.TestPlatform.Client/Microsoft.TestPlatform.Client.csproj +++ b/src/Microsoft.TestPlatform.Client/Microsoft.TestPlatform.Client.csproj @@ -3,7 +3,10 @@ Microsoft.VisualStudio.TestPlatform.Client - net7.0;netstandard2.0;$(NetFrameworkMinimum) + + $(NetFrameworkRunnerTargetFramework);$(ExtensionTargetFrameworks) false @@ -17,7 +20,7 @@ true - + @@ -46,5 +49,7 @@ + + diff --git a/src/Microsoft.TestPlatform.Client/PublicAPI/net462/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Client/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Client/PublicAPI/net462/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Client/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Client/PublicAPI/net462/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Client/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Client/PublicAPI/net462/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Client/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Client/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Client/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Client/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Client/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Client/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Client/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Client/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Client/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Client/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Client/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Client/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Client/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Client/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Client/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Client/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Client/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Common/Microsoft.TestPlatform.Common.csproj b/src/Microsoft.TestPlatform.Common/Microsoft.TestPlatform.Common.csproj index ba248dc576..d117107a34 100644 --- a/src/Microsoft.TestPlatform.Common/Microsoft.TestPlatform.Common.csproj +++ b/src/Microsoft.TestPlatform.Common/Microsoft.TestPlatform.Common.csproj @@ -3,11 +3,11 @@ Microsoft.VisualStudio.TestPlatform.Common - net7.0;net6.0;netstandard2.0;$(NetFrameworkMinimum) + $(NetFrameworkMinimum);$(ExtensionTargetFrameworks) false true - + diff --git a/src/Microsoft.TestPlatform.Common/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Common/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Common/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Common/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Common/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Common/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Common/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Common/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Common/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Common/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Common/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Common/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Common/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Common/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Common/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Common/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Common/Utilities/AssemblyProperties.cs b/src/Microsoft.TestPlatform.Common/Utilities/AssemblyProperties.cs index 7e285db13f..f46c3e3735 100644 --- a/src/Microsoft.TestPlatform.Common/Utilities/AssemblyProperties.cs +++ b/src/Microsoft.TestPlatform.Common/Utilities/AssemblyProperties.cs @@ -45,7 +45,7 @@ public AssemblyType GetAssemblyType(string filePath) using var peReader = new PEReader(fileStream); // Resources for PEReader: // 1. https://msdn.microsoft.com/library/windows/desktop/ms680547(v=vs.85).aspx?id=19509 - // 2. https://github.com/dotnet/corefx/tree/master/src/System.Reflection.Metadata + // 2. https://github.com/dotnet/runtime/tree/master/src/libraries/System.Reflection.Metadata var peHeaders = peReader.PEHeaders; var corHeader = peHeaders.CorHeader; diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/Microsoft.TestPlatform.CommunicationUtilities.csproj b/src/Microsoft.TestPlatform.CommunicationUtilities/Microsoft.TestPlatform.CommunicationUtilities.csproj index a8f956eba5..ba1a60a643 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/Microsoft.TestPlatform.CommunicationUtilities.csproj +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/Microsoft.TestPlatform.CommunicationUtilities.csproj @@ -2,7 +2,7 @@ Microsoft.TestPlatform.CommunicationUtilities - net7.0;net6.0;netstandard2.0;$(NetFrameworkMinimum) + $(NetFrameworkMinimum);$(ExtensionTargetFrameworks) false @@ -13,7 +13,7 @@ $(NewtonsoftJsonVersion) - + diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Extensions/StringBuilderPolyfill.cs b/src/Microsoft.TestPlatform.CoreUtilities/Extensions/StringBuilderPolyfill.cs deleted file mode 100644 index 7da7dee54e..0000000000 --- a/src/Microsoft.TestPlatform.CoreUtilities/Extensions/StringBuilderPolyfill.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -namespace System.Text; -internal static class StringBuilderPolyfill -{ -#if !NET7_0_OR_GREATER - [Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Added to match new API.")] - public static StringBuilder Append(this StringBuilder builder, IFormatProvider? provider, string? value) - => builder.Append(value); -#endif -} diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Friends.cs b/src/Microsoft.TestPlatform.CoreUtilities/Friends.cs index d20fd5f552..542dbfeacc 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Friends.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Friends.cs @@ -10,16 +10,19 @@ [assembly: InternalsVisibleTo("testhost.net471, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net472, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net48, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("testhost.net481, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net47.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net471.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net472.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net48.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("testhost.net481.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net47.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net471.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net472.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net48.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("testhost.net481.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("vstest.console, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("vstest.console.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("Microsoft.TestPlatform.CommunicationUtilities, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj b/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj index ea9329bd81..919bb26e7e 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj +++ b/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj @@ -3,11 +3,11 @@ Microsoft.TestPlatform.CoreUtilities - net7.0;net6.0;netstandard2.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum) + $(TestHostMinimumTargetFrameworks);$(ExtensionTargetFrameworks) false - + @@ -16,13 +16,12 @@ - - - + + - + @@ -54,11 +53,11 @@ - - - - - + + + + + diff --git a/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net481/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net481/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..32196d81df --- /dev/null +++ b/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net481/PublicAPI.Shipped.txt @@ -0,0 +1,15 @@ +#nullable enable +Microsoft.VisualStudio.TestPlatform.Utilities.ConsoleOutput +Microsoft.VisualStudio.TestPlatform.Utilities.ConsoleOutput.Write(string? message, Microsoft.VisualStudio.TestPlatform.Utilities.OutputLevel level) -> void +Microsoft.VisualStudio.TestPlatform.Utilities.ConsoleOutput.WriteLine(string? message, Microsoft.VisualStudio.TestPlatform.Utilities.OutputLevel level) -> void +Microsoft.VisualStudio.TestPlatform.Utilities.OutputExtensions +static Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace.SetupListener(System.Diagnostics.TraceListener? listener) -> void +static Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace.SetupRemoteEqtTraceListeners(System.AppDomain? childDomain) -> void +static Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace.TraceLevel.get -> System.Diagnostics.TraceLevel +static Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace.TraceLevel.set -> void +static Microsoft.VisualStudio.TestPlatform.Utilities.ConsoleOutput.Instance.get -> Microsoft.VisualStudio.TestPlatform.Utilities.ConsoleOutput! +static Microsoft.VisualStudio.TestPlatform.Utilities.OutputExtensions.Error(this Microsoft.VisualStudio.TestPlatform.Utilities.IOutput! output, bool appendPrefix, string! format, params object?[]? args) -> void +static Microsoft.VisualStudio.TestPlatform.Utilities.OutputExtensions.Information(this Microsoft.VisualStudio.TestPlatform.Utilities.IOutput! output, bool appendPrefix, string! format, params object?[]? args) -> void +static Microsoft.VisualStudio.TestPlatform.Utilities.OutputExtensions.Information(this Microsoft.VisualStudio.TestPlatform.Utilities.IOutput! output, bool appendPrefix, System.ConsoleColor foregroundColor, string! format, params object?[]? args) -> void +static Microsoft.VisualStudio.TestPlatform.Utilities.OutputExtensions.Warning(this Microsoft.VisualStudio.TestPlatform.Utilities.IOutput! output, bool appendPrefix, string! format, params object?[]? args) -> void +static Microsoft.VisualStudio.TestPlatform.Utilities.OutputExtensions.Write(this Microsoft.VisualStudio.TestPlatform.Utilities.IOutput! output, string! message, Microsoft.VisualStudio.TestPlatform.Utilities.OutputLevel level, System.ConsoleColor foregroundColor) -> void diff --git a/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net6.0_and_net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net481/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net6.0_and_net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net481/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net6.0_and_net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net6.0_and_net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.CoreUtilities/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Friends.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Friends.cs index 35ea0e6b25..f25602a188 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Friends.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Friends.cs @@ -14,16 +14,19 @@ [assembly: InternalsVisibleTo("testhost.net471, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net472, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net48, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("testhost.net481, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net47.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net471.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net472.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net48.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("testhost.net481.x86, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net47.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net471.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net472.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("testhost.net48.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("testhost.net481.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("vstest.console, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("vstest.console.arm64, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("vstest.ProgrammerTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Microsoft.TestPlatform.CrossPlatEngine.csproj b/src/Microsoft.TestPlatform.CrossPlatEngine/Microsoft.TestPlatform.CrossPlatEngine.csproj index a1d89d2589..c643cab47b 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Microsoft.TestPlatform.CrossPlatEngine.csproj +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Microsoft.TestPlatform.CrossPlatEngine.csproj @@ -3,7 +3,7 @@ Microsoft.TestPlatform.CrossPlatEngine - net7.0;net6.0;netstandard2.0;$(NetFrameworkMinimum) + $(NetFrameworkMinimum);$(ExtensionTargetFrameworks) false @@ -21,7 +21,7 @@ true - + diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CommunicationUtilities/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/HangDumperFactory.cs b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/HangDumperFactory.cs index 3ca7beb8c4..99d4ba1c0e 100644 --- a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/HangDumperFactory.cs +++ b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/HangDumperFactory.cs @@ -70,7 +70,7 @@ public IHangDumper Create(string targetFramework) return new SigtrapDumper(); } - EqtTrace.Info($"HangDumperFactory: This is Linux netcoreapp3.1 or newer, returning the standard NETClient library dumper."); + EqtTrace.Info($"HangDumperFactory: This is Linux net6.0 or newer, returning the standard NETClient library dumper."); return new NetClientHangDumper(); } diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj index c337afa54b..414e1bba56 100644 --- a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj +++ b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj @@ -19,7 +19,7 @@ Microsoft.TestPlatform.Extensions.BlameDataCollector - net7.0;netstandard2.0;net472 + $(NetFrameworkRunnerTargetFramework);$(ExtensionTargetFrameworks) false true @@ -33,11 +33,14 @@ - - - + + + + - + diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/ProcDumpArgsBuilder.cs b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/ProcDumpArgsBuilder.cs index d68b9b569b..2893f41bc5 100644 --- a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/ProcDumpArgsBuilder.cs +++ b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/ProcDumpArgsBuilder.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Text; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Helpers; @@ -11,6 +10,8 @@ namespace Microsoft.TestPlatform.Extensions.BlameDataCollector; +#pragma warning disable CA1305 + public class ProcDumpArgsBuilder : IProcDumpArgsBuilder { private readonly IEnvironmentVariableHelper _environmentVariableHelper; @@ -51,10 +52,10 @@ public string BuildTriggerBasedProcDumpArgs(int processId, string filename, IEnu foreach (var exceptionFilter in procDumpExceptionsList) { - procDumpArgument.Append(CultureInfo.InvariantCulture, $"-f {exceptionFilter} "); + procDumpArgument.Append($"-f {exceptionFilter} "); } - procDumpArgument.Append(CultureInfo.InvariantCulture, $"{processId} {filename}.dmp"); + procDumpArgument.Append($"{processId} {filename}.dmp"); var argument = procdumpArgumentsFromEnv.IsNullOrWhiteSpace() ? procDumpArgument.ToString() @@ -80,9 +81,11 @@ public string BuildHangBasedProcDumpArgs(int processId, string filename, bool is procDumpArgument.Append(" -ma"); } - procDumpArgument.Append(CultureInfo.InvariantCulture, $" {processId} {filename}.dmp"); + procDumpArgument.Append($" {processId} {filename}.dmp"); var argument = procDumpArgument.ToString(); return argument; } } + +#pragma warning restore CA1305 diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.CrossPlatEngine/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net472/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net472/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net472/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net472/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.HtmlLogger/Microsoft.TestPlatform.Extensions.HtmlLogger.csproj b/src/Microsoft.TestPlatform.Extensions.HtmlLogger/Microsoft.TestPlatform.Extensions.HtmlLogger.csproj index e88c5447ff..5e87c3b024 100644 --- a/src/Microsoft.TestPlatform.Extensions.HtmlLogger/Microsoft.TestPlatform.Extensions.HtmlLogger.csproj +++ b/src/Microsoft.TestPlatform.Extensions.HtmlLogger/Microsoft.TestPlatform.Extensions.HtmlLogger.csproj @@ -3,19 +3,13 @@ Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger - net7.0;netstandard2.0;$(NetFrameworkMinimum) + $(NetFrameworkRunnerTargetFramework);$(ExtensionTargetFrameworks) false true - - - - - - diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Microsoft.TestPlatform.Extensions.TrxLogger.csproj b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Microsoft.TestPlatform.Extensions.TrxLogger.csproj index a19675874c..3f81980538 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Microsoft.TestPlatform.Extensions.TrxLogger.csproj +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Microsoft.TestPlatform.Extensions.TrxLogger.csproj @@ -3,7 +3,12 @@ Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger - netstandard2.0;$(NetFrameworkMinimum) + + $(ExtensionTargetFrameworks);net462 false @@ -23,13 +28,6 @@ - - - - - - - @@ -39,12 +37,9 @@ - - - - - - + + + diff --git a/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj b/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj index 9278611cbd..034807a589 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj +++ b/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj @@ -3,7 +3,7 @@ Microsoft.VisualStudio.TestPlatform.ObjectModel - net7.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum);netstandard2.0; + $(TestHostMinimumTargetFrameworks);$(ExtensionTargetFrameworks) $(NoWarn);SYSLIB0051 @@ -23,7 +23,7 @@ - + @@ -33,7 +33,11 @@ - + + + diff --git a/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.nuspec b/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.nuspec index 105050657a..e0781a6594 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.nuspec +++ b/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.nuspec @@ -5,15 +5,15 @@ - + - - + + - + @@ -67,16 +67,16 @@ - - - - + + + + - - - + + + diff --git a/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/PublicAPI.Shipped.txt index 221f78d7d1..681d90bb9e 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/PublicAPI.Shipped.txt +++ b/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/PublicAPI.Shipped.txt @@ -970,7 +970,6 @@ static readonly Microsoft.VisualStudio.TestPlatform.ObjectModel.UapConstants.Uap virtual Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject.Properties.get -> System.Collections.Generic.IEnumerable! virtual Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject.ProtectedGetPropertyValue(Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty! property, object? defaultValue) -> object? virtual Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject.ProtectedSetPropertyValue(Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty! property, object? value) -> void -virtual Microsoft.VisualStudio.TestPlatform.ObjectModel.ValidateValueCallback.Invoke(object? value) -> bool Microsoft.VisualStudio.TestPlatform.ObjectModel.Architecture.RiscV64 = 8 -> Microsoft.VisualStudio.TestPlatform.ObjectModel.Architecture Microsoft.VisualStudio.TestPlatform.ObjectModel.RunConfiguration.CaptureStandardOutput.get -> bool Microsoft.VisualStudio.TestPlatform.ObjectModel.RunConfiguration.ForwardStandardOutput.get -> bool diff --git a/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net6.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net6.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.ObjectModel/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net6.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.ObjectModel/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net6.0_and_net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net6.0_and_net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.ObjectModel/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/Microsoft.TestPlatform.PlatformAbstractions.csproj b/src/Microsoft.TestPlatform.PlatformAbstractions/Microsoft.TestPlatform.PlatformAbstractions.csproj index 5aae32c1cb..7bc1805000 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/Microsoft.TestPlatform.PlatformAbstractions.csproj +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/Microsoft.TestPlatform.PlatformAbstractions.csproj @@ -4,22 +4,12 @@ Microsoft.TestPlatform.PlatformAbstractions Microsoft.TestPlatform.PlatformAbstractions - net7.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum);netstandard2.0;net6.0 + $(TestHostMinimumTargetFrameworks);$(ExtensionTargetFrameworks) false $(NoWarn);NU1605 - - - - - - - - - - - + @@ -32,11 +22,11 @@ - - - - - + + + + + diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/PublicAPI.Shipped.txt index 60e7d5e4a9..99667b0d8c 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/PublicAPI.Shipped.txt +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/PublicAPI.Shipped.txt @@ -119,6 +119,5 @@ Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.ThreadApartmentStateNot static Microsoft.VisualStudio.TestPlatform.ObjectModel.PlatformEqtTrace.ErrorOnInitialization.get -> string? static Microsoft.VisualStudio.TestPlatform.ObjectModel.PlatformEqtTrace.ErrorOnInitialization.set -> void static Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.PlatformAssemblyExtensions.GetAssemblyLocation(this System.Reflection.Assembly! assembly) -> string! -virtual Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces.AssemblyResolveEventHandler.Invoke(object? sender, Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces.AssemblyResolveEventArgs? args) -> System.Reflection.Assembly? virtual Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.PlatformAssemblyResolver.Dispose(bool disposing) -> void Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.PlatformArchitecture.RiscV64 = 6 -> Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.PlatformArchitecture diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net6.0_and_net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net6.0_and_net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net8.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net8.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..ab058de62d --- /dev/null +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/PublicAPI/net8.0/PublicAPI.Unshipped.txt @@ -0,0 +1 @@ +#nullable enable diff --git a/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DefaultTestHostManager.cs b/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DefaultTestHostManager.cs index 21b343dad7..ffddd06178 100644 --- a/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DefaultTestHostManager.cs +++ b/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DefaultTestHostManager.cs @@ -194,7 +194,7 @@ public virtual TestProcessStartInfo GetTestHostProcessStartInfo( if (!_fileHelper.Exists(testhostProcessPath)) { // We assume that we could not find testhost.exe in the root folder so we are going to lookup in the - // TestHostNetFramework folder (assuming we are currently running under netcoreapp3.1) or in dotnet SDK + // TestHostNetFramework folder (assuming we are currently running under .NET) or in dotnet SDK // context. testHostProcessName = Path.Combine("TestHostNetFramework", originalTestHostProcessName); testhostProcessPath = Path.Combine(currentWorkingDirectory, "..", testHostProcessName); diff --git a/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs b/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs index 70c9481a8f..a20519373b 100644 --- a/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs +++ b/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs @@ -306,8 +306,8 @@ public virtual TestProcessStartInfo GetTestHostProcessStartInfo( testHostPath = GetTestHostPath(runtimeConfigDevPath, depsFilePath, sourceDirectory); if (!testHostPath.IsNullOrWhiteSpace() && testHostPath.IndexOf("microsoft.testplatform.testhost", StringComparison.OrdinalIgnoreCase) >= 0) { - // testhost.dll is present in path {testHostNugetRoot}\lib\netcoreapp3.1\testhost.dll - // testhost.(x86).exe is present in location {testHostNugetRoot}\build\netcoreapp3.1\{x86/x64}\{testhost.x86.exe/testhost.exe} + // testhost.dll is present in path {testHostNugetRoot}\lib\net8.0\testhost.dll + // testhost.(x86).exe is present in location {testHostNugetRoot}\build\net8.0\{x86/x64}\{testhost.x86.exe/testhost.exe} var folderName = _architecture is Architecture.X64 or Architecture.Default or Architecture.AnyCPU ? Architecture.X64.ToString().ToLowerInvariant() : _architecture.ToString().ToLowerInvariant(); @@ -321,7 +321,7 @@ public virtual TestProcessStartInfo GetTestHostProcessStartInfo( testHostExeNugetPath = Path.Combine(testHostNugetRoot.FullName, "build", "net9.0", folderName, exeName); } #else - var testHostExeNugetPath = Path.Combine(testHostNugetRoot.FullName, "build", "netcoreapp3.1", folderName, exeName); + var testHostExeNugetPath = Path.Combine(testHostNugetRoot.FullName, "build", "net8.0", folderName, exeName); #endif if (_fileHelper.Exists(testHostExeNugetPath)) diff --git a/src/Microsoft.TestPlatform.TestHostProvider/Microsoft.TestPlatform.TestHostProvider.csproj b/src/Microsoft.TestPlatform.TestHostProvider/Microsoft.TestPlatform.TestHostProvider.csproj index 8191a31a24..3bd5ea9246 100644 --- a/src/Microsoft.TestPlatform.TestHostProvider/Microsoft.TestPlatform.TestHostProvider.csproj +++ b/src/Microsoft.TestPlatform.TestHostProvider/Microsoft.TestPlatform.TestHostProvider.csproj @@ -3,11 +3,14 @@ Microsoft.TestPlatform.TestHostRuntimeProvider - net7.0;net6.0;netstandard2.0;$(NetFrameworkMinimum) + + $(NetFrameworkRunnerTargetFramework);$(ExtensionTargetFrameworks) false true - + @@ -26,7 +29,6 @@ - diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.BlameDataCollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net462/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net462/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net462/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Extensions.HtmlLogger/PublicAPI/net462/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net462/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net462/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net462/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net462/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj b/src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj index 71ae94e3ed..8fd6b0b3cd 100644 --- a/src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj +++ b/src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj @@ -3,15 +3,9 @@ Microsoft.TestPlatform.Utilities - net7.0;netstandard2.0;$(NetFrameworkMinimum) + $(NetFrameworkMinimum);$(ExtensionTargetFrameworks) false - - - - - - diff --git a/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Utilities/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.Utilities/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Utilities/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.Utilities/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Microsoft.TestPlatform.VsTestConsole.TranslationLayer.csproj b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Microsoft.TestPlatform.VsTestConsole.TranslationLayer.csproj index a9278a3e86..cda5cf5075 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Microsoft.TestPlatform.VsTestConsole.TranslationLayer.csproj +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Microsoft.TestPlatform.VsTestConsole.TranslationLayer.csproj @@ -3,7 +3,7 @@ Microsoft.TestPlatform.VsTestConsole.TranslationLayer - net7.0;net6.0;netstandard2.0;$(NetFrameworkMinimum) + $(LibraryTargetFrameworks) false @@ -34,7 +34,7 @@ - + diff --git a/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.TestHostProvider/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/SettingsMigrator/SettingsMigrator.csproj b/src/SettingsMigrator/SettingsMigrator.csproj index 23ea657fd7..e87d54f8dc 100644 --- a/src/SettingsMigrator/SettingsMigrator.csproj +++ b/src/SettingsMigrator/SettingsMigrator.csproj @@ -3,16 +3,19 @@ SettingsMigrator - net7.0;$(NetFrameworkMinimum) + + $(NetFrameworkRunnerTargetFramework) Exe AnyCPU false - true + true - + win7-x64 - + diff --git a/src/datacollector.arm64/datacollector.arm64.csproj b/src/datacollector.arm64/datacollector.arm64.csproj index bb147867ac..c2584b21dc 100644 --- a/src/datacollector.arm64/datacollector.arm64.csproj +++ b/src/datacollector.arm64/datacollector.arm64.csproj @@ -9,16 +9,17 @@ datacollector.arm64 - $(NetCoreAppMinimum) - $(TargetFrameworks);net472;$(NetFrameworkMinimum) - $(TargetFrameworks);$(NetFrameworkMinimum) - $(TargetFrameworks);net7.0;net6.0; - win10-arm64 + $(RunnerTargetFrameworks) + win10-arm64 - AnyCPU + AnyCPU Exe - + false Major false @@ -52,7 +53,7 @@ - + diff --git a/src/Microsoft.TestPlatform.Utilities/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/datacollector/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Utilities/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/datacollector/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Utilities/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/datacollector/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Utilities/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/datacollector/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/datacollector/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/datacollector/PublicAPI/net6.0/PublicAPI.Shipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/datacollector/PublicAPI/net6.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/datacollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/datacollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/datacollector/PublicAPI/net6.0/PublicAPI.Unshipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/datacollector/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/datacollector/PublicAPI/net7.0/PublicAPI.Shipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/datacollector/PublicAPI/net7.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/datacollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/datacollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/datacollector/PublicAPI/net7.0/PublicAPI.Unshipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/Microsoft.TestPlatform.Utilities/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/datacollector/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Utilities/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/datacollector/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.Utilities/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/datacollector/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.Utilities/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/datacollector/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/datacollector/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net6.0/PublicAPI.Shipped.txt rename to src/datacollector/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/datacollector/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net6.0/PublicAPI.Unshipped.txt rename to src/datacollector/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt b/src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt b/src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/datacollector/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/datacollector/app.config b/src/datacollector/app.config index 439c6d5fd8..8e3b9f898c 100644 --- a/src/datacollector/app.config +++ b/src/datacollector/app.config @@ -20,6 +20,18 @@ + + + + + + + + + + + + diff --git a/src/datacollector/datacollector.csproj b/src/datacollector/datacollector.csproj index 6c7facedc0..94ba8f6058 100644 --- a/src/datacollector/datacollector.csproj +++ b/src/datacollector/datacollector.csproj @@ -9,13 +9,14 @@ datacollector - $(NetCoreAppMinimum) - $(TargetFrameworks);net472;$(NetFrameworkMinimum) - $(TargetFrameworks);$(NetFrameworkMinimum) - $(TargetFrameworks);net7.0;net6.0 - AnyCPU + $(RunnerTargetFrameworks) + AnyCPU Exe - + false Major false @@ -23,7 +24,7 @@ $(MSBuildWarningsAsMessages);MSB3276 - + win7-x64 @@ -39,7 +40,7 @@ - + diff --git a/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.csproj b/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.csproj index 961ffc151c..64ed693b4c 100644 --- a/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.csproj +++ b/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.csproj @@ -1,6 +1,10 @@ - + - $(NetFrameworkMinimum) + + $(TestHostMinimumTargetFrameworks);$(ExtensionTargetFrameworks) diff --git a/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.nuspec b/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.nuspec index 530ba92536..4f6491dc4a 100644 --- a/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.nuspec +++ b/src/package/Microsoft.CodeCoverage/Microsoft.CodeCoverage.nuspec @@ -5,7 +5,7 @@ - + @@ -62,7 +62,7 @@ - + diff --git a/src/package/Microsoft.NET.Test.Sdk/Microsoft.NET.Test.Sdk.nuspec b/src/package/Microsoft.NET.Test.Sdk/Microsoft.NET.Test.Sdk.nuspec index e95212b77a..54e0694f48 100644 --- a/src/package/Microsoft.NET.Test.Sdk/Microsoft.NET.Test.Sdk.nuspec +++ b/src/package/Microsoft.NET.Test.Sdk/Microsoft.NET.Test.Sdk.nuspec @@ -4,7 +4,7 @@ $CommonMetadataElements$ - + @@ -18,14 +18,14 @@ $CommonFileElements$ - + - + - + diff --git a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.csproj b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.csproj index b9f8595348..6881b77466 100644 --- a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.csproj +++ b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.csproj @@ -1,6 +1,6 @@ - $(NetCoreAppMinimum);$(NetFrameworkMinimum);net47;net471;net472;net48 + $(NetSDKTargetFramework);$(TestHostAllTargetFrameworks) @@ -39,24 +39,41 @@ NU1702 - - - - - - + + - + + + + + + + + + + + + + + - - - + + + + @@ -65,8 +82,8 @@ - - + + diff --git a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.nuspec b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.nuspec index e5d37dcb48..905e3042f3 100644 --- a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.nuspec +++ b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.nuspec @@ -13,408 +13,414 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.nuspec b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.nuspec index 163cd961fd..1abbdfd81a 100644 --- a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.nuspec +++ b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.nuspec @@ -94,8 +94,6 @@ - - diff --git a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.product.nuspec b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.product.nuspec index e53eaba922..d3f85a89df 100644 --- a/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.product.nuspec +++ b/src/package/Microsoft.TestPlatform.CLI/Microsoft.TestPlatform.CLI.sourcebuild.product.nuspec @@ -56,8 +56,6 @@ - - diff --git a/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.csproj b/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.csproj index 116098d402..60aef566c6 100644 --- a/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.csproj +++ b/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.csproj @@ -1,6 +1,7 @@ - $(NetCoreAppMinimum);$(NetFrameworkMinimum);net47;net471;net472;net48;netstandard2.0 + + $(TestHostAllTargetFrameworks);netstandard2.0 @@ -38,18 +39,20 @@ - + - - - - - - - + + + + + + + @@ -57,13 +60,19 @@ + + + + + + - - - - - + + + + + diff --git a/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.nuspec b/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.nuspec index ceaecfc3ac..404c1ad2c0 100644 --- a/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.nuspec +++ b/src/package/Microsoft.TestPlatform.Portable/Microsoft.TestPlatform.Portable.nuspec @@ -10,47 +10,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -62,6 +68,9 @@ + + + @@ -72,6 +81,8 @@ + + @@ -83,555 +94,563 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.csproj b/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.csproj index 356823b26f..b23cfbab55 100644 --- a/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.csproj +++ b/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.csproj @@ -1,6 +1,6 @@ - netcoreapp3.1;net462 + $(TestHostMinimumTargetFrameworks) @@ -48,7 +48,7 @@ - + PreserveNewest diff --git a/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.nuspec b/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.nuspec index 2b676ebbdb..903c26b98d 100644 --- a/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.nuspec +++ b/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.nuspec @@ -4,7 +4,7 @@ $CommonMetadataElements$ - + @@ -20,21 +20,21 @@ - + - - - + + + - - + + - - + + - - + + - - + + - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj index b886bb0e37..4eaf14cca6 100644 --- a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj +++ b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.csproj @@ -1,6 +1,7 @@ - $(NetCoreAppMinimum);$(NetFrameworkMinimum);net47;net471;net472;net48 + + $(TestHostAllTargetFrameworks) @@ -41,29 +42,47 @@ - + + - - - + - - - - + + + + + + + - + - + + + + + + + + + - @@ -86,15 +105,15 @@ - + - + - + diff --git a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec index 569b7be7d9..a2e27146bc 100644 --- a/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec +++ b/src/package/Microsoft.TestPlatform/Microsoft.TestPlatform.nuspec @@ -12,115 +12,122 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -132,6 +139,8 @@ + + @@ -143,6 +152,8 @@ + + @@ -154,384 +165,386 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -544,106 +557,106 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - - - - - + + + + + + - - - + + + diff --git a/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj b/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj index 3112a6df2d..a5ebe3e406 100644 --- a/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj +++ b/src/package/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI/Microsoft.VisualStudio.TestTools.TestPlatform.V2.CLI.csproj @@ -3,7 +3,7 @@ Library true - $(NetFrameworkMinimum) + $(NetFrameworkRunnerTargetFramework) None @@ -29,7 +29,7 @@ [installDir]\Common7\IDE\Extensions\TestPlatform $(ArtifactsBinDir)Microsoft.TestPlatform.CLI\$(Configuration)\$(NetFrameworkMinimum)\ - $(ArtifactsBinDir)Microsoft.TestPlatform\$(Configuration)\net472\ + $(ArtifactsBinDir)Microsoft.TestPlatform\$(Configuration)\$(NetFrameworkRunnerTargetFramework)\ $(TestPlatformBinFolder)Microsoft.Internal.Dia\ $(TestPlatformBinFolder)Microsoft.VisualStudio.CUIT\ $(TestPlatformBinFolder)Microsoft.CodeCoverage.IO\ @@ -99,6 +99,7 @@ + @@ -106,6 +107,7 @@ + @@ -113,6 +115,7 @@ + @@ -322,7 +325,7 @@ - + false diff --git a/src/testhost.arm64/testhost.arm64.csproj b/src/testhost.arm64/testhost.arm64.csproj index 095fe3ca5d..07ea654d84 100644 --- a/src/testhost.arm64/testhost.arm64.csproj +++ b/src/testhost.arm64/testhost.arm64.csproj @@ -10,12 +10,12 @@ testhost.arm64 - net7.0;$(NetCoreAppMinimum);$(NetFrameworkMinimum);net47;net471;net472;net48 + $(TestHostAllTargetFrameworks) Exe false app.manifest - + win10-arm64 false $(AssemblyName.Replace('.arm64', '')).$(TargetFramework).arm64 @@ -38,10 +38,10 @@ - + - + diff --git a/src/testhost.x86/app.config b/src/testhost.x86/app.config index 2e2ac5c43c..80f1fde929 100644 --- a/src/testhost.x86/app.config +++ b/src/testhost.x86/app.config @@ -53,6 +53,18 @@ + + + + + + + + + + + + diff --git a/src/testhost.x86/testhost.x86.csproj b/src/testhost.x86/testhost.x86.csproj index 1a7de790bc..ebf12d08a8 100644 --- a/src/testhost.x86/testhost.x86.csproj +++ b/src/testhost.x86/testhost.x86.csproj @@ -10,10 +10,10 @@ testhost.x86 - net7.0;$(NetCoreAppMinimum);$(NetFrameworkMinimum);net47;net471;net472;net48 + $(TestHostAllTargetFrameworks) AnyCPU - win7-x86 - true + win-x86 + true Exe false app.manifest @@ -25,7 +25,7 @@ NETSDK1201 $(NoWarn);NETSDK1201 - + false $(AssemblyName.Replace('.x86', '')).$(TargetFramework).x86 @@ -45,10 +45,10 @@ - + - + diff --git a/src/testhost/testhost.csproj b/src/testhost/testhost.csproj index f3f4b9b979..5cb6999771 100644 --- a/src/testhost/testhost.csproj +++ b/src/testhost/testhost.csproj @@ -10,12 +10,12 @@ testhost - net7.0;$(NetCoreAppMinimum);$(NetFrameworkMinimum);net47;net471;net472;net48 + $(TestHostAllTargetFrameworks) Exe false app.manifest - + win7-x64 false $(AssemblyName).$(TargetFramework) @@ -38,10 +38,10 @@ - + - + diff --git a/src/vstest.console.arm64/vstest.console.arm64.csproj b/src/vstest.console.arm64/vstest.console.arm64.csproj index 2cdfac3fc2..dd04b9ba0c 100644 --- a/src/vstest.console.arm64/vstest.console.arm64.csproj +++ b/src/vstest.console.arm64/vstest.console.arm64.csproj @@ -3,16 +3,16 @@ vstest.console.arm64 - net7.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum) + $(RunnerTargetFrameworks) Exe false Major false - win10-arm64 + win10-arm64 - AnyCPU + AnyCPU ..\vstest.console\app.manifest Microsoft.VisualStudio.TestPlatform.CommandLine true @@ -29,7 +29,7 @@ $(MSBuildWarningsAsMessages);MSB3276; - + diff --git a/src/vstest.console/InProcessVsTestConsoleWrapper.cs b/src/vstest.console/InProcessVsTestConsoleWrapper.cs index 5dbdd0ea61..5c9236d358 100644 --- a/src/vstest.console/InProcessVsTestConsoleWrapper.cs +++ b/src/vstest.console/InProcessVsTestConsoleWrapper.cs @@ -93,7 +93,7 @@ internal InProcessVsTestConsoleWrapper( // Fill the parameters. consoleParameters.ParentProcessId = -#if NET7_0_OR_GREATER +#if NET6_0_OR_GREATER Environment.ProcessId; #else System.Diagnostics.Process.GetCurrentProcess().Id; diff --git a/src/vstest.console/PublicAPI/net462/PublicAPI.Shipped.txt b/src/vstest.console/PublicAPI/net462/PublicAPI.Shipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/vstest.console/PublicAPI/net462/PublicAPI.Shipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/vstest.console/PublicAPI/net462/PublicAPI.Unshipped.txt b/src/vstest.console/PublicAPI/net462/PublicAPI.Unshipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/vstest.console/PublicAPI/net462/PublicAPI.Unshipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/vstest.console/PublicAPI/net48/PublicAPI.Shipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to src/vstest.console/PublicAPI/net48/PublicAPI.Shipped.txt diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/vstest.console/PublicAPI/net48/PublicAPI.Unshipped.txt similarity index 100% rename from src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to src/vstest.console/PublicAPI/net48/PublicAPI.Unshipped.txt diff --git a/src/vstest.console/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/vstest.console/PublicAPI/net6.0/PublicAPI.Shipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/vstest.console/PublicAPI/net6.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/vstest.console/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/vstest.console/PublicAPI/net6.0/PublicAPI.Unshipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/vstest.console/PublicAPI/net6.0/PublicAPI.Unshipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/vstest.console/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/vstest.console/PublicAPI/net7.0/PublicAPI.Shipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/vstest.console/PublicAPI/net7.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/vstest.console/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/vstest.console/PublicAPI/net7.0/PublicAPI.Unshipped.txt deleted file mode 100644 index 7dc5c58110..0000000000 --- a/src/vstest.console/PublicAPI/net7.0/PublicAPI.Unshipped.txt +++ /dev/null @@ -1 +0,0 @@ -#nullable enable diff --git a/src/datacollector/PublicAPI/net462/PublicAPI.Shipped.txt b/src/vstest.console/PublicAPI/net8.0/PublicAPI.Shipped.txt similarity index 100% rename from src/datacollector/PublicAPI/net462/PublicAPI.Shipped.txt rename to src/vstest.console/PublicAPI/net8.0/PublicAPI.Shipped.txt diff --git a/src/datacollector/PublicAPI/net462/PublicAPI.Unshipped.txt b/src/vstest.console/PublicAPI/net8.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/datacollector/PublicAPI/net462/PublicAPI.Unshipped.txt rename to src/vstest.console/PublicAPI/net8.0/PublicAPI.Unshipped.txt diff --git a/src/datacollector/PublicAPI/net472/PublicAPI.Shipped.txt b/src/vstest.console/PublicAPI/net9.0/PublicAPI.Shipped.txt similarity index 100% rename from src/datacollector/PublicAPI/net472/PublicAPI.Shipped.txt rename to src/vstest.console/PublicAPI/net9.0/PublicAPI.Shipped.txt diff --git a/src/datacollector/PublicAPI/net472/PublicAPI.Unshipped.txt b/src/vstest.console/PublicAPI/net9.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/datacollector/PublicAPI/net472/PublicAPI.Unshipped.txt rename to src/vstest.console/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/vstest.console/app.config b/src/vstest.console/app.config index f133e90359..e6708ef2b7 100644 --- a/src/vstest.console/app.config +++ b/src/vstest.console/app.config @@ -29,6 +29,18 @@ + + + + + + + + + + + + diff --git a/src/vstest.console/vstest.console.csproj b/src/vstest.console/vstest.console.csproj index 34b9f565b5..262e80a41a 100644 --- a/src/vstest.console/vstest.console.csproj +++ b/src/vstest.console/vstest.console.csproj @@ -5,13 +5,17 @@ vstest.console - net7.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum) + $(RunnerTargetFrameworks) Exe - + false Major false - AnyCPU + AnyCPU app.manifest Microsoft.VisualStudio.TestPlatform.CommandLine true @@ -24,10 +28,10 @@ $(MSBuildWarningsAsMessages);MSB3276 - + win7-x64 - + diff --git a/test/.editorconfig b/test/.editorconfig index c6e43695db..f44194a73b 100644 --- a/test/.editorconfig +++ b/test/.editorconfig @@ -32,4 +32,7 @@ dotnet_diagnostic.CA1051.severity = silent # Disabled on tests as it does not ma # CA1710: Identifiers should have correct suffix dotnet_diagnostic.CA1710.severity = warning +# CA1822: Mark members as static +dotnet_diagnostic.CA1822.severity = silent + #### C# Naming styles #### diff --git a/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests.csproj b/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests.csproj index eea478833c..d0bf3ef5c3 100644 --- a/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests.csproj +++ b/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests.csproj @@ -18,7 +18,7 @@ - + diff --git a/test/Intent.Primitives/Intent.Primitives.csproj b/test/Intent.Primitives/Intent.Primitives.csproj index e251c464ae..5529e52d99 100644 --- a/test/Intent.Primitives/Intent.Primitives.csproj +++ b/test/Intent.Primitives/Intent.Primitives.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable diff --git a/test/Intent/Intent.csproj b/test/Intent/Intent.csproj index 45d0d9ea94..77abf82a4b 100644 --- a/test/Intent/Intent.csproj +++ b/test/Intent/Intent.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AcceptanceTestBase.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AcceptanceTestBase.cs index cac7da3fb0..716bab8b38 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AcceptanceTestBase.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AcceptanceTestBase.cs @@ -17,9 +17,9 @@ public class AcceptanceTestBase : IntegrationTestBase public const string Net471TargetFramework = "net471"; public const string Net472TargetFramework = "net472"; public const string Net48TargetFramework = "net48"; - public const string Core31TargetFramework = "netcoreapp3.1"; - public const string Core50TargetFramework = "net5.0"; - public const string Core60TargetFramework = "net6.0"; + public const string Core80TargetFramework = "net8.0"; + public const string Core90TargetFramework = "net9.0"; + public const string Core10TargetFramework = "net10.0"; public const string DesktopFrameworkArgValue = Net462FrameworkArgValue; public const string Net462FrameworkArgValue = ".NETFramework,Version=v4.6.2"; @@ -28,24 +28,24 @@ public class AcceptanceTestBase : IntegrationTestBase public const string Net472FrameworkArgValue = ".NETFramework,Version=v4.7.2"; public const string Net48FrameworkArgValue = ".NETFramework,Version=v4.8"; - public const string Core31FrameworkArgValue = ".NETCoreApp,Version=v3.1"; - public const string Core50FrameworkArgValue = ".NETCoreApp,Version=v5.0"; - public const string Core60FrameworkArgValue = ".NETCoreApp,Version=v6.0"; + public const string Core80FrameworkArgValue = ".NETCoreApp,Version=v8.0"; + public const string Core90FrameworkArgValue = ".NETCoreApp,Version=v9.0"; + public const string Core10FrameworkArgValue = ".NETCoreApp,Version=v10.0"; public const string DesktopRunnerTargetRuntime = "win7-x64"; public const string CoreRunnerTargetRuntime = ""; public const string InIsolation = "/InIsolation"; public const string NETFX462_48 = "net462;net472;net48"; - public const string NETFX462_NET50 = "net462;net472;net48;netcoreapp3.1;net5.0"; + public const string NETFX462_NET9 = "net462;net472;net48;net8.0;net9.0"; public const string DEFAULT_RUNNER_NETFX = Net462TargetFramework; public const string DEFAULT_HOST_NETFX = Net462TargetFramework; - public const string DEFAULT_RUNNER_NETCORE = Core31TargetFramework; - public const string DEFAULT_HOST_NETCORE = Core31TargetFramework; + public const string DEFAULT_RUNNER_NETCORE = Core80TargetFramework; + public const string DEFAULT_HOST_NETCORE = Core80TargetFramework; /// /// Our current defaults for .NET and .NET Framework. /// - public const string DEFAULT_HOST_NETFX_AND_NET = "net462;netcoreapp3.1"; + public const string DEFAULT_HOST_NETFX_AND_NET = "net462;net8.0"; public const string LATEST_TO_LEGACY = "Latest;LatestPreview;LatestStable;RecentStable;MostDownloaded;PreviousStable;LegacyStable"; public const string LATESTPREVIEW_TO_LEGACY = "LatestPreview;LatestStable;RecentStable;MostDownloaded;PreviousStable;LegacyStable"; public const string LATEST = "Latest"; @@ -74,9 +74,9 @@ protected static void SetTestEnvironment(IntegrationTestEnvironment testEnvironm protected static string DeriveFrameworkArgValue(IntegrationTestEnvironment testEnvironment) => testEnvironment.TargetFramework switch { - Core31TargetFramework => Core31FrameworkArgValue, - Core50TargetFramework => Core50FrameworkArgValue, - Core60TargetFramework => Core60FrameworkArgValue, + Core80TargetFramework => Core80FrameworkArgValue, + Core90TargetFramework => Core90FrameworkArgValue, + Core10TargetFramework => Core10FrameworkArgValue, Net462TargetFramework => Net462FrameworkArgValue, Net47TargetFramework => Net47FrameworkArgValue, Net471TargetFramework => Net471FrameworkArgValue, diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyMetadataProviderTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyMetadataProviderTests.cs index c52f1c2f5c..9fc136accb 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyMetadataProviderTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyMetadataProviderTests.cs @@ -55,7 +55,7 @@ public void Cleanup() [TestMethod] [DataRow("net462")] - [DataRow("netcoreapp3.1")] + [DataRow("net8.0")] public void GetArchitectureShouldReturnCorrentArchForx64Assembly(string framework) { TestDotnetAssemblyArch("SimpleTestProject3", framework, Architecture.X64, expectedElapsedTime: ExpectedTimeForFindingArchForDotNetAssembly); @@ -63,7 +63,7 @@ public void GetArchitectureShouldReturnCorrentArchForx64Assembly(string framewor [TestMethod] [DataRow("net462")] - [DataRow("netcoreapp3.1")] + [DataRow("net8.0")] public void GetArchitectureShouldReturnCorrentArchForx86Assembly(string framework) { TestDotnetAssemblyArch("SimpleTestProjectx86", framework, Architecture.X86, expectedElapsedTime: ExpectedTimeForFindingArchForDotNetAssembly); @@ -71,7 +71,7 @@ public void GetArchitectureShouldReturnCorrentArchForx86Assembly(string framewor [TestMethod] [DataRow("net462")] - [DataRow("netcoreapp3.1")] + [DataRow("net8.0")] public void GetArchitectureShouldReturnCorrentArchForAnyCpuAssembly(string framework) { TestDotnetAssemblyArch("SimpleTestProject", framework, Architecture.AnyCPU, expectedElapsedTime: ExpectedTimeForFindingArchForDotNetAssembly); @@ -79,10 +79,10 @@ public void GetArchitectureShouldReturnCorrentArchForAnyCpuAssembly(string frame [TestMethod] [DataRow("net462")] - [DataRow("netcoreapp3.1")] - public void GetArchitectureShouldReturnCorrentArchForArmAssembly(string framework) + [DataRow("net8.0")] + public void GetArchitectureShouldReturnCorrentArchForArm64Assembly(string framework) { - TestDotnetAssemblyArch("SimpleTestProjectARM", framework, Architecture.ARM, expectedElapsedTime: ExpectedTimeForFindingArchForDotNetAssembly); + TestDotnetAssemblyArch("SimpleTestProjectARM64", framework, Architecture.ARM64, expectedElapsedTime: ExpectedTimeForFindingArchForDotNetAssembly); } [TestMethod] @@ -108,7 +108,7 @@ public void GetArchitectureForNativeDll(string platform) [TestMethod] [DataRow("net462")] - [DataRow("netcoreapp3.1")] + [DataRow("net8.0")] public void GetFrameWorkForDotNetAssembly(string framework) { var expectedElapsedTime = 5; @@ -126,7 +126,7 @@ public void GetFrameWorkForDotNetAssembly(string framework) } else { - Assert.AreEqual(".NETCoreApp,Version=v3.1", actualFx.FullName); + Assert.AreEqual(".NETCoreApp,Version=v8.0", actualFx.FullName); } Console.WriteLine("Framework:{0}, {1}", framework, string.Format(CultureInfo.CurrentCulture, PerfAssertMessageFormat, expectedElapsedTime, stopWatch.ElapsedMilliseconds)); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyPropertiesTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyPropertiesTests.cs index aa98715583..df63b296d0 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyPropertiesTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/AssemblyPropertiesTests.cs @@ -19,7 +19,7 @@ public AssemblyPropertiesTests() [TestMethod] [DataRow("net462")] - [DataRow("netcoreapp3.1")] + [DataRow("net8.0")] public void GetAssemblyTypeForManagedDll(string framework) { var assemblyPath = _testEnvironment.GetTestAsset("SimpleTestProject3.dll", framework); @@ -47,7 +47,7 @@ public void GetAssemblyTypeForManagedExe() } [TestMethod] - [DataRow("netcoreapp3.1")] + [DataRow("net8.0")] public void GetAssemblyTypeForNetCoreManagedExe(string framework) { var assemblyPath = _testEnvironment.GetTestAsset("ConsoleManagedApp.dll", framework); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/BlameDataCollectorTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/BlameDataCollectorTests.cs index b36ace80bc..73cc7ed8aa 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/BlameDataCollectorTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/BlameDataCollectorTests.cs @@ -24,8 +24,8 @@ namespace Microsoft.TestPlatform.AcceptanceTests; [TestCategory("Windows-Review")] public class BlameDataCollectorTests : AcceptanceTestBase { - public const string NETCOREANDFX = "net462;net472;netcoreapp3.1"; - public const string NET60 = "net6.0"; + public const string NETCOREANDFX = "net462;net472;net8.0"; + public const string NET60 = "net8.0"; private readonly string _procDumpPath; public BlameDataCollectorTests() @@ -108,8 +108,10 @@ public void BlameDataCollectorShouldNotOutputDumpFileWhenNoCrashOccurs(RunnerInf [TestMethod] [TestCategory("Windows-Review")] + // This tests .net runner and .net framework runner, together with .net framework testhost [NetFullTargetFrameworkDataSource] - [NetCoreTargetFrameworkDataSource] + // .NET does not support crash dump on exit + // [NetCoreTargetFrameworkDataSource] public void BlameDataCollectorShouldOutputDumpFileWhenNoCrashOccursButCollectAlwaysIsEnabled(RunnerInfo runnerInfo) { @@ -131,9 +133,9 @@ public void BlameDataCollectorShouldOutputDumpFileWhenNoCrashOccursButCollectAlw } [TestMethod] - [NetCoreRunner("net462;net472;netcoreapp3.1;net6.0")] + [NetCoreRunner("net462;net472;net8.0;net9.0")] // should make no difference, keeping for easy debug - // [NetFrameworkRunner("net462;net472;netcoreapp3.1;net6.0")] + // [NetFrameworkRunner("net462;net472;net8.0;net9.0")] public void HangDumpOnTimeout(RunnerInfo runnerInfo) { SetTestEnvironment(_testEnvironment, runnerInfo); @@ -153,10 +155,10 @@ public void HangDumpOnTimeout(RunnerInfo runnerInfo) } [TestMethod] - // net6.0 does not support dump on exit - [NetCoreRunner("net462;net472;netcoreapp3.1")] + // net8.0 does not support dump on exit + [NetCoreRunner("net462;net472")] // should make no difference, keeping for easy debug - // [NetFrameworkRunner("net462;net472;netcoreapp3.1")] + // [NetFrameworkRunner("net462;net472")] public void CrashDumpWhenThereIsNoTimeout(RunnerInfo runnerInfo) { @@ -177,10 +179,9 @@ public void CrashDumpWhenThereIsNoTimeout(RunnerInfo runnerInfo) } [TestMethod] - // net6.0 does not support dump on exit - [NetCoreRunner("net462;net472;netcoreapp3.1")] - // should make no difference, keeping for easy debug - // [NetFrameworkRunner("net462;net472;netcoreapp3.1")] + // .NET tfms do not support dump on exit, but runner does + [NetCoreRunner("net462;net472")] + // [NetFrameworkRunner("net462;net472")] public void CrashDumpOnExit(RunnerInfo runnerInfo) { @@ -201,9 +202,9 @@ public void CrashDumpOnExit(RunnerInfo runnerInfo) } [TestMethod] - [NetCoreRunner("net462;net472;netcoreapp3.1;net6.0")] + [NetCoreRunner("net462;net472;net8.0;net9.0")] // should make no difference, keeping for easy debug - // [NetFrameworkRunner("net462;net472;netcoreapp3.1;net6.0")] + // [NetFrameworkRunner("net462;net472;net8.0;net9.0")] public void CrashDumpOnStackOverflow(RunnerInfo runnerInfo) { SetTestEnvironment(_testEnvironment, runnerInfo); @@ -239,9 +240,9 @@ public void CrashDumpChildProcesses(RunnerInfo runnerInfo) } [TestMethod] - [NetCoreRunner("net462;net472;netcoreapp3.1;net6.0")] + [NetCoreRunner("net462;net472;net8.0;net9.0")] // should make no difference, keeping for easy debug - // [NetFrameworkRunner("net462;net472;netcoreapp3.1;net6.0")] + // [NetFrameworkRunner("net462;net472;net8.0;net9.0")] public void HangDumpChildProcesses(RunnerInfo runnerInfo) { SetTestEnvironment(_testEnvironment, runnerInfo); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DataCollectorTests.Coverlet.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DataCollectorTests.Coverlet.cs index 82891c9c76..9931acf617 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DataCollectorTests.Coverlet.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DataCollectorTests.Coverlet.cs @@ -25,7 +25,7 @@ public void RunCoverletCoverage() } // We use netcoreapp runner - // "...\vstest\tools\dotnet\dotnet.exe "...\vstest\artifacts\Debug\netcoreapp3.1\vstest.console.dll" --collect:"XPlat Code Coverage" ... + // "...\vstest\tools\dotnet\dotnet.exe "...\vstest\artifacts\Debug\net8.0\vstest.console.dll" --collect:"XPlat Code Coverage" ... _testEnvironment.RunnerFramework = CoreRunnerFramework; var resultsDir = new TempDirectory(); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DiaSessionTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DiaSessionTests.cs index f78fbaef84..debf1e1f3e 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DiaSessionTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DiaSessionTests.cs @@ -20,7 +20,7 @@ public class DiaSessionTests : AcceptanceTestBase #if NETFRAMEWORK "net462"; #else - "netcoreapp3.1"; + "net8.0"; #endif return currentTargetFrameWork; } @@ -130,17 +130,17 @@ private static void ValidateLineNumbers(int min, int max) } else { - if (max == 23) + if (max == 22) { Assert.AreEqual(min + 1, max, "Incorrect min line number"); } - else if (max == 27) + else if (max == 26) { Assert.AreEqual(min + 1, max, "Incorrect min line number"); } else { - Assert.Fail($"Incorrect min/max line number. Expected Max to be 23 or 27. And Min to be 22 or 26. But Min was {min}, and Max was {max}."); + Assert.Fail($"Incorrect min/max line number. Expected Max to be 22 or 26. And Min to be 21 or 25. But Min was {min}, and Max was {max}."); } } } diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetArchitectureSwitchTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetArchitectureSwitchTests.cs index a03c0c9776..670e4cf715 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetArchitectureSwitchTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetArchitectureSwitchTests.cs @@ -18,7 +18,7 @@ namespace Microsoft.TestPlatform.AcceptanceTests; // >= x64 6.0.2xx // x64 5.0.4xx for Mac // x64 3.1.4XX for Win -// Manual test './tools/.../dotnet test ./test/Microsoft.TestPlatform.AcceptanceTests/bin/Debug/netcoreapp3.1/Microsoft.TestPlatform.AcceptanceTests.dll --testcasefilter:"DotnetArchitectureSwitchTests"' +// Manual test './tools/.../dotnet test ./test/Microsoft.TestPlatform.AcceptanceTests/bin/Debug/net8.0/Microsoft.TestPlatform.AcceptanceTests.dll --testcasefilter:"DotnetArchitectureSwitchTests"' [TestClass] [Ignore("Manual tests(for now). Tests in this class need some .NET SDK global installations")] public class DotnetArchitectureSwitchTests : AcceptanceTestBase @@ -58,7 +58,7 @@ public void GlobalInstallation() }; // Verify native architecture - ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {projectPath} --framework net6.0", out string stdOut, out _, out _, env, projectDirectory); + ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {projectPath} --framework net8.0", out string stdOut, out _, out _, env, projectDirectory); if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { Assert.IsTrue(stdOut.Contains("Runtime location: /usr/local/share/dotnet/shared/Microsoft.NETCore.App")); @@ -72,11 +72,11 @@ public void GlobalInstallation() // Verify switch using csproj - ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {projectPath} --framework net6.0 --arch x64", out stdOut, out _, out _, env, projectDirectory); + ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {projectPath} --framework net8.0 --arch x64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); // Verify switch using test container - var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net6.0"); + var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net8.0"); ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {buildAssemblyPath} --arch x64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); @@ -116,7 +116,7 @@ public void DOTNET_ROOTS_EnvironmentVariables(bool dotnetRoot, bool dotnetRootX6 var projectDirectory = Path.GetDirectoryName(projectPath); // Verify native architecture - ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {projectPath} --framework net6.0", out string stdOut, out _, out _, env, projectDirectory); + ExecuteApplication(GetDefaultDotnetMuxerLocation, $"test {projectPath} --framework net8.0", out string stdOut, out _, out _, env, projectDirectory); if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { Assert.IsTrue(stdOut.Contains("Runtime location: /usr/local/share/dotnet/shared/Microsoft.NETCore.App"), "Unexpected runtime location"); @@ -142,12 +142,12 @@ public void DOTNET_ROOTS_EnvironmentVariables(bool dotnetRoot, bool dotnetRootX6 } // Verify switch using csproj - ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {projectPath} --framework net6.0 --arch x64", out stdOut, out _, out _, env, projectDirectory); + ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {projectPath} --framework net8.0 --arch x64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); // Verify switch using test container - var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net6.0"); - ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {buildAssemblyPath} --framework net6.0 --arch x64", out stdOut, out _, out _, env, projectDirectory); + var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net8.0"); + ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {buildAssemblyPath} --framework net8.0 --arch x64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); void AssertSwitch(string output) @@ -180,18 +180,18 @@ public void PrivateX64BuildToGlobalArmInstallation() var projectDirectory = Path.GetDirectoryName(projectPath); // Verify native architecture - ExecuteApplication(privateInstallationMuxer, $"test {projectPath} --framework net6.0", out string stdOut, out _, out _, env, projectDirectory); + ExecuteApplication(privateInstallationMuxer, $"test {projectPath} --framework net8.0", out string stdOut, out _, out _, env, projectDirectory); Assert.IsTrue(Regex.IsMatch(stdOut.Replace(@"\", "/"), $"Runtime location: .*{s_privateX64Installation.Replace(@"\", "/")}.*shared.*Microsoft.NETCore.App"), "Unexpected runtime location"); Assert.IsTrue(stdOut.Contains("OSArchitecture: X64"), "Unexpected OSArchitecture"); Assert.IsTrue(stdOut.Contains("ProcessArchitecture: X64"), "Unexpected ProcessArchitecture"); // Verify switch using csproj - ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {projectPath} --framework net6.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); + ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {projectPath} --framework net8.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); // Verify switch using test container - var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net6.0"); - ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {buildAssemblyPath} --framework net6.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); + var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net8.0"); + ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {buildAssemblyPath} --framework net8.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); static void AssertSwitch(string output) @@ -224,7 +224,7 @@ public void PrivateX64BuildToDOTNET_ROOTS_EnvironmentVariables(bool dotnetRoot, var projectDirectory = Path.GetDirectoryName(projectPath); // Verify native architecture - ExecuteApplication(privateInstallationMuxer, $"test {projectPath} --framework net6.0", out string stdOut, out _, out _, env, projectDirectory); + ExecuteApplication(privateInstallationMuxer, $"test {projectPath} --framework net8.0", out string stdOut, out _, out _, env, projectDirectory); Assert.IsTrue(Regex.IsMatch(stdOut.Replace(@"\", "/"), $"Runtime location: .*{s_privateX64Installation.Replace(@"\", "/")}.*shared.*Microsoft.NETCore.App"), "Unexpected runtime location"); Assert.IsTrue(stdOut.Contains("OSArchitecture: X64"), "Unexpected OSArchitecture"); Assert.IsTrue(stdOut.Contains("ProcessArchitecture: X64"), "Unexpected ProcessArchitecture"); @@ -243,12 +243,12 @@ public void PrivateX64BuildToDOTNET_ROOTS_EnvironmentVariables(bool dotnetRoot, } // Verify switch using csproj - ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {projectPath} --framework net6.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); + ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {projectPath} --framework net8.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); // Verify switch using test container - var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net6.0"); - ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {buildAssemblyPath} --framework net6.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); + var buildAssemblyPath = GetTestDllForFramework("ArchitectureSwitch.dll", "net8.0"); + ExecuteApplication($"{s_privateX64Installation}/{GetMuxerName}", $"test {buildAssemblyPath} --framework net8.0 --arch arm64", out stdOut, out _, out _, env, projectDirectory); AssertSwitch(stdOut); void AssertSwitch(string output) @@ -298,8 +298,8 @@ public void SilentlyForceX64() $@"{Environment.ExpandEnvironmentVariables("%ProgramFiles%")}\dotnet\x64"; private static string GetFrameworkVersionToForceToX64 => RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? - "net5.0" : - "netcoreapp3.1"; + "net9.0" : + "net8.0"; private static string GetDefaultLocation => RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? $"/usr/local/share/dotnet" : diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetHostArchitectureVerifierTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetHostArchitectureVerifierTests.cs index 3ff30740f4..04e6e08c3f 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetHostArchitectureVerifierTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetHostArchitectureVerifierTests.cs @@ -23,7 +23,7 @@ public class DotnetHostArchitectureVerifierTests : IntegrationTestBase // [DataRow("X86")] public void VerifyHostArchitecture(string architecture) { - _testEnvironment.RunnerFramework = "netcoreapp3.1"; + _testEnvironment.RunnerFramework = "net8.0"; string dotnetPath = GetDownloadedDotnetMuxerFromTools(architecture); var vstestConsolePath = GetDotnetRunnerPath(); var dotnetRunnerPath = TempDirectory.CreateDirectory("dotnetrunner"); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetTestMSBuildOutputTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetTestMSBuildOutputTests.cs index 70e18080ef..3aca6e7e04 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetTestMSBuildOutputTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DotnetTestMSBuildOutputTests.cs @@ -30,9 +30,9 @@ public void MSBuildLoggerCanBeEnabledByBuildPropertyAndDoesNotEatSpecialChars(Ru // Determining projects to restore... // Restored C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\SimpleTestProject.csproj (in 441 ms). // SimpleTestProject -> C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\artifacts\bin\TestAssets\SimpleTestProject\Debug\net462\SimpleTestProject.dll - // SimpleTestProject -> C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\artifacts\bin\TestAssets\SimpleTestProject\Debug\netcoreapp3.1\SimpleTestProject.dll + // SimpleTestProject -> C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\artifacts\bin\TestAssets\SimpleTestProject\Debug\net8.0\SimpleTestProject.dll // C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\UnitTest1.cs(41): error VSTEST1: (FailingTest) SampleUnitTestProject.UnitTest1.FailingTest() Assert.AreEqual failed. Expected:<2>. Actual:<3>. [C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\SimpleTestProject.csproj::TargetFramework=net462] - // C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\UnitTest1.cs(41): error VSTEST1: (FailingTest) SampleUnitTestProject.UnitTest1.FailingTest() Assert.AreEqual failed. Expected:<2>. Actual:<3>. [C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\SimpleTestProject.csproj::TargetFramework=netcoreapp3.1] + // C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\UnitTest1.cs(41): error VSTEST1: (FailingTest) SampleUnitTestProject.UnitTest1.FailingTest() Assert.AreEqual failed. Expected:<2>. Actual:<3>. [C:\Users\nohwnd\AppData\Local\Temp\vstest\xvoVt\SimpleTestProject.csproj::TargetFramework=net8.0] StdOutputContains("TESTERROR"); StdOutputContains("FailingTest ("); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ExecutionTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ExecutionTests.cs index 1678f6a13e..47761acff0 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ExecutionTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ExecutionTests.cs @@ -202,7 +202,7 @@ public void StackOverflowExceptionShouldBeLoggedToConsoleAndDiagLogFile(RunnerIn InvokeVsTest(arguments); var errorMessage = "Process is terminated due to StackOverflowException."; - if (runnerInfo.TargetFramework.StartsWith("netcoreapp")) + if (!runnerInfo.TargetFramework.StartsWith("net4")) { errorMessage = "Test host process crashed : Stack overflow."; } @@ -232,7 +232,7 @@ public void UnhandleExceptionExceptionShouldBeLoggedToDiagLogFile(RunnerInfo run InvokeVsTest(arguments); var errorFirstLine = - runnerInfo.TargetFramework.StartsWith("netcoreapp") + !runnerInfo.TargetFramework.StartsWith("net4") ? "Test host standard error line: Unhandled exception. System.InvalidOperationException: Operation is not valid due to the current state of the object." : "Test host standard error line: Unhandled Exception: System.InvalidOperationException: Operation is not valid due to the current state of the object."; FileAssert.Contains(diagLogFilePath, errorFirstLine); @@ -418,7 +418,7 @@ public void RunXunitTestsWhenProvidingAllDllsInBin(RunnerInfo runnerInfo) // ! * *\*TestAdapter.dll // ! * *\obj\** // Because of this in typical run we get a lot of dlls that we are sure don't have tests, like Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - // or testhost.dll. Those dlls are built for netcoreapp3.1 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json + // or testhost.dll. Those dlls are built for net8.0 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json // or deps.json, and fails the run. SetTestEnvironment(_testEnvironment, runnerInfo); @@ -443,7 +443,7 @@ public void RunMstestTestsWhenProvidingAllDllsInBin(RunnerInfo runnerInfo) // ! * *\*TestAdapter.dll // ! * *\obj\** // Because of this in typical run we get a lot of dlls that we are sure don't have tests, like Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - // or testhost.dll. Those dlls are built for netcoreapp3.1 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json + // or testhost.dll. Those dlls are built for net8.0 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json // or deps.json, and fails the run. SetTestEnvironment(_testEnvironment, runnerInfo); @@ -467,7 +467,7 @@ public void RunNunitTestsWhenProvidingAllDllsInBin(RunnerInfo runnerInfo) // ! * *\*TestAdapter.dll // ! * *\obj\** // Because of this in typical run we get a lot of dlls that we are sure don't have tests, like Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - // or testhost.dll. Those dlls are built for netcoreapp3.1 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json + // or testhost.dll. Those dlls are built for net8.0 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json // or deps.json, and fails the run. SetTestEnvironment(_testEnvironment, runnerInfo); @@ -490,7 +490,7 @@ public void RunTestsWhenProvidingJustPlatformDllsFailsTheRun(RunnerInfo runnerIn // ! * *\*TestAdapter.dll // ! * *\obj\** // Because of this in typical run we get a lot of dlls that we are sure don't have tests, like Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - // or testhost.dll. Those dlls are built for netcoreapp3.1 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json + // or testhost.dll. Those dlls are built for net8.0 tfm, so theoretically they should be tests, but attempting to run them fails to find runtimeconfig.json // or deps.json, and fails the run. SetTestEnvironment(_testEnvironment, runnerInfo); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/CompatibilityRowsBuilder.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/CompatibilityRowsBuilder.cs index d798463ae2..01f38e3639 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/CompatibilityRowsBuilder.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/CompatibilityRowsBuilder.cs @@ -366,7 +366,9 @@ true when NuGetVersion.TryParse(version, out var v) false when version.StartsWith("15.") => GetContentFilesPath("netcoreapp2.0"), false when NuGetVersion.TryParse(version, out var v) && new NuGetVersion(v.Major, v.Minor, v.Patch) < new NuGetVersion("17.4.0") => GetContentFilesPath("netcoreapp2.1"), - false => GetContentFilesPath("netcoreapp3.1"), + false when NuGetVersion.TryParse(version, out var v) + && new NuGetVersion(v.Major, v.Minor, v.Patch) <= new NuGetVersion("17.12.0") => GetContentFilesPath("netcoreapp3.1"), + false => GetContentFilesPath("net9.0"), }; return new VSTestConsoleInfo diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreRunnerAttribute.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreRunnerAttribute.cs index a1362f1c56..4b29b27dad 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreRunnerAttribute.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreRunnerAttribute.cs @@ -16,7 +16,7 @@ namespace Microsoft.TestPlatform.AcceptanceTests; /// /// Runs tests using the dotnet vstest.console.dll built against .NET Core 3.1. /// Provide a list of target frameworks to run the tests from given as a ';' separated list, or using a constant containing that range such as -/// AcceptanceTestBase.NETFX462_NET50 = "net462;net472;net48;netcoreapp3.1;net5.0" to determine which target framework of the project +/// AcceptanceTestBase.NETFX462_NET9 = "net462;net472;net48;net8.0;net9.0" to determine which target framework of the project /// to test. The target project must list those TFMs in the TargetFrameworks property in csproj. /// [AttributeUsage(AttributeTargets.Method)] @@ -28,7 +28,7 @@ public class NetCoreRunnerAttribute : Attribute, ITestDataSource /// Initializes a new instance of the class. /// /// To run tests with desktop runner(vstest.console.exe), use AcceptanceTestBase.Net462TargetFramework or alike values. - public NetCoreRunnerAttribute(string targetFrameworks = AcceptanceTestBase.NETFX462_NET50) + public NetCoreRunnerAttribute(string targetFrameworks = AcceptanceTestBase.NETFX462_NET9) { _targetFrameworks = targetFrameworks; } diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreTargetFrameworkDataSourceAttribute.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreTargetFrameworkDataSourceAttribute.cs index a227c37af1..ad85630dbe 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreTargetFrameworkDataSourceAttribute.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetCoreTargetFrameworkDataSourceAttribute.cs @@ -68,14 +68,14 @@ public IEnumerable GetData(MethodInfo methodInfo) { var runnerFramework = IntegrationTestBase.DesktopRunnerFramework; - AddRunnerDataRow(dataRows, runnerFramework, AcceptanceTestBase.Core31TargetFramework); + AddRunnerDataRow(dataRows, runnerFramework, AcceptanceTestBase.Core80TargetFramework); } if (_useCoreRunner) { var runnerFramework = IntegrationTestBase.CoreRunnerFramework; - AddRunnerDataRow(dataRows, runnerFramework, AcceptanceTestBase.Core31TargetFramework); + AddRunnerDataRow(dataRows, runnerFramework, AcceptanceTestBase.Core80TargetFramework); } return dataRows; diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetFrameworkRunnerAttribute.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetFrameworkRunnerAttribute.cs index 037bb03a1a..2de6985cfe 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetFrameworkRunnerAttribute.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/NetFrameworkRunnerAttribute.cs @@ -13,9 +13,9 @@ namespace Microsoft.TestPlatform.AcceptanceTests; /// -/// Runs tests using the dotnet vstest.console.dll built against .NET Core 2.1. +/// Runs tests using the dotnet vstest.console.dll built against .NET 6.0. /// Provide a list of target frameworks to run the tests from given as a ';' separated list, or using a constant containing that range such as -/// AcceptanceTestBase.NETFX462_NET50 = "net462;net472;net48;netcoreapp3.1;net5.0" to determine which target framework of the project +/// AcceptanceTestBase.NETFX462_NET9 = "net462;net472;net48;net8.0;net9.0" to determine which target framework of the project /// to test. The target project must list those TFMs in the TargetFrameworks property in csproj. /// [AttributeUsage(AttributeTargets.Method)] @@ -25,7 +25,7 @@ public class NetFrameworkRunnerAttribute : Attribute, ITestDataSource /// Initializes a new instance of the class. /// /// To run tests with desktop runner(vstest.console.exe), use AcceptanceTestBase.Net462TargetFramework or alike values. - public NetFrameworkRunnerAttribute(string targetFrameworks = AcceptanceTestBase.NETFX462_NET50) + public NetFrameworkRunnerAttribute(string targetFrameworks = AcceptanceTestBase.NETFX462_NET9) { _targetFrameworks = targetFrameworks; } diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/TestPlatformCompatibilityDataSource.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/TestPlatformCompatibilityDataSource.cs index be3724c6e0..58715203fb 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/TestPlatformCompatibilityDataSource.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Extension/TestPlatformCompatibilityDataSource.cs @@ -11,7 +11,7 @@ namespace Microsoft.TestPlatform.AcceptanceTests; /// used only to test the most common scenarios, or special configurations that are candidates for their own /// specialized source. /// -/// By default net462 and netcoreapp3.1 are used for both runner and host. (4 combinations) +/// By default net462 and net8.0 are used for both runner and host. (4 combinations) /// Then run with every version of runner is added. /// Then run with every version of test.sdk is added. /// Then run with every combination of testhost and adapter is added. diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/FrameworkTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/FrameworkTests.cs index 74edcf0713..29f2bccb69 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/FrameworkTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/FrameworkTests.cs @@ -80,17 +80,17 @@ public void RunSpecificTestsShouldWorkWithFrameworkInCompatibleWarning(RunnerInf InvokeVsTest(arguments); - // When this test runs it provides an incorrect desired framework for the run. E.g. the dll is actually netcoreapp3.1 - // but we request to run as .NET Framework 4.0. On windows this has predictable results, for netcoreapp3.1 dll we fail + // When this test runs it provides an incorrect desired framework for the run. E.g. the dll is actually net8.0 + // but we request to run as .NET Framework 4.0. On windows this has predictable results, for net8.0 dll we fail // to load it into .NET Framework testhost.exe, and fail with "No test is available". For .NET Framework dll, we // just log a warning saying that we provided .NET Framework 472 dlls (or whatever the current tfm for test dlls is), // but the settings requested .NET Framework 4.0. The test will still run because .NET Framework is compatible, and in reality // the system has .NET Framework 472 or newer installed, which runs even if we ask for .NET Framework 4.0 testhost. // - // On Linux and Mac we execute only netcoreapp3.1 tests, and even though we force .NET Framework, we end up running on mono + // On Linux and Mac we execute only net8.0 tests, and even though we force .NET Framework, we end up running on mono // which is suprisingly able to run the .NET CoreApp 3.1 dll, so we still just see a warning and 1 completed test. var isWindows = Environment.OSVersion.Platform.ToString().StartsWith("Win"); - if (runnerInfo.TargetFramework.Contains("netcore") && isWindows) + if (runnerInfo.TargetFramework.Contains("net8") && isWindows) { StdOutputContains("No test is available"); } diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Microsoft.TestPlatform.Acceptance.IntegrationTests.csproj b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Microsoft.TestPlatform.Acceptance.IntegrationTests.csproj index 0780c80452..82eb7326ec 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Microsoft.TestPlatform.Acceptance.IntegrationTests.csproj +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Microsoft.TestPlatform.Acceptance.IntegrationTests.csproj @@ -7,8 +7,8 @@ - Exe - net6.0;net48 + Exe + net9.0;net48 @@ -37,18 +37,10 @@ - + - - - - - - - - diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Performance/TranslationLayer/TelemetryPerfTestBase.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Performance/TranslationLayer/TelemetryPerfTestBase.cs index cb4a59b220..31a6e4ad63 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Performance/TranslationLayer/TelemetryPerfTestBase.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/Performance/TranslationLayer/TelemetryPerfTestBase.cs @@ -115,7 +115,7 @@ private static string GetAdapterName(string projectName) /// public string[] GetPerfAssetFullPath(string name, string framework = "net48") { - // TODO: how was I doing it before? The build is for net48, were we running net6.0 here? + // TODO: how was I doing it before? The build is for net48, were we running net8.0 here? var dllPath = GetTestDllForFramework($"{name}.dll", framework); return !File.Exists(dllPath) ? throw new FileNotFoundException(null, dllPath) diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ProcessesInteractionTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ProcessesInteractionTests.cs index 13208c4d69..32228f1da8 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ProcessesInteractionTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ProcessesInteractionTests.cs @@ -22,7 +22,7 @@ public void WhenTestHostProcessExitsBecauseTheTargetedRuntimeIsNoFoundThenTheMes // Arrange SetTestEnvironment(_testEnvironment, runnerInfo); const string testAssetProjectName = "SimpleTestProjectMessedUpTargetFramework"; - var assemblyPath = GetTestDllForFramework(testAssetProjectName + ".dll", Core31TargetFramework); + var assemblyPath = GetTestDllForFramework(testAssetProjectName + ".dll", Core80TargetFramework); UpdateRuntimeConfigJsonWithInvalidFramework(assemblyPath, testAssetProjectName); // Act @@ -39,7 +39,7 @@ static void UpdateRuntimeConfigJsonWithInvalidFramework(string assemblyPath, str // that's only meant to be used by this project. var runtimeConfigJson = Path.Combine(Path.GetDirectoryName(assemblyPath)!, testAssetProjectName + ".runtimeconfig.json"); var fileContent = File.ReadAllText(runtimeConfigJson); - var updatedContent = fileContent.Replace("\"version\": \"3.1.0\"", "\"version\": \"0.0.0\""); + var updatedContent = fileContent.Replace("\"version\": \"8.0.0\"", "\"version\": \"0.0.0\""); File.WriteAllText(runtimeConfigJson, updatedContent); } } diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/SelfContainedAppTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/SelfContainedAppTests.cs index fdfddcd95b..531f35c012 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/SelfContainedAppTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/SelfContainedAppTests.cs @@ -22,8 +22,8 @@ public void RunningApplicationThatIsBuiltAsSelfContainedWillNotFailToFindHostpol // see https://github.com/dotnet/runtime/issues/3569#issuecomment-595820524 and below for description of how it works SetTestEnvironment(_testEnvironment, runnerInfo); - // the app is published to win10-x64 because of the runtime identifier in the project - var assemblyPath = GetAssetFullPath($@"win10-x64{Path.DirectorySeparatorChar}SelfContainedAppTestProject.dll"); + // the app is published to win-x64 because of the runtime identifier in the project + var assemblyPath = GetAssetFullPath($@"win-x64{Path.DirectorySeparatorChar}SelfContainedAppTestProject.dll"); var arguments = PrepareArguments(assemblyPath, null, null, FrameworkArgValue, runnerInfo.InIsolationValue, resultsDirectory: TempDirectory.Path); InvokeVsTest(arguments); diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/DifferentTestFrameworkSimpleTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/DifferentTestFrameworkSimpleTests.cs index c744db464b..8532a5d229 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/DifferentTestFrameworkSimpleTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/DifferentTestFrameworkSimpleTests.cs @@ -10,6 +10,7 @@ using Microsoft.TestPlatform.TestUtilities; using Microsoft.TestPlatform.VsTestConsole.TranslationLayer.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; +//using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Microsoft.TestPlatform.AcceptanceTests.TranslationLayerTests; @@ -77,8 +78,8 @@ public void RunTestsWithNunitAdapter(RunnerInfo runnerInfo) [TestMethod] // there are logs in the diagnostic log, it is failing with NullReferenceException because path is null [TestCategory("Windows-Review")] - [NetFullTargetFrameworkDataSource] - [NetCoreTargetFrameworkDataSource] + [NetFullTargetFrameworkDataSource(useCoreRunner: true, useDesktopRunner: false)] + // [NetCoreTargetFrameworkDataSource] public void RunTestsWithXunitAdapter(RunnerInfo runnerInfo) { SetTestEnvironment(_testEnvironment, runnerInfo); @@ -91,7 +92,12 @@ public void RunTestsWithXunitAdapter(RunnerInfo runnerInfo) _vstestConsoleWrapper.RunTests( sources, - GetDefaultRunSettings(), + $@" + + + {runnerInfo.TargetFramework} + + ", _runEventHandler); var testCase = diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/RunTestsWithDifferentConfigurationTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/RunTestsWithDifferentConfigurationTests.cs index 426ce341cf..abf6f49b7b 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/RunTestsWithDifferentConfigurationTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/TranslationLayerTests/RunTestsWithDifferentConfigurationTests.cs @@ -21,7 +21,7 @@ namespace Microsoft.TestPlatform.AcceptanceTests.TranslationLayerTests; [TestClass] public class RunTestsWithDifferentConfigurationTests : AcceptanceTestBase { - private const string Netcoreapp = "netcoreapp"; + private const string NetFramework = "net4"; private const string Message = "VsTestConsoleWrapper does not support .Net Core Runner"; private IVsTestConsoleWrapper? _vstestConsoleWrapper; @@ -101,11 +101,11 @@ public void RunTestsWithRunSettingsWithParallel(RunnerInfo runnerInfo) [TestMethod] [TestCategory("Windows-Review")] - [NetFullTargetFrameworkDataSource] + [NetFullTargetFrameworkDataSource()] public void RunTestsWithTestSettings(RunnerInfo runnerInfo) { SetTestEnvironment(_testEnvironment, runnerInfo); - ExecuteNotSupportedRunnerFrameworkTests(runnerInfo.RunnerFramework, Netcoreapp, Message); + ExecuteNotSupportedRunnerFrameworkTests(runnerInfo.RunnerFramework, NetFramework, Message); Setup(); var testsettingsFile = Path.Combine(TempDirectory.Path, "tempsettings.testsettings"); diff --git a/test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/Microsoft.TestPlatform.AdapterUtilities.UnitTests.csproj b/test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/Microsoft.TestPlatform.AdapterUtilities.UnitTests.csproj index c2f98954c2..3a908e87bc 100644 --- a/test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/Microsoft.TestPlatform.AdapterUtilities.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/Microsoft.TestPlatform.AdapterUtilities.UnitTests.csproj @@ -5,8 +5,8 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.AdapterUtilities.UnitTests true $(NoWarn);RS1024 diff --git a/test/Microsoft.TestPlatform.Build.UnitTests/Microsoft.TestPlatform.Build.UnitTests.csproj b/test/Microsoft.TestPlatform.Build.UnitTests/Microsoft.TestPlatform.Build.UnitTests.csproj index 8a2c2516cf..9363812637 100644 --- a/test/Microsoft.TestPlatform.Build.UnitTests/Microsoft.TestPlatform.Build.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Build.UnitTests/Microsoft.TestPlatform.Build.UnitTests.csproj @@ -6,8 +6,8 @@ - net8.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.Build.UnitTests diff --git a/test/Microsoft.TestPlatform.Client.UnitTests/Microsoft.TestPlatform.Client.UnitTests.csproj b/test/Microsoft.TestPlatform.Client.UnitTests/Microsoft.TestPlatform.Client.UnitTests.csproj index d3976dd0ef..5839ea296b 100644 --- a/test/Microsoft.TestPlatform.Client.UnitTests/Microsoft.TestPlatform.Client.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Client.UnitTests/Microsoft.TestPlatform.Client.UnitTests.csproj @@ -6,17 +6,11 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.Client.UnitTests - - - - - - diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/Microsoft.TestPlatform.Common.UnitTests.csproj b/test/Microsoft.TestPlatform.Common.UnitTests/Microsoft.TestPlatform.Common.UnitTests.csproj index 5a72e7dc34..37e4ae7b0f 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/Microsoft.TestPlatform.Common.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Common.UnitTests/Microsoft.TestPlatform.Common.UnitTests.csproj @@ -6,16 +6,10 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.Common.UnitTests - - - - - - diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests.csproj b/test/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests.csproj index d63e9e4f6c..0605d93fd5 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.Platform.UnitTests.csproj @@ -6,15 +6,8 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.CommunicationUtilities.PlatformTests - - - - - - - diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.UnitTests.csproj b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.UnitTests.csproj index 9fee3675c6..99354bbad1 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Microsoft.TestPlatform.CommunicationUtilities.UnitTests.csproj @@ -6,11 +6,11 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.CommunicationUtilities.UnitTests - + diff --git a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Microsoft.TestPlatform.CoreUtilities.UnitTests.csproj b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Microsoft.TestPlatform.CoreUtilities.UnitTests.csproj index ba4499c758..0999799a02 100644 --- a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Microsoft.TestPlatform.CoreUtilities.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Microsoft.TestPlatform.CoreUtilities.UnitTests.csproj @@ -6,30 +6,10 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.CoreUtilities.UnitTests - - - 4.3.0 - - - 4.3.0 - - - 4.3.0 - - - 4.3.0 - - - - - - - - diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionExtensionManagerTests.cs b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionExtensionManagerTests.cs index 1edc315269..87c3f5dfb6 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionExtensionManagerTests.cs +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionExtensionManagerTests.cs @@ -101,7 +101,7 @@ public void InProcDataCollectionExtensionManagerLoadsDataCollectorFromDefaultCod "; - _mockFileHelper.Setup(fh => fh.Exists(Path.Combine(Temp, "repos", "MSTest", "src", "managed", "TestPlatform", "TestImpactListener.Tests", "bin", "Debug", "TestImpactListener.Tests.dll"))).Returns(true); + _mockFileHelper.Setup(fh => fh.Exists(Path.Combine(new[] { Temp, "repos", "MSTest", "src", "managed", "TestPlatform", "TestImpactListener.Tests", "bin", "Debug", "TestImpactListener.Tests.dll" }))).Returns(true); _inProcDataCollectionManager = new TestableInProcDataCollectionExtensionManager(settingsXml, _mockTestEventsPublisher.Object, _defaultCodebase, _testPluginCache, _mockFileHelper.Object); var codebase = ((MockDataCollector)_inProcDataCollectionManager.InProcDataCollectors.Values.First()).CodeBase; diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Microsoft.TestPlatform.CrossPlatEngine.UnitTests.csproj b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Microsoft.TestPlatform.CrossPlatEngine.UnitTests.csproj index 4e7fb4dd64..b29e6d5637 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Microsoft.TestPlatform.CrossPlatEngine.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Microsoft.TestPlatform.CrossPlatEngine.UnitTests.csproj @@ -7,8 +7,8 @@ Microsoft.TestPlatform.CrossPlatEngine.UnitTests - net6.0;net48 - Exe + net9.0;net48 + Exe @@ -18,12 +18,4 @@ - - - - - - - - diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj index 836dd60c67..1fe46f071b 100644 --- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj @@ -19,8 +19,8 @@ Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests @@ -31,11 +31,4 @@ - - - - - - - diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs index 59fe94e370..e23dc5a040 100644 --- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs +++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs @@ -91,26 +91,6 @@ public void ReadTestSequenceShouldThrowExceptionIfFileNotFound() Assert.ThrowsException(() => _xmlReaderWriter.ReadTestSequence(string.Empty)); } - /// - /// The read test sequence should read file stream. - /// - [TestMethod] - public void ReadTestSequenceShouldReadFileStream() - { - // Setup - _mockFileHelper.Setup(m => m.Exists(It.IsAny())).Returns(true); - _mockFileHelper.Setup(m => m.GetStream("path.xml", FileMode.Open, FileAccess.ReadWrite)).Returns(_mockStream.Object); - - // Call to Read Test Sequence - _xmlReaderWriter.ReadTestSequence("path.xml"); - - // Verify Call to fileHelper - _mockFileHelper.Verify(x => x.GetStream("path.xml", FileMode.Open, FileAccess.ReadWrite)); - - // Verify Call to stream read - _mockStream.Verify(x => x.Read(It.IsAny(), It.IsAny(), It.IsAny())); - } - /// /// The write test sequence should write file stream. /// diff --git a/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests.csproj b/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests.csproj index a109012ab5..de607265a6 100644 --- a/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests.csproj @@ -6,17 +6,10 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe - - - - - - - diff --git a/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests.csproj b/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests.csproj index c8b9420b40..469621d359 100644 --- a/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests.csproj @@ -6,18 +6,11 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests - - - - - - - diff --git a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Microsoft.TestPlatform.ObjectModel.UnitTests.csproj b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Microsoft.TestPlatform.ObjectModel.UnitTests.csproj index 6429c9b26b..2f8a968278 100644 --- a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Microsoft.TestPlatform.ObjectModel.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Microsoft.TestPlatform.ObjectModel.UnitTests.csproj @@ -6,8 +6,8 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.ObjectModel.UnitTests @@ -15,11 +15,4 @@ $(NewtonsoftJsonVersion) - - - - - - - diff --git a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs index 4b606e57bc..997d4741f0 100644 --- a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs +++ b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs @@ -302,7 +302,7 @@ public void GetTestHostProcessStartInfoShouldUseTestHostExeFromNugetIfNotFoundIn var testhostExePath = "testhost.exe"; _dotnetHostManager.Initialize(_mockMessageLogger.Object, "x64"); _mockFileHelper.Setup(ph => ph.Exists(testhostExePath)).Returns(false); - _mockFileHelper.Setup(ph => ph.Exists("C:\\packages\\microsoft.testplatform.testhost\\15.0.0-Dev\\build\\netcoreapp3.1\\x64\\testhost.exe")).Returns(true); + _mockFileHelper.Setup(ph => ph.Exists("C:\\packages\\microsoft.testplatform.testhost\\15.0.0-Dev\\build\\net8.0\\x64\\testhost.exe")).Returns(true); _mockEnvironment.Setup(ev => ev.OperatingSystem).Returns(PlatformOperatingSystem.Windows); var sourcePath = Path.Combine(_temp, "test.dll"); @@ -362,7 +362,10 @@ public void GetTestHostProcessStartInfoShouldUseTestHostExeFromNugetIfNotFoundIn var startInfo = _dotnetHostManager.GetTestHostProcessStartInfo(new[] { sourcePath }, null, _defaultConnectionInfo); - StringAssert.Contains(startInfo.FileName, "C:\\packages\\microsoft.testplatform.testhost\\15.0.0-Dev\\build\\netcoreapp3.1\\x64\\testhost.exe"); + + // If this starts failing after updating TFMs of packakges, the GetTestHostProcessStartInfo defines the default version + // to use in GetTestHostProcessStartInfo, change that to the lowest supported netcore version, and pass this test. + StringAssert.Contains(startInfo.FileName, "C:\\packages\\microsoft.testplatform.testhost\\15.0.0-Dev\\build\\net8.0\\x64\\testhost.exe"); } [TestMethod] @@ -372,7 +375,7 @@ public void GetTestHostProcessStartInfoShouldUseTestHostX86ExeFromNugetIfNotFoun var testhostExePath = "testhost.x86.exe"; _dotnetHostManager.Initialize(_mockMessageLogger.Object, "x86"); _mockFileHelper.Setup(ph => ph.Exists(testhostExePath)).Returns(false); - _mockFileHelper.Setup(ph => ph.Exists($"C:\\packages{Path.DirectorySeparatorChar}microsoft.testplatform.testhost\\15.0.0-Dev{Path.DirectorySeparatorChar}build\\netcoreapp3.1\\x86\\testhost.x86.exe")).Returns(true); + _mockFileHelper.Setup(ph => ph.Exists($"C:\\packages{Path.DirectorySeparatorChar}microsoft.testplatform.testhost\\15.0.0-Dev{Path.DirectorySeparatorChar}build\\net8.0\\x86\\testhost.x86.exe")).Returns(true); _mockEnvironment.Setup(ev => ev.OperatingSystem).Returns(PlatformOperatingSystem.Windows); var sourcePath = Path.Combine(_temp, "test.dll"); @@ -432,7 +435,9 @@ public void GetTestHostProcessStartInfoShouldUseTestHostX86ExeFromNugetIfNotFoun var startInfo = _dotnetHostManager.GetTestHostProcessStartInfo(new[] { sourcePath }, null, _defaultConnectionInfo); - StringAssert.Contains(startInfo.FileName, "C:\\packages\\microsoft.testplatform.testhost\\15.0.0-Dev\\build\\netcoreapp3.1\\x86\\testhost.x86.exe"); + // If this starts failing after updating TFMs of packakges, the GetTestHostProcessStartInfo defines the default version + // to use in GetTestHostProcessStartInfo, change that to the lowest supported netcore version, and pass this test. + StringAssert.Contains(startInfo.FileName, "C:\\packages\\microsoft.testplatform.testhost\\15.0.0-Dev\\build\\net8.0\\x86\\testhost.x86.exe"); } [TestMethod] @@ -632,7 +637,7 @@ public void GetTestHostProcessStartInfoShouldIncludeTestHostPathFromSourceDirect StringAssert.Contains(startInfo.Arguments, expectedTestHostPath); } - // TODO: This assembly was previously compiled as net472 and so it was skipped and only ran as netcoreapp3.1. This fails in test, but works in code that is not isolated in appdomain. Might be worth fixing because we get one null here, and another in DotnetTestHostManager. + // TODO: This assembly was previously compiled as net472 and so it was skipped and only ran as net8.0. This fails in test, but works in code that is not isolated in appdomain. Might be worth fixing because we get one null here, and another in DotnetTestHostManager. // Assembly.GetEntryAssembly().Location is null because of running in app domain. #if NET [TestMethod] @@ -660,7 +665,7 @@ public void GetTestHostProcessStartInfoShouldIncludeTestHostPathNextToTestRunner #endif - // TODO: This assembly was previously compiled as net472 and so it was skipped and only ran as netcoreapp3.1. This fails in test, but works in code that is not isolated in appdomain. Might be worth fixing because we get one null here, and another in DotnetTestHostManager. + // TODO: This assembly was previously compiled as net472 and so it was skipped and only ran as net8.0. This fails in test, but works in code that is not isolated in appdomain. Might be worth fixing because we get one null here, and another in DotnetTestHostManager. // Assembly.GetEntryAssembly().Location is null because of running in app domain. #if NET @@ -669,14 +674,13 @@ public void GetTestHostProcessStartInfoShouldIncludeTestHostPathNextToTestRunner // we can't put in a "default" value, and we don't have other way to determine if this provided value is the // runtime default or the actual value that user provided, so right now the default will use the latest, instead // or the more correct 1.0, it should be okay, as that version is not supported anymore anyway - [DataRow("netcoreapp3.1", "3.1", true)] - [DataRow("net5.0", "5.0", true)] - - // net6.0 is currently the latest released version, but it still has it's own runtime config, it is not the same as - // "latest" which means the latest you have on system. So if you have only 5.0 SDK then net6.0 will fail because it can't find net6.0, - // but latest would use net5.0 because that is the latest one on your system. - [DataRow("net6.0", "6.0", true)] - [DataRow("net6.0", "latest", false)] + [DataRow("net8.0", "8.0", true)] + + // net9.0 is currently the latest released version, but it still has it's own runtime config, it is not the same as + // "latest" which means the latest you have on system. So if you have only 5.0 SDK then net8.0 will fail because it can't find net8.0, + // but latest would use net9.0 because that is the latest one on your system. + [DataRow("net9.0", "9.0", true)] + [DataRow("net9.0", "latest", false)] public void GetTestHostProcessStartInfoShouldIncludeTestHostPathNextToTestRunnerIfTesthostDllIsNoFoundAndDepsFileNotFoundWithTheCorrectTfm(string tfm, string suffix, bool runtimeConfigExists) { // Absolute path to the source directory diff --git a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj index 2fc30c8612..4768c56dcb 100644 --- a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj @@ -7,17 +7,10 @@ Microsoft.TestPlatform.TestHostProvider.UnitTests - net6.0;net48 - Exe + net9.0;net48 + Exe - - - - - - - diff --git a/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs b/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs index 885b65906a..d1fe09ace2 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs +++ b/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs @@ -30,7 +30,7 @@ namespace Microsoft.TestPlatform.TestUtilities; public class IntegrationTestBase { public const string DesktopRunnerFramework = "net462"; - public const string CoreRunnerFramework = "netcoreapp3.1"; + public const string CoreRunnerFramework = "net8.0"; private const string TotalTestsMessage = "Total tests: {0}"; private const string PassedTestsMessage = " Passed: {0}"; @@ -294,11 +294,11 @@ public void InvokeVsTestForDiscovery(string testAssembly, string testAdapterPath /// Execute Tests that are not supported with given Runner framework. /// /// Runner Framework - /// Framework for which Tests are not supported + /// Framework for which Tests are supported /// Message to be shown public static void ExecuteNotSupportedRunnerFrameworkTests(string runnerFramework, string framework, string message) { - if (runnerFramework.StartsWith(framework)) + if (!runnerFramework.StartsWith(framework, StringComparison.OrdinalIgnoreCase)) { Assert.Inconclusive(message); } @@ -605,7 +605,7 @@ protected string GetTestAdapterPath(UnitTestFramework testFramework = UnitTestFr var version = IntegrationTestEnvironment.DependencyVersions["MSTestTestAdapterVersion"]; if (version.StartsWith("3")) { - var tfm = _testEnvironment.TargetFramework.StartsWith("net4") ? "net462" : _testEnvironment.TargetFramework; + var tfm = _testEnvironment.TargetFramework.StartsWith("net4") ? "net462" : "netcoreapp3.1"; adapterRelativePath = string.Format(CultureInfo.InvariantCulture, _msTestAdapterRelativePath, version, tfm); } else @@ -990,7 +990,7 @@ protected static string GetDownloadedDotnetMuxerFromTools(string architecture) } protected string GetDotnetRunnerPath() => - _testEnvironment.VSTestConsoleInfo?.Path ?? Path.Combine(IntegrationTestEnvironment.PublishDirectory, $"Microsoft.TestPlatform.CLI.{IntegrationTestEnvironment.LatestLocallyBuiltNugetVersion}.nupkg", "contentFiles", "any", "netcoreapp3.1", "vstest.console.dll"); + _testEnvironment.VSTestConsoleInfo?.Path ?? Path.Combine(IntegrationTestEnvironment.PublishDirectory, $"Microsoft.TestPlatform.CLI.{IntegrationTestEnvironment.LatestLocallyBuiltNugetVersion}.nupkg", "contentFiles", "any", "net9.0", "vstest.console.dll"); protected void StdOutHasNoWarnings() { diff --git a/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs b/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs index 9bcfc89cb9..d7743edb87 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs +++ b/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs @@ -92,7 +92,7 @@ public static Dictionary DependencyVersions /// /// Gets the target framework. - /// Supported values = net462, netcoreapp3.1. + /// Supported values = net462, net8.0. /// [NotNull] public string? TargetFramework { get; set; } @@ -143,7 +143,7 @@ public string? TargetRuntime /// /// Gets the application type. - /// Supported values = net462, netcoreapp3.1. + /// Supported values = net462, net8.0. /// public string RunnerFramework { get; set; } diff --git a/test/Microsoft.TestPlatform.TestUtilities/Microsoft.TestPlatform.TestUtilities.csproj b/test/Microsoft.TestPlatform.TestUtilities/Microsoft.TestPlatform.TestUtilities.csproj index 1823de200f..9d44795e8f 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/Microsoft.TestPlatform.TestUtilities.csproj +++ b/test/Microsoft.TestPlatform.TestUtilities/Microsoft.TestPlatform.TestUtilities.csproj @@ -3,7 +3,7 @@ Microsoft.TestPlatform.TestUtilities - net6.0;net48 + net9.0;net48 false true @@ -29,15 +29,9 @@ - + - - - - - - diff --git a/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj b/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj index 2ef1dbe427..2247db2ab0 100644 --- a/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj +++ b/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj @@ -7,8 +7,8 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe Microsoft.TestPlatform.Utilities.UnitTests @@ -17,13 +17,6 @@ - - - - - - - Always diff --git a/test/SettingsMigrator.UnitTests/MigratorTests.cs b/test/SettingsMigrator.UnitTests/MigratorTests.cs index 7ee4dfc83b..10dfd8440a 100644 --- a/test/SettingsMigrator.UnitTests/MigratorTests.cs +++ b/test/SettingsMigrator.UnitTests/MigratorTests.cs @@ -119,7 +119,9 @@ public void InvalidSettingsThrowsException() } [TestMethod] - [ExpectedException(typeof(DirectoryNotFoundException))] + // On some systems this throws file not found, on some it throws directory not found, + // I don't know why and it does not matter for the test. As long as it throws. + [ExpectedException(typeof(IOException), AllowDerivedTypes = true)] public void InvalidPathThrowsException() { string oldTestsettingsPath = @"X:\generatedRun,settings.runsettings"; diff --git a/test/SettingsMigrator.UnitTests/SettingsMigrator.UnitTests.csproj b/test/SettingsMigrator.UnitTests/SettingsMigrator.UnitTests.csproj index e1eb198f26..b2eb1760e9 100644 --- a/test/SettingsMigrator.UnitTests/SettingsMigrator.UnitTests.csproj +++ b/test/SettingsMigrator.UnitTests/SettingsMigrator.UnitTests.csproj @@ -7,7 +7,7 @@ - + net48 SettingsMigrator.UnitTests diff --git a/test/TestAssets/ArchitectureSwitch/ArchitectureSwitch.csproj b/test/TestAssets/ArchitectureSwitch/ArchitectureSwitch.csproj index 22232f257c..ca790a13f9 100644 --- a/test/TestAssets/ArchitectureSwitch/ArchitectureSwitch.csproj +++ b/test/TestAssets/ArchitectureSwitch/ArchitectureSwitch.csproj @@ -1,7 +1,7 @@ - net7.0;net6.0;net5.0 - net7.0;net6.0;netcoreapp3.1 + net8.0;net9.0 + net8.0;net9.0 false diff --git a/test/TestAssets/Directory.Build.props b/test/TestAssets/Directory.Build.props index 372f9f3c91..5e3b60555a 100644 --- a/test/TestAssets/Directory.Build.props +++ b/test/TestAssets/Directory.Build.props @@ -14,7 +14,7 @@ $(NoWarn); MSB3270; - + NETSDK1138; NU1603 @@ -24,7 +24,7 @@ net462 - netcoreapp3.1 + net8.0 Latest diff --git a/test/TestAssets/NewtonSoftDependency/NewtonSoftDependency.csproj b/test/TestAssets/NewtonSoftDependency/NewtonSoftDependency.csproj index 2de419d35f..598ecfb843 100644 --- a/test/TestAssets/NewtonSoftDependency/NewtonSoftDependency.csproj +++ b/test/TestAssets/NewtonSoftDependency/NewtonSoftDependency.csproj @@ -25,7 +25,7 @@ - + diff --git a/test/TestAssets/SelfContainedAppTestProject/SelfContainedAppTestProject.csproj b/test/TestAssets/SelfContainedAppTestProject/SelfContainedAppTestProject.csproj index e7382bf0a7..0ec96ca324 100644 --- a/test/TestAssets/SelfContainedAppTestProject/SelfContainedAppTestProject.csproj +++ b/test/TestAssets/SelfContainedAppTestProject/SelfContainedAppTestProject.csproj @@ -2,10 +2,10 @@ - netcoreapp3.1 + net8.0 - win10-x64 + win-x64 Exe diff --git a/test/TestAssets/SimpleTestProjectARM/SimpleTestProjectARM.csproj b/test/TestAssets/SimpleTestProjectARM64/SimpleTestProjectARM64.csproj similarity index 88% rename from test/TestAssets/SimpleTestProjectARM/SimpleTestProjectARM.csproj rename to test/TestAssets/SimpleTestProjectARM64/SimpleTestProjectARM64.csproj index e2696f70d3..3f1c4b034e 100644 --- a/test/TestAssets/SimpleTestProjectARM/SimpleTestProjectARM.csproj +++ b/test/TestAssets/SimpleTestProjectARM64/SimpleTestProjectARM64.csproj @@ -4,11 +4,10 @@ true true - ARM + ARM64 - SimpleTestProjectARM $(NetFrameworkMinimum);$(NetCoreAppMinimum) Exe diff --git a/test/TestAssets/SimpleTestProjectARM/UnitTest1.cs b/test/TestAssets/SimpleTestProjectARM64/UnitTest1.cs similarity index 100% rename from test/TestAssets/SimpleTestProjectARM/UnitTest1.cs rename to test/TestAssets/SimpleTestProjectARM64/UnitTest1.cs diff --git a/test/TestAssets/TestAssets.sln b/test/TestAssets/TestAssets.sln index 7556f991e1..636eab172d 100644 --- a/test/TestAssets/TestAssets.sln +++ b/test/TestAssets/TestAssets.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MstestV1UnitTestProject", " EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleTestProjectx86", "SimpleTestProjectx86\SimpleTestProjectx86.csproj", "{C4369F97-5D81-4D1A-BAE1-2AE3B2408D44}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleTestProjectARM", "SimpleTestProjectARM\SimpleTestProjectARM.csproj", "{7C865EAA-C6C2-4CAF-A6AD-D9CF29577A36}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleTestProjectARM64", "SimpleTestProjectARM64\SimpleTestProjectARM64.csproj", "{7C865EAA-C6C2-4CAF-A6AD-D9CF29577A36}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CUITTestProject", "CUITTestProject\CUITTestProject.csproj", "{CF46C8A0-E9FA-40E9-96CA-DCD3797546D8}" EndProject diff --git a/test/TestAssets/Tools/Tools.csproj b/test/TestAssets/Tools/Tools.csproj index b56dbd9b07..7c13e8ec53 100644 --- a/test/TestAssets/Tools/Tools.csproj +++ b/test/TestAssets/Tools/Tools.csproj @@ -6,7 +6,7 @@ - net7.0;net6.0;net5.0 + net8.0;net9.0 Exe hanging_child diff --git a/test/TestAssets/child-crash/UnitTest1.cs b/test/TestAssets/child-crash/UnitTest1.cs index 9262bc9bcb..6ea2e14d2d 100644 --- a/test/TestAssets/child-crash/UnitTest1.cs +++ b/test/TestAssets/child-crash/UnitTest1.cs @@ -24,7 +24,7 @@ public void TestMethod1() var directory = "Release"; #endif // wait for two children to crash - var childProcess = Path.GetFullPath($@"../../../problematic-child/{directory}/net5.0/problematic-child{(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ".dll")}"); + var childProcess = Path.GetFullPath($@"../../../problematic-child/{directory}/net9.0/problematic-child{(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ".dll")}"); if (!File.Exists(childProcess)) { throw new FileNotFoundException(childProcess); diff --git a/test/TestAssets/child-crash/child-crash.csproj b/test/TestAssets/child-crash/child-crash.csproj index 20b4a41dae..5503a12b23 100644 --- a/test/TestAssets/child-crash/child-crash.csproj +++ b/test/TestAssets/child-crash/child-crash.csproj @@ -6,7 +6,7 @@ - net7.0;net6.0;net5.0 + net8.0;net9.0 child_crash false diff --git a/test/TestAssets/child-hang/UnitTest1.cs b/test/TestAssets/child-hang/UnitTest1.cs index 9e7e7679ac..621fc7b3e5 100644 --- a/test/TestAssets/child-hang/UnitTest1.cs +++ b/test/TestAssets/child-hang/UnitTest1.cs @@ -25,7 +25,7 @@ public void TestMethod1() var directory = "Release"; #endif // wait for two children to crash - var childProcess = Path.GetFullPath($@"../../../hanging-child/{directory}/net5.0/hanging-child{(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ".dll")}"); + var childProcess = Path.GetFullPath($@"../../../hanging-child/{directory}/net9.0/hanging-child{(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ".dll")}"); // 2 chidren, that is 3 hanging processes var process = (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Process.Start(childProcess, "2") : Process.Start(GetFullPath("dotnet"), $"{childProcess} 2")); process.WaitForExit(); diff --git a/test/TestAssets/child-hang/child-hang.csproj b/test/TestAssets/child-hang/child-hang.csproj index 30f4c676a5..0a96b3dcf2 100644 --- a/test/TestAssets/child-hang/child-hang.csproj +++ b/test/TestAssets/child-hang/child-hang.csproj @@ -5,7 +5,7 @@ - $(NetFrameworkMinimum);net472;net48;$(NetCoreAppMinimum);net7.0;net6.0;net5.0 + $(NetFrameworkMinimum);net472;net48;$(NetCoreAppMinimum);net8.0;net9.0 child_hang false diff --git a/test/TestAssets/crash/crash.csproj b/test/TestAssets/crash/crash.csproj index 4c23615afb..8488ca3319 100644 --- a/test/TestAssets/crash/crash.csproj +++ b/test/TestAssets/crash/crash.csproj @@ -5,7 +5,7 @@ - $(NetFrameworkMinimum);net472;net48;$(NetCoreAppMinimum);net7.0;net6.0;net5.0 + $(NetFrameworkMinimum);net472;net48;$(NetCoreAppMinimum);net8.0;net9.0 false diff --git a/test/TestAssets/hanging-child/hanging-child.csproj b/test/TestAssets/hanging-child/hanging-child.csproj index 787e5d84cd..2c46cb554d 100644 --- a/test/TestAssets/hanging-child/hanging-child.csproj +++ b/test/TestAssets/hanging-child/hanging-child.csproj @@ -6,7 +6,7 @@ - net7.0;net6.0;net5.0 + net8.0;net9.0 Exe hanging_child diff --git a/test/TestAssets/performance/MSTest1000Passing/MSTest1000Passing.csproj b/test/TestAssets/performance/MSTest1000Passing/MSTest1000Passing.csproj index b5aad4d303..003be862b0 100644 --- a/test/TestAssets/performance/MSTest1000Passing/MSTest1000Passing.csproj +++ b/test/TestAssets/performance/MSTest1000Passing/MSTest1000Passing.csproj @@ -1,7 +1,7 @@ - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/performance/MSTest100Passing/MSTest100Passing.csproj b/test/TestAssets/performance/MSTest100Passing/MSTest100Passing.csproj index b5aad4d303..003be862b0 100644 --- a/test/TestAssets/performance/MSTest100Passing/MSTest100Passing.csproj +++ b/test/TestAssets/performance/MSTest100Passing/MSTest100Passing.csproj @@ -1,7 +1,7 @@ - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/performance/MSTest10kPassing/MSTest10kPassing.csproj b/test/TestAssets/performance/MSTest10kPassing/MSTest10kPassing.csproj index df21b00d98..38220eb26e 100644 --- a/test/TestAssets/performance/MSTest10kPassing/MSTest10kPassing.csproj +++ b/test/TestAssets/performance/MSTest10kPassing/MSTest10kPassing.csproj @@ -1,7 +1,7 @@ - net6.0;net48;net472 + net8.0;net48;net472 false diff --git a/test/TestAssets/performance/MSTest1Passing/MSTest1Passing.csproj b/test/TestAssets/performance/MSTest1Passing/MSTest1Passing.csproj index f2a1a66533..b81e9fb18d 100644 --- a/test/TestAssets/performance/MSTest1Passing/MSTest1Passing.csproj +++ b/test/TestAssets/performance/MSTest1Passing/MSTest1Passing.csproj @@ -1,7 +1,7 @@  - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/performance/NUnit1000Passing/NUnit1000Passing.csproj b/test/TestAssets/performance/NUnit1000Passing/NUnit1000Passing.csproj index 62a772053e..2b873ab980 100644 --- a/test/TestAssets/performance/NUnit1000Passing/NUnit1000Passing.csproj +++ b/test/TestAssets/performance/NUnit1000Passing/NUnit1000Passing.csproj @@ -1,7 +1,7 @@ - net6.0;net48 + net9.0;net48 diff --git a/test/TestAssets/performance/NUnit100Passing/NUnit100Passing.csproj b/test/TestAssets/performance/NUnit100Passing/NUnit100Passing.csproj index e15c0b0c66..4b0d0e5b87 100644 --- a/test/TestAssets/performance/NUnit100Passing/NUnit100Passing.csproj +++ b/test/TestAssets/performance/NUnit100Passing/NUnit100Passing.csproj @@ -1,7 +1,7 @@  - net6.0;net48 + net9.0;net48 diff --git a/test/TestAssets/performance/NUnit10kPassing/NUnit10kPassing.csproj b/test/TestAssets/performance/NUnit10kPassing/NUnit10kPassing.csproj index e15c0b0c66..4b0d0e5b87 100644 --- a/test/TestAssets/performance/NUnit10kPassing/NUnit10kPassing.csproj +++ b/test/TestAssets/performance/NUnit10kPassing/NUnit10kPassing.csproj @@ -1,7 +1,7 @@  - net6.0;net48 + net9.0;net48 diff --git a/test/TestAssets/performance/NUnit1Passing/NUnit1Passing.csproj b/test/TestAssets/performance/NUnit1Passing/NUnit1Passing.csproj index e15c0b0c66..4b0d0e5b87 100644 --- a/test/TestAssets/performance/NUnit1Passing/NUnit1Passing.csproj +++ b/test/TestAssets/performance/NUnit1Passing/NUnit1Passing.csproj @@ -1,7 +1,7 @@  - net6.0;net48 + net9.0;net48 diff --git a/test/TestAssets/performance/Perfy.TestAdapter/Perfy.TestAdapter.csproj b/test/TestAssets/performance/Perfy.TestAdapter/Perfy.TestAdapter.csproj index e370f3059c..0ab7c46aa0 100644 --- a/test/TestAssets/performance/Perfy.TestAdapter/Perfy.TestAdapter.csproj +++ b/test/TestAssets/performance/Perfy.TestAdapter/Perfy.TestAdapter.csproj @@ -1,7 +1,7 @@ - net7.0;net6.0;net48;net472;net471;net5.0 + net48;net472;net471;net9.0;net8.0 false diff --git a/test/TestAssets/performance/XUnit1000Passing/XUnit1000Passing.csproj b/test/TestAssets/performance/XUnit1000Passing/XUnit1000Passing.csproj index 77eebc9bcd..119a479786 100644 --- a/test/TestAssets/performance/XUnit1000Passing/XUnit1000Passing.csproj +++ b/test/TestAssets/performance/XUnit1000Passing/XUnit1000Passing.csproj @@ -1,7 +1,7 @@ - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/performance/XUnit100Passing/XUnit100Passing.csproj b/test/TestAssets/performance/XUnit100Passing/XUnit100Passing.csproj index 77eebc9bcd..119a479786 100644 --- a/test/TestAssets/performance/XUnit100Passing/XUnit100Passing.csproj +++ b/test/TestAssets/performance/XUnit100Passing/XUnit100Passing.csproj @@ -1,7 +1,7 @@ - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/performance/XUnit10kPassing/XUnit10kPassing.csproj b/test/TestAssets/performance/XUnit10kPassing/XUnit10kPassing.csproj index 66cfa47bed..393eb3be00 100644 --- a/test/TestAssets/performance/XUnit10kPassing/XUnit10kPassing.csproj +++ b/test/TestAssets/performance/XUnit10kPassing/XUnit10kPassing.csproj @@ -1,7 +1,7 @@  - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/performance/XUnit1Passing/XUnit1Passing.csproj b/test/TestAssets/performance/XUnit1Passing/XUnit1Passing.csproj index 66cfa47bed..393eb3be00 100644 --- a/test/TestAssets/performance/XUnit1Passing/XUnit1Passing.csproj +++ b/test/TestAssets/performance/XUnit1Passing/XUnit1Passing.csproj @@ -1,7 +1,7 @@  - net6.0;net48 + net9.0;net48 false diff --git a/test/TestAssets/problematic-child/problematic-child.csproj b/test/TestAssets/problematic-child/problematic-child.csproj index 3d9286d46f..f00b791029 100644 --- a/test/TestAssets/problematic-child/problematic-child.csproj +++ b/test/TestAssets/problematic-child/problematic-child.csproj @@ -6,7 +6,7 @@ - net7.0;net6.0;net5.0 + net8.0;net9.0 Exe problematic_child diff --git a/test/TestAssets/timeout/timeout.csproj b/test/TestAssets/timeout/timeout.csproj index 294bebab1c..8af7af2b2a 100644 --- a/test/TestAssets/timeout/timeout.csproj +++ b/test/TestAssets/timeout/timeout.csproj @@ -6,7 +6,7 @@ - $(NetFrameworkMinimum);net472;net48;$(NetCoreAppMinimum);net7.0;net6.0;net5.0 + $(NetFrameworkMinimum);net472;net48;$(NetCoreAppMinimum);net8.0;net9.0 false diff --git a/test/TranslationLayer.UnitTests/TranslationLayer.UnitTests.csproj b/test/TranslationLayer.UnitTests/TranslationLayer.UnitTests.csproj index 5afb1d461e..e6d80a83ef 100644 --- a/test/TranslationLayer.UnitTests/TranslationLayer.UnitTests.csproj +++ b/test/TranslationLayer.UnitTests/TranslationLayer.UnitTests.csproj @@ -6,19 +6,13 @@ - net6.0;net48 + net9.0;net48 Exe TranslationLayer.UnitTests - - - - - - diff --git a/test/coverlet.collector/coverlet.collector.csproj b/test/coverlet.collector/coverlet.collector.csproj index 719388ac58..169286672b 100644 --- a/test/coverlet.collector/coverlet.collector.csproj +++ b/test/coverlet.collector/coverlet.collector.csproj @@ -1,6 +1,6 @@ - net6.0;net48 + net9.0;net48 false 9.9.9.9 diff --git a/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj b/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj index d97d26cf66..c55879c711 100644 --- a/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj +++ b/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj @@ -8,8 +8,8 @@ Microsoft.VisualStudio.TestPlatform.DataCollector.PlatformTests - net6.0;net48 - Exe + net9.0;net48 + Exe datacollector.PlatformTests @@ -19,11 +19,4 @@ PreserveNewest - - - - - - - diff --git a/test/datacollector.UnitTests/datacollector.UnitTests.csproj b/test/datacollector.UnitTests/datacollector.UnitTests.csproj index 9af01796fe..fca43a4842 100644 --- a/test/datacollector.UnitTests/datacollector.UnitTests.csproj +++ b/test/datacollector.UnitTests/datacollector.UnitTests.csproj @@ -9,18 +9,11 @@ Microsoft.VisualStudio.TestPlatform.DataCollector.UnitTests - Exe - net6.0;net48 + Exe + net9.0;net48 datacollector.UnitTests - - - - - - - diff --git a/test/testhost.UnitTests/testhost.UnitTests.csproj b/test/testhost.UnitTests/testhost.UnitTests.csproj index 74724c5158..26c49a05e5 100644 --- a/test/testhost.UnitTests/testhost.UnitTests.csproj +++ b/test/testhost.UnitTests/testhost.UnitTests.csproj @@ -6,18 +6,11 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe testhost.UnitTests - x64 + x64 - - - - - - - diff --git a/test/vstest.ProgrammerTests/vstest.ProgrammerTests.csproj b/test/vstest.ProgrammerTests/vstest.ProgrammerTests.csproj index 5eab35bed3..f5c5d3c320 100644 --- a/test/vstest.ProgrammerTests/vstest.ProgrammerTests.csproj +++ b/test/vstest.ProgrammerTests/vstest.ProgrammerTests.csproj @@ -8,8 +8,8 @@ enable true - net6.0 - Exe + net8.0 + Exe Exe @@ -26,7 +26,7 @@ - + diff --git a/test/vstest.console.UnitTests/Internal/ConsoleLoggerTests.cs b/test/vstest.console.UnitTests/Internal/ConsoleLoggerTests.cs index bc9d7cece8..946160b845 100644 --- a/test/vstest.console.UnitTests/Internal/ConsoleLoggerTests.cs +++ b/test/vstest.console.UnitTests/Internal/ConsoleLoggerTests.cs @@ -615,24 +615,24 @@ public void TestResultHandlerShouldShowFailedTestsAndPassedTestsForQuietVerbosit loggerEvents.WaitForEventCompletion(); _mockOutput.Verify(o => o.Write(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, - (CommandLineResources.PassedTestIndicator + "!").PadRight(8), + new[] { (CommandLineResources.PassedTestIndicator + "!").PadRight(8), 0.ToString(CultureInfo.InvariantCulture).PadLeft(5), 1.ToString(CultureInfo.InvariantCulture).PadLeft(5), 1.ToString(CultureInfo.InvariantCulture).PadLeft(5), 2.ToString(CultureInfo.InvariantCulture).PadLeft(5), - "1 m 2 s"), OutputLevel.Information), Times.Once); + "1 m 2 s"}), OutputLevel.Information), Times.Once); _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryAssemblyAndFramework, "TestSourcePassed", expectedFramework), OutputLevel.Information), Times.Once); _mockOutput.Verify(o => o.Write(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, - (CommandLineResources.FailedTestIndicator + "!").PadRight(8), + new[] { (CommandLineResources.FailedTestIndicator + "!").PadRight(8), 1.ToString(CultureInfo.InvariantCulture).PadLeft(5), 1.ToString(CultureInfo.InvariantCulture).PadLeft(5), 1.ToString(CultureInfo.InvariantCulture).PadLeft(5), 3.ToString(CultureInfo.InvariantCulture).PadLeft(5), - "1 h 2 m"), OutputLevel.Information), Times.Once); + "1 h 2 m" }), OutputLevel.Information), Times.Once); _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryAssemblyAndFramework, "TestSource", @@ -666,8 +666,8 @@ public void TestResultHandlerShouldNotShowformattedFailedTestsAndPassedTestsForO loggerEvents.RaiseTestRunComplete(new TestRunCompleteEventArgs(new Mock().Object, false, false, null, new Collection(), new Collection(), TimeSpan.FromSeconds(1))); loggerEvents.WaitForEventCompletion(); - _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, CommandLineResources.PassedTestIndicator, 2, 1, 0, 1, "1 m 2 s", "TestSourcePassed", "(net462)"), OutputLevel.Information), Times.Never); - _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, CommandLineResources.FailedTestIndicator, 5, 1, 1, 1, "1 h 6 m", "TestSource", "(net462)"), OutputLevel.Information), Times.Never); + _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, new object[] { CommandLineResources.PassedTestIndicator, 2, 1, 0, 1, "1 m 2 s", "TestSourcePassed", "(net462)" }), OutputLevel.Information), Times.Never); + _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary, new object[] { CommandLineResources.FailedTestIndicator, 5, 1, 1, 1, "1 h 6 m", "TestSource", "(net462)" }), OutputLevel.Information), Times.Never); } [TestMethod] @@ -940,7 +940,7 @@ public void TestRunCompleteHandlerShouldWriteToConsoleIfTestsCanceled() } loggerEvents.CompleteTestRun(null, true, false, null, null, null, new TimeSpan(1, 0, 0, 0)); - _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryForCanceledOrAbortedRun), OutputLevel.Information), Times.Once()); + _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryForCanceledOrAbortedRun, Array.Empty()), OutputLevel.Information), Times.Once()); _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, 1), OutputLevel.Information), Times.Once()); _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, 0), OutputLevel.Information), Times.Never()); _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummarySkippedTests, 0), OutputLevel.Information), Times.Never()); @@ -972,6 +972,7 @@ public void TestRunCompleteHandlerShouldWriteToConsoleIfTestsAborted() { { "verbosity", "normal" } }; + _consoleLogger.Initialize(loggerEvents, parameters); foreach (var testResult in GetTestResultObject(TestOutcome.Failed)) @@ -980,7 +981,7 @@ public void TestRunCompleteHandlerShouldWriteToConsoleIfTestsAborted() } loggerEvents.CompleteTestRun(null, false, true, null, null, null, new TimeSpan(1, 0, 0, 0)); - _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryForCanceledOrAbortedRun), OutputLevel.Information), Times.Once()); + _mockOutput.Verify(o => o.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryForCanceledOrAbortedRun, Array.Empty()), OutputLevel.Information), Times.Once()); _mockOutput.Verify(o => o.WriteLine(CommandLineResources.TestRunAborted, OutputLevel.Error), Times.Once()); } diff --git a/test/vstest.console.UnitTests/vstest.console.UnitTests.csproj b/test/vstest.console.UnitTests/vstest.console.UnitTests.csproj index 6655577c90..78fd5ffa82 100644 --- a/test/vstest.console.UnitTests/vstest.console.UnitTests.csproj +++ b/test/vstest.console.UnitTests/vstest.console.UnitTests.csproj @@ -6,8 +6,8 @@ - net6.0;net48 - Exe + net9.0;net48 + Exe vstest.console.UnitTests @@ -24,12 +24,4 @@ - - - - - - - -