59 references to ExecMSBuild
Microsoft.Build.CommandLine.UnitTests (31)
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 (27)
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); 1240output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output); 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); 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); 2836string output = RunnerUtilities.ExecMSBuild($"\"{testProject.ProjectFile}\" {string.Join(" ", arguments)}", out var success, _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 (4)
PortableTasks_Tests.cs (1)
73: RunnerUtilities.ExecMSBuild(projFile, out successfulExit);
RoslynCodeTaskFactory_Tests.cs (3)
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);