5 writes to LineNumber
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
308args.LineNumber = line;
Microsoft.Build.Engine.UnitTests (2)
BackEnd\NodePackets_Tests.cs (1)
203result.LineNumber = 30000;
BuildEventArgsSerialization_Tests.cs (1)
728args.LineNumber = 265;
Microsoft.Build.Framework (2)
EnvironmentVariableReadEventArgs.cs (1)
78LineNumber = reader.Read7BitEncodedInt();
TaskParameterEventArgs.cs (1)
136LineNumber = reader.Read7BitEncodedInt();
44 references to LineNumber
Microsoft.Build (6)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
401ElementLocation.Create(evr.File, evr.LineNumber, evr.ColumnNumber));
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 (3)
620Write(e.LineNumber); 739Write(e.LineNumber); 806if (e.LineNumber != 0)
Microsoft.Build.Engine.OM.UnitTests (16)
Definition\Project_Tests.cs (16)
3919eventArgs.LineNumber.ShouldBe(6); 3922logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to false condition; ( \'$(Something)\' == \'nothing\' ) was evaluated as ( \'\' == \'nothing\' )."); 3960eventArgs.LineNumber.ShouldBe(6); 3963logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4005eventArgs.LineNumber.ShouldBe(6); 4008logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being empty."); 4052eventArgs.LineNumber.ShouldBe(6); 4055logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being invalid."); 4092eventArgs.LineNumber.ShouldBe(3); 4095logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the expression evaluating to an empty string."); 4135eventArgs.LineNumber.ShouldBe(6); 4138logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file not existing."); 4178eventArgs.LineNumber.ShouldBe(6); 4181logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4224eventArgs.LineNumber.ShouldBe(6); 4227logger.AssertLogContains($"Importing project \"{pre1.FullPath}\" into project \"{pre2.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}).");
Microsoft.Build.Engine.UnitTests (12)
BackEnd\LoggingService_Tests.cs (2)
830Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.LineNumber, actualBuildEvent.LineNumber); 937Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.LineNumber, actualBuildEvent.LineNumber);
BuildEventArgsSerialization_Tests.cs (10)
464e => e.LineNumber.ToString(), 504e => e.LineNumber.ToString(), 534e => e.LineNumber.ToString(), 650e => e.LineNumber.ToString(), 688e => e.LineNumber.ToString(), 713e => e.LineNumber.ToString(), 737e => e.LineNumber.ToString(), 833e => e.LineNumber.ToString(), 835e => e.LineNumber.ToString(), 863e => e.LineNumber.ToString(),
Microsoft.Build.Framework (2)
EnvironmentVariableReadEventArgs.cs (1)
69writer.Write7BitEncodedInt(LineNumber);
TaskParameterEventArgs.cs (1)
187writer.Write7BitEncodedInt(LineNumber);
Microsoft.Build.Framework.UnitTests (2)
CustomEventArgSerialization_Tests.cs (2)
320newMessageEvent.LineNumber.ShouldBe(messageEvent.LineNumber); // "Expected message LineNumber to match"
Microsoft.Build.UnitTests.Shared (2)
MockLogger.cs (2)
311if (eventArgs is BuildMessageEventArgs m && m.LineNumber != 0) 313msg = $"{m.File}({m.LineNumber},{m.ColumnNumber}): {msg}";
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 (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);