From 962135549025c7e13d2d2dacee0d6c24a2b95648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 14 Jul 2026 15:54:39 +0200 Subject: [PATCH] Restore InternalsVisibleTo for deprecated MSTest.Engine to fix MethodAccessException The previously shipped MSTest.Engine package (assembly name Microsoft.Testing.Framework) calls internal platform members such as ArgumentGuard.Ensure. The InternalsVisibleTo grants for Microsoft.Testing.Framework / MSTest.Engine were dropped in #2615 during the rename to Microsoft.Testing.Internal.Framework, causing a System.MethodAccessException at runtime when the old engine binary is loaded against the newer platform (see #9769). Restoring the grants keeps binary compatibility, mirroring the TestRequestExecutionTimeInfo workaround. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 32680b56-ae8b-4df9-bf5d-d6be9a1a3dc4 --- .../Microsoft.Testing.Platform.csproj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Platform/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj b/src/Platform/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj index 3fd6572bc4..2d247d3102 100644 --- a/src/Platform/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj +++ b/src/Platform/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj @@ -63,10 +63,22 @@ This package provides the core platform and the .NET implementation of the proto + + +