40 references to ExitType
Microsoft.Build.CommandLine.UnitTests (8)
CommandLineSwitches_Tests.cs (1)
1551
MSBuildApp.Execute(@"msbuild.exe " + project + " /t:foo.bar").ShouldBe(MSBuildApp.
ExitType
.SwitchError);
XMake_Tests.cs (7)
566
.ShouldBe(MSBuildApp.
ExitType
.Success);
659
MSBuildApp.Execute(@"c:\bin\msbuild.exe -junk").ShouldBe(MSBuildApp.
ExitType
.SwitchError);
661
MSBuildApp.Execute(@"msbuild.exe -t").ShouldBe(MSBuildApp.
ExitType
.SwitchError);
663
MSBuildApp.Execute(@"msbuild.exe @bogus.rsp").ShouldBe(MSBuildApp.
ExitType
.InitializationError);
1145
MSBuildApp.Execute(@"c:\bin\msbuild.exe " + quotedProjectFileName).ShouldBe(MSBuildApp.
ExitType
.Success);
1179
MSBuildApp.Execute(@$"c:\bin\msbuild.exe /logger:FileLogger,""Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"";""LogFile={logFile}"" /verbosity:detailed " + quotedProjectFileName).ShouldBe(MSBuildApp.
ExitType
.Success);
2922
MSBuildApp.Execute(@"c:\bin\msbuild.exe " + project + " / m:257 /mt").ShouldBe(MSBuildApp.
ExitType
.SwitchError);
Microsoft.Build.Engine.UnitTests (1)
Utilities_Tests.cs (1)
85
.ShouldBe(MSBuildApp.
ExitType
.Success);
MSBuild (31)
MSBuildClientApp.cs (4)
37
public static MSBuildApp.
ExitType
Execute(string commandLine, CancellationToken cancellationToken)
58
public static MSBuildApp.
ExitType
Execute(
81
Enum.TryParse(exitResult.MSBuildAppExitTypeString, out MSBuildApp.
ExitType
MSBuildAppExitType))
88
return MSBuildApp.
ExitType
.MSBuildClientFailure;
XMake.cs (27)
266
exitCode = (s_initialized && MSBuildClientApp.Execute(Environment.CommandLine, s_buildCancellationSource.Token) ==
ExitType
.Success) ? 0 : 1;
271
exitCode = (s_initialized && Execute(Environment.CommandLine) ==
ExitType
.Success) ? 0 : 1;
574
public static
ExitType
Execute(string commandLine)
595
ExitType
exitType =
ExitType
.Success;
747
exitType =
ExitType
.BuildError;
775
collection.LogBuildFinishedEvent(exitType ==
ExitType
.Success);
780
exitType =
ExitType
.BuildError;
827
exitType =
ExitType
.BuildError;
878
exitType =
ExitType
.SwitchError;
886
exitType =
ExitType
.InitializationError;
893
exitType =
ExitType
.InitializationError;
918
exitType =
ExitType
.LoggerAbort;
934
exitType =
ExitType
.LoggerFailure;
940
exitType =
ExitType
.InitializationError;
964
exitType =
ExitType
.ProjectCacheFailure;
972
exitType =
ExitType
.Unexpected;
979
exitType =
ExitType
.Unexpected;
1018
private static
ExitType
OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem, Project project, TextWriter outputStream)
1035
return
ExitType
.Success;
1038
private static
ExitType
OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers,
ExitType
exitType, TextWriter outputStream)
1045
exitType = exitType ==
ExitType
.Success && (logger as SimpleErrorLogger).HasLoggedErrors ?
ExitType
.BuildError : exitType;
3420
ExitType
exitType;
3424
exitType =
ExitType
.InitializationError;
3431
exitCode = exitType ==
ExitType
.Success ? 0 : 1;