123 references to Default
Microsoft.Build.Tasks.Core (122)
Al.cs (1)
313if (String.IsNullOrEmpty(pathToTool) || !FileSystems.Default.FileExists(pathToTool))
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130ErrorUtilities.VerifyThrow(FileSystems.Default.FileExists(_assemblyFolderConfigFile),
AssemblyDependency\AssemblyInformation.cs (2)
101if (FileSystems.Default.FileExists(newLocation)) 972if (!FileSystems.Default.FileExists(path))
AssemblyDependency\GenerateBindingRedirects.cs (1)
108var outputExists = FileSystems.Default.FileExists(OutputAppConfigFile.ItemSpec);
AssemblyDependency\ResolveAssemblyReference.cs (1)
3249(p, searchPattern) => FileSystems.Default.EnumerateDirectories(p, searchPattern).ToArray(),
AssemblyFolder.cs (1)
69if (FileSystems.Default.DirectoryExists(folder))
AxTlbBaseReference.cs (2)
131if (!FileSystems.Default.FileExists(wrapperPath)) 153if (!FileSystems.Default.FileExists(wrapperInfo.path))
AxTlbBaseTask.cs (3)
128if ((String.IsNullOrEmpty(ToolPath) || !FileSystems.Default.DirectoryExists(ToolPath)) && 129(String.IsNullOrEmpty(SdkToolsPath) || !FileSystems.Default.DirectoryExists(SdkToolsPath))) 182if (FileSystems.Default.FileExists(KeyFile))
BootstrapperUtil\BootstrapperBuilder.cs (13)
363if (!FileSystems.Default.FileExists(setupSourceFile)) 531if (FileSystems.Default.DirectoryExists(startDirectory)) 537if (FileSystems.Default.FileExists(resourceFilePath)) 601if (FileSystems.Default.DirectoryExists(packagePath)) 810bool fileExists = FileSystems.Default.FileExists(filePath); 811bool schemaExists = FileSystems.Default.FileExists(schemaPath); 938if (FileSystems.Default.FileExists(strLangManifestFilename)) 1453if (!FileSystems.Default.FileExists(packageFileSource.Value)) 1471if (!FileSystems.Default.FileExists(packageFileSource.Value)) 1524if (FileSystems.Default.FileExists(eulaAttribute.Value)) 1582if (!FileSystems.Default.DirectoryExists(strFolderPath)) 2093if (FileSystems.Default.FileExists(fileSource)) 2162if (FileSystems.Default.FileExists(fileSource))
BuildEnvironmentHelper.cs (5)
213if (FileSystems.Default.FileExists(msBuildExe)) 217else if (FileSystems.Default.FileExists(msBuildDll)) 273vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.DirectoryExists(vsInstallDir)) 298.Where(i => i.Version.Major == v.Major && FileSystems.Default.DirectoryExists(i.Path)) 341if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath))
CodeTaskFactory.cs (1)
616if (!FileSystems.Default.FileExists(referenceAssembly))
Copy.cs (2)
287if (!FileSystems.Default.DirectoryExists(destinationFolder)) 1009if (DestinationFolder != null && FileSystems.Default.FileExists(DestinationFolder.ItemSpec))
Delete.cs (1)
122if (FileSystems.Default.FileExists(file.ItemSpec))
DependencyFile.cs (1)
66if (FileSystems.Default.FileExists(FileName))
ExceptionHandling.cs (1)
390IEnumerable<string> files = FileSystems.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt");
Exec.cs (1)
531if (!FileSystems.Default.DirectoryExists(_workingDirectory))
FileIO\GetFileHash.cs (1)
88if (!FileSystems.Default.FileExists(file.ItemSpec))
FileIO\ReadLinesFromFile.cs (1)
41if (FileSystems.Default.FileExists(File.ItemSpec))
FileIO\VerifyFileHash.cs (1)
42if (!FileSystems.Default.FileExists(File))
FileMatcher.cs (1)
84public static FileMatcher Default = new FileMatcher(FileSystems.Default, null);
FileUtilities.cs (1)
135private static readonly IFileSystem DefaultFileSystem = FileSystems.Default;
GenerateResource.cs (10)
1170if (!FileSystems.Default.FileExists(outputFile.ItemSpec)) 1208if (!FileSystems.Default.FileExists(outputFile.ItemSpec)) 1407if (!FileSystems.Default.FileExists(Sources[i].ItemSpec)) 1432if (nothingOutOfDate && FileSystems.Default.FileExists(Sources[0].ItemSpec)) 2526if (assemblyFile.ItemSpec != null && FileSystems.Default.FileExists(assemblyFile.ItemSpec)) 2677if (!FileSystems.Default.DirectoryExists(currentOutputDirectory)) 2741if (FileSystems.Default.FileExists(outFileOrDir) 2763if (FileSystems.Default.FileExists(currentOutputFile)) 2851if (!FileSystems.Default.DirectoryExists(shorterPath)) 3077if (!FileSystems.Default.FileExists(name))
GenerateTrustInfo.cs (1)
53if (BaseManifest != null && FileSystems.Default.FileExists(BaseManifest.ItemSpec))
GetSDKReferenceFiles.cs (1)
1100if (FileSystems.Default.FileExists(referencesCacheFile) && currentCodeLastWriteTime < referencesCacheFileLastWriteTimeUtc)
ManifestUtil\AssemblyIdentity.cs (6)
199if (!FileSystems.Default.FileExists(path)) 273if (!FileSystems.Default.FileExists(path)) 307if (!FileSystems.Default.FileExists(path)) 333if (!FileSystems.Default.FileExists(path)) 535if (FileSystems.Default.FileExists(path) && IsEqual(this, FromFile(path), specificVersion)) 542if (FileSystems.Default.FileExists(path) && IsEqual(this, FromManifest(path), specificVersion))
ManifestUtil\DeployManifest.cs (2)
150if (FileSystems.Default.FileExists(redistListFilePath)) 583if (FileSystems.Default.FileExists(manifestPath))
ManifestUtil\LauncherBuilder.cs (2)
83if (!FileSystems.Default.FileExists(LauncherPath)) 106if (!FileSystems.Default.DirectoryExists(strFolderPath))
ManifestUtil\Manifest.cs (2)
314if (FileSystems.Default.FileExists(path)) 331if (FileSystems.Default.FileExists(resolvedPath))
ManifestUtil\SecurityUtil.cs (7)
180if (FileSystems.Default.DirectoryExists(path)) 661if (!FileSystems.Default.FileExists(path)) 856if (toolPath == null || !FileSystems.Default.FileExists(toolPath)) 861if (toolPath == null || !FileSystems.Default.FileExists(toolPath)) 869if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.FileExists(toolPath))) 873if (toolPath == null || !FileSystems.Default.FileExists(toolPath)) 877if (!FileSystems.Default.FileExists(toolPath))
ManifestUtil\TrustInfo.cs (1)
653if (FileSystems.Default.FileExists(path))
ManifestUtil\Util.cs (1)
269if (!FileSystems.Default.DirectoryExists(logPath))
Modifiers.cs (2)
528if (FileSystems.Default.FileExists(unescapedItemSpec)) 544if (FileSystems.Default.FileExists(unescapedItemSpec))
Move.cs (6)
206if (FileSystems.Default.DirectoryExists(destinationFile)) 212if (FileSystems.Default.DirectoryExists(sourceFile)) 222if (!FileSystems.Default.FileExists(sourceFile)) 229if (OverwriteReadOnlyFiles && FileSystems.Default.FileExists(destinationFile)) 236if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.DirectoryExists(destinationFolder)) 271if (FileSystems.Default.FileExists(destinationFile))
MSBuild.cs (1)
305if (FileSystems.Default.FileExists(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
NativeMethods.cs (5)
845if (!FileSystems.Default.FileExists(existingFileName)) 850var targetExists = FileSystems.Default.FileExists(newFileName); 1330if (FileSystems.Default.DirectoryExists(s_gacPath)) 1462if (FileSystems.Default.DirectoryExists(path)) 1479if (FileSystems.Default.FileExists(path))
RedistList.cs (2)
307if (FileSystems.Default.DirectoryExists(redistDirectory)) 1051if (FileSystems.Default.FileExists(subsetFilePath))
RegisterAssembly.cs (2)
215if (!FileSystems.Default.FileExists(assemblyPath)) 243if ((!FileSystems.Default.FileExists(typeLibPath)) ||
RemoveDir.cs (1)
64if (FileSystems.Default.DirectoryExists(directory.ItemSpec))
ResGen.cs (5)
260if (FileSystems.Default.FileExists(outputFiles[i].ItemSpec)) 277if (!FileSystems.Default.FileExists(outputFile.ItemSpec)) 442if ((String.IsNullOrEmpty(ToolPath) || !FileSystems.Default.DirectoryExists(ToolPath)) && 443(String.IsNullOrEmpty(SdkToolsPath) || !FileSystems.Default.DirectoryExists(SdkToolsPath))) 510if (!FileSystems.Default.FileExists(pathToTool))
ResGenDependencies.cs (1)
232if (FileSystems.Default.FileExists(FileName))
ResolveCodeAnalysisRuleSet.cs (4)
87if (FileSystems.Default.FileExists(fullName)) 99if (FileSystems.Default.FileExists(fullName)) 112if (FileSystems.Default.FileExists(fullName)) 118else if (FileSystems.Default.FileExists(CodeAnalysisRuleSet))
ResolveKeySource.cs (1)
208if (!FileSystems.Default.FileExists(CertificateFile))
ResolveNativeReference.cs (1)
124if (String.IsNullOrEmpty(path) || !FileSystems.Default.FileExists(path))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
551if (FileSystems.Default.FileExists(reference)) 777if (FileSystems.Default.FileExists(assemblyPath)) 782if (deleteSourceCodeFile && FileSystems.Default.FileExists(sourceCodePath))
SGen.cs (3)
315if (String.IsNullOrEmpty(pathToTool) || !FileSystems.Default.FileExists(pathToTool)) 333if (!FileSystems.Default.FileExists(reference)) 422serializationAssemblyPathExists = FileSystems.Default.FileExists(SerializationAssemblyPath);
StateFileBase.cs (3)
45if (FileSystems.Default.FileExists(stateFile)) 83if (!string.IsNullOrEmpty(stateFile) && FileSystems.Default.FileExists(stateFile)) 140if (FileSystems.Default.FileExists(stateFile))
TempFileUtilities.cs (2)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique"); 234if (FileSystems.Default.DirectoryExists(Path))
UnregisterAssembly.cs (2)
157if (FileSystems.Default.FileExists(assemblyPath)) 231if (FileSystems.Default.FileExists(typeLibPath))
Unzip.cs (1)
109if (!FileSystems.Default.FileExists(sourceFile.ItemSpec))
XamlTaskFactory\TaskParser.cs (2)
142if (!FileSystems.Default.FileExists(contentOrFile)) 160if (FileSystems.Default.FileExists(maybeFullPath))
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))