6 implementations of IFileSystem
Microsoft.Build (2)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
17internal class DirectoryCacheFileSystemWrapper : IFileSystem
FileSystem\MSBuildFileSystemBase.cs (1)
18public abstract class MSBuildFileSystemBase : IFileSystem
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2643private sealed class FileSystemAdapter : IFileSystem
Microsoft.Build.Framework (3)
FileSystem\CachingFileSystemWrapper.cs (1)
12internal sealed class CachingFileSystemWrapper : IFileSystem
FileSystem\ManagedFileSystem.cs (1)
17internal class ManagedFileSystem : IFileSystem
FileSystem\MSBuildOnWindowsFileSystem.cs (1)
16internal sealed class MSBuildOnWindowsFileSystem : IFileSystem
67 references to IFileSystem
Microsoft.Build (41)
Evaluation\ConditionEvaluator.cs (5)
188IFileSystem fileSystem, 222IFileSystem fileSystem, 386IFileSystem FileSystem { get; } 412public IFileSystem FileSystem { get; } 434IFileSystem fileSystem,
Evaluation\Context\EvaluationContext.cs (4)
55internal IFileSystem FileSystem { get; } 63private EvaluationContext(SharingPolicy policy, IFileSystem fileSystem, ISdkResolverService sdkResolverService = null, 139/// Creates a copy of this <see cref="EvaluationContext"/> with a given <see cref="IFileSystem"/> swapped in. 143internal EvaluationContext ContextWithFileSystem(IFileSystem fileSystem)
Evaluation\Evaluator.cs (1)
240IFileSystem fileSystem = new DirectoryCacheFileSystemWrapper(evaluationContext.FileSystem, directoryCache);
Evaluation\Expander.cs (14)
310private readonly IFileSystem _fileSystem; 330internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 343internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem) 363internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 384internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 399internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem) 409IFileSystem fileSystem, 1237IFileSystem fileSystem) 1273IFileSystem fileSystem) 1431IFileSystem fileSystem) 3694public IFileSystem FileSystem { get; set; } 3767private readonly IFileSystem _fileSystem; 3783IFileSystem fileSystem, 3826IFileSystem fileSystem,
Evaluation\Expander\WellKnownFunctions.cs (2)
361internal static bool TryExecuteIntrinsicFunction(string methodName, out object? returnVal, IFileSystem fileSystem, object[] args) 788internal static bool TryExecuteWellKnownFunction(string methodName, Type receiverType, IFileSystem fileSystem, out object? returnVal, object objectInstance, object[] args)
Evaluation\IntrinsicFunctions.cs (2)
359internal static string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName, IFileSystem fileSystem) 372internal static string GetPathOfFileAbove(string file, string startingDirectory, IFileSystem fileSystem)
Evaluation\LazyItemEvaluator.cs (1)
48protected IFileSystem FileSystem => EvaluationContext.FileSystem;
FileMatcher.cs (7)
30private readonly IFileSystem _fileSystem; 92public FileMatcher(IFileSystem fileSystem, ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) : this( 105internal FileMatcher(IFileSystem fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null) 234private static IReadOnlyList<string> GetAccessibleFileSystemEntries(IFileSystem fileSystem, FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory) 257private static IReadOnlyList<string> GetAccessibleFilesAndDirectories(IFileSystem fileSystem, string path, string pattern) 323IFileSystem fileSystem, 389IFileSystem fileSystem,
FileSystem\DirectoryCacheFileSystemWrapper.cs (3)
20/// The base <see cref="IFileSystem"/> to fall back to for functionality not provided by <see cref="_directoryCache"/>. 22private readonly IFileSystem _fileSystem; 29public DirectoryCacheFileSystemWrapper(IFileSystem fileSystem, IDirectoryCache directoryCache)
Instance\TaskRegistry.cs (2)
248IFileSystem fileSystem) 282IFileSystem fileSystem)
Microsoft.Build.Engine.UnitTests (1)
Evaluation\ItemSpec_Tests.cs (1)
95(IFileSystem)FileSystems.Default,
Microsoft.Build.Framework (11)
FileSystem\CachingFileSystemWrapper.cs (2)
14private readonly IFileSystem _fileSystem; 18public CachingFileSystemWrapper(IFileSystem fileSystem)
FileSystem\FileSystems.cs (3)
9/// Factory for <see cref="IFileSystem"/> 13public static IFileSystem Default = GetFileSystem(); 15private static IFileSystem GetFileSystem()
FileUtilities.cs (6)
143private static readonly IFileSystem DefaultFileSystem = FileSystems.Default; 1182internal static bool DirectoryExistsNoThrow(string fullPath, IFileSystem? fileSystem = null) 1206internal static bool FileExistsNoThrow(string fullPath, IFileSystem? fileSystem = null) 1230internal static bool FileOrDirectoryExistsNoThrow(string fullPath, IFileSystem? fileSystem = null) 1622internal static string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName, IFileSystem? fileSystem = null) 1663internal static string GetPathOfFileAbove(string file, string startingDirectory, IFileSystem? fileSystem = null)
Microsoft.Build.Tasks.Core (7)
FileMatcher.cs (7)
30private readonly IFileSystem _fileSystem; 92public FileMatcher(IFileSystem fileSystem, ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) : this( 105internal FileMatcher(IFileSystem fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null) 234private static IReadOnlyList<string> GetAccessibleFileSystemEntries(IFileSystem fileSystem, FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory) 257private static IReadOnlyList<string> GetAccessibleFilesAndDirectories(IFileSystem fileSystem, string path, string pattern) 323IFileSystem fileSystem, 389IFileSystem fileSystem,
Microsoft.Build.Utilities.Core (7)
FileMatcher.cs (7)
30private readonly IFileSystem _fileSystem; 92public FileMatcher(IFileSystem fileSystem, ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) : this( 105internal FileMatcher(IFileSystem fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null) 234private static IReadOnlyList<string> GetAccessibleFileSystemEntries(IFileSystem fileSystem, FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory) 257private static IReadOnlyList<string> GetAccessibleFilesAndDirectories(IFileSystem fileSystem, string path, string pattern) 323IFileSystem fileSystem, 389IFileSystem fileSystem,