6 implementations of FileExists
Microsoft.Build (5)
CachingFileSystemWrapper.cs (1)
44
public bool
FileExists
(string path)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
49
public bool
FileExists
(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
80
public virtual bool
FileExists
(string path) => FileSystems.Default.FileExists(path);
ManagedFileSystem.cs (1)
142
public virtual bool
FileExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
76
public bool
FileExists
(string path)
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2659
public bool
FileExists
(string path)
36 references to FileExists
Microsoft.Build (27)
BackEnd\BuildManager\BuildParameters.cs (1)
1067
if (FileSystems.Default.
FileExists
(path))
BackEnd\Components\Communications\NodeLauncher.cs (1)
53
if (!FileSystems.Default.
FileExists
(msbuildLocation))
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
343
if (FileSystems.Default.
FileExists
(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
154
if (!FileSystems.Default.
FileExists
(planName))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
997
if (FileSystems.Default.
FileExists
(cacheFile))
BackEnd\Shared\TargetResult.cs (1)
275
if (!FileSystems.Default.
FileExists
(cacheFile))
BuildEnvironmentHelper.cs (3)
214
if (FileSystems.Default.
FileExists
(msBuildExe))
218
else if (FileSystems.Default.
FileExists
(msBuildDll))
342
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46
return CachedExistenceCheck(path, p => _fileSystem.
FileExists
(p));
Construction\ProjectRootElement.cs (2)
1659
ErrorUtilities.VerifyThrowInvalidOperation(FileSystems.Default.
FileExists
(path), "FileToReloadFromDoesNotExist", path);
1964
if (!FileSystems.Default.
FileExists
(path))
Construction\Solution\SolutionFile.cs (1)
623
if (!FileSystems.Default.
FileExists
(_solutionFile))
CoreCLRAssemblyLoader.cs (1)
164
!FileSystems.Default.
FileExists
(candidatePath))
Definition\ToolsetConfigurationReader.cs (1)
275
FileSystems.Default.
FileExists
(BuildEnvironmentHelper.Instance.CurrentMSBuildConfigurationFile))
Evaluation\Evaluator.cs (1)
2223
if (!FileSystems.Default.
FileExists
(importFileUnescaped))
FileSystem\MSBuildFileSystemBase.cs (1)
80
public virtual bool FileExists(string path) => FileSystems.Default.
FileExists
(path);
FileUtilities.cs (3)
1025
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1026
: fileSystem.
FileExists
(fullPath);
1453
if (fileSystem.
FileExists
(possibleFileDirectory))
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
271
if (FileSystems.Default.
FileExists
(_archiveFilePath))
Modifiers.cs (2)
528
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
544
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
MSBuildLoadContext.cs (2)
81
if (!FileSystems.Default.
FileExists
(candidatePath))
102
if (FileSystems.Default.
FileExists
(assemblyNameInExecutableDirectory))
TaskEngineAssemblyResolver.cs (1)
106
if (FileSystems.Default.
FileExists
(_taskAssemblyFile))
TempFileUtilities.cs (1)
188
ErrorUtilities.VerifyThrow(!FileSystems.Default.
FileExists
(file), "Guid should be unique");
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
111
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))
Microsoft.Build.Engine.UnitTests (2)
FileMatcher_Tests.cs (1)
2661
return FileSystems.Default.
FileExists
(path);
TestAssemblyInfo.cs (1)
111
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
111
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))
Microsoft.Build.UnitTests.Shared (5)
ObjectModelHelpers.cs (4)
581
Assert.True(FileSystems.Default.
FileExists
(Path.Combine(TempProjectDir, fileRelativePath)), message);
1051
if (FileSystems.Default.
FileExists
(files[i]))
1677
Assert.True(FileSystems.Default.
FileExists
(fullPath));
1862
if (FileSystems.Default.
FileExists
(path))
TestEnvironment.cs (1)
712
Assert.True(FileSystems.Default.
FileExists
(Path), $"A file expected as an output does not exist: {Path}");