3 writes to FilePath
Microsoft.Build (3)
Logging\BinaryLogger\BinaryLogger.cs (3)
456
FilePath
= filePath;
466
FilePath
= "msbuild.binlog";
472
FilePath
= Path.GetFullPath(FilePath);
17 references to FilePath
Microsoft.Build (10)
Logging\BinaryLogger\BinaryLogger.cs (10)
186
logDirectory = Path.GetDirectoryName(
FilePath
);
199
stream = new FileStream(
FilePath
, FileMode.Create);
203
projectImportsCollector = new ProjectImportsCollector(
FilePath
, CollectProjectImports == ProjectImportsCollectionMode.ZipFile);
221
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
249
ProjectImportsCollector.FlushBlobToFile(
FilePath
, args.ContentStream);
302
LogMessage("BinLogFilePath=" +
FilePath
);
464
if (
FilePath
== null)
468
KnownTelemetry.LoggingConfigurationTelemetry.BinaryLoggerUsedDefaultName =
FilePath
== "msbuild.binlog";
472
FilePath = Path.GetFullPath(
FilePath
);
478
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
Microsoft.Build.Engine.UnitTests (7)
BinaryLogger_Tests.cs (7)
653
binaryLogger.
FilePath
.Should().BeEquivalentTo(expectedLog);
655
File.Exists(binaryLogger.
FilePath
).ShouldBeTrue();
656
FileUtilities.DeleteNoThrow(binaryLogger.
FilePath
);
673
binaryLogger.
FilePath
.Should().EndWith(".binlog");
674
binaryLogger.
FilePath
.Length.ShouldBeGreaterThan(10);
676
File.Exists(binaryLogger.
FilePath
).ShouldBeTrue();
677
FileUtilities.DeleteNoThrow(binaryLogger.
FilePath
);