10 references to DirectorySeparatorChar
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
MSBuild\ProjectFile\ProjectFile.cs (2)
270return [.. PathUtilities.GetDirectoryName(linkPath).Split(PathUtilities.DirectorySeparatorChar, PathUtilities.AltDirectorySeparatorChar)]; 276var folders = relativePath == null ? [] : relativePath.Split(PathUtilities.DirectorySeparatorChar, PathUtilities.AltDirectorySeparatorChar).ToImmutableArray();
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (8)
29internal static readonly string DirectorySeparatorStr = new(DirectorySeparatorChar, 1); 36public static bool IsDirectorySeparator(char c) => c == DirectorySeparatorChar || c == AltDirectorySeparatorChar; 90return s + DirectorySeparatorChar; 363return path[0] == DirectorySeparatorChar; 500|| assemblyDisplayNameOrPath.IndexOf(DirectorySeparatorChar) != -1 628private static readonly char[] s_pathChars = new char[] { VolumeSeparatorChar, DirectorySeparatorChar, AltDirectorySeparatorChar }; 792=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');