46 references to Code
Microsoft.Arcade.Test.Common (1)
MockEngine.cs (1)
55_output?.WriteLine($"error {e.Code}: {e.Message}");
Microsoft.Build (6)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
446e.Code,
EventArgsFormatting.cs (3)
29e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, 76e.Code, e.File, null, e.LineNumber, e.EndLineNumber, 93e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber,
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
477WriteDeduplicatedString(e.Code);
LogMessagePacketBase.cs (1)
940string code = buildErrorEventArgs.Code;
Microsoft.Build.Engine.OM.UnitTests (2)
Definition\Project_Tests.cs (2)
2064mockLogger.Errors[0].Code.ShouldBe("MSB4112"); // "Security message about disabled targets need to have code MSB4112, because code in the VS Core project system depends on this. See DesignTimeBuildFeedback.cpp." 4281if (error.Code == ErrorCode)
Microsoft.Build.Engine.UnitTests (7)
BackEnd\LoggingService_Tests.cs (2)
738Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.Code, actualBuildEvent.Code); 876Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.Code, actualBuildEvent.Code);
BackEnd\OnError_Tests.cs (1)
591logger.Errors.First().Code.ShouldBe("MSB4181");
BuildEventArgsSerialization_Tests.cs (2)
311e => e.Code, 350e => e.Code,
Construction\SolutionProjectGenerator_Tests.cs (1)
332Assert.Equal(code, error.Code);
WarningsAsMessagesAndErrors_Tests.cs (1)
228Assert.Equal(ExpectedEventCode, actualEvent.Code);
Microsoft.Build.Framework.UnitTests (2)
CustomEventArgSerialization_Tests.cs (2)
199newGenericEvent.Code.ShouldBe(genericEvent.Code, StringCompareShould.IgnoreCase); // "Expected Code to Match"
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\MockEngine.cs (1)
29var msg = $"ERROR {eventArgs.Code}: {eventArgs.Message}";
Microsoft.Build.Tasks.UnitTests (7)
CodeTaskFactoryTests.cs (1)
1232Assert.Equal("MSB4801", error.Code);
ProjectExtensionsImportTestBase.cs (1)
231logger.Errors.Select(i => i.Code).FirstOrDefault().ShouldBe("MSB3540");
SGen_Tests.cs (1)
45logger.Errors.First().Code.ShouldBe("MSB3474");
VerifyFileHash_Tests.cs (4)
40errorEvent.Code.ShouldBe("MSB3951"); 58errorEvent.Code.ShouldBe("MSB3953"); 76errorEvent.Code.ShouldBe("MSB3954"); 97errorEvent.Code.ShouldBe("MSB3952");
Microsoft.Build.UnitTests.Shared (5)
BuildEventArgsExtension.cs (2)
149if (!String.Equals(args.Code, other.Code, StringComparison.OrdinalIgnoreCase))
MockEngine.cs (1)
89message += "ERROR " + eventArgs.Code + ": ";
MockLogger.cs (1)
296string logMessage = $"{e.File}({e.LineNumber},{e.ColumnNumber}): {e.Subcategory} error {e.Code}: {e.Message}";
ObjectModelHelpers.cs (1)
1520mockLogger.Errors[0].Code.ShouldBe("MSB5029");
Microsoft.Build.Utilities.Core (3)
EventArgsFormatting.cs (3)
29e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, 76e.Code, e.File, null, e.LineNumber, e.EndLineNumber, 93e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber,
Microsoft.Build.Utilities.UnitTests (2)
TrackedDependencies\MockEngine.cs (2)
47Console.Write("ERROR " + eventArgs.Code + ": "); 48Log += "ERROR " + eventArgs.Code + ": ";
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
195LogErrorOrWarning(isError: true, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.BuildEventContext);
Microsoft.DotNet.SignTool.Tests (1)
FakeBuildEngine.cs (1)
99_output.WriteLine($"error {e.Code}: {e.Message}");
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
302 errorCode: e.Code,
MSBuild (5)
EventArgsFormatting.cs (3)
29e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, 76e.Code, e.File, null, e.LineNumber, e.EndLineNumber, 93e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber,
LogMessagePacketBase.cs (1)
940string code = buildErrorEventArgs.Code;
TerminalLogger\TerminalLogger.cs (1)
1167code: AnsiCodes.Colorize(e.Code, TerminalColor.Red),
MSBuildTaskHost (1)
LogMessagePacketBase.cs (1)
940string code = buildErrorEventArgs.Code;
XmlFileLogger (1)
XmlFileLogger.cs (1)
63_build.AddMessage(args, string.Format("Error {0}: {1}", args.Code, args.Message));