111 references to RunnerUtilities
Microsoft.Build.BuildCheck.UnitTests (20)
EndToEndTests.cs (20)
51
string output =
RunnerUtilities
.ExecBootstrapedMSBuild($"{projectFile.Path} -check", out bool success);
89
string output =
RunnerUtilities
.ExecBootstrapedMSBuild($"{projectFile.Path} -check", out bool success);
121
string output =
RunnerUtilities
.ExecBootstrapedMSBuild($"{projectFile.Path}", out bool success);
130
output =
RunnerUtilities
.ExecBootstrapedMSBuild($"{projectFile.Path} -check", out success);
149
output =
RunnerUtilities
.ExecBootstrapedMSBuild($"{projectFile.Path} -check", out success);
159
output =
RunnerUtilities
.ExecBootstrapedMSBuild($"{projectFile.Path}", out success);
177
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
216
_ =
RunnerUtilities
.ExecBootstrapedMSBuild(
225
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
267
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
307
string projectCheckBuildLog =
RunnerUtilities
.ExecBootstrapedMSBuild(
330
_ =
RunnerUtilities
.ExecBootstrapedMSBuild(
336
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
381
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
417
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
441
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
475
string projectCheckBuildLog =
RunnerUtilities
.ExecBootstrapedMSBuild(
515
string projectCheckBuildLog =
RunnerUtilities
.ExecBootstrapedMSBuild(
544
string projectCheckBuildLog =
RunnerUtilities
.ExecBootstrapedMSBuild(
564
string output =
RunnerUtilities
.ExecBootstrapedMSBuild(
Microsoft.Build.CommandLine.UnitTests (58)
MSBuildServer_Tests.cs (16)
97
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out bool success, false, _output);
103
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out success, false, _output);
126
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, sleepProject.Path, out _);
129
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out success, false, _output);
147
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out bool success, false, _output);
156
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out success, false, _output);
163
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out success, false, _output);
189
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out bool success, false, _output);
205
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, sleepProject.Path, out _, false, _output);
215
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out success, false, _output);
221
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out success, false, _output);
244
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path, out bool success, false, _output);
281
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path + " /nodereuse:false", out bool success, false, _output);
294
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, project.Path + " -interactive", out bool success, false, _output);
325
string output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, $"/t:DisplayMessages {project.Path}", out bool success, false, _output);
333
output =
RunnerUtilities
.ExecMSBuild(BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, $"/t:DisplayMessages {project.Path}", out success, false, _output);
PerfLog_Tests.cs (2)
45
RunnerUtilities
.ExecMSBuild(msbuildParameters, out bool successfulExit);
83
RunnerUtilities
.ExecMSBuild(msbuildParameters, out bool successfulExit);
TerminalLogger_Tests.cs (2)
713
RunnerUtilities
.ExecMSBuild($"{projectFile.Path} /m /bl:{logFileWithTL} -flp:logfile={Path.Combine(logFolder.Path, "logFileWithTL.log")};verbosity=diagnostic -tl:on", out bool success);
717
RunnerUtilities
.ExecMSBuild($"{projectFile.Path} /m /bl:{logFileWithoutTL} -flp:logfile={Path.Combine(logFolder.Path, "logFileWithoutTL.log")};verbosity=diagnostic", out success);
XMake_Tests.cs (38)
543
FileUtilities.EnsureDoubleQuotes(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe),
587
FileUtilities.EnsureDoubleQuotes(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe),
713
string result =
RunnerUtilities
.ExecMSBuild($" {project.Path} -getProperty:Foo", out bool success);
780
string results =
RunnerUtilities
.ExecMSBuild($" {project.Path} {extraSwitch} {graph}", out bool success);
808
string results =
RunnerUtilities
.ExecMSBuild($" {project.Path} /p:someProperty:fdalse= ", out bool success);
835
string results =
RunnerUtilities
.ExecMSBuild($" {project.Path} {extraSwitch} -getResultOutputFile:{resultFile}", out bool success);
840
result =
RunnerUtilities
.ExecMSBuild($" {project.Path} {extraSwitch} -getResultOutputFile:", out success);
867
string result =
RunnerUtilities
.ExecMSBuild($" {project.Path} /restore {graph}", out bool success);
1196
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1199
output.ShouldContain(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe + (NativeMethodsShared.IsWindows ? " /v:diag " : " -v:diag ") + _pathToArbitraryBogusFile, Case.Insensitive);
1211
string pathToMSBuildExe =
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe;
1219
string output =
RunnerUtilities
.ExecMSBuild(pathToMSBuildExe, msbuildParameters, out var successfulExit, outputHelper: _output);
1222
output.ShouldContain(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe + (NativeMethodsShared.IsWindows ? " /v:diag " : " -v:diag ") + _pathToArbitraryBogusFile, Case.Insensitive);
1236
Directory.SetCurrentDirectory(Path.GetDirectoryName(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe));
1240
output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1248
output.ShouldContain(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe + (NativeMethodsShared.IsWindows ? " /v:diag " : " -v:diag ") + _pathToArbitraryBogusFile, Case.Insensitive);
1271
string output =
RunnerUtilities
.ExecMSBuild(string.Empty, out var successfulExit, _output);
1287
string output =
RunnerUtilities
.ExecMSBuild("project.proj -nologo", out bool success, _output);
1308
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1327
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1348
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1386
string output =
RunnerUtilities
.ExecMSBuild(exePath, msbuildParameters, out var successfulExit);
1421
string output =
RunnerUtilities
.ExecMSBuild(exePath, msbuildParameters, out var successfulExit);
1445
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1464
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1482
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1500
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1522
string output =
RunnerUtilities
.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
2486
var output =
RunnerUtilities
.ExecMSBuild(parametersLoggerOptional, out bool successfulExit, _output);
2536
string output =
RunnerUtilities
.ExecMSBuild($"\"{testProject.Path}\" \"/bl:{binLogLocation}/output.binlog\"", out var success, _output);
2540
RunnerUtilities
.ExecMSBuild($"\"{binLogLocation}/output.binlog\" \"/bl:{binLogLocation}/replay.binlog;ProjectImports=ZipFile\"", out success, _output);
2570
RunnerUtilities
.ExecMSBuild($"\"{testProject.ProjectFile}\" {switches} ", out bool success, _output);
2610
string output =
RunnerUtilities
.ExecMSBuild($"\"{testSolution.Path}\" /p:Configuration=Debug", out var success, _output);
2657
string output =
RunnerUtilities
.ExecMSBuild($"{arguments} \"{testProject.ProjectFile}\"", out bool success, _output);
2715
RunnerUtilities
.ExecMSBuild($"{arguments} \"{testProject.ProjectFile}\"", out bool success, _output);
2721
RunnerUtilities
.ExecMSBuild($"{arguments} \"{testProject.ProjectFile}\"", out success, _output);
2757
string source = Path.GetDirectoryName(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe);
2836
string output =
RunnerUtilities
.ExecMSBuild($"\"{testProject.ProjectFile}\" {string.Join(" ", arguments)}", out var success, _output);
Microsoft.Build.Engine.OM.UnitTests (2)
NugetRestoreTests.cs (2)
26
string msbuildExePath = Path.GetDirectoryName(
RunnerUtilities
.PathToCurrentlyRunningMsBuildExe)!;
50
RunnerUtilities
.RunProcessAndGetOutput(Path.Combine(msbuildExePath, "nuget", "NuGet.exe"), "restore " + sln.Path + " -MSBuildPath \"" + msbuildExePath + "\"", out bool success, outputHelper: _output);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\TaskBuilder_Tests.cs (1)
103
string results =
RunnerUtilities
.ExecMSBuild(projectFile.Path + " /v:diag", out bool success);
BinaryLogger_Tests.cs (6)
356
RunnerUtilities
.ExecMSBuild($"{projectFile.Path} -bl:{_logFile}", out bool success);
359
RunnerUtilities
.ExecMSBuild($"{_logFile} -flp:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic", out success);
416
RunnerUtilities
.ExecMSBuild($"{projectFile.Path} -nr:False -bl:{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile2.log")};verbosity=normal", out bool success);
428
RunnerUtilities
.ExecMSBuild($"{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile3.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile4.log")};verbosity=normal", out success);
626
string consoleOutput1 =
RunnerUtilities
.ExecMSBuild($"{projectFile1.Path} -bl:{_logFile} -verbosity:diag -nologo", out bool success1);
634
string consoleOutput2 =
RunnerUtilities
.ExecMSBuild($"{projectFile2.Path} -bl:{_logFile} -verbosity:{verbosity} -nologo", out bool success2);
Construction\SolutionProjectGenerator_Tests.cs (4)
123
RunnerUtilities
.ExecMSBuild(solutionFile.Path + " /t:classlib", out bool success);
192
string output =
RunnerUtilities
.ExecMSBuild(solutionFile.Path + " /t:Clean;Build;Custom", out bool success);
271
var output =
RunnerUtilities
.ExecMSBuild(solutionFile.Path + " /m /t:Clean;Build;Custom", out bool success);
900
RunnerUtilities
.ExecMSBuild("\"" + proj.Path + "\"", out bool successfulExit);
TerminalLoggerConfiguration_Tests.cs (7)
55
string output =
RunnerUtilities
.ExecMSBuild($"{_cmd} -tl:{tlValue}", out bool success);
83
string output =
RunnerUtilities
.ExecMSBuild($"{_cmd} -tl:{tlValue}", out bool success);
112
string output =
RunnerUtilities
.ExecMSBuild($"{_cmd} -tlp:default={bool.TrueString}", out bool success);
141
string output =
RunnerUtilities
.ExecMSBuild($"{_cmd}", out bool success);
169
string output =
RunnerUtilities
.ExecMSBuild($"{_cmd} -tlp:default={defaultValue}", out bool success);
197
string output =
RunnerUtilities
.ExecMSBuild($"{_cmd} -tlp:default={defaultValue} -v:m", out bool success);
229
string output =
RunnerUtilities
.ExecMSBuild(
TypeLoader_Dependencies_Tests.cs (2)
30
string output =
RunnerUtilities
.ExecMSBuild(projectFilePath + " /v:diag", out successfulExit);
51
string output =
RunnerUtilities
.ExecMSBuild(projectFilePath + " /v:diag /p:AssemblyPath=" + newTaskDllPath, out successfulExit);
TypeLoader_Tests.cs (4)
72
string output =
RunnerUtilities
.ExecMSBuild(projectFilePath + " /v:diag /p:AssemblyPath=" + dllName, out successfulExit, _output);
87
string output =
RunnerUtilities
.ExecMSBuild(projectFilePath + " /v:diag", out successfulExit, _output);
131
string output =
RunnerUtilities
.ExecMSBuild(projectFilePath + " /v:diag /p:AssemblyPath=" + movedDLLPath, out successfulExit, _output);
155
string output =
RunnerUtilities
.ExecMSBuild(projectFilePath + " /v:diag /p:AssemblyPath=" + copiedDllPath, out successfulExit, _output);
Microsoft.Build.Tasks.UnitTests (7)
PortableTasks_Tests.cs (2)
71
?
RunnerUtilities
.RunProcessAndGetOutput("msbuild", projFile, out successfulExit,
73
:
RunnerUtilities
.ExecMSBuild(projFile, out successfulExit);
RoslynCodeTaskFactory_Tests.cs (4)
79
string output =
RunnerUtilities
.ExecMSBuild(inlineTask.Path, out bool success);
116
string output =
RunnerUtilities
.ExecMSBuild(assemblyProj.Path + $" /p:OutDir={Path.Combine(folder.Path, "subFolder")} /restore", out bool success);
141
output =
RunnerUtilities
.ExecMSBuild(inlineTask.Path, out success);
756
RunnerUtilities
.ApplyDotnetHostPathEnvironmentVariable(env);
Unzip_Tests.cs (1)
464
string output =
RunnerUtilities
.RunProcessAndGetOutput($"/bin/sh", $"-c \"{command} {sourceFile.Path}\"", out bool success);