25 references to FileExistsNoThrow
Microsoft.Build (14)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
889
if (FileUtilities.
FileExistsNoThrow
(fullPath))
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (3)
192
if (!string.IsNullOrEmpty(pathToManifest) && !FileUtilities.
FileExistsNoThrow
(pathToManifest))
217
if (string.IsNullOrEmpty(manifest.Path) || !FileUtilities.
FileExistsNoThrow
(manifest.Path))
229
if (string.IsNullOrEmpty(assemblyPath) || !FileUtilities.
FileExistsNoThrow
(assemblyPath))
Evaluation\IntrinsicFunctions.cs (2)
505
return taskHostLocation != null && FileUtilities.
FileExistsNoThrow
(taskHostLocation);
537
return FileUtilities.
FileExistsNoThrow
(FixSeparatorsAndResolveAgainstThreadWorkingDirectory(path));
Instance\TaskRegistry.UsingTaskInfo.cs (8)
508
if (FileUtilities.
FileExistsNoThrow
(s_potentialTasksCoreLocation, fileSystem))
518
if (FileUtilities.
FileExistsNoThrow
(replacedAssemblyFile, fileSystem))
541
FileUtilities.
FileExistsNoThrow
(s_potentialTasksCoreLocation, fileSystem))
566
!FileUtilities.
FileExistsNoThrow
(assemblyFile, fileSystem))
571
if (FileUtilities.
FileExistsNoThrow
(replacedAssemblyFile, fileSystem))
597
FileUtilities.
FileExistsNoThrow
(s_potentialTasksCoreLocation, fileSystem))
608
=> (assemblyName.Equals(TasksV4SimpleName, StringComparison.OrdinalIgnoreCase) && !FileUtilities.
FileExistsNoThrow
(s_potentialTasksV4Location, fileSystem))
609
|| (assemblyName.Equals(TasksV12SimpleName, StringComparison.OrdinalIgnoreCase) && !FileUtilities.
FileExistsNoThrow
(s_potentialTasksV12Location, fileSystem));
Microsoft.Build.Framework (3)
Utilities\TaskFactoryUtilities.cs (1)
58
public bool IsValid => string.IsNullOrEmpty(AssemblyPath) || FileUtilities.
FileExistsNoThrow
(AssemblyPath);
Utilities\ToolLocationHelper_SDKDiscovery.cs (2)
166
if (FileUtilities.
FileExistsNoThrow
(pathToSDKManifest))
673
if (FileUtilities.
FileExistsNoThrow
(pathToPlatformManifest))
Microsoft.Build.Tasks.Core (7)
AssemblyDependency\ResolveAssemblyReference.cs (2)
3829
if (_stateFile.Value is not null && FileUtilities.
FileExistsNoThrow
(_stateFile.Value))
3846
p => FileUtilities.
FileExistsNoThrow
(p),
FileIO\WriteLinesToFile.cs (1)
277
if (FileUtilities.
FileExistsNoThrow
(filePath))
GetSDKReferenceFiles.cs (2)
235
return Execute(AssemblyNameExtension.GetAssemblyNameEx, AssemblyInformation.GetRuntimeVersion, p => FileUtilities.
FileExistsNoThrow
(p), synchronous: false);
516
if (FileUtilities.
FileExistsNoThrow
(xmlFile))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
757
if (!string.IsNullOrEmpty(cachedEntry.AssemblyPath) && !FileUtilities.
FileExistsNoThrow
(cachedEntry.AssemblyPath))
SystemState.cs (1)
651
if (FileUtilities.
FileExistsNoThrow
(stateFile))
Microsoft.Build.Utilities.Core (1)
TrackedDependencies\TrackedDependencies.cs (1)
84
if (!FileUtilities.
FileExistsNoThrow
(item.ItemSpec))