99 references to AltDirectorySeparatorChar
dotnet-svcutil-lib (6)
Shared\Utilities\PathHelper.cs (6)
114var parentSegments = Path.GetFullPath(parentPath.FullName).Split(new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); 115var childSegments = Path.GetFullPath(childDirectory).Split(new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); 133builder.Append($"..{Path.AltDirectorySeparatorChar}"); 142builder.Append($"{childSegments[idx]}{Path.AltDirectorySeparatorChar}"); 151relativePath = builder.ToString().Trim(Path.AltDirectorySeparatorChar); 168return path.Split(new char[] { '/', '\\', Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries);
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Microsoft.Arcade.Test.Common (1)
MockFileSystem.cs (1)
90return targetPath.Replace(basePath, "").TrimStart(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.AspNetCore.DataProtection (1)
Internal\HostingApplicationDiscriminator.cs (1)
15private readonly string AltDirectorySeparator = Path.AltDirectorySeparatorChar.ToString();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
FileProviderRazorProjectItem.cs (1)
81(PhysicalPath[_root.Length] == Path.DirectorySeparatorChar || PhysicalPath[_root.Length] == Path.AltDirectorySeparatorChar))
Microsoft.Build (7)
Construction\Solution\SolutionProjectGenerator.cs (1)
1715(aspNetPhysicalPath[aspNetPhysicalPath.Length - 1] == Path.AltDirectorySeparatorChar) ||
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
85return lastCharacter == Path.DirectorySeparatorChar || lastCharacter == Path.AltDirectorySeparatorChar || lastCharacter == '\\';
FileMatcher.cs (1)
691return c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
FileUtilities.cs (3)
370return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar); 400while (i > 0 && fullPath[--i] != Path.DirectorySeparatorChar && fullPath[i] != Path.AltDirectorySeparatorChar) 1515if (file.Any(i => i.Equals(Path.DirectorySeparatorChar) || i.Equals(Path.AltDirectorySeparatorChar)))
FrameworkLocationHelper.cs (1)
1015Path.AltDirectorySeparatorChar.ToString(),
Microsoft.Build.Engine.OM.UnitTests (4)
FileUtilities.cs (3)
370return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar); 400while (i > 0 && fullPath[--i] != Path.DirectorySeparatorChar && fullPath[i] != Path.AltDirectorySeparatorChar) 1515if (file.Any(i => i.Equals(Path.DirectorySeparatorChar) || i.Equals(Path.AltDirectorySeparatorChar)))
TransientIO.cs (1)
33private static bool IsDirSlash(char c) => c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
Microsoft.Build.Engine.UnitTests (1)
FileMatcher_Tests.cs (1)
2225string normalized = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
Microsoft.Build.Framework (2)
FileClassifier.cs (1)
351return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar);
InterningWriteTranslator.cs (1)
28private static readonly char[] DirectorySeparatorChars = [Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar];
Microsoft.Build.Tasks.CodeAnalysis (1)
MapSourceRoots.cs (1)
85return c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
Microsoft.Build.Tasks.Core (8)
CreateCSharpManifestResourceName.cs (2)
186manifestName.Replace(Path.AltDirectorySeparatorChar, '.'); 211manifestName.Replace(Path.AltDirectorySeparatorChar, '.');
FileMatcher.cs (1)
691return c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
FileUtilities.cs (3)
370return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar); 400while (i > 0 && fullPath[--i] != Path.DirectorySeparatorChar && fullPath[i] != Path.AltDirectorySeparatorChar) 1515if (file.Any(i => i.Equals(Path.DirectorySeparatorChar) || i.Equals(Path.AltDirectorySeparatorChar)))
ManifestUtil\PathUtil.cs (2)
23path = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 38path = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
Microsoft.Build.Utilities.Core (5)
FileMatcher.cs (1)
691return c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
FileUtilities.cs (3)
370return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar); 400while (i > 0 && fullPath[--i] != Path.DirectorySeparatorChar && fullPath[i] != Path.AltDirectorySeparatorChar) 1515if (file.Any(i => i.Equals(Path.DirectorySeparatorChar) || i.Equals(Path.AltDirectorySeparatorChar)))
FrameworkLocationHelper.cs (1)
1015Path.AltDirectorySeparatorChar.ToString(),
Microsoft.CodeAnalysis (1)
FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveEvaluator.cs (1)
74Debug.Assert(languageInfo.InteractiveResponseFileName.IndexOfAny([Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar]) == -1);
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
44var pathParts = referencedDllPath.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
AbstractResxGenerator.cs (1)
85resourceName = relativeDir.Replace(Path.DirectorySeparatorChar, '.').Replace(Path.AltDirectorySeparatorChar, '.') + resourceName;
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
459private static readonly char[] s_directorySplitChars = [Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
99return last == Path.DirectorySeparatorChar || last == Path.AltDirectorySeparatorChar;
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
112var destFileName = Path.Combine(destDir, srcFileName.Substring(srcDir.Length).TrimStart(new[] { Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar }));
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
551return targetPath.Substring(basePath.Length).TrimStart(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.DotNet.Build.Tasks.Packaging (3)
GenerateNuSpec.cs (1)
262Target = f.GetMetadata(Metadata.FileTarget).Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar),
HarvestPackage.cs (1)
580var parts = path.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
NuGetAssetResolver.cs (1)
105int dirLength = contentItem.Path.LastIndexOf(Path.AltDirectorySeparatorChar);
Microsoft.DotNet.XliffTasks (1)
Tasks\GatherTranslatedSource.cs (1)
53Path.AltDirectorySeparatorChar
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\EmbeddedFilesManifest.cs (2)
16.Where(c => c != Path.DirectorySeparatorChar && c != Path.AltDirectorySeparatorChar).ToArray(); 18private static readonly char[] _separators = new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Microsoft.Extensions.FileProviders.Physical (4)
Internal\PathUtils.cs (2)
15.Where(c => c != Path.DirectorySeparatorChar && c != Path.AltDirectorySeparatorChar).ToArray(); 41{Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar};
PhysicalFileProvider.cs (1)
27{Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar};
PhysicalFilesWatcher.cs (1)
450path[path.Length - 1] == Path.AltDirectorySeparatorChar);
Microsoft.Extensions.FileSystemGlobbing (5)
InMemoryDirectoryInfo.cs (5)
18private static readonly char[] DirectorySeparators = new[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }; 49string normalizedRoot = Path.GetFullPath(rootDir.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar)); 54string fileWithNormalSeparators = file.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 138string normPath = Path.GetFullPath(path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar)); 150string normPath = Path.GetFullPath(path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar));
Microsoft.Extensions.Localization (2)
ResourceManagerStringLocalizerFactory.cs (2)
48_resourcesRelativePath = _resourcesRelativePath.Replace(Path.AltDirectorySeparatorChar, '.') 232.Replace(Path.AltDirectorySeparatorChar, '.');
Microsoft.ML.Parquet (2)
PartitionedPathUtils.cs (2)
55relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 70var cleanPath = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
Microsoft.VisualBasic.Core (8)
Microsoft\VisualBasic\FileIO\FileSystem.vb (8)
93file.EndsWith(IO.Path.AltDirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)) Then 247IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar)) 853path.EndsWith(IO.Path.AltDirectorySeparatorChar, StringComparison.Ordinal) Then 1538Path1 = Path1.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 1539Path2 = Path2.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 1560Path = Path.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 1582Return Path.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 2056IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar, IO.Path.VolumeSeparatorChar}
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
53private static readonly char[] PathSeparatorCharacters = [Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar];
MSBuild (3)
FileUtilities.cs (3)
370return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar); 400while (i > 0 && fullPath[--i] != Path.DirectorySeparatorChar && fullPath[i] != Path.AltDirectorySeparatorChar) 1515if (file.Any(i => i.Equals(Path.DirectorySeparatorChar) || i.Equals(Path.AltDirectorySeparatorChar)))
MSBuildTaskHost (4)
FileUtilities.cs (3)
370return (c == Path.DirectorySeparatorChar) || (c == Path.AltDirectorySeparatorChar); 400while (i > 0 && fullPath[--i] != Path.DirectorySeparatorChar && fullPath[i] != Path.AltDirectorySeparatorChar) 1515if (file.Any(i => i.Equals(Path.DirectorySeparatorChar) || i.Equals(Path.AltDirectorySeparatorChar)))
InterningWriteTranslator.cs (1)
28private static readonly char[] DirectorySeparatorChars = [Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar];
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\PathInternal.cs (1)
125return c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
System.Configuration.ConfigurationManager (1)
System\Diagnostics\TraceUtils.cs (1)
74if ((initializeData[0] != Path.DirectorySeparatorChar) && (initializeData[0] != Path.AltDirectorySeparatorChar) && !Path.IsPathRooted(initializeData))
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
130_externalFileAttr = entryName.EndsWith(Path.DirectorySeparatorChar) || entryName.EndsWith(Path.AltDirectorySeparatorChar)
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
973if (c != System.IO.Path.DirectorySeparatorChar && c != System.IO.Path.AltDirectorySeparatorChar)
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
548if (partialPath[i] != Path.DirectorySeparatorChar && partialPath[i] != Path.AltDirectorySeparatorChar)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
92Path.AltDirectorySeparatorChar,
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
14private static readonly char[] DirectorySeparatorCharacters = { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };