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