6 implementations of DirectoryExists
Microsoft.Build (2)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
42
public bool
DirectoryExists
(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
73
public virtual bool
DirectoryExists
(string path) => FileSystems.Default.DirectoryExists(path);
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2679
public bool
DirectoryExists
(string path)
Microsoft.Build.Framework (3)
FileSystem\CachingFileSystemWrapper.cs (1)
38
public bool
DirectoryExists
(string path)
FileSystem\ManagedFileSystem.cs (1)
135
public virtual bool
DirectoryExists
(string path)
FileSystem\MSBuildOnWindowsFileSystem.cs (1)
69
public bool
DirectoryExists
(string path)
83 references to DirectoryExists
Microsoft.Build (18)
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
43
if (FileSystems.Default.
DirectoryExists
(dotnetHostPath))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
509
if (!FileSystems.Default.
DirectoryExists
(path))
BackEnd\Shared\BuildResult.cs (1)
727
if (FileSystems.Default.
DirectoryExists
(resultsDirectory))
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
84
if (locationFromEnv != null && FileSystems.Default.
DirectoryExists
(locationFromEnv))
BuildEnvironmentHelper.cs (2)
279
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
304
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
Definition\Toolset.cs (1)
900
overrideDirectoryExists = FileSystems.Default.
DirectoryExists
(_overrideTasksPath);
Definition\ToolsetReader.cs (1)
191
if (FileSystems.Default.
DirectoryExists
(xbuildToolsetsDir))
FileMatcher.cs (2)
259
if (fileSystem.
DirectoryExists
(path))
2115
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
FileSystem\MSBuildFileSystemBase.cs (1)
73
public virtual bool DirectoryExists(string path) => FileSystems.Default.
DirectoryExists
(path);
FrameworkLocationHelper.cs (5)
960
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1130
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1427
FileSystems.Default.
DirectoryExists
,
1473
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1575
if (FileSystems.Default.
DirectoryExists
(referencePath))
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
67
if (!FileSystems.Default.
DirectoryExists
(cacheDirectory))
Utilities\EngineFileUtilities.cs (1)
603
return existenceCache.Value.GetOrAdd(directory, directory => FileSystems.Default.
DirectoryExists
(directory));
Microsoft.Build.Engine.OM.UnitTests (2)
BuildEnvironmentHelper.cs (2)
279
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
304
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
Microsoft.Build.Framework (8)
FileSystem\CachingFileSystemWrapper.cs (1)
40
return CachedExistenceCheck(path, p => _fileSystem.
DirectoryExists
(p));
FileUtilities.cs (6)
165
if (DefaultFileSystem.
DirectoryExists
(cacheDirectory))
840
return (shouldCheckDirectory && DefaultFileSystem.
DirectoryExists
(Path.Combine(baseDirectory, directory.ToString())))
1084
if (DefaultFileSystem.
DirectoryExists
(path))
1191
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
DirectoryExists
(fullPath))
1192
: fileSystem.
DirectoryExists
(fullPath);
1679
if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.
DirectoryExists
(directoryPath))
FileUtilities_TempFiles.cs (1)
228
if (FileSystems.Default.
DirectoryExists
(Path))
Microsoft.Build.Tasks.Core (20)
BootstrapperUtil\BootstrapperBuilder.cs (3)
531
if (FileSystems.Default.
DirectoryExists
(startDirectory))
601
if (FileSystems.Default.
DirectoryExists
(packagePath))
1582
if (!FileSystems.Default.
DirectoryExists
(strFolderPath))
BuildEnvironmentHelper.cs (2)
279
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
304
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
Copy.cs (1)
292
if (!FileSystems.Default.
DirectoryExists
(destinationFolder))
Exec.cs (1)
534
if (!FileSystems.Default.
DirectoryExists
(_workingDirectory))
FileMatcher.cs (2)
259
if (fileSystem.
DirectoryExists
(path))
2115
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
GenerateResource.cs (2)
2675
if (!FileSystems.Default.
DirectoryExists
(currentOutputDirectory))
2849
if (!FileSystems.Default.
DirectoryExists
(shorterPath))
ManifestUtil\LauncherBuilder.cs (1)
106
if (!FileSystems.Default.
DirectoryExists
(strFolderPath))
ManifestUtil\Util.cs (1)
268
if (!FileSystems.Default.
DirectoryExists
(logPath))
Move.cs (3)
215
if (FileSystems.Default.
DirectoryExists
(destinationFile))
221
if (FileSystems.Default.
DirectoryExists
(sourceFile))
245
if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.
DirectoryExists
(destinationFolder))
NativeMethods.cs (2)
1330
if (FileSystems.Default.
DirectoryExists
(s_gacPath))
1462
if (FileSystems.Default.
DirectoryExists
(path))
RedistList.cs (1)
308
if (FileSystems.Default.
DirectoryExists
(redistDirectory))
RemoveDir.cs (1)
70
if (FileSystems.Default.
DirectoryExists
(directoryPath))
Microsoft.Build.UnitTests.Shared (5)
ObjectModelHelpers.cs (4)
874
if (FileSystems.Default.
DirectoryExists
(dir))
1668
Assert.True(FileSystems.Default.
DirectoryExists
(rootDirectory), $"Directory {rootDirectory} does not exist");
1685
Assert.True(FileSystems.Default.
DirectoryExists
(directoryName));
1879
if (FileSystems.Default.
DirectoryExists
(directory) && (Directory.GetFileSystemEntries(directory).Length == 0))
TestEnvironment.cs (1)
309
Assert.True(!(createFolder ^ FileSystems.Default.
DirectoryExists
(folder.Path)));
Microsoft.Build.Utilities.Core (21)
BuildEnvironmentHelper.cs (2)
279
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
304
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
FileMatcher.cs (2)
259
if (fileSystem.
DirectoryExists
(path))
2115
if (fixedDirectoryPart.Length > 0 && !_fileSystem.
DirectoryExists
(fixedDirectoryPart))
FrameworkLocationHelper.cs (5)
960
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1130
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1427
FileSystems.Default.
DirectoryExists
,
1473
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1575
if (FileSystems.Default.
DirectoryExists
(referencePath))
ToolLocationHelper.cs (10)
852
if (FileSystems.Default.
DirectoryExists
(propsFileLocation))
1041
if (!FileSystems.Default.
DirectoryExists
(winmdLocation))
1139
if (FileSystems.Default.
DirectoryExists
(contractPath))
2336
if (FileSystems.Default.
DirectoryExists
(path))
2904
if (FileSystems.Default.
DirectoryExists
(localAppdataFolder))
3204
if (!FileSystems.Default.
DirectoryExists
(pathToReturn))
3210
else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.
DirectoryExists
(redirectPath))
3815
if (FileSystems.Default.
DirectoryExists
(dotNetFx20Path))
3967
if (FileSystems.Default.
DirectoryExists
(dotNextFx30RefPath))
3974
if (FileSystems.Default.
DirectoryExists
(dotNextFx35RefPath))
ToolTask.cs (1)
1341
return FileSystems.Default.
DirectoryExists
(path);
TrackedDependencies\TrackedDependencies.cs (1)
45
if (!FileMatcher.HasWildcards(directoryName) && FileSystems.Default.
DirectoryExists
(directoryName))
MSBuild (9)
BuildEnvironmentHelper.cs (2)
279
vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.
DirectoryExists
(vsInstallDir))
304
.Where(i => i.Version.Major == v.Major && FileSystems.Default.
DirectoryExists
(i.Path))
CommandLine\CommandLineParser.cs (1)
555
if (FileSystems.Default.
DirectoryExists
(projectFile))
FrameworkLocationHelper.cs (5)
960
if (FileSystems.Default.
DirectoryExists
(combinedPath))
1130
if (FileSystems.Default.
DirectoryExists
(programFilesReferenceAssemblyDirectory))
1427
FileSystems.Default.
DirectoryExists
,
1473
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.
DirectoryExists
(frameworkPath))
1575
if (FileSystems.Default.
DirectoryExists
(referencePath))
XMake.cs (1)
3108
if (FileSystems.Default.
DirectoryExists
(projectFile))