From f86dd3e7f46eb6f79ac22675d539485bfc6a5faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Wed, 26 Apr 2023 13:35:46 +0200 Subject: [PATCH] Fix playground --- .../TestPlatform.Playground/Environment.cs | 2 +- playground/TestPlatform.Playground/Program.cs | 6 +-- .../TestPlatform.Playground.csproj | 48 +++++++++---------- .../DebuggerBreakpoint.cs | 2 +- 4 files changed, 27 insertions(+), 31 deletions(-) diff --git a/playground/TestPlatform.Playground/Environment.cs b/playground/TestPlatform.Playground/Environment.cs index d5ec27d0cf..c23cd0ea3c 100644 --- a/playground/TestPlatform.Playground/Environment.cs +++ b/playground/TestPlatform.Playground/Environment.cs @@ -14,7 +14,7 @@ internal class EnvironmentVariables ["VSTEST_RUNNER_DEBUG_ATTACHVS"] = "0", ["VSTEST_HOST_DEBUG_ATTACHVS"] = "0", ["VSTEST_DATACOLLECTOR_DEBUG_ATTACHVS"] = "0", - ["VSTEST_EXPERIMENTAL_FORWARD_OUTPUT_FEATURE"] = "1" + ["VSTEST_EXPERIMENTAL_FORWARD_OUTPUT_FEATURE"] = "0" }; } diff --git a/playground/TestPlatform.Playground/Program.cs b/playground/TestPlatform.Playground/Program.cs index 2ad6c21f41..7abca6e5b6 100644 --- a/playground/TestPlatform.Playground/Program.cs +++ b/playground/TestPlatform.Playground/Program.cs @@ -88,9 +88,9 @@ static void Main() """; var sources = new[] { - Path.Combine(playground, "MSTest1", "bin", "Debug", "net472", "MSTest1.dll"), - //Path.Combine(playground, "MSTest2", "bin", "Debug", "net472", "MSTest2.dll"), - //Path.Combine(playground, "MSTest1", "bin", "Debug", "net5.0", "MSTest1.dll"), + Path.Combine(playground, "bin", "MSTest1", "Debug", "net472", "MSTest1.dll"), + // Path.Combine(playground, "bin", "MSTest2", "Debug", "net472", "MSTest2.dll"), + // Path.Combine(playground, "bin", "MSTest1", "Debug", "net5.0", "MSTest1.dll"), }; //// Console mode diff --git a/playground/TestPlatform.Playground/TestPlatform.Playground.csproj b/playground/TestPlatform.Playground/TestPlatform.Playground.csproj index fbbe3beb4c..8a96a0735a 100644 --- a/playground/TestPlatform.Playground/TestPlatform.Playground.csproj +++ b/playground/TestPlatform.Playground/TestPlatform.Playground.csproj @@ -38,44 +38,40 @@ - + - $(RepoRoot)src\ + $(RepoRoot)artifacts\ $(TargetDir)vstest.console\ - - + + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + - + - + diff --git a/src/Microsoft.TestPlatform.Execution.Shared/DebuggerBreakpoint.cs b/src/Microsoft.TestPlatform.Execution.Shared/DebuggerBreakpoint.cs index c6beea18e5..1bd71eb00f 100644 --- a/src/Microsoft.TestPlatform.Execution.Shared/DebuggerBreakpoint.cs +++ b/src/Microsoft.TestPlatform.Execution.Shared/DebuggerBreakpoint.cs @@ -108,7 +108,7 @@ private static bool AttachVs(Process process, int? vsPid) var parent = Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location); while (parent != null) { - var path = Path.Combine(parent, @"src\AttachVS\bin\Debug\net472\AttachVS.exe"); + var path = Path.Combine(parent, @"artifacts\bin\AttachVS\Debug\net472\AttachVS.exe"); Debug.WriteLine($"Looking for AttachVS in: {path}."); if (File.Exists(path)) {