295 references to Default
Microsoft.Build (105)
BackEnd\BuildManager\BuildManager.cs (2)
3288if (inputCacheFiles.Any(f => !FileSystems.Default.FileExists(f))) 3290LogErrorAndShutdown(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("InputCacheFilesDoNotExist", string.Join(";", inputCacheFiles.Where(f => !FileSystems.Default.FileExists(f)))));
BackEnd\BuildManager\BuildParameters.cs (1)
1100if (FileSystems.Default.FileExists(path))
BackEnd\Components\Communications\CurrentHost.cs (2)
32if (FileSystems.Default.FileExists(dotnetExe)) 52if (FileSystems.Default.FileExists(dotnetExe))
BackEnd\Components\Communications\NodeLauncher.cs (1)
53if (!FileSystems.Default.FileExists(msbuildLocation))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
483if (!FileSystems.Default.DirectoryExists(path))
BackEnd\Components\Communications\RarNodeLauncher.cs (2)
61IEnumerable<string> pipeNames = FileSystems.Default.EnumerateFiles(NamedPipeRoot); 68return FileSystems.Default.FileExists(_pipeName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (4)
74FileSystems.Default, 180FileSystems.Default, 216FileSystems.Default, 334FileSystems.Default,
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
345if (FileSystems.Default.FileExists(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
71FileSystems.Default,
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
106_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(_lookup, _lookup, new StringMetadataTable(_metadata), FileSystems.Default, loggingContext);
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
184_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(baseLookup, baseLookup, FileSystems.Default, loggingContext); 359FileSystems.Default, 620FileSystems.Default, 712FileSystems.Default,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
383FileSystems.Default, 1088FileSystems.Default,
BackEnd\Components\Scheduler\Scheduler.cs (1)
2707shouldWriteHeader = !FileSystems.Default.FileExists(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId));
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
154if (!FileSystems.Default.FileExists(planName))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1003if (FileSystems.Default.FileExists(cacheFile))
BackEnd\Shared\BuildResult.cs (1)
725if (FileSystems.Default.DirectoryExists(resultsDirectory))
BackEnd\Shared\TargetResult.cs (1)
300if (!FileSystems.Default.FileExists(cacheFile))
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
83if (locationFromEnv != null && FileSystems.Default.DirectoryExists(locationFromEnv))
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
55return EditorConfigFile.Parse(FileSystems.Default.ReadFileAllText(editorConfigFilePath));
BuildEnvironmentHelper.cs (6)
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)) 611var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.Default.FileExists;
Construction\ProjectRootElement.cs (3)
1667ErrorUtilities.VerifyThrowInvalidOperation(FileSystems.Default.FileExists(path), "FileToReloadFromDoesNotExist", path); 1972if (!FileSystems.Default.FileExists(path)) 1997string contents = FileSystems.Default.ReadFileAllText(path);
Construction\Solution\SolutionFile.cs (2)
636if (!FileSystems.Default.FileExists(_solutionFile)) 672JsonDocument text = JsonDocument.Parse(FileSystems.Default.ReadFileAllText(solutionFilterFile), options);
CoreCLRAssemblyLoader.cs (1)
164!FileSystems.Default.FileExists(candidatePath))
DebugUtils.cs (1)
116while (FileSystems.Default.FileExists(fullPath))
Definition\ProjectItem.cs (1)
505Expander<ProjectProperty, ProjectItem> expander = new Expander<ProjectProperty, ProjectItem>(null, null, new BuiltInMetadataTable(this), FileSystems.Default);
Definition\Toolset.cs (3)
862_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, FileSystems.Default, loggingContext); 900overrideDirectoryExists = FileSystems.Default.DirectoryExists(_overrideTasksPath); 949FileSystems.Default);
Definition\ToolsetConfigurationReader.cs (1)
275FileSystems.Default.FileExists(BuildEnvironmentHelper.Instance.CurrentMSBuildConfigurationFile))
Definition\ToolsetReader.cs (3)
191if (FileSystems.Default.DirectoryExists(xbuildToolsetsDir)) 446Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(initialProperties, FileSystems.Default); 564expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(initialProperties, FileSystems.Default);
Evaluation\Context\EvaluationContext.cs (1)
70FileSystem = fileSystem ?? new CachingFileSystemWrapper(FileSystems.Default);
Evaluation\Evaluator.cs (2)
1905if (FileSystems.Default.FileExists(dotnetExe)) 2260if (!FileSystems.Default.FileExists(importFileUnescaped))
Evaluation\Expander.cs (1)
2614if (FileSystems.Default.FileOrDirectoryExists(rootedPath))
Evaluation\IntrinsicFunctions.cs (1)
742if (FileSystems.Default.FileExists(pathToAssembly))
ExceptionHandling.cs (3)
412IEnumerable<string> files = FileSystems.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt"); 416if (FileSystems.Default.GetLastWriteTimeUtc(file) >= fromTimeUtc) 422builder.Append(FileSystems.Default.ReadFileAllText(file));
FileMatcher.cs (1)
90public static FileMatcher Default = new FileMatcher(FileSystems.Default, null);
FileSystem\MSBuildFileSystemBase.cs (12)
27public virtual TextReader ReadFile(string path) => FileSystems.Default.ReadFile(path); 32public virtual Stream GetFileStream(string path, FileMode mode, FileAccess access, FileShare share) => FileSystems.Default.GetFileStream(path, mode, access, share); 37public virtual string ReadFileAllText(string path) => FileSystems.Default.ReadFileAllText(path); 42public virtual byte[] ReadFileAllBytes(string path) => FileSystems.Default.ReadFileAllBytes(path); 48=> FileSystems.Default.EnumerateFiles(path, searchPattern, searchOption); 54=> FileSystems.Default.EnumerateDirectories(path, searchPattern, searchOption); 60=> FileSystems.Default.EnumerateFileSystemEntries(path, searchPattern, searchOption); 65public virtual FileAttributes GetAttributes(string path) => FileSystems.Default.GetAttributes(path); 70public virtual DateTime GetLastWriteTimeUtc(string path) => FileSystems.Default.GetLastWriteTimeUtc(path); 75public virtual bool DirectoryExists(string path) => FileSystems.Default.DirectoryExists(path); 80public virtual bool FileExists(string path) => FileSystems.Default.FileExists(path); 85public virtual bool FileOrDirectoryExists(string path) => FileSystems.Default.FileOrDirectoryExists(path);
FileUtilities.cs (3)
81return !FileSystems.Default.FileExists(lowerCased); 135private static readonly IFileSystem DefaultFileSystem = FileSystems.Default; 751foreach (string dir in FileSystems.Default.EnumerateDirectories(directory))
FrameworkLocationHelper.cs (7)
958if (FileSystems.Default.DirectoryExists(combinedPath)) 1128if (FileSystems.Default.DirectoryExists(programFilesReferenceAssemblyDirectory)) 1425FileSystems.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")))) 1471if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.DirectoryExists(frameworkPath)) 1573if (FileSystems.Default.DirectoryExists(referencePath))
Instance\ProjectInstance.cs (3)
2319Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(this, this, FileSystems.Default, _loggingContext); 2337Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(this, this, FileSystems.Default, _loggingContext); 2346FileSystems.Default,
Instance\ProjectItemInstance.cs (1)
1431Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(null, null, new BuiltInMetadataTable(null, this), FileSystems.Default);
Logging\BinaryLogger\ProjectImportsCollector.cs (3)
67if (!FileSystems.Default.DirectoryExists(cacheDirectory)) 225if (checkFileExistence && !FileSystems.Default.FileExists(filePath)) 271if (FileSystems.Default.FileExists(_archiveFilePath))
Modifiers.cs (2)
329if (FileSystems.Default.FileExists(unescapedItemSpec)) 345if (FileSystems.Default.FileExists(unescapedItemSpec))
MSBuildLoadContext.cs (4)
43_resolver = FileSystems.Default.FileExists(assemblyPath) && FileSystems.Default.FileExists(Path.ChangeExtension(assemblyPath, ".deps.json")) 80if (!FileSystems.Default.FileExists(candidatePath)) 101if (FileSystems.Default.FileExists(assemblyNameInExecutableDirectory))
TaskEngineAssemblyResolver.cs (1)
106if (FileSystems.Default.FileExists(_taskAssemblyFile))
TaskFactoryUtilities.cs (7)
136if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.FileExists(assemblyPath)) 162Assembly assembly = Assembly.Load(FileSystems.Default.ReadFileAllBytes(assemblyPath)); 186if (!FileSystems.Default.FileExists(manifestPath)) 254if (FileSystems.Default.FileExists(path)) 256return Assembly.Load(FileSystems.Default.ReadFileAllBytes(path)); 262if (FileSystems.Default.FileExists(path)) 264return Assembly.Load(FileSystems.Default.ReadFileAllBytes(path));
TempFileUtilities.cs (2)
187ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique"); 233if (FileSystems.Default.DirectoryExists(Path))
Utilities\EngineFileUtilities.cs (1)
603return existenceCache.Value.GetOrAdd(directory, directory => FileSystems.Default.DirectoryExists(directory));
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
122if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
Microsoft.Build.Engine.UnitTests (178)
BackEnd\BatchingEngine_Tests.cs (1)
76FileSystems.Default,
BackEnd\TaskRegistry_Tests.cs (2)
2193FileSystems.Default); 2255FileSystems.Default,
Evaluation\Evaluator_Tests.cs (3)
4485Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, FileSystems.Default); 4499FileSystems.Default, 4517FileSystems.Default,
Evaluation\Expander_Tests.cs (141)
48Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 59Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 70Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 100FileSystems.Default, 122Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 146Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 163Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 786Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, ig, itemMetadata, FileSystems.Default); 811FileSystems.Default, 1421Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1453Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1506Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1532Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1554Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1603Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1635Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1666Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1687Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(lookup, lookup, itemMetadata, FileSystems.Default); 1729Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1745Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1763Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1780Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1794Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1816Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1841Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1864Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1886Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 1908Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2003Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2018Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2038Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2054Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2070Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2086Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2102Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2118Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2134Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2151Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2168Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2185Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2203Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2221Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2237Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2252Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2268Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2285Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2303Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2320Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2330FileSystems.Default, 2340FileSystems.Default, 2356Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2374Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2391Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2408Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2425Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2441Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2457Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2472Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2485Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2501Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2520Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2537Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2553Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2577Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2596Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2619Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2648Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2682Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2698Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2716Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2734Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2750Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2766Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2781Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2797Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2815Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2840Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2855Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2885var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2915var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2937var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2953var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2969var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 2987var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3003var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3022var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3038var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3057var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3070var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3082var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3093var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3106var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3117var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3129var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3140var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3153var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3164var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3177var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3199var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3208var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3224var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3257var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3276var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3290var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3303var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3317var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3339var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3373Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3396Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3430Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3473Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3489Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3508Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3523Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3538Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3559Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3613}), FileSystems.Default); 3634Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3704Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3731Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3782Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3802Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3819Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3843Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3867Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3891Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3924Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, itemsByType, itemMetadata, FileSystems.Default); 3961Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 3998Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4027Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new(pg, FileSystems.Default); 4041Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new(pg, FileSystems.Default); 4053Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new(pg, FileSystems.Default); 4089Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4352Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4378Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(pg, FileSystems.Default); 4424var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 4436var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 4448var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 4776var expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(properties, FileSystems.Default); 5169FileSystems.Default, 5205var result = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default, loggingContext)
Evaluation\ItemSpec_Tests.cs (1)
95(IFileSystem)FileSystems.Default,
ExpressionTree_Tests.cs (18)
30Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 46Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 71Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 90Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default); 102Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null); 119FileSystems.Default); 152Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null); 190Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), itemBag, FileSystems.Default, null); 233Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 265Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 286Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 315Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, FileSystems.Default, null); 332Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), itemBag, FileSystems.Default, null); 342FileSystems.Default); 419Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, new ItemDictionary<ProjectItemInstance>(), FileSystems.Default, null); 451FileSystems.Default); 487FileSystems.Default); 506Expander<ProjectPropertyInstance, ProjectItemInstance> expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
ExpressionTreeExpression_Tests.cs (4)
404_expander = new Expander<ProjectPropertyInstance, ProjectItemInstance>(propertyBag, itemBag, itemMetadata, FileSystems.Default); 445FileSystems.Default); 469FileSystems.Default); 501FileSystems.Default);
FileMatcher_Tests.cs (7)
133var fileMatcherWithCache = new FileMatcher(FileSystems.Default, new ConcurrentDictionary<string, IReadOnlyList<string>>()); 2493private static FileMatcher loopBackFileMatcher = new FileMatcher(FileSystems.Default, GetFileSystemEntriesLoopBack); 2662return FileSystems.Default.EnumerateFiles(path, searchPattern, searchOption); 2667return FileSystems.Default.EnumerateDirectories(path, searchPattern, searchOption); 2672return FileSystems.Default.EnumerateFileSystemEntries(path, searchPattern, searchOption); 2686return FileSystems.Default.FileExists(path); 2691return FileSystems.Default.FileOrDirectoryExists(path);
TestAssemblyInfo.cs (1)
122if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
122if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
Microsoft.Build.UnitTests.Shared (10)
ObjectModelHelpers.cs (8)
579Assert.True(FileSystems.Default.FileExists(Path.Combine(TempProjectDir, fileRelativePath)), message); 874if (FileSystems.Default.DirectoryExists(dir)) 1049if (FileSystems.Default.FileExists(files[i])) 1668Assert.True(FileSystems.Default.DirectoryExists(rootDirectory), $"Directory {rootDirectory} does not exist"); 1685Assert.True(FileSystems.Default.DirectoryExists(directoryName)); 1688Assert.True(FileSystems.Default.FileExists(fullPath)); 1873if (FileSystems.Default.FileExists(path)) 1879if (FileSystems.Default.DirectoryExists(directory) && (Directory.GetFileSystemEntries(directory).Length == 0))
TestEnvironment.cs (2)
307Assert.True(!(createFolder ^ FileSystems.Default.DirectoryExists(folder.Path))); 751Assert.True(FileSystems.Default.FileExists(Path), $"A file expected as an output does not exist: {Path}");