29 references to PathUtilities
dotnet-watch (1)
Program.cs (1)
203.Where(p => !PathUtilities.OSSpecificPathComparer.Equals(Path.GetExtension(p), ".shproj"))];
Microsoft.DotNet.HotReload.Watch (28)
Build\EvaluationResult.cs (1)
174!Path.GetExtension(projectInstance.FullPath).Equals(".csproj", PathUtilities.OSSpecificPathComparison) ||
Build\FilePathExclusions.cs (2)
18var outputDirectories = new HashSet<string>(PathUtilities.OSSpecificPathComparer); 87if (PathUtilities.ContainsPath(outputDirectories, fullPath))
Build\LoadedProjectGraph.cs (1)
22.ToHashSet(PathUtilities.OSSpecificPathComparer));
Build\ProjectRepresentation.cs (2)
42=> PathUtilities.OSSpecificPathComparer.Equals(ProjectGraphPath, other.ProjectGraphPath); 45=> PathUtilities.OSSpecificPathComparer.GetHashCode(ProjectGraphPath);
Context\EnvironmentOptions.cs (2)
74? Path.GetFullPath(Path.Combine(SdkDirectory, "..", "..", "dotnet" + PathUtilities.ExecutableExtension)) 86Debug.Assert(Path.GetFileName(path) == $"dotnet{PathUtilities.ExecutableExtension}");
FileWatcher\FileWatcher.cs (7)
14protected readonly Dictionary<string, DirectoryWatcher> _directoryTreeWatchers = new(PathUtilities.OSSpecificPathComparer); 18protected readonly Dictionary<string, DirectoryWatcher> _directoryWatchers = new(PathUtilities.OSSpecificPathComparer); 76group path by PathUtilities.EnsureTrailingSlash(PathUtilities.NormalizeDirectorySeparators(Path.GetDirectoryName(path)!)) 78select (g.Key, containingDirectories ? [] : g.Select(Path.GetFileName).ToImmutableHashSet(PathUtilities.OSSpecificPathComparer)); 108var alreadyWatched = _directoryTreeWatchers.Any(d => directory.StartsWith(d.Key, PathUtilities.OSSpecificPathComparison)); 130.Where(d => d.Key.StartsWith(directory, PathUtilities.OSSpecificPathComparison))
FileWatcher\PollingDirectoryWatcher.cs (3)
16private Dictionary<string, DateTime> _currentSnapshot = new(PathUtilities.OSSpecificPathComparer); 19private Dictionary<string, DateTime> _snapshotBuilder = new(PathUtilities.OSSpecificPathComparer); 20private readonly Dictionary<string, ChangeKind> _changesBuilder = new(PathUtilities.OSSpecificPathComparer);
HotReload\CompilationHandler.cs (3)
35= ImmutableDictionary<string, ImmutableArray<RunningProject>>.Empty.WithComparers(PathUtilities.OSSpecificPathComparer); 45= ImmutableDictionary<string, ImmutableArray<RestartOperation>>.Empty.WithComparers(PathUtilities.OSSpecificPathComparer); 60= ImmutableDictionary<string, ImmutableArray<ProjectInstance>>.Empty.WithComparers(PathUtilities.OSSpecificPathComparer);
HotReload\HotReloadDotNetWatcher.cs (7)
598return extension.Equals(".props", PathUtilities.OSSpecificPathComparison) 599|| extension.Equals(".targets", PathUtilities.OSSpecificPathComparison) 600|| extension.EndsWith("proj", PathUtilities.OSSpecificPathComparison) 601|| extension.Equals(".projitems", PathUtilities.OSSpecificPathComparison) // shared project items 602|| string.Equals(Path.GetFileName(filePath), "global.json", PathUtilities.OSSpecificPathComparison); 649var projectPathSet = projectPaths.ToImmutableHashSet(PathUtilities.OSSpecificPathComparer); 813if (PathUtilities.GetContainingDirectories(path).FirstOrDefault(IsHiddenDirectory) is { } containingHiddenDir)