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