30 references to PathUtilities
Microsoft.CodeAnalysis.InteractiveHost (30)
FileUtilities.cs (25)
47Debug.Assert(baseDirectory == null || searchPaths != null || PathUtilities.IsAbsolute(baseDirectory)); 52var kind = PathUtilities.GetPathKind(path); 59combinedPath = PathUtilities.CombinePathsUnchecked(baseDirectory, path); 60Debug.Assert(PathUtilities.IsAbsolute(combinedPath)); 70combinedPath = PathUtilities.CombinePathsUnchecked(searchPath, path); 71Debug.Assert(PathUtilities.IsAbsolute(combinedPath)); 84Debug.Assert(PathUtilities.IsAbsolute(combinedPath)); 101Debug.Assert(baseDirectory == null || PathUtilities.IsAbsolute(baseDirectory)); 102return ResolveRelativePath(PathUtilities.GetPathKind(path), path, basePath, baseDirectory); 107Debug.Assert(PathUtilities.GetPathKind(path) == kind); 122return PathUtilities.CombinePathsUnchecked(baseDirectory, path); 139return PathUtilities.CombinePathsUnchecked(baseDirectory, path); 150return PathUtilities.CombinePathsUnchecked(baseDirectory, path); 156baseRoot = PathUtilities.GetPathRoot(basePath); 160baseRoot = PathUtilities.GetPathRoot(baseDirectory); 172Debug.Assert(PathUtilities.IsDirectorySeparator(path![0])); 173Debug.Assert(path.Length == 1 || !PathUtilities.IsDirectorySeparator(path[1])); 174return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1)); 198Debug.Assert(PathUtilities.IsAbsolute(resolvedBasePath)); 243Debug.Assert(PathUtilities.IsAbsolute(path)); 270Debug.Assert(PathUtilities.IsAbsolute(path)); 284Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 302Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 368Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 386Debug.Assert(PathUtilities.IsAbsolute(fullPath));
Interactive\Core\InteractiveHost.Service.cs (2)
508Contract.ThrowIfFalse(initializationFilePath == null || PathUtilities.IsAbsolute(initializationFilePath)); 712Debug.Assert(PathUtilities.IsAbsolute(fullPath));
Interactive\Core\InteractiveHostPlatformInfo.cs (2)
30private static readonly string s_hostDirectory = PathUtilities.GetDirectoryName(typeof(InteractiveHostPlatformInfo).Assembly.Location)!; 56=> !StringComparer.OrdinalIgnoreCase.Equals(PathUtilities.GetDirectoryName(path), s_hostDirectory);
PathUtilities.cs (1)
854=> PathUtilities.GetDirectoryName(path, isUnixLike);