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