3 implementations of DirectoryExists
Microsoft.Build.Tasks.Core (3)
CachingFileSystemWrapper.cs (1)
39public bool DirectoryExists(string path)
ManagedFileSystem.cs (1)
137public virtual bool DirectoryExists(string path)
MSBuildOnWindowsFileSystem.cs (1)
71public bool DirectoryExists(string path)
34 references to DirectoryExists
Microsoft.Build.Tasks.Core (34)
AssemblyFolder.cs (1)
69if (FileSystems.Default.DirectoryExists(folder))
AxTlbBaseTask.cs (2)
128if ((String.IsNullOrEmpty(ToolPath) || !FileSystems.Default.DirectoryExists(ToolPath)) && 129(String.IsNullOrEmpty(SdkToolsPath) || !FileSystems.Default.DirectoryExists(SdkToolsPath)))
BootstrapperUtil\BootstrapperBuilder.cs (3)
531if (FileSystems.Default.DirectoryExists(startDirectory)) 601if (FileSystems.Default.DirectoryExists(packagePath)) 1582if (!FileSystems.Default.DirectoryExists(strFolderPath))
BuildEnvironmentHelper.cs (2)
273vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.DirectoryExists(vsInstallDir)) 298.Where(i => i.Version.Major == v.Major && FileSystems.Default.DirectoryExists(i.Path))
CachingFileSystemWrapper.cs (1)
41return CachedExistenceCheck(path, p => _fileSystem.DirectoryExists(p));
Copy.cs (1)
287if (!FileSystems.Default.DirectoryExists(destinationFolder))
Exec.cs (1)
531if (!FileSystems.Default.DirectoryExists(_workingDirectory))
FileMatcher.cs (2)
249if (fileSystem.DirectoryExists(path)) 2088if (fixedDirectoryPart.Length > 0 && !_fileSystem.DirectoryExists(fixedDirectoryPart))
FileUtilities.cs (6)
220if (DefaultFileSystem.DirectoryExists(cacheDirectory)) 704return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 927if (DefaultFileSystem.DirectoryExists(path)) 1034? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.DirectoryExists(fullPath)) 1035: fileSystem.DirectoryExists(fullPath); 1528if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.DirectoryExists(directoryPath))
GenerateResource.cs (2)
2677if (!FileSystems.Default.DirectoryExists(currentOutputDirectory)) 2851if (!FileSystems.Default.DirectoryExists(shorterPath))
ManifestUtil\LauncherBuilder.cs (1)
106if (!FileSystems.Default.DirectoryExists(strFolderPath))
ManifestUtil\SecurityUtil.cs (1)
180if (FileSystems.Default.DirectoryExists(path))
ManifestUtil\Util.cs (1)
269if (!FileSystems.Default.DirectoryExists(logPath))
Move.cs (3)
206if (FileSystems.Default.DirectoryExists(destinationFile)) 212if (FileSystems.Default.DirectoryExists(sourceFile)) 236if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.DirectoryExists(destinationFolder))
NativeMethods.cs (2)
1330if (FileSystems.Default.DirectoryExists(s_gacPath)) 1462if (FileSystems.Default.DirectoryExists(path))
RedistList.cs (1)
307if (FileSystems.Default.DirectoryExists(redistDirectory))
RemoveDir.cs (1)
64if (FileSystems.Default.DirectoryExists(directory.ItemSpec))
ResGen.cs (2)
442if ((String.IsNullOrEmpty(ToolPath) || !FileSystems.Default.DirectoryExists(ToolPath)) && 443(String.IsNullOrEmpty(SdkToolsPath) || !FileSystems.Default.DirectoryExists(SdkToolsPath)))
TempFileUtilities.cs (1)
234if (FileSystems.Default.DirectoryExists(Path))