6 implementations of FileExists
Microsoft.Build (5)
CachingFileSystemWrapper.cs (1)
44public bool FileExists(string path)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
49public bool FileExists(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
80public virtual bool FileExists(string path) => FileSystems.Default.FileExists(path);
ManagedFileSystem.cs (1)
142public virtual bool FileExists(string path)
MSBuildOnWindowsFileSystem.cs (1)
76public bool FileExists(string path)
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2659public bool FileExists(string path)
37 references to FileExists
Microsoft.Build (28)
BackEnd\BuildManager\BuildParameters.cs (1)
1041if (FileSystems.Default.FileExists(path))
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
65if (!FileSystems.Default.FileExists(msbuildLocation))
BackEnd\Components\Communications\NodeLauncher.cs (1)
53if (!FileSystems.Default.FileExists(msbuildLocation))
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
343if (FileSystems.Default.FileExists(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
154if (!FileSystems.Default.FileExists(planName))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
993if (FileSystems.Default.FileExists(cacheFile))
BackEnd\Shared\TargetResult.cs (1)
252if (!FileSystems.Default.FileExists(cacheFile))
BuildEnvironmentHelper.cs (3)
214if (FileSystems.Default.FileExists(msBuildExe)) 218else if (FileSystems.Default.FileExists(msBuildDll)) 342if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46return CachedExistenceCheck(path, p => _fileSystem.FileExists(p));
Construction\ProjectRootElement.cs (2)
1637ErrorUtilities.VerifyThrowInvalidOperation(FileSystems.Default.FileExists(path), "FileToReloadFromDoesNotExist", path); 1937if (!FileSystems.Default.FileExists(path))
Construction\Solution\SolutionFile.cs (1)
615if (!FileSystems.Default.FileExists(_solutionFile))
Definition\ToolsetConfigurationReader.cs (1)
275FileSystems.Default.FileExists(BuildEnvironmentHelper.Instance.CurrentMSBuildConfigurationFile))
Evaluation\Evaluator.cs (1)
2209if (!FileSystems.Default.FileExists(importFileUnescaped))
FileSystem\MSBuildFileSystemBase.cs (1)
80public virtual bool FileExists(string path) => FileSystems.Default.FileExists(path);
FileUtilities.cs (3)
1025? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.FileExists(fullPath)) 1026: fileSystem.FileExists(fullPath); 1453if (fileSystem.FileExists(possibleFileDirectory))
FrameworkLocationHelper.cs (2)
1395(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) && 1396!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
InprocTrackingNativeMethods.cs (1)
210if (!FileSystems.Default.FileExists(fileTrackerPath))
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
271if (FileSystems.Default.FileExists(_archiveFilePath))
Modifiers.cs (2)
528if (FileSystems.Default.FileExists(unescapedItemSpec)) 544if (FileSystems.Default.FileExists(unescapedItemSpec))
TaskEngineAssemblyResolver.cs (1)
106if (FileSystems.Default.FileExists(_taskAssemblyFile))
TempFileUtilities.cs (1)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
Microsoft.Build.Engine.UnitTests (2)
FileMatcher_Tests.cs (1)
2661return FileSystems.Default.FileExists(path);
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
Microsoft.Build.UnitTests.Shared (5)
ObjectModelHelpers.cs (4)
580Assert.True(FileSystems.Default.FileExists(Path.Combine(TempProjectDir, fileRelativePath)), message); 1050if (FileSystems.Default.FileExists(files[i])) 1674Assert.True(FileSystems.Default.FileExists(fullPath)); 1859if (FileSystems.Default.FileExists(path))
TestEnvironment.cs (1)
711Assert.True(FileSystems.Default.FileExists(Path), $"A file expected as an output does not exist: {Path}");