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