6 implementations of IFileSystem
Microsoft.Build (5)
CachingFileSystemWrapper.cs (1)
13
internal sealed class CachingFileSystemWrapper :
IFileSystem
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
19
internal class DirectoryCacheFileSystemWrapper :
IFileSystem
FileSystem\MSBuildFileSystemBase.cs (1)
20
public abstract class MSBuildFileSystemBase :
IFileSystem
ManagedFileSystem.cs (1)
15
internal class ManagedFileSystem :
IFileSystem
MSBuildOnWindowsFileSystem.cs (1)
18
internal sealed class MSBuildOnWindowsFileSystem :
IFileSystem
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2617
private sealed class FileSystemAdapter :
IFileSystem
53 references to IFileSystem
Microsoft.Build (52)
CachingFileSystemWrapper.cs (2)
15
private readonly
IFileSystem
_fileSystem;
19
public CachingFileSystemWrapper(
IFileSystem
fileSystem)
Evaluation\ConditionEvaluator.cs (5)
188
IFileSystem
fileSystem,
222
IFileSystem
fileSystem,
378
IFileSystem
FileSystem { get; }
404
public
IFileSystem
FileSystem { get; }
426
IFileSystem
fileSystem,
Evaluation\Context\EvaluationContext.cs (4)
55
internal
IFileSystem
FileSystem { get; }
63
private 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.
143
internal EvaluationContext ContextWithFileSystem(
IFileSystem
fileSystem)
Evaluation\Evaluator.cs (1)
240
IFileSystem
fileSystem = new DirectoryCacheFileSystemWrapper(evaluationContext.FileSystem, directoryCache);
Evaluation\Expander.cs (14)
308
private readonly
IFileSystem
_fileSystem;
328
internal Expander(IPropertyProvider<P> properties,
IFileSystem
fileSystem, LoggingContext loggingContext)
341
internal Expander(IPropertyProvider<P> properties,
IFileSystem
fileSystem)
361
internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items,
IFileSystem
fileSystem, LoggingContext loggingContext)
382
internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata,
IFileSystem
fileSystem, LoggingContext loggingContext)
397
internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata,
IFileSystem
fileSystem)
407
IFileSystem
fileSystem,
1155
IFileSystem
fileSystem)
1191
IFileSystem
fileSystem)
1354
IFileSystem
fileSystem)
3210
public
IFileSystem
FileSystem { get; set; }
3283
private readonly
IFileSystem
_fileSystem;
3299
IFileSystem
fileSystem,
3342
IFileSystem
fileSystem,
Evaluation\Expander\WellKnownFunctions.cs (2)
354
internal static bool TryExecuteIntrinsicFunction(string methodName, out object? returnVal,
IFileSystem
fileSystem, object[] args)
765
internal static bool TryExecuteWellKnownFunction(string methodName, Type receiverType,
IFileSystem
fileSystem, out object? returnVal, object objectInstance, object[] args)
Evaluation\IntrinsicFunctions.cs (2)
359
internal static string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName,
IFileSystem
fileSystem)
372
internal static string GetPathOfFileAbove(string file, string startingDirectory,
IFileSystem
fileSystem)
Evaluation\LazyItemEvaluator.cs (1)
48
protected
IFileSystem
FileSystem => EvaluationContext.FileSystem;
FileMatcher.cs (7)
26
private readonly
IFileSystem
_fileSystem;
86
public FileMatcher(
IFileSystem
fileSystem, ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) : this(
99
internal FileMatcher(
IFileSystem
fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null)
224
private static IReadOnlyList<string> GetAccessibleFileSystemEntries(
IFileSystem
fileSystem, FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory)
247
private static IReadOnlyList<string> GetAccessibleFilesAndDirectories(
IFileSystem
fileSystem, string path, string pattern)
313
IFileSystem
fileSystem,
379
IFileSystem
fileSystem,
FileSystem\DirectoryCacheFileSystemWrapper.cs (3)
22
/// The base <see cref="
IFileSystem
"/> to fall back to for functionality not provided by <see cref="_directoryCache"/>.
24
private readonly
IFileSystem
_fileSystem;
31
public DirectoryCacheFileSystemWrapper(
IFileSystem
fileSystem, IDirectoryCache directoryCache)
FileSystems.cs (3)
9
/// Factory for <see cref="
IFileSystem
"/>
13
public static
IFileSystem
Default = GetFileSystem();
15
private static
IFileSystem
GetFileSystem()
FileUtilities.cs (6)
135
private static readonly
IFileSystem
DefaultFileSystem = FileSystems.Default;
1025
internal static bool DirectoryExistsNoThrow(string fullPath,
IFileSystem
fileSystem = null)
1049
internal static bool FileExistsNoThrow(string fullPath,
IFileSystem
fileSystem = null)
1073
internal static bool FileOrDirectoryExistsNoThrow(string fullPath,
IFileSystem
fileSystem = null)
1471
internal static string GetDirectoryNameOfFileAbove(string startingDirectory, string fileName,
IFileSystem
fileSystem = null)
1512
internal static string GetPathOfFileAbove(string file, string startingDirectory,
IFileSystem
fileSystem = null)
Instance\TaskRegistry.cs (2)
257
IFileSystem
fileSystem)
291
IFileSystem
fileSystem)
Microsoft.Build.Engine.UnitTests (1)
Evaluation\ItemSpec_Tests.cs (1)
95
(
IFileSystem
)FileSystems.Default,