4 implementations of FileExists
Microsoft.Build (2)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
47
public bool
FileExists
(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
78
public virtual bool
FileExists
(string path) => FileSystems.Default.FileExists(path);
Microsoft.Build.Framework (2)
FileSystem\CachingFileSystemWrapper.cs (1)
43
public bool
FileExists
(string path)
FileSystem\ManagedFileSystem.cs (1)
140
public virtual bool
FileExists
(string path)
135 references to FileExists
Microsoft.Build (25)
BackEnd\BuildManager\BuildManager.cs (2)
3506
if (inputCacheFiles.Any(f => !FileSystems.Default.
FileExists
(f)))
3508
LogErrorAndShutdown(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("InputCacheFilesDoNotExist", string.Join(";", inputCacheFiles.Where(f => !FileSystems.Default.
FileExists
(f)))));
BackEnd\BuildManager\BuildParameters.cs (1)
1097
if (FileSystems.Default.
FileExists
(path))
BackEnd\Components\Communications\CurrentHost.cs (2)
34
if (FileSystems.Default.
FileExists
(dotnetExe))
54
host = FileSystems.Default.
FileExists
(dotnetExe)
BackEnd\Components\Communications\NodeLauncher.cs (1)
86
if (!FileSystems.Default.
FileExists
(msbuildLocation))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
856
return FileSystems.Default.
FileExists
(appHostPath)
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
69
return FileSystems.Default.
FileExists
(_pipeName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
336
if (FileSystems.Default.
FileExists
(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
BackEnd\Components\Scheduler\Scheduler.cs (1)
2748
shouldWriteHeader = !FileSystems.Default.
FileExists
(_debugDumpStateFilePath);
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
154
if (!FileSystems.Default.
FileExists
(planName))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1020
if (FileSystems.Default.
FileExists
(cacheFile))
BackEnd\Shared\TargetResult.cs (1)
319
if (!FileSystems.Default.
FileExists
(cacheFile))
Construction\ProjectRootElement.cs (2)
1661
ErrorUtilities.VerifyThrowInvalidOperation(FileSystems.Default.
FileExists
(path), "FileToReloadFromDoesNotExist", path);
1966
if (!FileSystems.Default.
FileExists
(path))
Construction\Solution\SolutionFile.cs (1)
635
if (!FileSystems.Default.
FileExists
(_solutionFile))
Definition\ToolsetConfigurationReader.cs (1)
274
FileSystems.Default.
FileExists
(BuildEnvironmentHelper.Instance.CurrentMSBuildConfigurationFile))
Evaluation\Evaluator.cs (2)
1918
if (FileSystems.Default.
FileExists
(dotnetExe))
2273
if (!FileSystems.Default.
FileExists
(importFileUnescaped))
Evaluation\IntrinsicFunctions.cs (1)
738
if (FileSystems.Default.
FileExists
(pathToAssembly))
FileSystem\MSBuildFileSystemBase.cs (1)
78
public virtual bool FileExists(string path) => FileSystems.Default.
FileExists
(path);
Logging\BinaryLogger\ProjectImportsCollector.cs (2)
222
if (checkFileExistence && !FileSystems.Default.
FileExists
(filePath))
268
if (FileSystems.Default.
FileExists
(_archiveFilePath))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
src\msbuild\src\Shared\TaskEngineAssemblyResolver.cs (1)
106
if (FileSystems.Default.
FileExists
(_taskAssemblyFile))
Microsoft.Build.Framework (20)
BuildEnvironmentHelper.cs (3)
214
if (FileSystems.Default.
FileExists
(msBuildExecutableCandidate))
338
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
623
var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.Default.
FileExists
;
FileSystem\CachingFileSystemWrapper.cs (1)
45
return CachedExistenceCheck(path, p => _fileSystem.
FileExists
(p));
FileUtilities.cs (4)
91
return !FileSystems.Default.
FileExists
(lowerCased);
1269
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1270
: fileSystem.
FileExists
(fullPath);
1691
if (fileSystem.
FileExists
(possibleFileDirectory))
FileUtilities_TempFiles.cs (1)
195
Assumed.False(FileSystems.Default.
FileExists
(file), "Guid should be unique");
Loader\CoreCLRAssemblyLoader.cs (1)
182
!FileSystems.Default.
FileExists
(candidatePath))
Loader\MSBuildLoadContext.cs (4)
46
_resolver = FileSystems.Default.
FileExists
(assemblyPath) && FileSystems.Default.
FileExists
(Path.ChangeExtension(assemblyPath, ".deps.json"))
85
if (!FileSystems.Default.
FileExists
(candidatePath))
107
if (FileSystems.Default.
FileExists
(assemblyNameInExecutableDirectory))
Utilities\FrameworkLocationHelper.cs (2)
1468
(!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, Constants.MSBuildExecutableName)) &&
1469
!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
Utilities\TaskFactoryUtilities.cs (4)
141
if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.
FileExists
(assemblyPath))
193
if (!FileSystems.Default.
FileExists
(manifestPath))
263
if (FileSystems.Default.
FileExists
(path))
271
if (FileSystems.Default.
FileExists
(path))
Microsoft.Build.Tasks.Core (69)
AddToWin32Manifest.cs (1)
104
if (!FileSystems.Default.
FileExists
(absolutePath))
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130
Assumed.True(FileSystems.Default.
FileExists
(_assemblyFolderConfigFile), $"The AssemblyFolders config file specified does not exist: {_assemblyFolderConfigFile}");
AssemblyDependency\AssemblyInformation.cs (1)
994
if (!FileSystems.Default.
FileExists
(path))
AssemblyDependency\GenerateBindingRedirects.cs (1)
113
var outputExists = FileSystems.Default.
FileExists
(outputAppConfigFile);
BootstrapperUtil\BootstrapperBuilder.cs (10)
365
if (!FileSystems.Default.
FileExists
(setupSourceFile))
539
if (FileSystems.Default.
FileExists
(resourceFilePath))
812
bool fileExists = FileSystems.Default.
FileExists
(filePath);
813
bool schemaExists = FileSystems.Default.
FileExists
(schemaPath);
940
if (FileSystems.Default.
FileExists
(strLangManifestFilename))
1455
if (!FileSystems.Default.
FileExists
(packageFileSource.Value))
1473
if (!FileSystems.Default.
FileExists
(packageFileSource.Value))
1526
if (FileSystems.Default.
FileExists
(eulaAttribute.Value))
2098
if (FileSystems.Default.
FileExists
(fileSource))
2167
if (FileSystems.Default.
FileExists
(fileSource))
Copy.cs (1)
1072
if (DestinationFolder != null && FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec)))
CreateManifestResourceName.cs (1)
197
if (FileSystems.Default.
FileExists
(dependentPath))
Delete.cs (1)
128
if (FileSystems.Default.
FileExists
(filePath))
DependencyFile.cs (1)
65
if (FileSystems.Default.
FileExists
(FileName))
Exec.cs (1)
533
if (!FileSystems.Default.
FileExists
(systemCmd))
FileIO\GetFileHash.cs (1)
93
if (!FileSystems.Default.
FileExists
(filePath))
FileIO\ReadLinesFromFile.cs (1)
46
if (FileSystems.Default.
FileExists
(filePath))
FileIO\VerifyFileHash.cs (1)
48
if (!FileSystems.Default.
FileExists
(filePath))
GenerateResource.cs (5)
1484
if (!FileSystems.Default.
FileExists
(Sources[i].ItemSpec))
1509
if (nothingOutOfDate && FileSystems.Default.
FileExists
(Sources[0].ItemSpec))
2601
if (assemblyFile.ItemSpec != null && FileSystems.Default.
FileExists
(assemblyFile.ItemSpec))
2812
if (FileSystems.Default.
FileExists
(outFileOrDir)
2834
if (FileSystems.Default.
FileExists
(currentOutputFile))
GetSDKReferenceFiles.cs (1)
1100
if (FileSystems.Default.
FileExists
(referencesCacheFile) && currentCodeLastWriteTime < referencesCacheFileLastWriteTimeUtc)
ManifestUtil\AssemblyIdentity.cs (6)
199
if (!FileSystems.Default.
FileExists
(path))
273
if (!FileSystems.Default.
FileExists
(path))
307
if (!FileSystems.Default.
FileExists
(path))
333
if (!FileSystems.Default.
FileExists
(path))
535
if (FileSystems.Default.
FileExists
(path) && IsEqual(this, FromFile(path), specificVersion))
542
if (FileSystems.Default.
FileExists
(path) && IsEqual(this, FromManifest(path), specificVersion))
ManifestUtil\DeployManifest.cs (2)
151
if (FileSystems.Default.
FileExists
(redistListFilePath))
590
if (FileSystems.Default.
FileExists
(manifestPath))
ManifestUtil\LauncherBuilder.cs (1)
100
if (!FileSystems.Default.
FileExists
(launcher.Value))
ManifestUtil\Manifest.cs (2)
319
if (FileSystems.Default.
FileExists
(path))
336
if (FileSystems.Default.
FileExists
(resolvedPath))
ManifestUtil\SecurityUtil.cs (6)
676
if (!FileSystems.Default.
FileExists
(path))
878
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
883
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
891
if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.
FileExists
(toolPath)))
895
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
899
if (!FileSystems.Default.
FileExists
(toolPath))
ManifestUtil\TrustInfo.cs (1)
659
if (FileSystems.Default.
FileExists
(path))
Move.cs (5)
226
if (!FileSystems.Default.
FileExists
(sourceFile))
233
if (OverwriteReadOnlyFiles && FileSystems.Default.
FileExists
(destinationFile))
275
if (FileSystems.Default.
FileExists
(destinationFile))
307
if (!FileSystems.Default.
FileExists
(existingFileName))
312
var targetExists = FileSystems.Default.
FileExists
(newFileName);
MSBuild.cs (1)
295
if (FileSystems.Default.
FileExists
(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
NativeMethods.cs (1)
509
if (FileSystems.Default.
FileExists
(path))
RedistList.cs (1)
1111
if (FileSystems.Default.
FileExists
(subsetFilePath))
ResGenDependencies.cs (1)
232
if (FileSystems.Default.
FileExists
(FileName))
ResolveCodeAnalysisRuleSet.cs (4)
87
if (FileSystems.Default.
FileExists
(fullName))
99
if (FileSystems.Default.
FileExists
(fullName))
112
if (FileSystems.Default.
FileExists
(fullName))
118
else if (FileSystems.Default.
FileExists
(CodeAnalysisRuleSet))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
594
if (FileSystems.Default.
FileExists
(reference))
612
.FirstOrDefault(p => FileSystems.Default.
FileExists
(Path.Combine(p, assemblyFileName)));
839
if (deleteSourceCodeFile && sourceCodePath is not null && FileSystems.Default.
FileExists
(sourceCodePath))
845
if (!_compileForOutOfProcess && !string.IsNullOrEmpty(_assemblyPath) && FileSystems.Default.
FileExists
(_assemblyPath))
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
47
return possibleLocations.Select(possibleLocation => possibleLocation()).FirstOrDefault(FileSystems.Default.
FileExists
);
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
StateFileBase.cs (3)
63
if (FileSystems.Default.
FileExists
(stateFile))
118
if (!string.IsNullOrEmpty(stateFile) && FileSystems.Default.
FileExists
(stateFile))
176
if (FileSystems.Default.
FileExists
(stateFile))
Unzip.cs (1)
125
if (!FileSystems.Default.
FileExists
(sourceFilePath))
Microsoft.Build.Utilities.Core (13)
PlatformManifest.cs (1)
97
if (FileSystems.Default.
FileExists
(platformManifestPath))
SDKManifest.cs (1)
315
if (FileSystems.Default.
FileExists
(sdkManifestPath))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
ToolLocationHelper.cs (6)
1503
if (!FileSystems.Default.
FileExists
(fullPath))
1766
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
1840
if (legacyMsCorlib20Path != null && FileSystems.Default.
FileExists
(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
1857
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
2632
bool platformSDKManifestExists = FileSystems.Default.
FileExists
(platformSDKManifest);
3119
if (!FileSystems.Default.
FileExists
(redistFilePath))
ToolTask.cs (4)
534
if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(pathToTool))))
555
bool isExistingFile = FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(pathToTool));
1440
.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(fullPath)));
1722
if (_temporaryBatchFile != null && FileSystems.Default.
FileExists
(_temporaryBatchFile))
MSBuild (8)
CommandLine\CommandLineParser.cs (3)
337
else if (!FileSystems.Default.
FileExists
(responseFile))
562
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(projectFile), "ProjectNotFoundError", projectFile);
663
if (FileSystems.Default.
FileExists
(autoResponseFile))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
src\msbuild\src\Shared\TaskEngineAssemblyResolver.cs (1)
106
if (FileSystems.Default.
FileExists
(_taskAssemblyFile))
XMake.cs (3)
506
if (!FileSystems.Default.
FileExists
(path))
3280
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(projectFile), "ProjectNotFoundError", projectFile);
4118
if (FileSystems.Default.
FileExists
(testFile))