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