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