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