7 writes to ExitCode
Microsoft.Build.Utilities.Core (7)
ToolTask.cs (7)
760ExitCode = -1; 799ExitCode = proc.ExitCode; 814ExitCode = -1; 1501ExitCode = 1; 1552ExitCode = 0; 1562ExitCode = 1; 1578ExitCode = ExecuteTool(pathToTool, responseFileCommands, commandLineCommands);
30 references to ExitCode
Microsoft.Build.Tasks.Core (4)
Exec.cs (4)
317Log.LogMessageFromResources(MessageImportance.Normal, "Exec.CommandFailedNoErrorCode", Command, ExitCode); 324if (ExitCode == NativeMethods.SE_ERR_ACCESSDENIED) 326Log.LogErrorWithCodeFromResources("Exec.CommandFailedAccessDenied", commandForLog, ExitCode); 330Log.LogErrorWithCodeFromResources("Exec.CommandFailed", commandForLog, ExitCode);
Microsoft.Build.Tasks.UnitTests (6)
Exec_Tests.cs (6)
152Assert.Equal(NativeMethodsShared.IsWindows ? 4 : 1, exec.ExitCode); 171Assert.Equal(expectedExitCode, exec.ExitCode); 199exec.ExitCode.ShouldBe(NativeMethodsShared.IsWindows ? -1 : 137); 209Assert.Equal(0, exec.ExitCode); 222Assert.Equal(120, exec.ExitCode); 238Assert.Equal(-1, exec.ExitCode);
Microsoft.Build.Utilities.Core (6)
ToolTask.cs (6)
436Debug.Assert(ExitCode != 0, "HandleTaskExecutionErrors should only be called if there were problems executing the task"); 441LogPrivate.LogMessageFromResources(MessageImportance.Low, "General.ToolCommandFailedNoErrorCode", ExitCode); 448LogPrivate.LogErrorWithCodeFromResources("ToolTask.ToolCommandFailed", ToolExe, ExitCode); 812if (ExitCode == 0 && HasLoggedErrors) 833return ExitCode; 1586else if (ExitCode != 0)
Microsoft.Build.Utilities.UnitTests (12)
ToolTask_Tests.cs (12)
172t.ExitCode.ShouldBe(0); 191t.ExitCode.ShouldBe(NativeMethodsShared.IsWindows ? 1 : 127); // cmd.exe error code is 1, sh error code is 127 224t.ExitCode.ShouldBe(-1); 269t.ExitCode.ShouldBe(exitCode); 297t.ExitCode.ShouldBe(0); 321t.ExitCode.ShouldBe(0); 345t.ExitCode.ShouldBe(-1); 412t.ExitCode.ShouldBe(-1); 433t.ExitCode.ShouldBe(0); 462t.ExitCode.ShouldBe(0); 490t.ExitCode.ShouldBe(0); 971task.ExitCode.ShouldBe(0);
Microsoft.DotNet.Build.Tasks.Installers (1)
src\ExecWithRetries.cs (1)
84int exitCode = _runningExec.ExitCode;
Microsoft.DotNet.Build.Tasks.Workloads (1)
Wix\LinkerToolTask.cs (1)
69Log?.LogMessage(MessageImportance.High, $"Light exited with: {ExitCode}, HasLoggedErrors: {HasLoggedErrors}");