3 writes to FilePath
Microsoft.Build (3)
Logging\BinaryLogger\BinaryLogger.cs (3)
445
FilePath
= filePath;
455
FilePath
= "msbuild.binlog";
461
FilePath
= Path.GetFullPath(FilePath);
17 references to FilePath
Microsoft.Build (10)
Logging\BinaryLogger\BinaryLogger.cs (10)
183
logDirectory = Path.GetDirectoryName(
FilePath
);
196
stream = new FileStream(
FilePath
, FileMode.Create);
200
projectImportsCollector = new ProjectImportsCollector(
FilePath
, CollectProjectImports == ProjectImportsCollectionMode.ZipFile);
218
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
246
ProjectImportsCollector.FlushBlobToFile(
FilePath
, args.ContentStream);
299
LogMessage("BinLogFilePath=" +
FilePath
);
453
if (
FilePath
== null)
457
KnownTelemetry.LoggingConfigurationTelemetry.BinaryLoggerUsedDefaultName =
FilePath
== "msbuild.binlog";
461
FilePath = Path.GetFullPath(
FilePath
);
467
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
Microsoft.Build.Engine.UnitTests (7)
BinaryLogger_Tests.cs (7)
667
binaryLogger.
FilePath
.Should().BeEquivalentTo(expectedLog);
669
File.Exists(binaryLogger.
FilePath
).ShouldBeTrue();
670
FileUtilities.DeleteNoThrow(binaryLogger.
FilePath
);
687
binaryLogger.
FilePath
.Should().EndWith(".binlog");
688
binaryLogger.
FilePath
.Length.ShouldBeGreaterThan(10);
690
File.Exists(binaryLogger.
FilePath
).ShouldBeTrue();
691
FileUtilities.DeleteNoThrow(binaryLogger.
FilePath
);