4 implementations of DirectoryExists
Microsoft.Build (2)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
43
public bool
DirectoryExists
(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
73
public virtual bool
DirectoryExists
(string path) => FileSystems.Default.DirectoryExists(path);
Microsoft.Build.Framework (2)
FileSystem\CachingFileSystemWrapper.cs (1)
50
public bool
DirectoryExists
(string path)
FileSystem\ManagedFileSystem.cs (1)
138
public virtual bool
DirectoryExists
(string path)
55 references to DirectoryExists
Microsoft.Build (8)
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
44
if (FileSystems.Default.
DirectoryExists
(dotnetHostPath))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
819
if (!FileSystems.Default.
DirectoryExists
(path))
BackEnd\Shared\BuildResult.cs (1)
794
if (FileSystems.Default.
DirectoryExists
(resultsDirectory))
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
98
if (locationFromEnv != null && FileSystems.Default.
DirectoryExists
(locationFromEnv))
Definition\Toolset.cs (1)
903
overrideDirectoryExists = FileSystems.Default.
DirectoryExists
(_overrideTasksPath);
Definition\ToolsetReader.cs (1)
206
if (FileSystems.Default.
DirectoryExists
(xbuildToolsetsDir))
FileSystem\MSBuildFileSystemBase.cs (1)
73
public virtual bool DirectoryExists(string path) => FileSystems.Default.
DirectoryExists
(path);
Utilities\EngineFileUtilities.cs (1)
609
return existenceCache.Value.GetOrAdd(directory, directory => FileSystems.Default.
DirectoryExists
(directory));
Microsoft.Build.Framework (27)
BuildEnvironmentHelper.cs (2)
307
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
332
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
FileSystem\CachingFileSystemWrapper.cs (1)
52
return _directoryExistenceCache.GetOrAdd(path, p => _fileSystem.
DirectoryExists
(p));
FileUtilities_TempFiles.cs (1)
238
if (FileSystems.Default.
DirectoryExists
(Path))
FileUtilities.cs (6)
139
if (DefaultFileSystem.
DirectoryExists
(cacheDirectory))
844
return (shouldCheckDirectory && DefaultFileSystem.
DirectoryExists
(Path.Combine(baseDirectory, directory.ToString())))
1112
if (DefaultFileSystem.
DirectoryExists
(path))
1219
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
DirectoryExists
(fullPath))
1220
: fileSystem.
DirectoryExists
(fullPath);
1708
if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.
DirectoryExists
(directoryPath))
Utilities\FileMatcher.cs (2)
344
if (fileSystem.
DirectoryExists
(path))
1870
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
Utilities\FrameworkLocationHelper.cs (5)
960
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1128
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1438
FileSystems.Default.
DirectoryExists
,
1484
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1586
if (FileSystems.Default.
DirectoryExists
(referencePath))
Utilities\ToolLocationHelper_InstalledFrameworks.cs (3)
174
if (FileSystems.Default.
DirectoryExists
(dotNetFx20Path))
326
if (FileSystems.Default.
DirectoryExists
(dotNextFx30RefPath))
333
if (FileSystems.Default.
DirectoryExists
(dotNextFx35RefPath))
Utilities\ToolLocationHelper_PlatformSDKs.cs (3)
115
if (FileSystems.Default.
DirectoryExists
(propsFileLocation))
192
if (!FileSystems.Default.
DirectoryExists
(winmdLocation))
291
if (FileSystems.Default.
DirectoryExists
(contractPath))
Utilities\ToolLocationHelper_ReferenceAssemblies.cs (3)
544
if (FileSystems.Default.
DirectoryExists
(path))
697
if (!FileSystems.Default.
DirectoryExists
(pathToReturn))
703
else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.
DirectoryExists
(redirectPath))
Utilities\ToolLocationHelper_SDKDiscovery.cs (1)
518
if (FileSystems.Default.
DirectoryExists
(localAppdataFolder))
Microsoft.Build.Tasks.Core (16)
BootstrapperUtil\BootstrapperBuilder.cs (3)
533
if (FileSystems.Default.
DirectoryExists
(startDirectory))
603
if (FileSystems.Default.
DirectoryExists
(packagePath))
1584
if (!FileSystems.Default.
DirectoryExists
(strFolderPath))
Copy.cs (1)
290
if (!FileSystems.Default.
DirectoryExists
(destinationFolder))
Exec.cs (1)
558
if (!FileSystems.Default.
DirectoryExists
(_workingDirectory))
GenerateResource.cs (2)
2756
if (!FileSystems.Default.
DirectoryExists
(currentOutputDirectory))
2926
if (!FileSystems.Default.
DirectoryExists
(shorterPath))
ManifestUtil\LauncherBuilder.cs (1)
123
if (!FileSystems.Default.
DirectoryExists
(strFolderPath))
ManifestUtil\Util.cs (1)
268
if (!FileSystems.Default.
DirectoryExists
(logPath))
Move.cs (3)
210
if (FileSystems.Default.
DirectoryExists
(destinationFile))
216
if (FileSystems.Default.
DirectoryExists
(sourceFile))
240
if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.
DirectoryExists
(destinationFolder))
NativeMethods.cs (2)
317
if (FileSystems.Default.
DirectoryExists
(s_gacPath))
492
if (FileSystems.Default.
DirectoryExists
(path))
RedistList.cs (1)
308
if (FileSystems.Default.
DirectoryExists
(redistDirectory))
RemoveDir.cs (1)
69
if (FileSystems.Default.
DirectoryExists
(directoryPath))
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (1)
1428
return FileSystems.Default.
DirectoryExists
(TaskEnvironment.GetAbsolutePath(path));
TrackedDependencies\TrackedDependencies.cs (1)
45
if (!FileMatcher.HasWildcards(directoryName) && FileSystems.Default.
DirectoryExists
(directoryName))
MSBuild (2)
CommandLine\CommandLineParser.cs (1)
564
if (FileSystems.Default.
DirectoryExists
(projectFile))
XMake.cs (1)
3643
if (FileSystems.Default.
DirectoryExists
(projectFile))