3 implementations of DirectoryExists
Microsoft.Build.Utilities.Core (3)
CachingFileSystemWrapper.cs (1)
39
public bool
DirectoryExists
(string path)
ManagedFileSystem.cs (1)
137
public virtual bool
DirectoryExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
71
public bool
DirectoryExists
(string path)
28 references to DirectoryExists
Microsoft.Build.Utilities.Core (28)
BuildEnvironmentHelper.cs (2)
274
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
299
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
CachingFileSystemWrapper.cs (1)
41
return CachedExistenceCheck(path, p => _fileSystem.
DirectoryExists
(p));
FileMatcher.cs (2)
247
if (fileSystem.
DirectoryExists
(path))
2103
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
FileUtilities.cs (6)
207
if (DefaultFileSystem.
DirectoryExists
(cacheDirectory))
683
return (shouldCheckDirectory && DefaultFileSystem.
DirectoryExists
(Path.Combine(baseDirectory, directory.ToString())))
894
if (DefaultFileSystem.
DirectoryExists
(path))
1001
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
DirectoryExists
(fullPath))
1002
: fileSystem.
DirectoryExists
(fullPath);
1495
if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.
DirectoryExists
(directoryPath))
FrameworkLocationHelper.cs (4)
922
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1092
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1431
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1533
if (FileSystems.Default.
DirectoryExists
(referencePath))
TempFileUtilities.cs (1)
234
if (FileSystems.Default.
DirectoryExists
(Path))
ToolLocationHelper.cs (10)
847
if (FileSystems.Default.
DirectoryExists
(propsFileLocation))
1036
if (!FileSystems.Default.
DirectoryExists
(winmdLocation))
1134
if (FileSystems.Default.
DirectoryExists
(contractPath))
2330
if (FileSystems.Default.
DirectoryExists
(path))
2898
if (FileSystems.Default.
DirectoryExists
(localAppdataFolder))
3198
if (!FileSystems.Default.
DirectoryExists
(pathToReturn))
3204
else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.
DirectoryExists
(redirectPath))
3804
if (FileSystems.Default.
DirectoryExists
(dotNetFx20Path))
3951
if (FileSystems.Default.
DirectoryExists
(dotNextFx30RefPath))
3958
if (FileSystems.Default.
DirectoryExists
(dotNextFx35RefPath))
ToolTask.cs (1)
1326
return FileSystems.Default.
DirectoryExists
(path);
TrackedDependencies\TrackedDependencies.cs (1)
45
if (!FileMatcher.HasWildcards(directoryName) && FileSystems.Default.
DirectoryExists
(directoryName))