34 references to LineNumber
Microsoft.Build (9)
BackEnd\Components\Logging\LoggingService.cs (4)
1571
extWarningEvent.
LineNumber
,
1593
warningEvent.
LineNumber
,
1617
extWarningEvent.
LineNumber
,
1638
warningEvent.
LineNumber
,
EventArgsFormatting.cs (3)
44
e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.
LineNumber
, e.EndLineNumber,
109
e.Code, e.File, null, e.
LineNumber
, e.EndLineNumber,
126
e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.
LineNumber
, e.EndLineNumber,
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
517
Write(e.
LineNumber
);
LogMessagePacketBase.cs (1)
928
int lineNumber = buildWarningEventArgs.
LineNumber
;
Microsoft.Build.Engine.UnitTests (9)
BackEnd\LoggingService_Tests.cs (4)
748
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
LineNumber
, actualBuildEvent.LineNumber);
830
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
LineNumber
, actualBuildEvent.LineNumber);
886
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
LineNumber
, actualBuildEvent.LineNumber);
937
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
LineNumber
, actualBuildEvent.LineNumber);
BackEnd\TaskHost_Tests.cs (3)
214
Assert.Equal(0, _customLogger.LastWarning.
LineNumber
); // "Expected line number to be 0"
227
Assert.Equal(0, _customLogger.LastWarning.
LineNumber
); // "Expected line number to be 0"
299
Assert.Equal(0, _customLogger.LastWarning.
LineNumber
); // "Expected line number to be 0"
BuildEventArgsSerialization_Tests.cs (2)
390
e => e.
LineNumber
.ToString(),
428
e => e.
LineNumber
.ToString(),
Microsoft.Build.UnitTests.Shared (4)
BuildEventArgsExtension.cs (2)
180
if (args.
LineNumber
!= other.
LineNumber
)
MockEngine.cs (1)
115
message += $"{eventArgs.File}({eventArgs.
LineNumber
},{eventArgs.ColumnNumber}): ";
MockLogger.cs (1)
285
string logMessage = $"{w.File}({w.
LineNumber
},{w.ColumnNumber}): {w.Subcategory} warning {w.Code}: {w.Message}";
Microsoft.Build.Utilities.Core (3)
EventArgsFormatting.cs (3)
44
e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.
LineNumber
, e.EndLineNumber,
109
e.Code, e.File, null, e.
LineNumber
, e.EndLineNumber,
126
e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.
LineNumber
, e.EndLineNumber,
Microsoft.Build.Utilities.UnitTests (1)
TrackedDependencies\MockEngine.cs (1)
60
Console.Write("{0}({1},{2}): ", eventArgs.File, eventArgs.
LineNumber
, eventArgs.ColumnNumber);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
34
_log?.Add(new MSBuildDiagnosticLogItem(DiagnosticLogItemKind.Warning, _projectFilePath, e.Message ?? "", e.File, e.
LineNumber
, e.ColumnNumber));
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
198
LogErrorOrWarning(isError: false, e.File, e.
LineNumber
, e.ColumnNumber, e.Code, e.Message, e.BuildEventContext);
MSBuild (5)
EventArgsFormatting.cs (3)
44
e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.
LineNumber
, e.EndLineNumber,
109
e.Code, e.File, null, e.
LineNumber
, e.EndLineNumber,
126
e.Code, e.File, showProjectFile ? e.ProjectFile : null, e.
LineNumber
, e.EndLineNumber,
LogMessagePacketBase.cs (1)
928
int lineNumber = buildWarningEventArgs.
LineNumber
;
TerminalLogger\TerminalLogger.cs (1)
1131
lineNumber: e.
LineNumber
,
MSBuildTaskHost (1)
LogMessagePacketBase.cs (1)
928
int lineNumber = buildWarningEventArgs.
LineNumber
;