19 references to Code
Microsoft.Build (4)
EventArgsFormatting.cs (2)
60e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, 155e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, e.ColumnNumber, e.EndColumnNumber, e.ThreadId, null);
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
724WriteDeduplicatedString(e.Code); 791if (e.Code != null)
Microsoft.Build.Engine.UnitTests (8)
BackEnd\LoggingService_Tests.cs (2)
823Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.Code, actualBuildEvent.Code); 930Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.Code, actualBuildEvent.Code);
BuildEventArgsSerialization_Tests.cs (5)
459e => e.Code, 499e => e.Code, 529e => e.Code, 645e => e.Code, 683e => e.Code,
WarningsAsMessagesAndErrors_Tests.cs (1)
251Assert.Equal(ExpectedEventCode, actualEvent.Code);
Microsoft.Build.Framework.UnitTests (2)
CustomEventArgSerialization_Tests.cs (2)
318newMessageEvent.Code.ShouldBe(messageEvent.Code); // "Expected message Code to match"
Microsoft.Build.Utilities.Core (2)
EventArgsFormatting.cs (2)
60e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, 155e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, e.ColumnNumber, e.EndColumnNumber, e.ThreadId, null);
MSBuild (3)
EventArgsFormatting.cs (2)
60e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, 155e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.LineNumber, e.EndLineNumber, e.ColumnNumber, e.EndColumnNumber, e.ThreadId, null);
TerminalLogger\TerminalLogger.cs (1)
826if (e.Code == "NETSDK1057" && !_loggedPreviewMessage)