From e5c6baa710f9d96695a5581a5390b19a3cabd907 Mon Sep 17 00:00:00 2001 From: Malcolm Nixon Date: Sat, 23 Nov 2019 18:19:07 -0500 Subject: [PATCH] Modified to select the VSTest.Console in the TestPlatform folder. --- lib/main.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 05dd3518..eecaed0f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -78,7 +78,7 @@ function FindVSTest(pathToVSWhere) { }; // Run VSWhere to tell us where VSTest.Console is var vsWhereExe = path.join(pathToVSWhere, "vswhere.exe"); - yield exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\vstest.console.exe'], options); + yield exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\TestPlatform\\vstest.console.exe'], options); if (vsTestPath === "") { core.setFailed("Unable to find VSTest.Console.exe"); } diff --git a/src/main.ts b/src/main.ts index 0a5851f3..2955fea4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -77,7 +77,7 @@ async function FindVSTest(pathToVSWhere:string):Promise{ // Run VSWhere to tell us where VSTest.Console is var vsWhereExe = path.join(pathToVSWhere, "vswhere.exe"); - await exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\vstest.console.exe'], options); + await exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\TestPlatform\\vstest.console.exe'], options); if(vsTestPath === ""){ core.setFailed("Unable to find VSTest.Console.exe");