34 references to Match
Aspire.Acquisition.Tests (2)
Scripts\HomebrewCompletionTests.cs (1)
24var match = Regex.Match(template,
Scripts\PRScriptInstallerModeTests.cs (1)
485var m = System.Text.RegularExpressions.Regex.Match(line, @"^\s*-?\s*RelativeFilePath:\s*(\S+)\s*$");
Aspire.Cli.EndToEnd.Tests (5)
CentralPackageManagementTests.cs (1)
204var sdkMatch = System.Text.RegularExpressions.Regex.Match(
EmulatedLocalReleaseBuildTests.cs (2)
627var match = Regex.Match(content, "Include=\"(?<id>Aspire\\.[^\"]*Redis[^\"]*)\"\\s+Version=\"(?<version>[^\"]+)\""); 630match = Regex.Match(content, "Version=\"(?<version>[^\"]+)\"\\s+Include=\"(?<id>Aspire\\.[^\"]*Redis[^\"]*)\"");
Helpers\CliE2ETestHelpers.cs (2)
53var match = Regex.Match(content, @"(?m)^[ \t]*#:[ \t]*(?:package[ \t]+Aspire\.Hosting\.AppHost|sdk[ \t]+Aspire\.AppHost\.Sdk)@(?<version>[^ \t\r\n]+)[ \t]*\r?$"); 786var branchMatch = Regex.Match(version, @"^(?<major>\d+)\.(?<minor>\d+)\.");
Aspire.Cli.Tests (1)
Utils\TemporaryWorkspaceTests.cs (1)
134var match = System.Text.RegularExpressions.Regex.Match(message, @"started with PID (\d+) after ");
Aspire.Dashboard.Tests (1)
Markdown\MarkdownProcessorTests.cs (1)
171var title = Regex.Match(html, "<div class=\"code-title\">(.*?)</div>").Groups[1].Value;
Aspire.Hosting.Azure.Tests (1)
AzureContainerAppsTests.cs (1)
2452var match = System.Text.RegularExpressions.Regex.Match(
Aspire.Hosting.CodeGeneration.Go.Tests (1)
GoDocCommentTests.cs (1)
281var match = Regex.Match(line, @"^(?:type |var |const |func (?:\([^)]*\) )?|\t)(?<name>[A-Z]\w*)\b");
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
41var match = Regex.Match(
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
301Match match1 = Regex.Match(fileContents, pattern1); 303Match match2 = Regex.Match(fileContents, pattern2);
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
1081var match = Regex.Match(valueExpression, @"\{(cond-[^.]+)\.connectionString\}");
Aspire.Hosting.RemoteHost (1)
Ats\CapabilityDispatcher.cs (1)
761var match = Regex.Match(message, @"type '([^']+)'.*(?:to|into) type '([^']+)'");
Aspire.Hosting.Rust.Tests (1)
AddRustAppPublishTests.cs (1)
1076var match = Regex.Match(
Aspire.Hosting.Tasks (1)
ResolveAspireCliBundle.cs (1)
486var sourceMatch = Regex.Match(sidecar, @"""source""\s*:\s*""(?<source>[^""]*)""");
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
629match = Regex.Match(reference, pattern);
GenerateTemplateManifest (1)
TemplateRestorePlan.cs (1)
155var match = Regex.Match(directive, @"^#:(sdk|package|property)\s+([^@=\s]+)[@=](.+)$");
Infrastructure.Tests (2)
TestTriggerMap\SelectTestsCliTests.cs (2)
547var deploymentProject = System.Text.RegularExpressions.Regex.Match( 985var mapping = Regex.Match(NormalizeWorkflowExpression(expression.ToString()),
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsClient\DiagnosticsClient.cs (1)
453Match match = Regex.Match(fileName, PidIpcEndpoint.DiagnosticsPortPattern);
Microsoft.DotNet.Arcade.Sdk (2)
src\CheckRequiredDotNetVersion.cs (1)
78var match = Regex.Match(globalJson, $@"""dotnet""\s*:\s*""([^""]+)""");
src\LocateDotNet.cs (1)
65var match = Regex.Match(globalJson, @"""dotnet""\s*:\s*""([^""]+)""");
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixBuildWixpack.cs (1)
980var eqMatch = Regex.Match(
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Macros\BaseMacroConfig.cs (1)
156Regex.Match(string.Empty, regex);
Microsoft.Win32.Msi (2)
ActionStartEventArgs.cs (1)
48Match match = Regex.Match(message, @"Action\s(?<actionTime>\d+:\d+:\d+):\s+(?<actionName>.*)\.\s+(?<actionDescription>.*)");
ProgressEventArgs.cs (1)
31Match match = Regex.Match(message, @"(?<field>\d):\s+(?<value>\d+)");
SelectTests (1)
TriggerMap.cs (1)
159var match = Regex.Match(path, regex);
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.Cache.cs (1)
23/// static <see cref="Regex"/> method calls, such as <see cref="Regex.Match(string, string)"/> or
System\Text\RegularExpressions\Regex.Match.cs (3)
27/// To retrieve matched strings, call the <see cref="Match(string, string)"/> or 291/// The static <see cref="Match(string, string)"/> method is equivalent to constructing a 586/// <see cref="Match(string, string)"/> method, except that it returns information about all the matches