94 references to FileSystems
Microsoft.Build.Tasks.Core (93)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130
ErrorUtilities.VerifyThrow(
FileSystems
.Default.FileExists(_assemblyFolderConfigFile),
AssemblyDependency\AssemblyInformation.cs (1)
975
if (!
FileSystems
.Default.FileExists(path))
AssemblyDependency\GenerateBindingRedirects.cs (1)
108
var outputExists =
FileSystems
.Default.FileExists(OutputAppConfigFile.ItemSpec);
AssemblyDependency\ResolveAssemblyReference.cs (1)
3212
(p, searchPattern) =>
FileSystems
.Default.EnumerateDirectories(p, searchPattern).ToArray(),
BootstrapperUtil\BootstrapperBuilder.cs (13)
363
if (!
FileSystems
.Default.FileExists(setupSourceFile))
531
if (
FileSystems
.Default.DirectoryExists(startDirectory))
537
if (
FileSystems
.Default.FileExists(resourceFilePath))
601
if (
FileSystems
.Default.DirectoryExists(packagePath))
810
bool fileExists =
FileSystems
.Default.FileExists(filePath);
811
bool schemaExists =
FileSystems
.Default.FileExists(schemaPath);
938
if (
FileSystems
.Default.FileExists(strLangManifestFilename))
1453
if (!
FileSystems
.Default.FileExists(packageFileSource.Value))
1471
if (!
FileSystems
.Default.FileExists(packageFileSource.Value))
1524
if (
FileSystems
.Default.FileExists(eulaAttribute.Value))
1582
if (!
FileSystems
.Default.DirectoryExists(strFolderPath))
2089
if (
FileSystems
.Default.FileExists(fileSource))
2158
if (
FileSystems
.Default.FileExists(fileSource))
BuildEnvironmentHelper.cs (5)
214
if (
FileSystems
.Default.FileExists(msBuildExe))
218
else if (
FileSystems
.Default.FileExists(msBuildDll))
274
vsVersion != CurrentVisualStudioVersion || !
FileSystems
.Default.DirectoryExists(vsInstallDir))
299
.Where(i => i.Version.Major == v.Major &&
FileSystems
.Default.DirectoryExists(i.Path))
342
if (!string.IsNullOrEmpty(msBuildExePath) &&
FileSystems
.Default.FileExists(msBuildExePath))
Copy.cs (2)
259
if (!
FileSystems
.Default.DirectoryExists(destinationFolder))
957
if (DestinationFolder != null &&
FileSystems
.Default.FileExists(DestinationFolder.ItemSpec))
Delete.cs (1)
122
if (
FileSystems
.Default.FileExists(file.ItemSpec))
DependencyFile.cs (1)
66
if (
FileSystems
.Default.FileExists(FileName))
ExceptionHandling.cs (1)
391
IEnumerable<string> files =
FileSystems
.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt");
Exec.cs (2)
501
if (!
FileSystems
.Default.FileExists(systemCmd))
526
if (!
FileSystems
.Default.DirectoryExists(_workingDirectory))
FileIO\GetFileHash.cs (1)
88
if (!
FileSystems
.Default.FileExists(file.ItemSpec))
FileIO\ReadLinesFromFile.cs (1)
41
if (
FileSystems
.Default.FileExists(File.ItemSpec))
FileIO\VerifyFileHash.cs (1)
42
if (!
FileSystems
.Default.FileExists(File))
FileMatcher.cs (1)
85
public static FileMatcher Default = new FileMatcher(
FileSystems
.Default, null);
FileUtilities.cs (1)
122
private static readonly IFileSystem DefaultFileSystem =
FileSystems
.Default;
GenerateResource.cs (7)
1407
if (!
FileSystems
.Default.FileExists(Sources[i].ItemSpec))
1432
if (nothingOutOfDate &&
FileSystems
.Default.FileExists(Sources[0].ItemSpec))
2531
if (assemblyFile.ItemSpec != null &&
FileSystems
.Default.FileExists(assemblyFile.ItemSpec))
2682
if (!
FileSystems
.Default.DirectoryExists(currentOutputDirectory))
2746
if (
FileSystems
.Default.FileExists(outFileOrDir)
2768
if (
FileSystems
.Default.FileExists(currentOutputFile))
2856
if (!
FileSystems
.Default.DirectoryExists(shorterPath))
GetSDKReferenceFiles.cs (1)
1100
if (
FileSystems
.Default.FileExists(referencesCacheFile) && currentCodeLastWriteTime < referencesCacheFileLastWriteTimeUtc)
ManifestUtil\AssemblyIdentity.cs (6)
188
if (!
FileSystems
.Default.FileExists(path))
262
if (!
FileSystems
.Default.FileExists(path))
296
if (!
FileSystems
.Default.FileExists(path))
322
if (!
FileSystems
.Default.FileExists(path))
519
if (
FileSystems
.Default.FileExists(path) && IsEqual(this, FromFile(path), specificVersion))
526
if (
FileSystems
.Default.FileExists(path) && IsEqual(this, FromManifest(path), specificVersion))
ManifestUtil\DeployManifest.cs (2)
150
if (
FileSystems
.Default.FileExists(redistListFilePath))
583
if (
FileSystems
.Default.FileExists(manifestPath))
ManifestUtil\LauncherBuilder.cs (2)
83
if (!
FileSystems
.Default.FileExists(LauncherPath))
106
if (!
FileSystems
.Default.DirectoryExists(strFolderPath))
ManifestUtil\Manifest.cs (2)
315
if (
FileSystems
.Default.FileExists(path))
332
if (
FileSystems
.Default.FileExists(resolvedPath))
ManifestUtil\SecurityUtil.cs (6)
661
if (!
FileSystems
.Default.FileExists(path))
855
if (toolPath == null || !
FileSystems
.Default.FileExists(toolPath))
860
if (toolPath == null || !
FileSystems
.Default.FileExists(toolPath))
868
if (NativeMethodsShared.IsWindows && (toolPath == null || !
FileSystems
.Default.FileExists(toolPath)))
872
if (toolPath == null || !
FileSystems
.Default.FileExists(toolPath))
876
if (!
FileSystems
.Default.FileExists(toolPath))
ManifestUtil\TrustInfo.cs (1)
654
if (
FileSystems
.Default.FileExists(path))
ManifestUtil\Util.cs (1)
285
if (!
FileSystems
.Default.DirectoryExists(logPath))
Modifiers.cs (2)
528
if (
FileSystems
.Default.FileExists(unescapedItemSpec))
544
if (
FileSystems
.Default.FileExists(unescapedItemSpec))
Move.cs (6)
206
if (
FileSystems
.Default.DirectoryExists(destinationFile))
212
if (
FileSystems
.Default.DirectoryExists(sourceFile))
222
if (!
FileSystems
.Default.FileExists(sourceFile))
229
if (OverwriteReadOnlyFiles &&
FileSystems
.Default.FileExists(destinationFile))
236
if (!string.IsNullOrEmpty(destinationFolder) && !
FileSystems
.Default.DirectoryExists(destinationFolder))
271
if (
FileSystems
.Default.FileExists(destinationFile))
MSBuild.cs (1)
308
if (
FileSystems
.Default.FileExists(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
NativeMethods.cs (5)
843
if (!
FileSystems
.Default.FileExists(existingFileName))
848
var targetExists =
FileSystems
.Default.FileExists(newFileName);
1323
if (
FileSystems
.Default.DirectoryExists(s_gacPath))
1449
if (
FileSystems
.Default.DirectoryExists(path))
1462
if (
FileSystems
.Default.FileExists(path))
RedistList.cs (2)
307
if (
FileSystems
.Default.DirectoryExists(redistDirectory))
1051
if (
FileSystems
.Default.FileExists(subsetFilePath))
RemoveDir.cs (1)
64
if (
FileSystems
.Default.DirectoryExists(directory.ItemSpec))
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 (3)
551
if (
FileSystems
.Default.FileExists(reference))
777
if (
FileSystems
.Default.FileExists(assemblyPath))
782
if (deleteSourceCodeFile &&
FileSystems
.Default.FileExists(sourceCodePath))
StateFileBase.cs (3)
45
if (
FileSystems
.Default.FileExists(stateFile))
83
if (!string.IsNullOrEmpty(stateFile) &&
FileSystems
.Default.FileExists(stateFile))
140
if (
FileSystems
.Default.FileExists(stateFile))
TempFileUtilities.cs (2)
188
ErrorUtilities.VerifyThrow(!
FileSystems
.Default.FileExists(file), "Guid should be unique");
234
if (
FileSystems
.Default.DirectoryExists(Path))
Unzip.cs (1)
109
if (!
FileSystems
.Default.FileExists(sourceFile.ItemSpec))
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
111
if (
FileSystems
.Default.FileExists(potentialVersionsPropsPath))