3 writes to FilePath
Microsoft.Build (3)
Logging\BinaryLogger\BinaryLogger.cs (3)
454
FilePath
= filePath;
464
FilePath
= "msbuild.binlog";
470
FilePath
= Path.GetFullPath(FilePath);
17 references to FilePath
Microsoft.Build (10)
Logging\BinaryLogger\BinaryLogger.cs (10)
185
logDirectory = Path.GetDirectoryName(
FilePath
);
198
stream = new FileStream(
FilePath
, FileMode.Create);
202
projectImportsCollector = new ProjectImportsCollector(
FilePath
, CollectProjectImports == ProjectImportsCollectionMode.ZipFile);
220
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
248
ProjectImportsCollector.FlushBlobToFile(
FilePath
, args.ContentStream);
301
LogMessage("BinLogFilePath=" +
FilePath
);
462
if (
FilePath
== null)
466
KnownTelemetry.LoggingConfigurationTelemetry.BinaryLoggerUsedDefaultName =
FilePath
== "msbuild.binlog";
470
FilePath = Path.GetFullPath(
FilePath
);
476
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
Microsoft.Build.Engine.UnitTests (7)
BinaryLogger_Tests.cs (7)
666
binaryLogger.
FilePath
.Should().BeEquivalentTo(expectedLog);
668
File.Exists(binaryLogger.
FilePath
).ShouldBeTrue();
669
FileUtilities.DeleteNoThrow(binaryLogger.
FilePath
);
686
binaryLogger.
FilePath
.Should().EndWith(".binlog");
687
binaryLogger.
FilePath
.Length.ShouldBeGreaterThan(10);
689
File.Exists(binaryLogger.
FilePath
).ShouldBeTrue();
690
FileUtilities.DeleteNoThrow(binaryLogger.
FilePath
);