Use vswhere to find location of vstest.console.exe
This commit is contained in:
Родитель
ebe93ae1b8
Коммит
165634ea43
|
@ -1,3 +1,5 @@
|
|||
#tool nuget:?package=vswhere
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// ARGUMENTS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -19,6 +21,10 @@ var NET35_ADAPTER_PATH = TOOLS_DIR + "NUnit3TestAdapter/build/net35/";
|
|||
// Version of the Adapter to Use
|
||||
var ADAPTER_VERSION = "3.9.0";
|
||||
|
||||
// Get path to VSTest
|
||||
var VSTEST_CONSOLE = VSWhereLatest()?.CombineWithFilePath(
|
||||
"./Common7/IDE/CommonExtensions/Microsoft/TestWindow/vstest.console.exe");
|
||||
|
||||
// Specify all the demo projects
|
||||
var DemoProjects = new DemoProject[] {
|
||||
new DemoProject()
|
||||
|
@ -152,7 +158,7 @@ Task("RunDemos")
|
|||
IEnumerable<string> redirectedErrorOutput;
|
||||
|
||||
int result = StartProcess(
|
||||
"vstest.console.exe",
|
||||
VSTEST_CONSOLE,
|
||||
new ProcessSettings()
|
||||
{
|
||||
Arguments = $"{proj.TestAssembly} /TestAdapterPath:{NET35_ADAPTER_PATH}",
|
||||
|
|
Загрузка…
Ссылка в новой задаче