55 references to Default
Microsoft.Build.Utilities.Core (54)
BuildEnvironmentHelper.cs (6)
213
if (FileSystems.
Default
.FileExists(msBuildExe))
217
else if (FileSystems.
Default
.FileExists(msBuildDll))
273
vsVersion != CurrentVisualStudioVersion || !FileSystems.
Default
.DirectoryExists(vsInstallDir))
298
.Where(i => i.Version.Major == v.Major && FileSystems.
Default
.DirectoryExists(i.Path))
341
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.
Default
.FileExists(msBuildExePath))
611
var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.
Default
.FileExists;
DebugUtils.cs (1)
116
while (FileSystems.
Default
.FileExists(fullPath))
ExceptionHandling.cs (3)
412
IEnumerable<string> files = FileSystems.
Default
.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt");
416
if (FileSystems.
Default
.GetLastWriteTimeUtc(file) >= fromTimeUtc)
422
builder.Append(FileSystems.
Default
.ReadFileAllText(file));
FileMatcher.cs (1)
90
public static FileMatcher Default = new FileMatcher(FileSystems.
Default
, null);
FileUtilities.cs (3)
81
return !FileSystems.
Default
.FileExists(lowerCased);
135
private static readonly IFileSystem DefaultFileSystem = FileSystems.
Default
;
751
foreach (string dir in FileSystems.
Default
.EnumerateDirectories(directory))
FrameworkLocationHelper.cs (7)
958
if (FileSystems.
Default
.DirectoryExists(combinedPath))
1128
if (FileSystems.
Default
.DirectoryExists(programFilesReferenceAssemblyDirectory))
1425
FileSystems.
Default
.DirectoryExists,
1435
(!FileSystems.
Default
.FileExists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) &&
1436
!FileSystems.
Default
.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
1471
if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.
Default
.DirectoryExists(frameworkPath))
1573
if (FileSystems.
Default
.DirectoryExists(referencePath))
InprocTrackingNativeMethods.cs (1)
210
if (!FileSystems.
Default
.FileExists(fileTrackerPath))
Modifiers.cs (2)
329
if (FileSystems.
Default
.FileExists(unescapedItemSpec))
345
if (FileSystems.
Default
.FileExists(unescapedItemSpec))
PlatformManifest.cs (1)
96
if (FileSystems.
Default
.FileExists(platformManifestPath))
SDKManifest.cs (1)
315
if (FileSystems.
Default
.FileExists(sdkManifestPath))
TempFileUtilities.cs (2)
188
ErrorUtilities.VerifyThrow(!FileSystems.
Default
.FileExists(file), "Guid should be unique");
234
if (FileSystems.
Default
.DirectoryExists(Path))
ToolLocationHelper.cs (16)
851
if (FileSystems.
Default
.DirectoryExists(propsFileLocation))
1040
if (!FileSystems.
Default
.DirectoryExists(winmdLocation))
1138
if (FileSystems.
Default
.DirectoryExists(contractPath))
1502
if (!FileSystems.
Default
.FileExists(fullPath))
1765
if (FileSystems.
Default
.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
1839
if (legacyMsCorlib20Path != null && FileSystems.
Default
.FileExists(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
1856
if (FileSystems.
Default
.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
2335
if (FileSystems.
Default
.DirectoryExists(path))
2631
bool platformSDKManifestExists = FileSystems.
Default
.FileExists(platformSDKManifest);
2903
if (FileSystems.
Default
.DirectoryExists(localAppdataFolder))
3118
if (!FileSystems.
Default
.FileExists(redistFilePath))
3203
if (!FileSystems.
Default
.DirectoryExists(pathToReturn))
3209
else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.
Default
.DirectoryExists(redirectPath))
3814
if (FileSystems.
Default
.DirectoryExists(dotNetFx20Path))
3966
if (FileSystems.
Default
.DirectoryExists(dotNextFx30RefPath))
3973
if (FileSystems.
Default
.DirectoryExists(dotNextFx35RefPath))
ToolTask.cs (5)
518
if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.
Default
.FileExists(pathToTool)))
539
bool isExistingFile = FileSystems.
Default
.FileExists(pathToTool);
1326
return FileSystems.
Default
.DirectoryExists(path);
1334
.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.
Default
.FileExists(fullPath));
1616
if (_temporaryBatchFile != null && FileSystems.
Default
.FileExists(_temporaryBatchFile))
TrackedDependencies\FileTracker.cs (3)
434
if (FileSystems.
Default
.FileExists(trackerPath))
534
if (!FileSystems.
Default
.FileExists(trackerPath))
581
if (FileSystems.
Default
.FileExists(progfilesPath))
TrackedDependencies\FlatTrackingData.cs (1)
646
if (!FileSystems.
Default
.DirectoryExists(markerDirectory))
TrackedDependencies\TrackedDependencies.cs (1)
45
if (!FileMatcher.HasWildcards(directoryName) && FileSystems.
Default
.DirectoryExists(directoryName))
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
122
if (FileSystems.
Default
.FileExists(potentialVersionsPropsPath))