36 references to Default
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
122
if (FileSystems.
Default
.FileExists(potentialVersionsPropsPath))
MSBuild (35)
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));
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))
Modifiers.cs (2)
329
if (FileSystems.
Default
.FileExists(unescapedItemSpec))
345
if (FileSystems.
Default
.FileExists(unescapedItemSpec))
ProjectSchemaValidationHandler.cs (1)
49
if (FileSystems.
Default
.FileExists(schemaFile))
TaskEngineAssemblyResolver.cs (1)
106
if (FileSystems.
Default
.FileExists(_taskAssemblyFile))
TaskFactoryUtilities.cs (7)
136
if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.
Default
.FileExists(assemblyPath))
162
Assembly assembly = Assembly.Load(FileSystems.
Default
.ReadFileAllBytes(assemblyPath));
186
if (!FileSystems.
Default
.FileExists(manifestPath))
254
if (FileSystems.
Default
.FileExists(path))
256
return Assembly.Load(FileSystems.
Default
.ReadFileAllBytes(path));
262
if (FileSystems.
Default
.FileExists(path))
264
return Assembly.Load(FileSystems.
Default
.ReadFileAllBytes(path));
TempFileUtilities.cs (2)
187
ErrorUtilities.VerifyThrow(!FileSystems.
Default
.FileExists(file), "Guid should be unique");
233
if (FileSystems.
Default
.DirectoryExists(Path))
XMake.cs (9)
336
if (!FileSystems.
Default
.FileExists(path))
2146
else if (!FileSystems.
Default
.FileExists(responseFile))
2379
if (FileSystems.
Default
.FileExists(autoResponseFile))
3009
if (FileSystems.
Default
.DirectoryExists(projectFile))
3016
InitializationException.VerifyThrow(FileSystems.
Default
.FileExists(projectFile), "ProjectNotFoundError", projectFile);
3513
if (FileSystems.
Default
.DirectoryExists(projectFile))
3522
InitializationException.VerifyThrow(FileSystems.
Default
.FileExists(projectFile), "ProjectNotFoundError", projectFile);
4378
if (FileSystems.
Default
.FileExists(testFile))
4536
InitializationException.VerifyThrow(FileSystems.
Default
.FileExists(fileName), "SchemaNotFoundError", fileName);