From 192b670927f55136d113d046fab89d3b7f9e1246 Mon Sep 17 00:00:00 2001 From: Jakub Jares Date: Wed, 1 Jul 2026 13:33:44 +0200 Subject: [PATCH] Drop Microsoft.NET.Test.Sdk from the MSTest metapackage MSTest runs as a Microsoft.Testing.Platform app, so it doesn't need the classic VSTest runner. Referencing Microsoft.NET.Test.Sdk dragged in Microsoft.TestPlatform.TestHost and the rest of the VSTest execution stack. Removing it leaves Microsoft.TestPlatform.ObjectModel as the only VSTest-lineage package the MSTest package brings in - it flows transitively through the VSTestBridge (alongside the source-only, non-flowing Filter.Source). Build integration still comes from Microsoft.Testing.Platform.MSBuild via MSTest.TestAdapter. Verified against the restore graph (net462;net8.0;net9.0;uap10.0) and a real packed nuspec: no Test.Sdk, no TestHost, ObjectModel only. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/Package/MSTest/MSTest.csproj | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Package/MSTest/MSTest.csproj b/src/Package/MSTest/MSTest.csproj index f971b57182..343a0ced70 100644 --- a/src/Package/MSTest/MSTest.csproj +++ b/src/Package/MSTest/MSTest.csproj @@ -49,15 +49,14 @@ - - - - - - - - - +