1 write to File
Microsoft.Build.Framework (1)
EnvironmentVariableReadEventArgs.cs (1)
80File = reader.ReadOptionalString() ?? string.Empty;
25 references to File
Microsoft.Build (9)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
438ElementLocation.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)
600WriteDeduplicatedString(e.File); 707WriteDeduplicatedString(e.File); 774if (e.File != null)
Logging\ParallelLogger\ParallelConsoleLogger.cs (2)
1256if (e.File != null) 1269if (e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId && e.File == null)
Logging\SerialConsoleLogger.cs (1)
525if (e.File != null)
Microsoft.Build.Engine.UnitTests (8)
BackEnd\LoggingService_Tests.cs (2)
827Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.File, actualBuildEvent.File); 934Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.File, actualBuildEvent.File);
BuildEventArgsSerialization_Tests.cs (6)
463e => e.File, 503e => e.File, 533e => e.File, 649e => e.File, 687e => e.File, 712e => e.File,
Microsoft.Build.Framework (1)
EnvironmentVariableReadEventArgs.cs (1)
71writer.WriteOptionalString(File);
Microsoft.Build.Framework.UnitTests (2)
CustomEventArgSerialization_Tests.cs (2)
319newMessageEvent.File.ShouldBe(messageEvent.File); // "Expected message File to match"
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
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);