4 writes to FilePath
Microsoft.Build (4)
Logging\BinaryLogger\BinaryLogger.cs (4)
660
FilePath
= filePath;
667
FilePath
= parsedParams.LogFilePath;
672
FilePath
= "msbuild.binlog";
678
FilePath
= Path.GetFullPath(FilePath);
19 references to FilePath
Microsoft.Build (12)
Logging\BinaryLogger\BinaryLogger.cs (12)
357
logDirectory = Path.GetDirectoryName(
FilePath
);
370
stream = new FileStream(
FilePath
, FileMode.Create);
374
projectImportsCollector = new ProjectImportsCollector(
FilePath
, CollectProjectImports == ProjectImportsCollectionMode.ZipFile);
392
string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidFileLoggerFile",
FilePath
, e.Message);
420
ProjectImportsCollector.FlushBlobToFile(
FilePath
, args.ContentStream);
473
LogMessage("BinLogFilePath=" +
FilePath
);
551
File.Copy(
FilePath
, additionalPath, overwrite: true);
561
FilePath
,
670
if (
FilePath
== null)
674
KnownTelemetry.LoggingConfigurationTelemetry.BinaryLoggerUsedDefaultName =
FilePath
== "msbuild.binlog";
678
FilePath = Path.GetFullPath(
FilePath
);
684
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
);