617 references to Replace
aspire (50)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (5)
409.Replace('/', Path.DirectorySeparatorChar) 410.Replace('\\', Path.DirectorySeparatorChar); 556var normalizedEntryName = entryName.Replace('\\', '/'); 565var destinationPath = Path.GetFullPath(Path.Combine(destinationRoot, normalizedEntryName.Replace('/', Path.DirectorySeparatorChar))); 661var comparators = range.Replace(',', ' ').Split(' ', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
1136safeName = safeName.Replace(invalidCharacter, '_');
Commands\AgentInitCommand.cs (2)
790.Replace(Path.DirectorySeparatorChar, '/') 791.Replace(Path.AltDirectorySeparatorChar, '/');
Commands\IntegrationPackageSearchService.cs (1)
174var friendlyName = packageId.Replace('.', '-').ToLowerInvariant();
Commands\Sdk\SdkExportCommand.cs (1)
249.Replace('\r', '\n');
Configuration\AppHostPathConfigurationPolicy.cs (1)
21var normalizedKey = key.Replace(':', '.');
Configuration\ConfigurationService.cs (5)
220key = key.Replace(':', '.'); 281key = key.Replace(':', '.'); 345var normalizedKey = kvp.Key.Replace(':', '.'); 362var configKey = key.Replace('.', ':'); 370var configKey = key.Replace('.', ':');
Git\GitRepository.cs (1)
163: rawPath.Replace('/', Path.DirectorySeparatorChar);
Projects\AppHostCandidateFinder.cs (4)
237: relativeNative.Replace(Path.DirectorySeparatorChar, '/'); 413.Select(path => new FileInfo(Path.Combine(searchDirectory.FullName, path.Replace('/', Path.DirectorySeparatorChar)))) 442var normalizedPattern = pattern.Replace(Path.DirectorySeparatorChar, '/'); 445normalizedPattern = normalizedPattern.Replace(Path.AltDirectorySeparatorChar, '/');
Projects\AppHostServerClosureSnapshots.cs (5)
292var directoryName = Path.GetDirectoryName(entry.RelativePath.Replace('/', Path.DirectorySeparatorChar)); 298return directoryName.Replace('\\', '/').Trim('/'); 311.Replace('\\', '/') 431var destinationPath = Path.Combine(libsPath, entry.RelativePath.Replace('/', Path.DirectorySeparatorChar)); 495var copiedPath = Path.Combine(libsPath, entry.RelativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\DotNetAppHostProject.cs (2)
905var normalized = importPath.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar);
Projects\GuestAppHostProject.cs (2)
636_guestRuntime.Language.Replace('/', '-'), 1974private static string NormalizeManifestPath(string path) => path.Replace('\\', '/');
Projects\JavaAppHostToolchainResolver.cs (1)
96private static string GradleInitScriptPath => GradleInitScriptRelativePath.Replace('/', Path.DirectorySeparatorChar);
Projects\PrebuiltAppHostServer.cs (1)
514references.Add(Path.Combine(projectDirectory, include.Replace('\\', Path.DirectorySeparatorChar)));
Projects\ProjectLocator.cs (2)
1267var relativePathToProjectFile = Path.GetRelativePath(settingsFile.Directory!.FullName, projectFile.FullName).Replace(Path.DirectorySeparatorChar, '/'); 1292var relativeSettingsFilePath = Path.GetRelativePath(executionContext.WorkingDirectory.FullName, settingsFile.FullName).Replace(Path.DirectorySeparatorChar, '/');
Scaffolding\ScaffoldingService.cs (1)
603var normalized = fileName.Replace('\\', '/');
src\Shared\BackchannelConstants.cs (2)
720.Replace('+', '-') 721.Replace('/', '_');
src\Shared\IntegrationPackageProbeManifest.cs (1)
331var normalizedPath = path.Replace('\\', '/');
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
Telemetry\InternalMicrosoftDetector.cs (2)
949var padded = value.Replace('-', '+').Replace('_', '/');
Templating\CliTemplateFactory.cs (1)
324var relativePath = resourceName[resourcePrefix.Length..].Replace('/', Path.DirectorySeparatorChar);
Utils\DotNetToolDetection.cs (4)
35.Replace('\\', '/') 175.Replace('\\', '/') 226return path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar);
Utils\EnvironmentChecker\OperatingSystemCheck.cs (1)
209var value => CultureInfo.InvariantCulture.TextInfo.ToTitleCase(value.Replace('-', ' '))
Utils\FileSystemHelper.cs (1)
167var normalized = path.Replace('\\', '/').TrimEnd('/');
aspire-managed (7)
NuGet\Commands\LayoutCommand.cs (1)
105var destPath = Path.Combine(outputPath, asset.RelativePath.Replace('/', Path.DirectorySeparatorChar));
NuGet\Commands\NuGetPackageAssetResolver.cs (5)
200var sourcePath = Path.Combine(packagePath, relativePath.Replace('/', Path.DirectorySeparatorChar)); 332var sourcePath = Path.Combine(packagePath, runtimeTarget.Path.Replace('/', Path.DirectorySeparatorChar)); 363var sourcePath = Path.Combine(packagePath, resourceAssembly.Path.Replace('/', Path.DirectorySeparatorChar)); 404var sourcePath = Path.Combine(packagePath, nativeLib.Path.Replace('/', Path.DirectorySeparatorChar)); 444return path.Replace('\\', '/').TrimStart('/');
src\Shared\IntegrationPackageProbeManifest.cs (1)
331var normalizedPath = path.Replace('\\', '/');
Aspire.Acquisition.Tests (2)
Scripts\Common\FakeArchiveHelper.cs (1)
206var relativePath = Path.GetRelativePath(contentDir, fullPath).Replace(Path.DirectorySeparatorChar, '/');
Scripts\PRScriptInstallerModeTests.cs (1)
931var expected = Path.Combine(extractDir, rel.Replace('/', Path.DirectorySeparatorChar));
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
917return $"/workspace/{workspace.WorkspaceRoot.Name}/" + relativePath.Replace('\\', '/');
Aspire.Cli.Tests (75)
Bundles\BundleServiceCrossRouteExtractionTests.cs (1)
110=> forwardSlashPath.Replace('/', Path.DirectorySeparatorChar);
Commands\DoctorCommandTests.cs (1)
411"path": "{{Path.GetRelativePath(workspace.WorkspaceRoot.FullName, appHostFile.FullName).Replace('\\', '/')}}"
Commands\DotNetSdkCheckTests.cs (1)
103var filePath = Path.Combine(workspace.WorkspaceRoot.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar));
Commands\NewCommandChannelResolutionTests.cs (1)
686new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/')),
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
311Assert.Contains(packagesDirectory.FullName.Replace('\\', '/'), csharpNuGetConfig); 327Assert.Equal(packagesDirectory.FullName.Replace('\\', '/'), install.NuGetSource); 335Assert.Contains(packagesDirectory.FullName.Replace('\\', '/'), dotNetNuGetConfig);
Configuration\AspireConfigFileTests.cs (1)
546var absolutePath = Path.Combine(root, "src", "apphost.ts").Replace(Path.DirectorySeparatorChar, '/');
Packaging\NuGetConfigMergerSnapshotTests.cs (5)
80var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 142var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 203var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 262var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 326var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
Packaging\PackageChannelTests.cs (15)
150var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 176var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 223var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 276var channelSource = channelPackagesDirectory.FullName.Replace('\\', '/'); 277var overrideSource = overridePackagesDirectory.FullName.Replace('\\', '/'); 312var source = packagesDirectory.FullName.Replace('\\', '/'); 363var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 411var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 439var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 469var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 754var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 785var packageSource = packagesDirectory.FullName.Replace('\\', '/'); 908new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/')), 975new PackageMapping("Aspire*", missingDirectory.Replace('\\', '/')), 1000var packageSource = packagesDirectory.FullName.Replace('\\', '/');
Packaging\PackagingServiceTests.cs (8)
1543mapping.Source == packagesDirectory.FullName.Replace('\\', '/')); 1586mapping.Source == dogfoodPackagesDirectory.FullName.Replace('\\', '/')); 1622mapping.Source == packagesDirectory.FullName.Replace('\\', '/')); 1793Assert.Equal(localPackagesDir.FullName.Replace('\\', '/'), package.Source); 2087var expectedLocalPath = localPackagesDir.FullName.Replace('\\', '/'); 2131var expectedLocalPackagesPath = Path.Combine(localHiveDir.FullName, "packages").Replace('\\', '/'); 2184Assert.Equal(packagesOverrideDir.FullName.Replace('\\', '/'), aspireMapping.Source); 2214Assert.Equal(packagesOverrideDir.FullName.Replace('\\', '/'), aspireMapping.Source);
Projects\AppHostCandidateFinderTests.cs (1)
607var fullPath = Path.Combine(root.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\DefaultLanguageDiscoveryTests.cs (1)
196var appHostPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\DotNetAppHostProjectTests.cs (1)
4137var projectFile = new FileInfo(Path.Combine(repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
Projects\GuestRuntimeTests.cs (2)
1089var input = Path.Combine(workspace.WorkspaceRoot.FullName, relativeInput.Replace('/', Path.DirectorySeparatorChar)); 1138File.Delete(Path.Combine(workspace.WorkspaceRoot.FullName, relativeInput.Replace('/', Path.DirectorySeparatorChar)));
Projects\JavaAppHostToolchainResolverTests.cs (2)
223Assert.Contains(descriptor.Replace('/', Path.DirectorySeparatorChar), inputs); 245["-q", "--init-script", JavaAppHostToolchainResolver.GradleInitScriptRelativePath.Replace('/', Path.DirectorySeparatorChar), "aspireCopyDependencies"],
Projects\PrebuiltAppHostServerTests.cs (4)
2466.Select(path => Path.GetRelativePath(Path.Combine(layoutPath, "libs"), path).Replace('\\', '/')) 2520.Select(path => Path.GetRelativePath(Path.Combine(layoutPath, "libs"), path).Replace('\\', '/')) 2880var sourcePath = Path.Combine(sourceRoot.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar)); 2893targetPaths.Add(relativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\ProjectLocatorTests.cs (18)
552appHostPath = Path.GetRelativePath(aspireSettingsDir.FullName, brokenAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 599path = Path.GetRelativePath(workingDirectory.FullName, outsideAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 975path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, targetAppHostProjectFile.FullName).Replace(Path.DirectorySeparatorChar, '/') 1013path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, targetAppHostProjectFile.FullName).Replace(Path.DirectorySeparatorChar, '/') 1086path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, configuredAppHostProjectFile.FullName).Replace(Path.DirectorySeparatorChar, '/') 1139path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, configuredAppHostProjectFile.FullName).Replace(Path.DirectorySeparatorChar, '/') 1192path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, targetAppHostProjectFile.FullName).Replace(Path.DirectorySeparatorChar, '/') 1299var forwardSlashPath = relativePath.Replace(Path.DirectorySeparatorChar, '/'); 1720.Replace(Path.DirectorySeparatorChar, '/'); 2391path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, brokenAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 2436path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, healthyAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 2480path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, configuredAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 2519path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, unsupportedAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 2579path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, brokenAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 3236.Replace(Path.DirectorySeparatorChar, '/'); 3269.Replace(Path.DirectorySeparatorChar, '/'); 3464path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, configuredAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/') 4137path = Path.GetRelativePath(workspace.WorkspaceRoot.FullName, configuredAppHost.FullName).Replace(Path.DirectorySeparatorChar, '/')
Templating\JavaStarterScaffoldTests.cs (1)
62.Select(path => Path.GetRelativePath(outputDirectory, path).Replace(Path.DirectorySeparatorChar, '/'))
Templating\TemplateNuGetConfigServiceTests.cs (9)
452var sourceOverride = packagesDirectory.FullName.Replace('\\', '/'); 682[new PackageMapping("Aspire*", prPackagesDirectory.FullName.Replace('\\', '/'))], 690[new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/'))], 730[new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/'))], 773[new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/'))], 809[new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/'))], 844[new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/'))], 899[new PackageMapping("Aspire*", packagesDirectory.FullName.Replace('\\', '/'))], 1000[new PackageMapping("Aspire*", packagesDir.FullName.Replace('\\', '/'))],
Aspire.Dashboard (1)
Model\ResourceOutgoingPeerResolver.cs (1)
296return s.Replace(',', ':');
Aspire.Hosting (14)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
477.Replace('\r', '\n')
ApplicationModel\ResourceExtensions.cs (2)
1442internal static string FlattenContainerImageName(string imageName) => imageName.Replace('/', '-').Replace(':', '-');
Publishing\ManifestPublishingContext.cs (4)
72var normalizedPath = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 75return relativePath.Replace('\\', '/'); 621Writer.WriteStringValue(bindMount.Target.Replace('\\', '/'));
src\Shared\BackchannelConstants.cs (2)
720.Replace('+', '-') 721.Replace('/', '_');
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
src\Shared\TerminalHost\TerminalHostPaths.cs (2)
182.Replace('+', '-') 183.Replace('/', '_');
Aspire.Hosting.Analyzers (1)
Infrastructure\WellKnownTypes.cs (1)
33var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultAzurePrincipalProvider.cs (2)
49var convertedToken = part.Replace('_', '/').Replace('-', '+');
Aspire.Hosting.Azure.Functions (2)
AzureFunctionsProjectResourceExtensions.cs (2)
403path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar);
Aspire.Hosting.Azure.Tests (8)
DefaultAzurePrincipalProviderTests.cs (2)
362.Replace('+', '-') 363.Replace('/', '_');
ProvisioningTestHelpers.cs (6)
171.Replace('+', '-') 172.Replace('/', '_'); 185.Replace('+', '-') 186.Replace('/', '_'); 190.Replace('+', '-') 191.Replace('/', '_');
Aspire.Hosting.Blazor (3)
BlazorGatewayExtensions.cs (3)
398.Replace('\\', '/'); 538project.SolutionRoot, wasmApp.Resource.ProjectPath).Replace('\\', '/'); 547.Replace('\\', '/');
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (1)
112: $"{packageName.Replace('.', '/')}/{fileName}";
JavaLanguageSupport.cs (1)
124var relativePath = pattern.Replace('/', Path.DirectorySeparatorChar);
Aspire.Hosting.CodeGeneration.Java.Tests (2)
JavaLanguageSupportDetectionTests.cs (2)
25var expected = relativePath.Replace('/', Path.DirectorySeparatorChar); 75var path = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar));
Aspire.Hosting.CodeGeneration.TypeScript (2)
AtsTypeScriptCodeGenerator.cs (1)
246.Replace('\r', '\n')
TypeScriptApiProjector.cs (1)
861.Replace('\r', '\n')
Aspire.Hosting.Docker (2)
DockerComposePublishingContext.cs (2)
186var name = composeService.Name + "_" + path.Replace('/', '_') + "_" + file.Name; 201sourcePath = Path.GetRelativePath(OutputPath, sourcePath).Replace('\\', '/');
Aspire.Hosting.Dotnet (3)
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
Aspire.Hosting.EntityFrameworkCore (2)
EFMigrationResourceBuilderExtensions.cs (2)
241projectPath = projectPath.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar);
Aspire.Hosting.Integration.Analyzers (1)
src\Aspire.Hosting.Analyzers\Infrastructure\WellKnownTypes.cs (1)
33var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Aspire.Hosting.Java (13)
JavaDockerfileGenerator.cs (8)
341var normalized = annotation.JarPath.Replace('\\', '/'); 424var normalized = authored.Replace('\\', '/'); 585var normalized = authored.Replace('\\', '/'); 843wrapperSupportPath.Replace('/', Path.DirectorySeparatorChar), 946wrapperSupportPath.Replace('/', Path.DirectorySeparatorChar), 1000supportPath.Replace('/', Path.DirectorySeparatorChar), 1038var relative = Path.GetRelativePath(appDirectory, resolvedWrapperPath).Replace('\\', '/'); 1076if (!File.Exists(Path.Combine(appDirectory, posixSibling.Replace('/', Path.DirectorySeparatorChar))))
JavaHostingExtensions.cs (1)
1441return path.Replace('\\', '/');
JavaVersionDetector.cs (1)
225return Normalize(enumMatch.Groups[1].Value.Replace('_', '.'));
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
Aspire.Hosting.JavaScript (4)
JavaScriptHostingExtensions.cs (1)
2511var normalizedPath = path.Replace('\\', '/');
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
Aspire.Hosting.Maui (3)
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
Aspire.Hosting.RemoteHost (3)
AtsCapabilityScanner.cs (2)
3786.Replace('\r', '\n') 3875return (type.FullName ?? type.Name).Replace('+', '.');
src\Shared\IntegrationPackageProbeManifest.cs (1)
331var normalizedPath = path.Replace('\\', '/');
Aspire.Hosting.RemoteHost.Tests (2)
LayoutCommandTests.cs (1)
191assembly.GetProperty("path").GetString() == Path.Combine(packageRoot, GetExpectedRuntimeAssemblyPath().Replace('/', Path.DirectorySeparatorChar)));
RestoreCommandTests.cs (1)
69Path.Combine(packageId.ToLowerInvariant(), "1.0.0", GetExpectedRuntimeAssemblyPath().Replace('/', Path.DirectorySeparatorChar)),
Aspire.Hosting.Rust (6)
RustDockerfileGenerator.cs (3)
218? manifestPath.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar) 251return OperatingSystem.IsWindows() ? relativeManifest.Replace('\\', '/') : relativeManifest;
src\Shared\PathNormalizer.cs (3)
16path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 27return path.Replace('\\', '/');
Aspire.Hosting.Tests (1)
MSBuildTests.cs (1)
141.Replace(Path.DirectorySeparatorChar, '/');
Aspire.TerminalHost (2)
src\Shared\TerminalHost\TerminalHostPaths.cs (2)
182.Replace('+', '-') 183.Replace('/', '_');
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
713result[i] = $"$.{exclusionPaths[i].Replace(':', '.')}";
dotnet (16)
Commands\Project\Convert\ProjectConvertCommand.cs (3)
284var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/'))); 313var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/'))); 532var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/')));
Commands\Reference\Add\ReferenceAddCommand.cs (1)
167return Path.GetRelativePath(projectDirectory, Path.GetFullPath(argument)).Replace('\\', '/');
Commands\Reference\FileBasedAppReferenceEditor.cs (3)
209var appRelativePath = Path.GetFullPath(Path.Combine(EntryPointFileDirectory, reference.Replace('\\', '/'))); 222=> Path.GetFullPath(Path.Combine(EntryPointFileDirectory, path.Replace('\\', '/'))); 237private static string NormalizePath(string path) => path.Replace('\\', '/');
Commands\Run\EnvironmentVariablesToMSBuild.cs (1)
101string normalized = intermediateOutputPath?.Replace('\\', Path.DirectorySeparatorChar) ?? "";
Commands\Run\RunCommand.cs (1)
718projectFileOrDirectoryPath = projectFileOrDirectoryPath.Replace('\\', '/');
Commands\Test\MTP\IPC\NamedPipeServer.cs (1)
218return $"testingplatform.pipe.{name.Replace('\\', '.')}";
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (2)
1194=> text?.Replace('\0', '\x2400') 1196.Replace('\x001b', '\x241b');
Commands\Test\MTP\TestResultsDirectoryResolver.cs (1)
291.Replace(Path.DirectorySeparatorChar, '/');
SlnfFileHelper.cs (3)
35return path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 45return path.Replace(Path.DirectorySeparatorChar, '\\');
dotnet-aot (3)
src\sdk\src\Cli\dotnet\SlnfFileHelper.cs (3)
35return path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); 45return path.Replace(Path.DirectorySeparatorChar, '\\');
dotnet-razorpagegenerator (1)
Program.cs (1)
99var viewDirPath = viewDir.Substring(targetProjectDirectory.Length).Replace('\\', '/');
dotnet-svcutil-lib (20)
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (3)
1919impl = impl.Replace('.', '_'); 2060impl = impl.Replace('.', '_'); 2220impl = impl.Replace('.', '_');
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntityReference.cs (1)
195return (buf + systemId.Replace('\\', '/'));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
169_clrType = clrType.Replace('+', '.');
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
171return EscapeKeywords(name.Replace('+', '.'), csharp);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
94_name = name.Replace('+', '.'); 95_fullName = fullName.Replace('+', '.');
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
444typeName = typeName.Replace('+', '.');
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
4079CodeIdentifier.MakeValidInternal(fullName.Replace('.', '_'));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (4)
1676typeName = DataContract.GetClrTypeFullName(type).Substring(nsLen).Replace('+', '.'); 1822localName = fullTypeName.Replace('+', '.'); 1827localName = fullTypeName.Substring(nsEnd + 1).Replace('+', '.'); 2326return typeName.Replace('.', '_');
Metadata\MetadataFileNameManager.cs (3)
118FileNameFromNS_Add(fileNameBuilder, absoluteUriString.Substring(DataContractXsdBaseNamespace.Length, length).Replace('/', '.')); 133FileNameFromNS_Add(fileNameBuilder, absolutePath.Replace('/', '.')); 138FileNameFromNS_Add(fileNameBuilder, nsUri.OriginalString.Replace('/', '.'));
OutputPathHelper.cs (3)
129absoluteUriString.Substring(s_dataContractXsdBaseNamespaceLength, length).Replace('/', '.')); 142FilenameFromUri_Add(fileNameBuilder, absolutePath.Replace('/', '.')); 147FilenameFromUri_Add(fileNameBuilder, nsUri.OriginalString.Replace('/', '.'));
dotnet-svcutil-lib.Tests (5)
FixupUtil.cs (4)
15static readonly string s_programFilesx64 = Environment.GetEnvironmentVariable("ProgramW6432")?.Replace('\\', '/'); 69_replacements.Add(new ReplaceInfo(resultPathReplacement.Replace('\\', '/'), "$resultPath$")); 74_replacements.Add(new ReplaceInfo(testCasesPath.Replace('\\', '/'), "$testCasesPath$")); 77_replacements.Add(new ReplaceInfo(projectPath.Replace('\\', '/'), "$projectPath$"));
TestLogger.cs (1)
13static readonly string programFilesx64 = Environment.GetEnvironmentVariable("ProgramW6432")?.Replace('\\', '/');
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (3)
180absoluteUriString.Substring(s_dataContractXsdBaseNamespaceLength, length).Replace('/', '.')); 193FilenameFromUri_Add(fileNameBuilder, absolutePath.Replace('/', '.')); 198FilenameFromUri_Add(fileNameBuilder, nsUri.OriginalString.Replace('/', '.'));
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
ILAssembler (1)
GrammarVisitor.cs (1)
3279return (ILOpCode)Enum.Parse(typeof(ILOpCode), token.Text.Replace('.', '_'), ignoreCase: true);
ILCompiler.Compiler (2)
Compiler\ExportsFileWriter.cs (1)
47streamWriter.WriteLine($" {symbol.Replace(',', ' ')}");
Compiler\Logging\DocumentationSignatureParser.cs (1)
801return name.Replace('#', '.');
ILCompiler.ReadyToRun (2)
Compiler\DependencyAnalysis\ReadyToRun\DebugDirectoryEntryNode.cs (2)
100sb.Append($"__PerfMapDebugDirectoryEntryNode_{_entryName.Replace('.','_')}"); 174sb.Append($"__NativeDebugDirectory_{_pdbName.Replace('.','_')}");
illink (5)
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
545string classNameWithCecilNestedFormat = className.Replace('+', '/');
Infrastructure.Tests (15)
Pipelines\NpmCliPackageTests.cs (1)
502=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
Pipelines\ReleasePublishNugetPipelineTests.cs (1)
804=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
PowerShellScripts\DownloadNativeArchivesTests.cs (2)
141.Select(p => Path.GetRelativePath(archivesDir, p).Replace(Path.DirectorySeparatorChar, '/')) 153.Select(p => Path.GetRelativePath(nupkgsDir, p).Replace(Path.DirectorySeparatorChar, '/'))
PowerShellScripts\ScanTestPartitionsFromSourceGuardTests.cs (1)
79var rel = Path.GetRelativePath(RepoRoot.Path, file).Replace('\\', '/');
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
327CreatePackage(downloadRoot, $"native_archives_{rid.Replace('-', '_')}", "Release", "Shipping", packageName);
TestTriggerMap\GraphAffectedProjectsTests.cs (3)
296var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 387var newFull = System.IO.Path.Combine(_workspace.Path, newRelativePath.Replace('/', System.IO.Path.DirectorySeparatorChar)); 397var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
982.Select(m => m.Groups[1].Value.Replace('\\', '/'))
TestTriggerMap\SelectTestsCliTests.cs (1)
1113var fullPath = Path.Combine(repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar));
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (1)
384var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TestTriggerMap\TestTriggerMapTests.cs (2)
145.Select(m => m.Groups[1].Value.Replace('\\', '/')) 333.Select(t => "run_" + t["job:".Length..].Replace('-', '_'))
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (1)
2256=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
installer.tasks (2)
StaticFileRegeneration\TpnSectionHeader.cs (2)
67public string SingleLineName => Name.Replace('\n', ' ').Replace('\r', ' ');
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
TemplateSnapshotTestBase.cs (1)
39: verificationExcludePatterns?.Select(p => p.Replace('/', Path.DirectorySeparatorChar)).ToArray();
VerifyScrubbers.cs (1)
88return output.Replace('\\', '/');
Microsoft.Arcade.Common (2)
Helpers.cs (2)
28dirHash = dirHash.Replace('+', '-'); 29dirHash = dirHash.Replace('/', '_');
Microsoft.AspNetCore.App.Analyzers (1)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
151return path.Replace('\\', '/');
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Latency\Internal\MockLatencyData.cs (4)
41string.Join("/", _tags.Select(a => a.Name.Replace('/', '_'))), 42string.Join("/", _tags.Select(a => a.Value.Replace('/', '_'))), 43string.Join("/", _checkpoints.Select(a => a.Name.Replace('/', '_'))), 45string.Join("/", _measures.Select(a => a.Name.Replace('/', '_'))),
Microsoft.AspNetCore.Hosting (2)
Internal\HostingRequestStartingLog.cs (1)
69=> potentialValue?.Length > 0 ? potentialValue.Replace(' ', '+') : EmptyEntry;
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
151return path.Replace('\\', '/');
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
HtmlAttributePropertyHelper.cs (1)
22Name = propertyHelper.Name is string name ? name.Replace('_', '-') : null;
Microsoft.AspNetCore.WebUtilities (1)
FormPipeReader.cs (1)
417decodedString = decodedString.Replace('+', ' ');
Microsoft.Build (3)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
104internal static string NormalizeWithForwardSlash(string p) => Path.DirectorySeparatorChar == '/' ? p : p.Replace(Path.DirectorySeparatorChar, '/');
Evaluation\Expander.Function.cs (1)
1029string argument = args[n].ToString().Replace('|', ',').Replace(typeFullName, "").Replace(typeLeafName, "");
Instance\ProjectItemInstance.cs (1)
2449includeEscaped = includeEscaped.Replace('\\', '/');
Microsoft.Build.Framework (6)
FileClassifier.cs (1)
333return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/'); // .Replace("//", "/");
FileUtilities.cs (5)
199return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == WindowsDirectorySeparator ? path : path.Replace(WindowsDirectorySeparator, UnixDirectorySeparator); 713return string.IsNullOrEmpty(path) ? path : path.Replace('\\', '/'); 1485return s.Replace('\\', '/'); 1490return s.Replace('/', '\\'); 1502return s.Replace(separator == '/' ? '\\' : '/', separator);
Microsoft.Build.Tasks.CodeAnalysis (3)
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
162=> PlatformInformation.IsUnix ? p : p.Replace('\\', '/');
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
197root.SetMetadata(Names.MappedPath, mappedTopLevelPath + EnsureEndsWithSlash(nestedRoot).Replace('\\', '/'));
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
25=> string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
Microsoft.Build.Tasks.Core (5)
FormatVersion.cs (1)
67OutputVersion = OutputVersion.Replace('.', '_');
ManifestUtil\PathUtil.cs (2)
24path = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 39path = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
system.design\stronglytypedresourcebuilder.cs (1)
717key = key.Replace(c, ReplacementChar);
TarDirectory.cs (1)
348relativePath = relativePath.Replace(Path.DirectorySeparatorChar, '/');
Microsoft.Build.Tasks.Git (1)
GitDataReader\PathUtils.cs (1)
36=> (Path.DirectorySeparatorChar == '\\') ? path.Replace('\\', '/') : path;
Microsoft.CodeAnalysis (8)
DocumentationCommentId.cs (2)
284return name.Replace('.', '#'); 1611return name.Replace('#', '.');
FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
RuleSet\RuleSetInclude.cs (1)
98includePath = includePath.Replace('\\', Path.DirectorySeparatorChar);
SourceGeneration\AdditionalSourcesCollection.cs (1)
76hintName = hintName.Replace('\\', '/');
WellKnownTypes.cs (1)
799typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\DocumentationCommentIdParser.cs (1)
100return name.Replace('#', '.');
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
Microsoft.CodeAnalysis.CSharp (4)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
106_dynamicFactory = new LoweredDynamicOperationFactory(factory, methodOrdinal, factory.CurrentFunction.Name.Replace('.', GeneratedNameConstants.DotReplacementInTypeNames));
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1232.Replace('\\', '/') 1234attributeFilePath.Replace('\\', '/'));
Symbols\Synthesized\GeneratedNameParser.cs (1)
107methodName = methodName.Replace(GeneratedNameConstants.DotReplacementInTypeNames, '.');
Microsoft.CodeAnalysis.CSharp.Features (2)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
185yield return exception.Replace('<', '{').Replace('>', '}');
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
558var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 666var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\TraceLog.cs (2)
72relativeDir = relativeDir.Replace('\\', '_').Replace('/', '_');
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
256var refinedFolders = folders.SelectAsArray(n => n != null && !n.IsEmpty(), n => n.Replace(' ', '_'));
Testing\AbstractTestMethodFinder.cs (1)
66fullyQualifiedTestName = fullyQualifiedTestName.Replace('+', '.');
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
136itemSpecification = library.Path.Replace('/', '\\');
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\DoNotPassLiteralsAsLocalizedParameters.cs (2)
336var sanitizedLiteral = literal.Replace((char)13, ' '); 337sanitizedLiteral = sanitizedLiteral.Replace((char)10, ' ');
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\Components\ComponentDocumentClassifierPass.cs (1)
152path = path.Replace('\\', '/');
Language\DefaultRazorProjectFileSystem.cs (3)
26root = root.Replace('\\', '/').TrimEnd('/'); 79var filePath = "/" + relativePhysicalPath.Replace(Path.DirectorySeparatorChar, '/'); 95var normalizedPath = path.Replace('\\', '/');
Language\Extensions\DefaultTagHelperOptimizationPass.cs (1)
253return "__" + tagHelper.TypeName.Replace('.', '_');
Mvc.Version2_X\AssemblyAttributeInjectionPass.cs (1)
98relativePath = relativePath.Replace('\\', '/');
SourceGenerators\RazorSourceGenerator.RazorProviders.cs (1)
151.Replace(Path.DirectorySeparatorChar, '/')
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
AbstractResxGenerator.cs (2)
108string candidate = relativeDir.Replace(Path.DirectorySeparatorChar, '.').Replace(Path.AltDirectorySeparatorChar, '.') + hintName;
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (1)
68return typeInfo.FullName.Replace('+', '.');
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
388propertyName = propertyName.Replace("."c, "_"c)
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\SolutionFileReader.SolutionFilterReader.cs (2)
30var solutionPath = solution.GetProperty("path").GetString()?.Replace('\\', Path.DirectorySeparatorChar); 54var projectPath = project.GetString()?.Replace('\\', Path.DirectorySeparatorChar);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
Emitter.cs (1)
548string ns = string.IsNullOrEmpty(model.Namespace) ? "Global" : model.Namespace.Replace('.', '_');
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
92var contentFilesSourceLinkUrl = innerMostRootSourceLinkUrl.Replace("*", Uri.EscapeUriString(relativePathToSourceRoot.Replace('\\', '/')) + "*");
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateMD5SumsFile.cs (1)
41string relativePath = file.ItemSpec.Substring(RootDirectory.Length).TrimStart(Path.DirectorySeparatorChar).Replace('\\', '/');
Microsoft.DotNet.Build.Tasks.Packaging (10)
GenerateNuSpec.cs (1)
262Target = f.GetMetadata(Metadata.FileTarget).Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar),
HarvestPackage.cs (4)
305string harvestPackagePath = packageFile.Substring(pathToPackage.Length + 1).Replace('\\', '/'); 429var targetPath = Path.GetDirectoryName(livePackagePath).Replace('\\', '/'); 575return path?.Replace('\\', '/')?.Trim(); 616.Select(f => f.Substring(packageFolder.Length + 1).Replace('\\', '/'))
NuGetPack.cs (4)
24@"**\*.pdb".Replace('\\', Path.DirectorySeparatorChar), 25@"src\**\*".Replace('\\', Path.DirectorySeparatorChar) 32@"content\**\*".Replace('\\', Path.DirectorySeparatorChar), 33@"tools\**\*.ps1".Replace('\\', Path.DirectorySeparatorChar)
PackageItem.cs (1)
56TargetPath = TargetPath.Replace('\\', '/');
Microsoft.DotNet.Build.Tasks.Templating (1)
GenerateFileFromTemplate.cs (1)
69ResolvedOutputPath = Path.GetFullPath(OutputPath.Replace('\\', '/'));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingPropsFile.cs (1)
51var outputFileNameNoExt = string.IsNullOrEmpty(RepositoryName) ? "ProfilingInputs" : RepositoryName.Replace('/', '.');
Microsoft.DotNet.Cli.Utils (3)
PathUtility.cs (3)
252return path.Replace('\\', '/'); 257return path.Replace('/', '\\'); 368return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
Microsoft.DotNet.CMake.Sdk (4)
src\GetCMakeArtifactsFromFileApi.cs (4)
101string sourceRoot = codeModel.Paths?.Source?.Replace('\\', '/').TrimEnd('/') ?? ""; 104string normalizedSourceDir = Path.GetFullPath(SourceDirectory).Replace('\\', '/').TrimEnd('/'); 127string dirSource = d.Source?.Replace('\\', '/').TrimEnd('/') ?? ""; 133dirSource = Path.GetFullPath(dirSource).Replace('\\', '/').TrimEnd('/');
Microsoft.DotNet.HotReload.Watch (6)
Build\FilePathExclusions.cs (1)
55dir = dir.Replace('\\', '/');
Build\ProjectGraphUtilities.cs (1)
65=> Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
HotReload\HotReloadDotNetWatcher.cs (1)
640var dirUrl = match.WildcardDirectoryPartMatchGroup.Replace(Path.DirectorySeparatorChar, '/');
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (1)
205urlToPathMap[url] = Path.Join(root, node.Asset.SubPath.Replace('/', Path.DirectorySeparatorChar));
Utilities\PathUtilities.cs (2)
18=> path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar);
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
87var partUri = Parts[i].Replace('\\', '/');
Microsoft.DotNet.ProjectTools (2)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
558var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 666var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
119string path = Path.Combine(f.TargetPath, f.Filename).Replace('\\', '/');
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
268return path.Substring(RootDir.Length).Replace(Path.DirectorySeparatorChar, '/');
Microsoft.DotNet.XliffTasks (2)
Model\ResxDocument.cs (1)
65string resourceRelativePath = splitRelativePathAndSerializedType[0].Replace('\\', Path.DirectorySeparatorChar);
Model\VsctDocument.cs (1)
85string resourceRelativePath = hrefAttribute.Value.Replace('\\', Path.DirectorySeparatorChar);
Microsoft.Extensions.AI.Evaluation.Quality (1)
RetrievalEvaluator.cs (1)
149_ = builder.Append('"').Append(retrievedChunk.Replace('"', '\'')).Append('"');
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
DiskBased\PathValidationTests.cs (1)
418string root = Path.GetTempPath().Replace('\\', '/') + "testroot";
Microsoft.Extensions.AI.Templates.Tests (2)
TemplateSnapshotTestBase.cs (1)
39: verificationExcludePatterns?.Select(p => p.Replace('/', Path.DirectorySeparatorChar)).ToArray();
VerifyScrubbers.cs (1)
88return output.Replace('\\', '/');
Microsoft.Extensions.DependencyInjection (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
93return name.Replace(DefaultNestedTypeDelimiter, options.NestedTypeDelimiter);
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
461return path.Replace('\\', '/');
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
93return name.Replace(DefaultNestedTypeDelimiter, options.NestedTypeDelimiter);
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
810private static string NormalizePath(string filter) => filter.Replace('\\', '/');
Microsoft.Extensions.FileSystemGlobbing (4)
InMemoryDirectoryInfo.cs (4)
63string normalizedRoot = Path.GetFullPath(rootDir.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar)); 68string fileWithNormalSeparators = file.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 157normPath = Path.GetFullPath(combinedPath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar)); 171string normPath = Path.GetFullPath(combinedPath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar));
Microsoft.Extensions.Hosting (2)
HostingHostBuilderExtensions.cs (2)
247string sanitizedApplicationName = env.ApplicationName.Replace(Path.DirectorySeparatorChar, '_') 248.Replace(Path.AltDirectorySeparatorChar, '_');
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
93return name.Replace(DefaultNestedTypeDelimiter, options.NestedTypeDelimiter);
Microsoft.Extensions.Localization (4)
ResourceManagerStringLocalizerFactory.cs (4)
48_resourcesRelativePath = _resourcesRelativePath.Replace(Path.AltDirectorySeparatorChar, '.') 49.Replace(Path.DirectorySeparatorChar, '.') + "."; 231.Replace(Path.DirectorySeparatorChar, '.') 232.Replace(Path.AltDirectorySeparatorChar, '.');
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
93return name.Replace(DefaultNestedTypeDelimiter, options.NestedTypeDelimiter);
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.Gen.Logging (1)
Emitter.Utils.cs (1)
107internal static string EncodeTypeName(string typeName) => typeName.Replace("_", "__").Replace('.', '_');
Microsoft.Interop.ComInterfaceGenerator (2)
ComClassGenerator.cs (2)
97string hintName = className.Replace('<', '{').Replace('>', '}');
Microsoft.Maui.Controls (1)
Shell\ShellUriHandler.cs (1)
85 return path.Replace(_pathSeparators[1], _pathSeparator[0]);
Microsoft.Maui.Controls.BindingSourceGen (3)
BindingSourceGenerator.cs (3)
46 var sanitizedFileName = fileName.Replace('/', '-').Replace('\\', '-').Replace(':', '-');
Microsoft.Maui.Controls.Build.Tasks (1)
XmlTypeExtensions.cs (1)
79 string typeName = typeInfo.typeName.Replace('+', '/'); //Nested types
Microsoft.Maui.Controls.SourceGen (5)
CodeBehindGenerator.cs (5)
286 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_'); 290 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", {(rootType == null ? "null" : "typeof(global::" + rootClrNamespace + "." + rootType + ")")})]"); 546 string typeName = typeInfo.typeName.Replace('+', '/'); //Nested types 633 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_'); 637 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", null)]");
Microsoft.Maui.Essentials (2)
FileSystem\FileSystemUtils.shared.cs (2)
19 .Replace('\\', Path.DirectorySeparatorChar) 20 .Replace('/', Path.DirectorySeparatorChar);
Microsoft.Maui.Resizetizer (2)
GetMauiAssetPath.cs (2)
74 path?.Replace('\\', Path.DirectorySeparatorChar)?.Replace('/', Path.DirectorySeparatorChar);
Microsoft.ML.Core (3)
Data\Repository.cs (3)
224protected static string NormalizeForArchiveEntry(string path) => path?.Replace('/', Path.DirectorySeparatorChar); 232path?.Replace('/', Path.DirectorySeparatorChar).Replace('\\', Path.DirectorySeparatorChar);
Microsoft.ML.Parquet (2)
PartitionedPathUtils.cs (2)
55relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 70var cleanPath = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
Microsoft.ML.Tokenizers.Tests (1)
LlamaTests.cs (1)
679string expectedNormalizedText = $"{DummyPrefix}{s.Replace(' ', DummyPrefix[0])}";
Microsoft.NET.Build.Containers (3)
Layer.cs (2)
91containerPath = containerPath.Replace('\\', '/'); 131relativePath = relativePath.Replace('\\', '/');
Tasks\ParseContainerProperties.cs (1)
133FullyQualifiedBaseImageName = FullyQualifiedBaseImageName.Replace(' ', '-');
Microsoft.NET.Build.Extensions.Tasks (1)
src\sdk\src\Tasks\Common\ItemUtilities.cs (1)
135return value?.Replace('\\', '/');
Microsoft.NET.Build.Tasks (5)
NuGetPackageResolver.cs (1)
58=> relativePath.Replace('/', Path.DirectorySeparatorChar);
ResolvePackageDependencies.cs (2)
457relativePath = relativePath.Replace('/', Path.DirectorySeparatorChar); 462relativePath = relativePath.Replace('\\', Path.DirectorySeparatorChar);
ResolveTargetingPackAssets.cs (1)
427string projectLanguage = definition.ProjectLanguage?.Replace('#', 's');
src\sdk\src\Tasks\Common\ItemUtilities.cs (1)
135return value?.Replace('\\', '/');
Microsoft.NET.HostModel (3)
Bundle\FileEntry.cs (1)
38RelativePath = relativePath.Replace('\\', DirectorySeparatorChar);
Utils\Base64Url.cs (2)
12.Replace('/', '_') 13.Replace('+', '-')
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (5)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (5)
909.Replace('/', separator) 910.Replace('\\', separator) 1281var normalizedPath = path.Replace('\\', '/').Trim('/'); 1541.Replace('/', separator) 1542.Replace('\\', separator)
Microsoft.NET.Sdk.Publish.Tasks (1)
Kudu\KuduVfsDeploy.cs (1)
56string relUrl = relPath.Replace(Path.DirectorySeparatorChar, '/');
Microsoft.NET.Sdk.StaticWebAssets.Tasks (7)
Data\StaticWebAsset.cs (5)
909.Replace('/', separator) 910.Replace('\\', separator) 1281var normalizedPath = path.Replace('\\', '/').Trim('/'); 1541.Replace('/', separator) 1542.Replace('\\', separator)
JSModules\ApplyJsModules.cs (1)
117jsModuleCandidatePath = jsModuleCandidatePath.Replace('/', '\\');
ReadPackageAssetsManifest.cs (1)
194return Path.GetFullPath(Path.Combine(packageRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
Microsoft.TemplateEngine.Edge (4)
Mount\FileSystem\FileSystemDirectory.cs (3)
35string baseName = x.Substring(fileSystemMountPoint.MountPointRootPath.Length).Replace(Path.DirectorySeparatorChar, '/'); 60string baseName = x.Substring(((FileSystemMountPoint)MountPoint).MountPointRootPath.Length).Replace(Path.DirectorySeparatorChar, '/'); 85string baseName = x.Substring(((FileSystemMountPoint)MountPoint).MountPointRootPath.Length).Replace(Path.DirectorySeparatorChar, '/');
Mount\FileSystemInfoBase.cs (1)
14FullPath = fullPath.Replace('\\', '/');
Microsoft.TemplateEngine.Utils (3)
FileSystemInfoExtensions.cs (1)
30return path.Replace('\\', '/');
InMemoryFileSystem.cs (1)
704path = path.Replace('\\', '/');
PhysicalFileSystem.cs (1)
156return path.Replace(undesiredSeparatorChar, desiredDirectorySeparator);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\Information.vb (2)
406ArraySuffix = typename.Substring(pos, LastChar - pos + 1).Replace("["c, "("c).Replace("]"c, ")"c)
Microsoft.VisualStudio.TestPlatform.Common (1)
Utilities\RunSettingsProviderExtensions.cs (1)
167var xPath = key.Replace('.', '/');
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Navigation\FullSymbolReader.cs (1)
317typeName = typeName.Replace('+', '.');
Mono.Cecil.Rocks (3)
Mono.Cecil.Rocks\DocCommentId.cs (3)
295 id.Append (name.Replace('.', '#').Replace('<', '{').Replace('>', '}'));
NuGet.Commands (5)
CommandRunners\PackCommandRunner.cs (4)
46@"**\*.pdb".Replace('\\', Path.DirectorySeparatorChar), 47@"src\**\*".Replace('\\', Path.DirectorySeparatorChar) 53@"content\**\*".Replace('\\', Path.DirectorySeparatorChar), 54@"tools\**\*.ps1".Replace('\\', Path.DirectorySeparatorChar)
RestoreCommand\Utility\LockFileUtils.cs (1)
1150return path.Replace('/', Path.DirectorySeparatorChar);
NuGet.Common (6)
MsBuildStringUtility.cs (1)
152return value.Replace(',', ';');
PathUtil\PathUtility.cs (5)
85return path.Replace('\\', '/'); 309return path.Replace('/', '\\'); 334return Uri.UnescapeDataString(path.Replace('/', Path.DirectorySeparatorChar)); 423return path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 428return path.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
NuGet.Configuration (4)
Utility\SettingsUtility.cs (4)
73path = path!.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 268path = path!.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 315paths[i] = paths[i].Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 358path = path!.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
NuGet.PackageManagement (1)
Utility\PackagesFolderPathUtility.cs (1)
51return Uri.UnescapeDataString(path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar));
NuGet.Packaging (9)
PackageArchiveReader.cs (2)
160path = path.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); 308var normalizedPath = Uri.UnescapeDataString(packageFileName.Replace('/', Path.DirectorySeparatorChar));
PackageCreation\Authoring\PackageBuilder.cs (5)
702collection.Load(set.Select(path => path.Replace('\\', '/')).ToArray()); 990exclude = exclude?.Replace('\\', Path.DirectorySeparatorChar); 992List<PhysicalPackageFile> searchFiles = ResolveSearchPattern(basePath, source.Replace('\\', Path.DirectorySeparatorChar), destination, _includeEmptyDirectories).ToList(); 1276string xPathNormalized = x!.Path.Replace('\\', '/'); 1277string yPathNormalized = y!.Path.Replace('\\', '/');
PackageReaderBase.cs (1)
583var normalizedPath = Uri.UnescapeDataString(p.Replace('/', Path.DirectorySeparatorChar));
Rules\InvalidUndottedFrameworkRule.cs (1)
200collection.Load(set.Select(path => path.Replace('\\', '/')).ToArray());
NuGet.ProjectModel (2)
LockFile\LockFileFormat.cs (1)
567return path.Replace('\\', '/');
ProjectLockFile\PackagesLockFileUtilities.cs (1)
54var path = Path.Combine(baseDirectory, "packages." + projectName.Replace(' ', '_') + ".lock.json");
PresentationCore (1)
MS\Internal\AppModel\CookieHandler.cs (1)
46httpRequest.CookieContainer.SetCookies(httpRequest.RequestUri, cookies.Replace(';', ','));
PresentationFramework (20)
System\windows\Documents\TextEditor.cs (1)
1239textData = textData.Replace('\t', ' ');
System\Windows\Documents\TextFindEngine.cs (19)
498textString = textString.Replace(UnicodeArabicKashida, '0'); 499findPattern = findPattern.Replace(UnicodeArabicKashida, '0'); 505textString = textString.Replace(UnicodeArabicAlefMaddaAbove, '0'); 506textString = textString.Replace(UnicodeArabicAlefHamzaAbove, '1'); 507textString = textString.Replace(UnicodeArabicAlefHamzaBelow, '2'); 509findPattern = findPattern.Replace(UnicodeArabicAlefMaddaAbove, '0'); 510findPattern = findPattern.Replace(UnicodeArabicAlefHamzaAbove, '1'); 511findPattern = findPattern.Replace(UnicodeArabicAlefHamzaBelow, '2'); 599text = text.Replace(UnicodeArabicKashida, '0'); 600pattern = pattern.Replace(UnicodeArabicKashida, '0'); 615text = text.Replace(UnicodeArabicAlefMaddaAbove, '0'); 616text = text.Replace(UnicodeArabicAlefHamzaAbove, '1'); 617text = text.Replace(UnicodeArabicAlefHamzaBelow, '2'); 619pattern = pattern.Replace(UnicodeArabicAlefMaddaAbove, '0'); 620pattern = pattern.Replace(UnicodeArabicAlefHamzaAbove, '1'); 621pattern = pattern.Replace(UnicodeArabicAlefHamzaBelow, '2'); 808textString = textString.Replace(UnicodeArabicAlefMaddaAbove, UnicodeArabicAlef); 809textString = textString.Replace(UnicodeArabicAlefHamzaAbove, UnicodeArabicAlef); 810textString = textString.Replace(UnicodeArabicAlefHamzaBelow, UnicodeArabicAlef);
PromptAgentChat (1)
Program.cs (1)
28var environmentPrefix = agentResourceName.Replace('-', '_').ToUpperInvariant();
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
756(hasSlash && !hasBackslash) ? replacement.Replace('\\', '/') : 757(hasBackslash && !hasSlash) ? replacement.Replace('/', '\\') : 821=> DirectorySeparatorChar == '/' ? p : p.Replace(DirectorySeparatorChar, '/');
rzc (1)
GenerateCommand.cs (1)
503.Replace(Path.DirectorySeparatorChar, '/')
sdk-tasks (1)
ProcessRuntimeAnalyzerVersions.cs (1)
33var recursiveDir = input.GetMetadata("CustomRecursiveDir").Replace('/', '\\');
SelectTests (5)
GraphAffectedProjects.cs (2)
476var normalized = relativePaths.Select(rel => rel.Replace('\\', '/')); 485NormalizeFullPath(Path.Combine(repoRoot, rel.Replace('/', Path.DirectorySeparatorChar)))))
Program.cs (3)
289var relPath = m.Groups[1].Value.Replace('\\', '/'); 448.Select(m => m.Groups[1].Value.Replace('\\', '/')) 573var name = "run_" + job["job:".Length..].Replace('-', '_');
System.CodeDom (3)
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
1460impl = impl.Replace('.', '_'); 1587impl = impl.Replace('.', '_'); 1740impl = impl.Replace('.', '_');
System.CommandLine.StaticCompletions (5)
HelpGenerationExtensions.cs (1)
30public static string MakeSafeFunctionName(this string functionName) => functionName.Replace('-', '_');
shells\FishShellProvider.cs (3)
404s?.Replace("\r\n", " ").Replace('\n', ' ').Replace('\r', ' ').Replace('\t', ' ') ?? "";
shells\ZshShellProvider.cs (1)
290.Replace('\n', ' ')
System.Configuration.ConfigurationManager (5)
System\Configuration\BaseConfigurationRecord.cs (1)
3206string newConfigSource = configSource.Replace('\\', '/');
System\Configuration\ClientConfigPaths.cs (2)
379foreach (char c in Path.GetInvalidFileNameChars()) validated = validated.Replace(c, '_'); 382validated = validated.Replace(' ', '_');
System\Configuration\ClientConfigurationHost.cs (1)
266string result = parentUri + configSource.Replace('\\', '/');
System\Configuration\UrlPath.cs (1)
134string newFileName = prefix + fileName.Replace('\\', '/');
System.Data.Common (1)
System\Data\Common\DBCommandBuilder.cs (1)
86columnName = columnName.Replace(' ', '_');
System.Data.OleDb (5)
System\Data\ProviderBase\DbConnectionPoolCounters.cs (5)
246result = result.Replace('(', '[').Replace(')', ']').Replace('#', '_').Replace('/', '_').Replace('\\', '_');
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
1413suffix = OperationName.Replace('.', '-') + "-" + suffix;
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
9internal static string SanitizeEntryFilePath(string entryPath, bool preserveDriveRoot = false) => entryPath.Replace('\0', '_');
System.IO.Packaging (4)
System\IO\Packaging\PackUriHelper.cs (2)
216partName = partName.Replace(BackwardSlashChar, ForwardSlashChar); 276path = path.Replace(BackwardSlashChar, ForwardSlashChar);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (2)
99absolutePackageUri = absolutePackageUri.Replace('/', ','); 306hostAndPort = hostAndPort.Replace(',', '/');
System.Management (1)
System\Management\WMIGenerator.cs (1)
847strNs = strNs.Replace('\\', '.');
System.Net.Http (3)
System\Net\Http\Headers\HeaderDescriptor.cs (3)
180value = value.Replace('\0', ' ').Replace('\r', ' ').Replace('\n', ' ');
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpChannelBinding.cs (1)
62_cachedToString = BitConverter.ToString(bytes).Replace('-', ' ');
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (2)
334return hasSpaces ? value.Replace(' ', '+') : value; 499return value.Replace('+', ' ');
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Opcode.cs (1)
117name = Enum.GetName(opCodeValue)!.ToLowerInvariant().Replace('_', '.');
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1365return Replace(oldValue[0], newValue[0]); 1482return Replace((char)oldRune.Value, (char)newRune.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (1)
286return timeZoneId.Substring(i + 1).Replace('_', ' ');
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\DataContract.cs (4)
1498typeName = DataContract.GetClrTypeFullName(type).Substring(nsLen).Replace('+', '.'); 1709localName = fullTypeName.Replace('+', '.'); 1714localName = fullTypeName.Substring(nsEnd + 1).Replace('+', '.'); 2274return typeName.Replace('.', '_');
System\Runtime\Serialization\SchemaExporter.cs (1)
278typeName = DataContract.GetClrTypeFullName(clrType).Substring(nsLen).Replace('+', '.');
System.Private.Uri (2)
System\Uri.cs (1)
1020str = str.Replace('/', '\\');
System\UriBuilder.cs (1)
222: Uri.InternalEscapeString(value.Replace('\\', '/'));
System.Private.Xml (4)
System\Xml\Serialization\CodeIdentifier.cs (1)
180return EscapeKeywords(name.Replace('+', '.'));
System\Xml\Serialization\Types.cs (2)
102_name = name.Replace('+', '.'); 103_fullName = fullName.Replace('+', '.');
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1905return $"{prefix}{_nextReflectionVariableNumber}_{CodeIdentifier.MakeValidInternal(fullName.Replace('.', '_'))}";
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (1)
45shortClassName = shortClassName.Replace('/', '+');
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
256root.AddAttribute("class", typename + ", " + GetType().Module.Assembly.FullName.Replace('\"', '\''));
System.Speech (3)
Internal\SrgsCompiler\Subset.cs (1)
31text = text.Replace(ch, ' ');
Internal\Synthesis\SSmlParser.cs (2)
26string ssmlNoCrLf = ssml.Replace('\n', ' '); 27ssmlNoCrLf = ssmlNoCrLf.Replace('\r', ' ');
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1243, value = [{(GetPropertyTextValue()?.Replace('\0', ' ') ?? "null")}], expandable = {Expandable}
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
36string text = valueString.Replace('%', ' ').Trim();
System.Windows.Forms.Design (1)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
838key = key.Replace(c, ReplacementChar);
vstest.console (1)
Processors\Utilities\ArgumentProcessorFactory.cs (1)
281shortCommandName = shortCommandName.Replace('/', '-');
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (1)
281shortCommandName = shortCommandName.Replace('/', '-');