42 references to ExitType
Microsoft.Build.CommandLine.UnitTests (8)
CommandLineSwitches_Tests.cs (1)
1604
MSBuildApp.Execute([@"msbuild.exe", project, "/t:foo.bar"]).ShouldBe(MSBuildApp.
ExitType
.SwitchError);
XMake_Tests.cs (7)
550
.ShouldBe(MSBuildApp.
ExitType
.Success);
635
MSBuildApp.Execute([@"c:\bin\msbuild.exe", "-junk"]).ShouldBe(MSBuildApp.
ExitType
.SwitchError);
636
MSBuildApp.Execute([@"msbuild.exe", "-t"]).ShouldBe(MSBuildApp.
ExitType
.SwitchError);
637
MSBuildApp.Execute([@"msbuild.exe", "@bogus.rsp"]).ShouldBe(MSBuildApp.
ExitType
.InitializationError);
1210
MSBuildApp.Execute([@"c:\bin\msbuild.exe", quotedProjectFileName]).ShouldBe(MSBuildApp.
ExitType
.Success);
1250
.ShouldBe(MSBuildApp.
ExitType
.Success);
3141
MSBuildApp.Execute([@"c:\bin\msbuild.exe", project, "/m:257 /mt"]).ShouldBe(MSBuildApp.
ExitType
.SwitchError);
Microsoft.Build.Engine.UnitTests (1)
Utilities_Tests.cs (1)
84
MSBuildApp.
ExitType
.Success,
MSBuild (33)
MSBuildClientApp.cs (4)
37
public static MSBuildApp.
ExitType
Execute(string[] commandLineArgs, CancellationToken cancellationToken)
58
public static MSBuildApp.
ExitType
Execute(string[] commandLineArgs, string msbuildLocation, CancellationToken cancellationToken)
78
Enum.TryParse(exitResult.MSBuildAppExitTypeString, out MSBuildApp.
ExitType
MSBuildAppExitType))
85
return MSBuildApp.
ExitType
.MSBuildClientFailure;
XMake.cs (29)
322
exitCode = ((s_initialized && MSBuildClientApp.Execute(args, s_buildCancellationSource.Token) ==
ExitType
.Success) ? 0 : 1);
327
exitCode = ((s_initialized && Execute(args) ==
ExitType
.Success) ? 0 : 1);
644
public static
ExitType
Execute(string[] commandLine)
665
ExitType
exitType =
ExitType
.Success;
814
exitType =
ExitType
.BuildError;
842
collection.LogBuildFinishedEvent(exitType ==
ExitType
.Success);
847
exitType =
ExitType
.BuildError;
894
exitType =
ExitType
.BuildError;
945
exitType =
ExitType
.SwitchError;
953
exitType =
ExitType
.InitializationError;
960
exitType =
ExitType
.InitializationError;
985
exitType =
ExitType
.LoggerAbort;
1002
exitType =
ExitType
.LoggerFailure;
1008
exitType =
ExitType
.InitializationError;
1034
exitType =
ExitType
.ProjectCacheFailure;
1043
exitType =
ExitType
.Unexpected;
1051
exitType =
ExitType
.Unexpected;
1062
RecordCrashTelemetry(e,
ExitType
.Unexpected, isUnhandled: true);
1101
private static void RecordCrashTelemetry(Exception exception,
ExitType
exitType, bool isUnhandled = false)
1120
private static
ExitType
OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem, Project project, TextWriter outputStream)
1137
return
ExitType
.Success;
1140
private static
ExitType
OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers,
ExitType
exitType, TextWriter outputStream)
1147
exitType = exitType ==
ExitType
.Success && (logger as SimpleErrorLogger).HasLoggedErrors ?
ExitType
.BuildError : exitType;
3014
ExitType
exitType;
3018
exitType =
ExitType
.InitializationError;
3025
exitCode = exitType ==
ExitType
.Success ? 0 : 1;