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