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