1198 references to Replace
aspire (27)
Templating\CliTemplateFactory.cs (10)
277.Replace("{{projectName}}", projectName)
278.Replace("{{projectNameLower}}", projectNameLower)
279.Replace("{{aspireVersion}}", aspireVersion)
280.Replace("{{hostName}}", hostName)
281.Replace("{{httpPort}}", ports.DashboardHttpPort.ToString(CultureInfo.InvariantCulture))
282.Replace("{{httpsPort}}", ports.DashboardHttpsPort.ToString(CultureInfo.InvariantCulture))
283.Replace("{{otlpHttpPort}}", ports.OtlpHttpPort.ToString(CultureInfo.InvariantCulture))
284.Replace("{{otlpHttpsPort}}", ports.OtlpHttpsPort.ToString(CultureInfo.InvariantCulture))
285.Replace("{{resourceHttpPort}}", ports.ResourceServiceHttpPort.ToString(CultureInfo.InvariantCulture))
286.Replace("{{resourceHttpsPort}}", ports.ResourceServiceHttpsPort.ToString(CultureInfo.InvariantCulture));
Aspire.Acquisition.Tests (6)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.EventHubs.Tests (2)
Aspire.Cli.EndToEnd.Tests (15)
Aspire.Cli.Tests (26)
Utils\MarkdownToSpectreConverterTests.cs (11)
502expected = expected.Replace("\r\n", "\n").Replace("\r", "\n");
623expected = expected.Replace("\r\n", "\n").Replace("\r", "\n");
684[bold]Header 6[/]".Replace("\r\n", "\n").Replace("\r", "\n");
702[italic grey]> Line 2[/]".Replace("\r\n", "\n").Replace("\r", "\n");
736return writer.ToString().Replace("\r\n", "\n");
786[italic grey]> That's all![/]".Replace("\r\n", "\n").Replace("\r", "\n");
Aspire.Dashboard (5)
Aspire.Dashboard.Tests (3)
Aspire.Deployment.EndToEnd.Tests (75)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (7)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.AppContainers (5)
Aspire.Hosting.Azure.Network (1)
Aspire.Hosting.Azure.Tests (7)
Aspire.Hosting.Blazor (3)
Aspire.Hosting.CodeGeneration.Python (10)
AtsPythonCodeGenerator.cs (10)
470string s => $"\"{s.Replace("\\", "\\\\").Replace("\"", "\\\"")}\"",
1007resultStr = resultStr.Replace("environment", "env");
1008resultStr = resultStr.Replace("configuration", "config");
1009resultStr = resultStr.Replace("application", "app");
1010resultStr = resultStr.Replace("variable", "var");
1011resultStr = resultStr.Replace("directory", "dir");
1604var formattedOtions = string.Join(" | ", optionTypeVariations.Select(v => v.OptionType.Replace("(", "tuple[").Replace(")", "]")));
2611builder.AppendLine(CultureInfo.InvariantCulture, $" raise TypeError(\"Invalid type for option '{optionName}'. Expected: {String.Join(" or ", variations.Select(v => v.OptionType.Replace("typing.", "")))}\")");
Aspire.Hosting.Docker (9)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Go (1)
Aspire.Hosting.Integration.Analyzers (1)
Aspire.Hosting.Java (1)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.JavaScript.Tests (10)
AddViteAppTests.cs (6)
73""".Replace("\r\n", "\n");
878var expectedEscapedPath = absoluteConfigPath.Replace("\\", "\\\\");
941Assert.Contains(Path.GetFullPath(firstConfigPath).Replace("\\", "\\\\"), File.ReadAllText(firstWrapperPath));
942Assert.Contains(Path.GetFullPath(secondConfigPath).Replace("\\", "\\\\"), File.ReadAllText(secondWrapperPath));
980Assert.Contains(Path.GetFullPath(firstConfigPath).Replace("\\", "\\\\"), File.ReadAllText(firstWrapperPath));
981Assert.Contains(Path.GetFullPath(secondConfigPath).Replace("\\", "\\\\"), File.ReadAllText(secondWrapperPath));
Aspire.Hosting.Kubernetes (11)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Nats.Tests (3)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.RemoteHost.Tests (6)
Aspire.Hosting.Rust (1)
Aspire.Hosting.Rust.Tests (1)
Aspire.Hosting.Tests (2)
Aspire.Hosting.TestUtilities (1)
Aspire.Managed.Tests (1)
Aspire.Templates.Tests (6)
Aspire.TestTools (1)
Binding.Http.IntegrationTests (1)
Client.ExpectedExceptions.IntegrationTests (1)
ConfigurationSchemaGenerator (11)
ConfigurationSchemaGenerator.Tests (1)
crossgen2 (2)
csc (2)
CSharpSyntaxGenerator (5)
dotnet (10)
dotnet-dev-certs (1)
dotnet-format (4)
dotnet-getdocument (1)
dotnet-sourcelink (1)
dotnet-sql-cache (2)
dotnet-suggest (5)
dotnet-svcutil-lib (40)
dotnet-svcutil-lib.Tests (55)
E2ETests.cs (18)
96var tr = $"-r \"\"{{Newtonsoft.Json,*}}\"\" -bd {this_TestCaseBootstrapDir.Replace("\\", "/")}";
97var options = $"{uri.Replace("\\", "/")} {tf} {tr} -nl -tc global -v minimal -d ../{testCaseName} -n \"\"*,{testCaseName}_NS\"\"";
146.Replace("$serviceUrl$", g_ServiceUrl)
147.Replace("$testCaseBootstratDir$", $"\"\"{this_TestCaseBootstrapDir}\"\"")
148.Replace("$testCasesPath$", g_TestCasesDir);
182uri = uri.Replace("$wsdlDir$", $"{Path.GetDirectoryName(wsdlFile)}{Path.DirectorySeparatorChar}");
215var options = $"{uri} -nl -v minimal -d {outDir.Replace("\\", "/")} -n \"\"*,{testCaseName}_NS\"\" -bd {this_TestCaseBootstrapDir.Replace("\\", "/")}";
325var testCaseName = referenceFolderName.Replace(" ", "_").Split('/').Last();
328cmdOptions = cmdOptions?.Replace("$testCaseOutputDir$", this_TestCaseOutputDir.Replace("\\", "/"));
348var testCaseName = referenceFolderName.Replace(" ", "_").Split('/').Last();
383File.WriteAllText(dstParamsFile, File.ReadAllText(dstParamsFile).Replace("$testCasesPath$", g_TestCasesDir.Replace("\\", "/")));
428var testCaseName = serviceName.Replace(".svc", "");
431var uri = $"{g_ServiceUrl}/{serviceName}".Replace("http", "net.tcp");
518var testCaseName = serviceName.Replace(".svc", "").Replace("/", "_");
FixupUtil.cs (11)
42new ReplaceInfo(Path.GetTempPath().Replace("\\", "\\\\"), "$TEMP$"),
43new ReplaceInfo(Path.GetTempPath().Replace("\\", "/"), "$TEMP$"),
70_replacements.Add(new ReplaceInfo(resultPathReplacement.Replace("\\", "\\\\"), "$resultPath$"));
75_replacements.Add(new ReplaceInfo(testCasesPath.Replace("\\", "\\\\"), "$testCasesPath$"));
78_replacements.Add(new ReplaceInfo(projectPath.Replace("\\", "\\\\"), "$projectPath$"));
80_replacements.Add(new ReplaceInfo(repositoryRoot.Replace("\\", "/"), "$repositoryRoot$"));
81_replacements.Add(new ReplaceInfo(repositoryRoot.Replace("\\", "\\\\"), "$repositoryRoot$"));
125originalText = originalText.Replace("\0", "");
130originalText = originalText.Replace("\r\n", "\n");
131originalText = originalText.Replace("\n", "\r\n");
166updatedText = updatedText.Replace(target, value);
ProjectUtils.cs (9)
100string srcPath = project.FullPath.Replace("csproj", "cs");
112csStr = csStr.Replace(csStr.Substring(start, end - start), "string optstring = @\"" + options + "\";\r\n");
126csStr = csStr.Replace("using System;", "using System;\r\nusing Microsoft.Tools.ServiceModel.Svcutil;\r\nusing System.Linq;\r\nusing System.Text.RegularExpressions;");
127csStr = csStr.Replace("static void Main", "static int Main");
128csStr = csStr.Replace("Console.WriteLine(\"Hello World!\");", replacement);
133csStr = csStr.Replace("Console.WriteLine(\"Hello, World!\");", replacement);
185var referenceNamespace = PathHelper.GetRelativePath(referenceFolderName, project.DirectoryPath).Replace("\\", ".").Replace("/", ".").Replace(" ", "_");
UnitTest.cs (11)
222FileUtil.CopyDirectory(wsdlFilesSrcDir.Replace("$testCasesDir$", g_TestCasesDir), Path.Combine(wsdlFilesDstDir, "WcfProjectNService"), overwrite: true);
240.Replace("$projectPath$", this_TestCaseProject.FullPath)
241.Replace("$testCasesDir$", g_TestCasesDir)
242.Replace("$testOutputDir$", this_TestGroupOutputDir)
243.Replace("$testCaseOutputDir$", this_TestCaseOutputDir)
244.Replace("$testCasesDir$", g_TestCasesDir)
245.Replace("$bootstrapDir$", this_TestCaseBootstrapDir)
332File.WriteAllText(jsonFileDstPath, File.ReadAllText(jsonFileDstPath).Replace("$testCaseProject$", this_TestCaseProject.FullPath.Replace("\\", "/")));
349var optionsJson = options.Json.Replace(this_TestCaseProject.FullPath.Replace("\\", "/"), "$testCaseProject$");
dotnet-svcutil.xmlserializer.IntegrationTests (3)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
EventSourceGenerator (2)
GenerateDocumentationAndConfigFiles (12)
GetDocument.Insider (2)
ILCompiler.Compiler (6)
ILCompiler.MetadataTransform (2)
ILCompiler.ReadyToRun (3)
ILCompiler.TypeSystem (2)
illink (5)
Infrastructure.Common (4)
Infrastructure.Tests (3)
installer.tasks (15)
GenerateRunScript.cs (14)
80templateContent = templateContent.Replace("[[SetCommands]]", setCommandsBuilder.ToString());
95templateContent = templateContent.Replace("[[RunCommands]]", runCommandsBuilder.ToString());
106templateContent = templateContent.Replace("[[SetCommandsEcho]]", setCommandEchoesBuilder.ToString());
116templateContent = templateContent.Replace("[[RunCommandsEcho]]", runCommandEchoesBuilder.ToString());
122templateContent = templateContent.Replace("\r\n", "\n");
137string sanitizedRunCommand = command.Replace("`", "\\`")
138.Replace("?", "\\")
139.Replace("\r","")
140.Replace("\n"," ")
141.Replace("&", "^&")
142.Replace(">", "^>");
147sanitizedRunCommand = "\"" + sanitizedRunCommand.Replace("\"", "")
148.Replace("(", "")
149.Replace(")", "") + "\"";
Microsoft.Agents.AI.ProjectTemplates.Tests (12)
TemplateTestUtilities.cs (11)
46.Replace("azureopenai", "aoai")
47.Replace("githubmodels", "gh")
48.Replace("ollama", "o")
49.Replace("openai", "oai")
50.Replace("azureaisearch", "aais")
51.Replace("qdrant", "q")
52.Replace("local", "l")
53.Replace("aspire", "A")
54.Replace("managedidentity", "ID")
55.Replace("aot", "AOT")
56.Replace("selfcontained", "SC"))
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.AI.SourceGenerators (2)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.Cryptography.Internal (1)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DataProtection.Extensions (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
Microsoft.AspNetCore.Identity.UI (12)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (6)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.Watch.BrowserRefresh (2)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build (25)
Evaluation\Expander.Function.cs (5)
526ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
597ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
608ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
1029string argument = args[n].ToString().Replace('|', ',').Replace(typeFullName, "").Replace(typeLeafName, "");
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.Core (19)
GetSDKReferenceFiles.cs (12)
316Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandRedistFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty));
337Log.LogMessageFromResources("GetSDKReferenceFiles.AddingRedistFile", redist.RedistFile.Replace(redist.SDKReferenceItem.ItemSpec, String.Empty), redist.TargetPath);
390Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandReferencesFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty));
411Log.LogMessageFromResources("GetSDKReferenceFiles.AddingReference", reference.AssemblyLocation.Replace(reference.SDKReferenceItem.ItemSpec, String.Empty));
599Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty));
603string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty));
639Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty));
643string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty));
Microsoft.Build.Utilities.Core (4)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Analyzers (9)
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Features (23)
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.CodeAnalysis.Razor.Compiler (14)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.Data.Analysis (2)
Microsoft.Deployment.DotNet.Releases (2)
Microsoft.Diagnostics.NETCore.Client (2)
Microsoft.DotNet.ApiSymbolExtensions (2)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.Build.Manifest (4)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.VisualStudio (7)
Microsoft.DotNet.Build.Tasks.Workloads (7)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.Cli.Utils (3)
Microsoft.DotNet.HotReload.Watch (1)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.StrongName (1)
Microsoft.DotNet.VersionTools.Cli (1)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.Templates.Tests (12)
TemplateTestUtilities.cs (11)
46.Replace("azureopenai", "aoai")
47.Replace("githubmodels", "gh")
48.Replace("ollama", "o")
49.Replace("openai", "oai")
50.Replace("azureaisearch", "aais")
51.Replace("qdrant", "q")
52.Replace("local", "l")
53.Replace("aspire", "A")
54.Replace("managedidentity", "ID")
55.Replace("aot", "AOT")
56.Replace("selfcontained", "SC"))
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
Microsoft.Extensions.Http.Polly (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (3)
Microsoft.Extensions.Validation.ValidationsGenerator (2)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (9)
Microsoft.Gen.Metrics (4)
Microsoft.Gen.MetricsReports (7)
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Maui.Controls.Build.Tasks (2)
Microsoft.Maui.Controls.SourceGen (3)
Microsoft.Maui.Resizetizer (10)
Microsoft.ML.AutoML (1)
Microsoft.ML.AutoML.Interactive (3)
Microsoft.ML.AutoML.SourceGenerator (5)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.CodeGenerator (11)
Microsoft.ML.Core (2)
Microsoft.ML.Core.Tests (4)
Microsoft.ML.Data (2)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Parquet (1)
Microsoft.ML.SearchSpace.Tests (2)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (6)
Microsoft.ML.Tests (11)
OnnxConversionTest.cs (6)
699}}", dataPath.Replace("\\", "\\\\"), modelPath.Replace("\\", "\\\\"));
731", modelPath.Replace("\\", "\\\\"), onnxJsonPath.Replace("\\", "\\\\"), onnxPath.Replace("\\", "\\\\"));
1827var colName = name.Replace(stdSuffix, "");
Microsoft.ML.Tokenizers (2)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.NET.Build.Tasks (9)
Microsoft.NET.HostModel (1)
Microsoft.Net.Http.Headers (2)
Microsoft.NET.Sdk.Publish.Tasks (4)
Microsoft.NET.Sdk.Razor.Tasks (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (10)
Microsoft.SourceLink.Common (2)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TemplateEngine.Core (9)
Microsoft.TemplateEngine.Edge (4)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
Microsoft.TemplateEngine.Utils (6)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Microsoft.TestPlatform.Utilities (5)
Microsoft.VisualBasic.Core (5)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
Microsoft.Web.XmlTransform (3)
MSBuild (2)
NuGet.Build.Tasks.Pack (1)
NuGet.Common (16)
PathUtil\PathResolver.cs (11)
81.Replace(@"\.\*\*", @"\.[^/.]*") // .** should not match on ../file or ./file but will match .file
82.Replace(@"\*\*/", "/?([^/]+/)*?") //For recursive wildcards /**/, include the current directory.
83.Replace(@"\*\*", ".*") // For recursive wildcards that don't end in a slash e.g. **.txt would be treated as a .txt file at any depth
84.Replace(@"\*", @"[^/]*(/)?") // For non recursive searches, limit it any character that is not a directory separator
85.Replace(@"\?", "."); // ? translates to a single any character
91.Replace("/", @"\\") // On Windows, / is treated the same as \.
92.Replace(@"\.\*\*", @"\.[^\\.]*") // .** should not match on ../file or ./file but will match .file
93.Replace(@"\*\*\\", @"(\\\\)?([^\\]+\\)*?") //For recursive wildcards \**\, include the current directory.
94.Replace(@"\*\*", ".*") // For recursive wildcards that don't end in a slash e.g. **.txt would be treated as a .txt file at any depth
95.Replace(@"\*", @"[^\\]*(\\)?") // For non recursive searches, limit it any character that is not a directory separator
96.Replace(@"\?", "."); // ? translates to a single any character
NuGet.Configuration (3)
NuGet.Frameworks (1)
PresentationBuildTasks (1)
PresentationCore (4)
MS\Internal\FontCache\FontCacheUtil.cs (4)
606return NormalizeFontFamilyReference(friendlyName.Substring(startIndex, length).Replace(",,", ","));
676string fontFamilyReference = familyName.Replace("%", "%25").Replace("#", "%23");
702return fontFamilyReference.Replace(",", ",,");
PresentationFramework (6)
QuarantineTools.Tests (4)
RepoTasks (1)
Roslyn.Diagnostics.Analyzers (9)
Roslyn.Diagnostics.CSharp.Analyzers (1)
rzc (3)
sdk-tasks (2)
Security.TransportSecurity.IntegrationTests (1)
SuperFileCheck (2)
System.CommandLine (2)
System.CommandLine.StaticCompletions (25)
shells\ZshShellProvider.cs (18)
282.Replace("\"", "\\\"")
283.Replace("\'", "'\\''")
284.Replace("[", "\\[")
285.Replace("]", "\\]")
286.Replace(":", "\\:")
287.Replace("$", "\\$")
288.Replace("`", "\\`")
289.Replace("\r\n", " ")
295.Replace("\\", "\\\\")
296.Replace("\'", "'\\''")
297.Replace("[", "\\[")
298.Replace("]", "\\]")
299.Replace(":", "\\:")
300.Replace("$", "\\$")
301.Replace("`", "\\`")
302.Replace("(", "\\(")
303.Replace(")", "\\)")
304.Replace(" ", "\\ ")
System.ComponentModel.Annotations (4)
System.Data.Common (8)
System.Data.Odbc (7)
System.Data.OleDb (8)
System.IO.Packaging (1)
System.Net.Mail (2)
System.Net.Requests (2)
System.Private.CoreLib (1)
System.Private.CoreLib.Generators (2)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (10)
System.Security.Cryptography.Xml (4)
System.ServiceModel.Primitives (11)
System.ServiceModel.Primitives.Tests (2)
System.Text.Json (2)
System.Text.RegularExpressions.Generator (3)
System.Windows.Forms (2)
System.Windows.Forms.Design (1)
System.Xaml (1)
vbc (2)
VBCSCompiler (2)
vstest.console (7)
vstest.console.arm64 (7)