6 implementations of IFileSystem
Microsoft.Build (5)
CachingFileSystemWrapper.cs (1)
13internal sealed class CachingFileSystemWrapper : IFileSystem
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
19internal class DirectoryCacheFileSystemWrapper : IFileSystem
FileSystem\MSBuildFileSystemBase.cs (1)
20public abstract class MSBuildFileSystemBase : IFileSystem
ManagedFileSystem.cs (1)
15internal class ManagedFileSystem : IFileSystem
MSBuildOnWindowsFileSystem.cs (1)
18internal sealed class MSBuildOnWindowsFileSystem : IFileSystem
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2618private sealed class FileSystemAdapter : IFileSystem
51 references to IFileSystem
Microsoft.Build (50)
CachingFileSystemWrapper.cs (2)
15private readonly IFileSystem _fileSystem; 19public CachingFileSystemWrapper(IFileSystem fileSystem)
Evaluation\ConditionEvaluator.cs (5)
189IFileSystem fileSystem, 223IFileSystem fileSystem, 379IFileSystem FileSystem { get; } 405public IFileSystem FileSystem { get; } 427IFileSystem 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)
235IFileSystem fileSystem = new DirectoryCacheFileSystemWrapper(evaluationContext.FileSystem, directoryCache);
Evaluation\Expander.cs (14)
312private readonly IFileSystem _fileSystem; 332internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 345internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem) 365internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 386internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 401internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem) 411IFileSystem fileSystem, 1154IFileSystem fileSystem) 1190IFileSystem fileSystem) 1348IFileSystem fileSystem) 3191public IFileSystem FileSystem { get; set; } 3264private readonly IFileSystem _fileSystem; 3280IFileSystem fileSystem, 3323IFileSystem fileSystem,
Evaluation\IntrinsicFunctions.cs (2)
348internal static string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName, IFileSystem fileSystem) 361internal static string GetPathOfFileAbove(string file, string startingDirectory, IFileSystem fileSystem)
Evaluation\LazyItemEvaluator.cs (1)
48protected IFileSystem FileSystem => EvaluationContext.FileSystem;
FileMatcher.cs (7)
26private readonly IFileSystem _fileSystem; 87public FileMatcher(IFileSystem fileSystem, ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) : this( 100internal FileMatcher(IFileSystem fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null) 222private static IReadOnlyList<string> GetAccessibleFileSystemEntries(IFileSystem fileSystem, FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory) 245private static IReadOnlyList<string> GetAccessibleFilesAndDirectories(IFileSystem fileSystem, string path, string pattern) 311IFileSystem fileSystem, 377IFileSystem fileSystem,
FileSystem\DirectoryCacheFileSystemWrapper.cs (3)
22/// The base <see cref="IFileSystem"/> to fall back to for functionality not provided by <see cref="_directoryCache"/>. 24private readonly IFileSystem _fileSystem; 31public DirectoryCacheFileSystemWrapper(IFileSystem fileSystem, IDirectoryCache directoryCache)
FileSystems.cs (3)
9/// Factory for <see cref="IFileSystem"/> 13public static IFileSystem Default = GetFileSystem(); 15private static IFileSystem GetFileSystem()
FileUtilities.cs (6)
122private static readonly IFileSystem DefaultFileSystem = FileSystems.Default; 992internal static bool DirectoryExistsNoThrow(string fullPath, IFileSystem fileSystem = null) 1016internal static bool FileExistsNoThrow(string fullPath, IFileSystem fileSystem = null) 1040internal static bool FileOrDirectoryExistsNoThrow(string fullPath, IFileSystem fileSystem = null) 1438internal static string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName, IFileSystem fileSystem = null) 1479internal static string GetPathOfFileAbove(string file, string startingDirectory, IFileSystem fileSystem = null)
Instance\TaskRegistry.cs (2)
258IFileSystem fileSystem) 292IFileSystem fileSystem)
Microsoft.Build.Engine.UnitTests (1)
Evaluation\ItemSpec_Tests.cs (1)
95(IFileSystem)FileSystems.Default,