4 implementations of DirectoryExists
Microsoft.Build (2)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
42public bool DirectoryExists(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
73public virtual bool DirectoryExists(string path) => FileSystems.Default.DirectoryExists(path);
Microsoft.Build.Framework (2)
FileSystem\CachingFileSystemWrapper.cs (1)
38public bool DirectoryExists(string path)
FileSystem\ManagedFileSystem.cs (1)
135public virtual bool DirectoryExists(string path)
55 references to DirectoryExists
Microsoft.Build (8)
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
43if (FileSystems.Default.DirectoryExists(dotnetHostPath))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
545if (!FileSystems.Default.DirectoryExists(path))
BackEnd\Shared\BuildResult.cs (1)
746if (FileSystems.Default.DirectoryExists(resultsDirectory))
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
98if (locationFromEnv != null && FileSystems.Default.DirectoryExists(locationFromEnv))
Definition\Toolset.cs (1)
900overrideDirectoryExists = FileSystems.Default.DirectoryExists(_overrideTasksPath);
Definition\ToolsetReader.cs (1)
190if (FileSystems.Default.DirectoryExists(xbuildToolsetsDir))
FileSystem\MSBuildFileSystemBase.cs (1)
73public virtual bool DirectoryExists(string path) => FileSystems.Default.DirectoryExists(path);
Utilities\EngineFileUtilities.cs (1)
608return existenceCache.Value.GetOrAdd(directory, directory => FileSystems.Default.DirectoryExists(directory));
Microsoft.Build.Framework (17)
BuildEnvironmentHelper.cs (2)
270vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.DirectoryExists(vsInstallDir)) 295.Where(i => i.Version.Major == v.Major && FileSystems.Default.DirectoryExists(i.Path))
FileSystem\CachingFileSystemWrapper.cs (1)
40return CachedExistenceCheck(path, p => _fileSystem.DirectoryExists(p));
FileUtilities.cs (6)
165if (DefaultFileSystem.DirectoryExists(cacheDirectory)) 894return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 1138if (DefaultFileSystem.DirectoryExists(path)) 1245? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.DirectoryExists(fullPath)) 1246: fileSystem.DirectoryExists(fullPath); 1733if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.DirectoryExists(directoryPath))
FileUtilities_TempFiles.cs (1)
237if (FileSystems.Default.DirectoryExists(Path))
Utilities\FileMatcher.cs (2)
257if (fileSystem.DirectoryExists(path)) 2118if (fixedDirectoryPart.Length > 0 && !_fileSystem.DirectoryExists(fixedDirectoryPart))
Utilities\FrameworkLocationHelper.cs (5)
980if (FileSystems.Default.DirectoryExists(combinedPath)) 1148if (FileSystems.Default.DirectoryExists(programFilesReferenceAssemblyDirectory)) 1458FileSystems.Default.DirectoryExists, 1504if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.DirectoryExists(frameworkPath)) 1606if (FileSystems.Default.DirectoryExists(referencePath))
Microsoft.Build.Tasks.Core (16)
BootstrapperUtil\BootstrapperBuilder.cs (3)
533if (FileSystems.Default.DirectoryExists(startDirectory)) 603if (FileSystems.Default.DirectoryExists(packagePath)) 1584if (!FileSystems.Default.DirectoryExists(strFolderPath))
Copy.cs (1)
292if (!FileSystems.Default.DirectoryExists(destinationFolder))
Exec.cs (1)
560if (!FileSystems.Default.DirectoryExists(_workingDirectory))
GenerateResource.cs (2)
2752if (!FileSystems.Default.DirectoryExists(currentOutputDirectory)) 2922if (!FileSystems.Default.DirectoryExists(shorterPath))
ManifestUtil\LauncherBuilder.cs (1)
123if (!FileSystems.Default.DirectoryExists(strFolderPath))
ManifestUtil\Util.cs (1)
268if (!FileSystems.Default.DirectoryExists(logPath))
Move.cs (3)
210if (FileSystems.Default.DirectoryExists(destinationFile)) 216if (FileSystems.Default.DirectoryExists(sourceFile)) 240if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.DirectoryExists(destinationFolder))
NativeMethods.cs (2)
317if (FileSystems.Default.DirectoryExists(s_gacPath)) 492if (FileSystems.Default.DirectoryExists(path))
RedistList.cs (1)
308if (FileSystems.Default.DirectoryExists(redistDirectory))
RemoveDir.cs (1)
69if (FileSystems.Default.DirectoryExists(directoryPath))
Microsoft.Build.Utilities.Core (12)
ToolLocationHelper.cs (10)
852if (FileSystems.Default.DirectoryExists(propsFileLocation)) 1041if (!FileSystems.Default.DirectoryExists(winmdLocation)) 1139if (FileSystems.Default.DirectoryExists(contractPath)) 2336if (FileSystems.Default.DirectoryExists(path)) 2904if (FileSystems.Default.DirectoryExists(localAppdataFolder)) 3204if (!FileSystems.Default.DirectoryExists(pathToReturn)) 3210else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.DirectoryExists(redirectPath)) 3794if (FileSystems.Default.DirectoryExists(dotNetFx20Path)) 3946if (FileSystems.Default.DirectoryExists(dotNextFx30RefPath)) 3953if (FileSystems.Default.DirectoryExists(dotNextFx35RefPath))
ToolTask.cs (1)
1432return FileSystems.Default.DirectoryExists(TaskEnvironment.GetAbsolutePath(path));
TrackedDependencies\TrackedDependencies.cs (1)
45if (!FileMatcher.HasWildcards(directoryName) && FileSystems.Default.DirectoryExists(directoryName))
MSBuild (2)
CommandLine\CommandLineParser.cs (1)
555if (FileSystems.Default.DirectoryExists(projectFile))
XMake.cs (1)
3271if (FileSystems.Default.DirectoryExists(projectFile))