1944 references to AppendLine
aspire (74)
Agents\OpenCode\OpenCodeAgentEnvironmentScanner.cs (1)
163result.AppendLine(trimmedLine);
Commands\Sdk\SdkDumpCommand.cs (53)
412sb.AppendLine("# Aspire Type System Capabilities"); 413sb.AppendLine("# Generated by: aspire sdk dump --format ci"); 419sb.AppendLine("# Diagnostics"); 423sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}: {1}{2}", d.Severity.ToLowerInvariant(), d.Message, loc)); 429sb.AppendLine("# Handle Types"); 446sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}{1}", t.AtsTypeId, flagStr)); 453sb.AppendLine("# DTO Types"); 458sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} # {1}", t.TypeId, t.Description)); 462sb.AppendLine(t.TypeId); 468sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}: {2}{3}", p.Name, optional, p.Type?.TypeId ?? "unknown", desc)); 477sb.AppendLine("# Enum Types"); 480sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} = {1}", t.TypeId, string.Join(" | ", t.Values))); 487sb.AppendLine("# Exported Values"); 494sb.AppendLine(string.Format( 506sb.AppendLine("# Capabilities"); 515sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}({1}) -> {2}", c.CapabilityId, paramStr, returnStr)); 526sb.AppendLine("================================================================================"); 527sb.AppendLine(" Aspire Type System Capabilities "); 528sb.AppendLine("================================================================================"); 534sb.AppendLine("Summary"); 535sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Handle Types: {0}", capabilities.HandleTypes.Count)); 536sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " DTO Types: {0}", capabilities.DtoTypes.Count)); 537sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Enum Types: {0}", capabilities.EnumTypes.Count)); 538sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Exported Values: {0}", capabilities.ExportedValues.Count)); 539sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Capabilities: {0}", capabilities.Capabilities.Count)); 542sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Diagnostics: {0} errors, {1} warnings", errorCount, warningCount)); 549sb.AppendLine("Diagnostics"); 550sb.AppendLine("--------------------------------------------------------------------------------"); 554sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0} {1}", icon, d.Message)); 557sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " -> {0}", d.Location)); 564sb.AppendLine("Handle Types (passed by reference)"); 565sb.AppendLine("--------------------------------------------------------------------------------"); 587sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}", shortName, flagStr)); 594sb.AppendLine("DTO Types (serialized as JSON)"); 595sb.AppendLine("--------------------------------------------------------------------------------"); 598sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name)); 601sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Description)); 609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " - {0}{1}: {2}", p.Name, optional, simpleType)); 612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", p.Description)); 622sb.AppendLine("Enum Types"); 623sb.AppendLine("--------------------------------------------------------------------------------"); 626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name)); 627sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", string.Join(" | ", t.Values))); 634sb.AppendLine("Exported Values (copied into guest SDKs)"); 635sb.AppendLine("--------------------------------------------------------------------------------"); 639sb.AppendLine(string.Format( 644sb.AppendLine(string.Format( 650sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", value.Description)); 657sb.AppendLine("Capabilities"); 658sb.AppendLine("--------------------------------------------------------------------------------"); 667sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " [{0}]", group.Key)); 677sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}({1}) -> {2}", c.MethodName, paramStr, returnType)); 680sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", c.Description));
Documentation\Docs\DocsSearchService.cs (3)
80sb.AppendLine(result.Content); 82sb.AppendLine("---"); 85sb.AppendLine("Use `get_doc` with the slug to retrieve the full content of this page.");
DotNet\DotNetCliRunner.cs (6)
834stdoutBuilder.AppendLine(line); 841stderrBuilder.AppendLine(line); 1062stdoutBuilder.AppendLine(line); 1070stderrBuilder.AppendLine(line); 1540stdoutBuilder.AppendLine(line); 1547stderrBuilder.AppendLine(line);
Layout\LayoutProcessRunner.cs (2)
30StandardOutputCallback = line => outputBuilder.AppendLine(line), 31StandardErrorCallback = line => errorBuilder.AppendLine(line),
Mcp\Tools\ListAppHostsTool.cs (2)
64responseBuilder.AppendLine("The following is a list of apphosts which are currently running on this machine which can be detected by the Aspire MCP server:"); 73responseBuilder.AppendLine("App hosts outside scope of working directory:");
Mcp\Tools\ListDocsTool.cs (3)
56sb.AppendLine("# Aspire Documentation Pages"); 72sb.AppendLine("---"); 73sb.AppendLine("Use `get_doc` with a slug to retrieve the full content of a specific page.");
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
781consoleLogsText.AppendLine(logEntry);
Telemetry\InternalMicrosoftDetector.cs (2)
762StandardOutputCallback = line => stdout.AppendLine(line), 763StandardErrorCallback = line => stderr.AppendLine(line)
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
422StandardOutputCallback = line => stdout.AppendLine(line),
Aspire.Cli.Tests (33)
Acquisition\PeerInstallProbeTests.cs (22)
622sb.AppendLine("@echo off"); 626sb.Append("echo ").AppendLine(line.TrimEnd('\r')); 649sb.AppendLine("@echo off"); 712sb.AppendLine("@echo off"); 713sb.AppendLine("echo %* | findstr /C:\"doctor\" > nul"); 714sb.AppendLine("if not errorlevel 1 goto :doctor"); 715sb.AppendLine("echo %* | findstr /C:\"--version\" > nul"); 716sb.AppendLine("if not errorlevel 1 goto :version"); 717sb.AppendLine("exit /b 127"); 718sb.AppendLine(":doctor"); 721sb.Append("echo ").AppendLine(line.TrimEnd('\r')); 724sb.AppendLine(":version"); 727sb.Append("echo ").AppendLine(line.TrimEnd('\r')); 763sb.AppendLine("@echo off"); 765sb.AppendLine(":loop"); 766sb.AppendLine("if \"%~1\"==\"\" goto :emit"); 768sb.AppendLine("shift"); 769sb.AppendLine("goto :loop"); 770sb.AppendLine(":emit"); 771sb.AppendLine($"echo {DoctorJson}"); 772sb.AppendLine("exit /b 0"); 812sb.AppendLine("if errorlevel 1 exit /b 127");
DotNet\ProcessExecutionTests.cs (8)
76stdoutBuilder.AppendLine(line); 78StandardErrorCallback = line => stderrBuilder.AppendLine(line) 124stdoutBuilder.AppendLine(line); 136StandardErrorCallback = line => stderrBuilder.AppendLine(line) 272builder.AppendLine("{"); 273builder.AppendLine(" \"values\": ["); 281builder.AppendLine(" ]"); 282builder.AppendLine("}");
tests\Shared\Logging\XunitLoggerProvider.cs (3)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 81messageBuilder.AppendLine(additionalLinePrefix + line); 90messageBuilder.AppendLine(additionalLinePrefix + line);
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (2)
139unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointTelemetryBody)]); 143unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointApiBody)]);
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 81messageBuilder.AppendLine(additionalLinePrefix + line); 90messageBuilder.AppendLine(additionalLinePrefix + line);
Aspire.Dashboard.Tests (4)
Integration\Playwright\AccessibilityTests.cs (1)
514sb.AppendLine($"Additional non-blocking violations ({other.Count}): "
tests\Shared\Logging\XunitLoggerProvider.cs (3)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 81messageBuilder.AppendLine(additionalLinePrefix + line); 90messageBuilder.AppendLine(additionalLinePrefix + line);
Aspire.Deployment.EndToEnd.Tests (18)
Helpers\DeploymentReporter.cs (18)
42sb.AppendLine("## ✅ Deployment Succeeded"); 51sb.AppendLine("### Deployed Resources"); 53sb.AppendLine("| Resource | URL |"); 54sb.AppendLine("|----------|-----|"); 102sb.AppendLine("## ❌ Deployment Failed"); 107sb.AppendLine("### Error"); 109sb.AppendLine("```"); 110sb.AppendLine(errorMessage); 111sb.AppendLine("```"); 116sb.AppendLine("<details>"); 117sb.AppendLine("<summary>Full Logs</summary>"); 119sb.AppendLine("```"); 120sb.AppendLine(logs); 121sb.AppendLine("```"); 123sb.AppendLine("</details>"); 160sb.AppendLine($"### 🧹 Cleanup"); 166sb.AppendLine($"### ⚠️ Cleanup Warning"); 174sb.AppendLine("Manual cleanup may be required.");
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
211output.AppendLine(logLine); 244output.AppendLine(line);
Aspire.Hosting (33)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
513.AppendLine(" earlier lines omitted."); 518builder.AppendLine(line);
ApplicationModel\ResourceNotificationService.cs (4)
1272.AppendLine(cancellationMessage); 1279.AppendLine(value?.ToString() ?? "(null)"); 1303error.AppendLine("- Health Reports:"); 1327error.AppendLine("- Waiting For:");
Pipelines\DistributedApplicationPipeline.cs (27)
1164sb.AppendLine("PIPELINE DEPENDENCY GRAPH DIAGNOSTICS"); 1165sb.AppendLine("====================================="); 1167sb.AppendLine("This diagnostic output shows the complete pipeline dependency graph structure."); 1168sb.AppendLine("Use this to understand step relationships and troubleshoot execution issues."); 1176sb.AppendLine("Analysis for full pipeline execution (showing all steps and their relationships)"); 1184sb.AppendLine("EXECUTION ORDER"); 1185sb.AppendLine("==============="); 1186sb.AppendLine("This shows the order in which steps would execute, respecting all dependencies."); 1187sb.AppendLine("Steps with no dependencies run first, followed by steps that depend on them."); 1197sb.AppendLine("DETAILED STEP ANALYSIS"); 1198sb.AppendLine("======================"); 1199sb.AppendLine("Shows each step's dependencies, associated resources, tags, and descriptions."); 1200sb.AppendLine("✓ = dependency exists, ? = dependency missing"); 1226sb.AppendLine(string.Join(", ", depStatuses)); 1230sb.AppendLine(" Dependencies: none"); 1253sb.AppendLine("POTENTIAL ISSUES:"); 1254sb.AppendLine("Identifies problems in the pipeline configuration that could prevent execution."); 1255sb.AppendLine("─────────────────"); 1280sb.AppendLine("INFO: Orphaned steps (no dependencies, not required by others):"); 1290sb.AppendLine("No issues detected"); 1295sb.AppendLine("EXECUTION SIMULATION (\"What If\" Analysis):"); 1296sb.AppendLine("Shows what steps would run for each possible target step and in what order."); 1297sb.AppendLine("Steps at the same level can run concurrently."); 1298sb.AppendLine("─────────────────────────────────────────────────────────────────────────────"); 1313sb.AppendLine(" Direct dependencies: none"); 1322sb.AppendLine(" No steps would execute (isolated step with missing dependencies)"); 1334sb.AppendLine(" Execution order:");
Aspire.Hosting.Azure (2)
Provisioning\Internal\BicepCompiler.cs (2)
55armTemplateContents.AppendLine(data); 60errorContents.AppendLine(data);
Aspire.Hosting.Azure.AppService (8)
AzureAppServiceEnvironmentResource.cs (8)
337sb.AppendLine("Resource '" + resource.Name + "' cannot be published to Azure App Service because it has environment variables with '-' in the name."); 339sb.AppendLine("Azure App Service removes '-' characters from environment variable names at runtime."); 340sb.AppendLine("This will change the keys and can prevent Aspire client integrations from finding the expected connection string."); 342sb.AppendLine("Affected setting(s):"); 347sb.AppendLine(" - " + key + " (becomes " + normalized + ")"); 351sb.AppendLine("Fix options:"); 352sb.AppendLine(" - Use a dash-free connection name in the AppHost (e.g. WithReference(resource, connectionName: \"mydb\"))."); 353sb.AppendLine($" - Call {nameof(AzureAppServiceComputeResourceExtensions.SkipEnvironmentVariableNameChecks)}() on this resource to bypass this validation.");
Aspire.Hosting.Azure.Kubernetes (3)
AzureKubernetesEnvironmentResource.AksPipeline.cs (3)
431errorCapture.AppendLine(line); 822OnOutputData = data => stdout.AppendLine(data), 823OnErrorData = data => stderr.AppendLine(data),
Aspire.Hosting.Azure.Tests (1)
AzureManifestUtils.cs (1)
67sb.AppendLine(bicep);
Aspire.Hosting.Blazor (2)
BlazorDotNetCliRunner.cs (2)
39OnOutputData = line => standardOutput.AppendLine(line), 40OnErrorData = line => standardError.AppendLine(line)
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
622sb.AppendLine("struct {"); 631sb.AppendLine(MapTypeRefToGo(valueInfo.Type, isOptional: false)); 656sb.AppendLine("{"); 673sb.AppendLine(",");
Aspire.Hosting.CodeGeneration.Java (5)
AtsJavaCodeGenerator.cs (5)
528builder.AppendLine(" - GENERATED CODE - DO NOT EDIT"); 530builder.AppendLine(packageLine); 537builder.AppendLine(importLine); 571builder.AppendLine("@SuppressWarnings({\"all\", \"unchecked\", \"serial\"})"); 574builder.AppendLine(declarationLines[i]);
Aspire.Hosting.CodeGeneration.Python (85)
AtsPythonCodeGenerator.cs (49)
1051sb.AppendLine(" def __init__(self, handle: Handle, client: AspireClient) -> None:"); 1052sb.AppendLine(" self._handle = handle"); 1053sb.AppendLine(" self._client = client"); 1055sb.AppendLine(" def __repr__(self) -> str:"); 1058sb.AppendLine(" @_uncached_property"); 1059sb.AppendLine(" def handle(self) -> Handle:"); 1060sb.AppendLine(" \"\"\"The underlying object reference handle.\"\"\""); 1061sb.AppendLine(" return self._handle"); 1089sb.AppendLine(" def get(self, name: str) -> InteractionInput | None:"); 1090sb.AppendLine(" \"\"\"Get the input with the specified name, or None if no input matches.\"\"\""); 1091sb.AppendLine(" lookup_name = name.lower()"); 1092sb.AppendLine(" for interaction_input in self.to_array():"); 1093sb.AppendLine(" input_name = interaction_input.get(\"Name\")"); 1094sb.AppendLine(" if input_name is not None and input_name.lower() == lookup_name:"); 1095sb.AppendLine(" return interaction_input"); 1096sb.AppendLine(" return None"); 1099sb.AppendLine(" def required(self, name: str) -> InteractionInput:"); 1100sb.AppendLine(" \"\"\"Get the input with the specified name, or raise ValueError if no input matches.\"\"\""); 1101sb.AppendLine(" interaction_input = self.get(name)"); 1102sb.AppendLine(" if interaction_input is None:"); 1103sb.AppendLine(" raise ValueError(f\"no input with name '{name}' was found\")"); 1104sb.AppendLine(" return interaction_input"); 1107sb.AppendLine(" def value(self, name: str) -> str:"); 1108sb.AppendLine(" \"\"\"Get the input value with the specified name, or an empty string if no input matches.\"\"\""); 1109sb.AppendLine(" interaction_input = self.get(name)"); 1110sb.AppendLine(" if interaction_input is None:"); 1111sb.AppendLine(" return \"\""); 1112sb.AppendLine(" return interaction_input.get(\"Value\") or \"\""); 1115sb.AppendLine(" def required_value(self, name: str) -> str:"); 1116sb.AppendLine(" \"\"\"Get the input value with the specified name, or raise ValueError if no input matches.\"\"\""); 1117sb.AppendLine(" return self.required(name).get(\"Value\") or \"\""); 1351sb.AppendLine(" return self"); 1497sb.AppendLine(" def __repr__(self) -> str:"); 1511sb.AppendLine(" def _wrap_builder(self, builder: typing.Any) -> Handle:"); 1512sb.AppendLine(" if isinstance(builder, Handle):"); 1513sb.AppendLine(" return builder"); 1514sb.AppendLine(" return typing.cast(typing.Self, builder).handle"); 1516sb.AppendLine(" @_uncached_property"); 1517sb.AppendLine(" def handle(self) -> Handle:"); 1518sb.AppendLine(" \"\"\"The underlying object reference handle.\"\"\""); 1519sb.AppendLine(" return self._handle"); 1522sbOptions.AppendLine(" \"\"\"Base resource options.\"\"\""); 1569sbConstructor.AppendLine(" self._handle = handle"); 1570sbConstructor.AppendLine(" self._client = client"); 1571sbConstructor.AppendLine(" if kwargs:"); 1572sbConstructor.AppendLine(" raise TypeError(f\"Unexpected keyword arguments: {list(kwargs.keys())}\")"); 1576sbConstructor.AppendLine(" super().__init__(handle, client, **kwargs)"); 1578sb.AppendLine(sbConstructor.ToString()); 1598sb.AppendLine(" @abc.abstractmethod");
PythonModuleBuilder.cs (36)
82output.AppendLine(Header); 83output.AppendLine(StandardImports); 89output.AppendLine(Utils); 95output.AppendLine("# ============================================================================"); 96output.AppendLine("# Enum Types"); 97output.AppendLine("# ============================================================================"); 106output.AppendLine("# ============================================================================"); 107output.AppendLine("# Method Parameters"); 108output.AppendLine("# ============================================================================"); 120output.AppendLine("# ============================================================================"); 121output.AppendLine("# DTO Classes (Data Transfer Objects)"); 122output.AppendLine("# ============================================================================"); 130output.AppendLine("# ============================================================================"); 131output.AppendLine("# Exported Values"); 132output.AppendLine("# ============================================================================"); 141output.AppendLine("# ============================================================================"); 142output.AppendLine("# Type Classes"); 143output.AppendLine("# ============================================================================"); 155output.AppendLine("# ============================================================================"); 156output.AppendLine("# Interface Classes"); 157output.AppendLine("# ============================================================================"); 169output.AppendLine("# ============================================================================"); 170output.AppendLine("# Builder Classes"); 171output.AppendLine("# ============================================================================"); 185output.AppendLine("# ============================================================================"); 186output.AppendLine("# Entry Point Functions"); 187output.AppendLine("# ============================================================================"); 194output.AppendLine("# ============================================================================"); 195output.AppendLine("# Connection Helper"); 196output.AppendLine("# ============================================================================"); 198output.AppendLine(ConnectionHelperCode); 205output.AppendLine("# ============================================================================"); 206output.AppendLine("# Handle Registrations"); 207output.AppendLine("# ============================================================================"); 209output.AppendLine("_register_handle_wrapper(\"Aspire.Hosting/Aspire.Hosting.ApplicationModel.ReferenceExpression\", lambda handle, _: ReferenceExpression(handle))"); 210output.AppendLine("_register_handle_wrapper(\"System.Private.CoreLib/System.Threading.CancellationToken\", CancellationToken)");
Aspire.Hosting.EntityFrameworkCore (16)
EFCoreOperationExecutor.cs (8)
411dataBuilder.AppendLine(normalizedContent); 445captureBuilder?.AppendLine(normalizedContent); 657summary.AppendLine("**Migration History:**"); 661summary.AppendLine(line); 666summary.AppendLine("No migrations found."); 675summary.AppendLine("ℹ️ Unable to check for pending model changes."); 680summary.AppendLine("⚠️ Pending model changes detected. A new migration is needed."); 684summary.AppendLine("✅ No pending model changes.");
EFMigrationResourceBuilderExtensions.cs (8)
535sb.AppendLine("# Auto-generated by Aspire for EF Core migration bundle."); 536sb.Append("FROM ").AppendLine(baseImage); 540sb.AppendLine("WORKDIR C:\\app"); 541sb.Append("COPY ").Append(bundleFileName).AppendLine(" C:\\app\\efbundle.exe"); 544.AppendLine("%\""); 548sb.AppendLine("WORKDIR /app"); 549sb.Append("COPY --chmod=0755 ").Append(bundleFileName).AppendLine(" /app/efbundle"); 552.AppendLine("\"");
Aspire.Hosting.Kubernetes (25)
CertManagerExtensions.cs (19)
470stderr.AppendLine(line); 527stderr.AppendLine(line); 560sb.AppendLine("apiVersion: cert-manager.io/v1"); 561sb.AppendLine("kind: ClusterIssuer"); 562sb.AppendLine("metadata:"); 567sb.Append(" name: ").AppendLine(k8sIssuerName); 568sb.AppendLine("spec:"); 576sb.AppendLine(" acme:"); 577sb.Append(" server: ").AppendLine(server); 578sb.Append(" email: ").AppendLine(email); 579sb.AppendLine(" privateKeySecretRef:"); 580sb.Append(" name: ").Append(k8sIssuerName).AppendLine("-account-key"); 581sb.AppendLine(" solvers:"); 608sb.AppendLine(" - http01:"); 609sb.AppendLine(" gatewayHTTPRoute:"); 646sb.AppendLine(" parentRefs:"); 649sb.AppendLine(" - group: gateway.networking.k8s.io"); 650sb.AppendLine(" kind: Gateway"); 653sb.Append(" name: ").AppendLine(gateway.Name.ToKubernetesResourceName());
Deployment\HelmDeploymentEngine.cs (2)
467stderrBuilder.AppendLine(error); 691OnOutputData = output => stdoutBuilder.AppendLine(output),
Deployment\HelmVersionValidator.cs (2)
70onOutputData: line => stdout.AppendLine(line), 71onErrorData: line => stderr.AppendLine(line),
KubernetesHelmChartExtensions.cs (2)
355stderrBuilder.AppendLine(error); 429stderrBuilder.AppendLine(error);
Aspire.Hosting.Radius (4)
Publishing\RadCredentialRegisterStep.cs (1)
290stderr.AppendLine(redacted);
Publishing\RadiusDeploymentPipelineStep.cs (1)
183stderrBuilder.AppendLine(e.Data);
Publishing\SealedSecretApplyStep.cs (2)
911stdout.AppendLine(e.Data); 922stderr.AppendLine(e.Data);
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3595builder.AppendLine("```");
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
308batchBuilder.AppendLine(line);
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 81messageBuilder.AppendLine(additionalLinePrefix + line); 90messageBuilder.AppendLine(additionalLinePrefix + line);
Aspire.Hosting.Tests (2)
MSBuildTests.cs (2)
312output.AppendLine(e.Data); 1632output.AppendLine(e.Data);
Aspire.Hosting.TestUtilities (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 81messageBuilder.AppendLine(additionalLinePrefix + line); 90messageBuilder.AppendLine(additionalLinePrefix + line);
Aspire.Playground.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 81messageBuilder.AppendLine(additionalLinePrefix + line); 90messageBuilder.AppendLine(additionalLinePrefix + line);
Aspire.Templates.Tests (4)
TemplateTestsBase.cs (2)
133sb.AppendLine(CommentLineRegex().Replace(line, " ")); 137sb.AppendLine(line);
tests\Shared\TemplatesTesting\AspireProject.cs (2)
211output.AppendLine(logLine); 244output.AppendLine(line);
CodeStyleConfigFileGenerator (3)
Program.cs (3)
105result.AppendLine("# NOTE: Requires **VS2019 16.7** or later"); 109result.AppendLine("is_global = true"); 116result.AppendLine("global_level = -99");
Crossgen2Tasks (10)
RunReadyToRunCompiler.cs (10)
274result.AppendLine("/nologo"); 285result.AppendLine(_createPDBCommand); 290result.AppendLine("/MissingDependenciesOK"); 315result.AppendLine("-O"); 322result.AppendLine("--pdb"); 327result.AppendLine("--perfmap"); 355result.AppendLine(extraArg); 361result.AppendLine("--composite"); 365result.AppendLine("--inputbubble"); 375result.AppendLine(reference.ItemSpec);
csc (4)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (2)
84builder.AppendLine("Stack trace:"); 85builder.AppendLine(exception.StackTrace);
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
dotnet (10)
Commands\Reference\Add\ReferenceAddCommand.cs (1)
174sb.AppendLine(string.Format(CliStrings.ProjectNotCompatibleWithFrameworks, project.ProjectRootElement.FullPath));
Commands\Test\MTP\Terminal\AnsiTerminal.cs (2)
93_stringBuilder.AppendLine(value); 238_stringBuilder.AppendLine(moveCursor);
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (3)
1178builder.AppendLine(lines[i]); 1181builder.AppendLine(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.TestApplicationOutputTruncated, omitted)); 1185builder.AppendLine(lines[i]);
Commands\Test\MTP\TestApplication.cs (2)
1067builder.AppendLine(line); 1134messageBuilder.AppendLine(ex.ToString());
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\CompilerServerLogger.cs (2)
84builder.AppendLine("Stack trace:"); 85builder.AppendLine(exception.StackTrace);
dotnet-dev-certs (4)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-getdocument (4)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-openapi (4)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-sql-cache (4)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-svcutil-lib (96)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (5)
1619bb.AppendLine("Positions"); 1622bb.AppendLine(i + " " + _positions[i].symbol.ToString(NumberFormatInfo.InvariantInfo) + " " + _symbols.NameOf(_positions[i].symbol)); 1624bb.AppendLine("Followpos"); 1636bb.AppendLine("Transitions"); 1650bb.AppendLine(transitionTable[i][_symbols.Count] == 1 ? "+" : "");
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (2)
185sb.AppendLine("ClaimSet ["); 192sb.AppendLine(claim.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (17)
1414sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 1415sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString())); 1416sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", _includeTimestamp.ToString())); 1417sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString())); 1418sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", this.MessageSecurityVersion.ToString())); 1419sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString())); 1420sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString())); 1421sb.AppendLine("EndpointSupportingTokenParameters:"); 1422sb.AppendLine(" " + this.EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 1423sb.AppendLine("OptionalEndpointSupportingTokenParameters:"); 1424sb.AppendLine(" " + this.OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 1427sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none")); 1433sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction)); 1434sb.AppendLine(" " + this.OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 1439sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none")); 1445sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction)); 1446sb.AppendLine(" " + this.OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElementImporter.cs (7)
235sb.AppendLine(base.ToString()); 237sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageProtectionOrder: {0}", _messageProtectionOrder.ToString())); 238sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireSignatureConfirmation: {0}", _requireSignatureConfirmation.ToString())); 241sb.AppendLine(_initiatorTokenParameters.ToString().Trim().Replace("\n", "\n ")); 243sb.AppendLine("null"); 246sb.AppendLine(_recipientTokenParameters.ToString().Trim().Replace("\n", "\n ")); 248sb.AppendLine("null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (5)
184sb.AppendLine(base.ToString()); 186sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageProtectionOrder: {0}", _messageProtectionOrder.ToString())); 187sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireSignatureConfirmation: {0}", _requireSignatureConfirmation.ToString())); 190sb.AppendLine(_protectionTokenParameters.ToString().Trim().Replace("\n", "\n ")); 192sb.AppendLine("null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (6)
1686stringBuilder.AppendLine(string.Format(SRServiceModel.UnImportedAssertionList, CreateXPathString(item))); 2017warningMsg.AppendLine(warningMessage); 2021warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, xPath)); 2028warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, SRServiceModel.XPathUnavailable)); 2089warningMsg.AppendLine(string.Format(SRServiceModel.UnableToFindPolicyWithId, policyRef)); 2090warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, xPath));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
593sb.AppendLine(base.ToString()); 595sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "TokenType: {0}", _tokenType == null ? "null" : _tokenType)); 596sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString())); 597sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture))); 598sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", _issuerAddress == null ? "null" : _issuerAddress.ToString())); 599sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", _issuerMetadataAddress == null ? "null" : _issuerMetadataAddress.ToString())); 600sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", _defaultMessageSecurityVersion == null ? "null" : _defaultMessageSecurityVersion.ToString())); 601sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", _useStrTransform.ToString())); 605sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding: null")); 609sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding:")); 613sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture))); 614sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n ")); 620sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none")); 624sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:")); 627sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", _claimTypeRequirements[i].ClaimType, _claimTypeRequirements[i].IsOptional));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (5)
163sb.AppendLine(base.ToString()); 165sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", _requireCancellation.ToString())); 168sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "BootstrapSecurityBindingElement: null")); 172sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "BootstrapSecurityBindingElement:")); 173sb.AppendLine(" " + this.BootstrapSecurityBindingElement.ToString().Trim().Replace("\n", "\n "));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (1)
95sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (4)
229sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 233sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyName: {0}", propertyName)); 234sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyValue: {0}", propertyValue)); 235sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "---"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SslSecurityTokenParameters.cs (2)
109sb.AppendLine(base.ToString()); 111sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", this.RequireCancellation.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SspiSecurityTokenParameters.cs (1)
88sb.AppendLine(base.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
116sb.AppendLine("No endorsing tokens."); 120sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture))); 121sb.AppendLine(" " + _endorsing[k].ToString().Trim().Replace("\n", "\n ")); 125sb.AppendLine("No signed tokens."); 129sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture))); 130sb.AppendLine(" " + _signed[k].ToString().Trim().Replace("\n", "\n ")); 134sb.AppendLine("No signed encrypted tokens."); 138sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture))); 139sb.AppendLine(" " + _signedEncrypted[k].ToString().Trim().Replace("\n", "\n ")); 143sb.AppendLine("No signed endorsing tokens."); 147sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture))); 148sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
80sb.AppendLine(base.ToString());
HelpGenerator.cs (7)
33s_helpBuilder.AppendLine(SR.HelpUsage1); 35s_helpBuilder.AppendLine(SR.HelpUsage2); 95s_helpBuilder.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", syntax)); 96s_helpBuilder.AppendLine(paragraphHelper.AddIndentation(string.Format(CultureInfo.InvariantCulture, " {0}", explanation), indentLength: 4)); 186s_helpBuilder.AppendLine(paragraphHelper.AddIndentation(optionHelp, helpTextIndent)); 242s_helpBuilder.AppendLine(new string(' ', _nameStart) + _name); 253s_helpBuilder.AppendLine(SR.HelpOptions);
Shared\Utilities\ProcessRunner.cs (2)
96errorTextBldr.AppendLine(e.Data); 104outputTextBldr.AppendLine(e.Data);
ToolConsole.cs (4)
41toolError.AppendLine(Utils.GetExceptionMessage(ex)); 45toolError.AppendLine(string.Format(SR.WrnWSMExFailedFormat, me.ServiceUri?.AbsoluteUri)); 47toolError.AppendLine(Utils.GetExceptionMessage(me.WSMexException)); 53toolError.AppendLine(string.Format(SR.MoreHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation));
dotnet-svcutil-lib.Tests (1)
TestLogger.cs (1)
42this.logBuilder.AppendLine(message);
dotnet-user-jwts (13)
Helpers\ConsoleTable.cs (5)
96builder.AppendLine(rowDivider); 97builder.AppendLine(columnHeaders); 103stringBuilder.AppendLine(divider); 127stringBuilder.AppendLine(outputRow); 129stringBuilder.AppendLine(divider);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
95outputBuilder.AppendLine(d.Data); 102errorBuilder.AppendLine(d.Data); 179outputBuilder.AppendLine(d.Data); 186errorBuilder.AppendLine(d.Data);
dotnet-user-secrets (8)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
95outputBuilder.AppendLine(d.Data); 102errorBuilder.AppendLine(d.Data); 179outputBuilder.AppendLine(d.Data); 186errorBuilder.AppendLine(d.Data);
EventSourceGenerator (8)
EventSourceGenerator.Emitter.cs (8)
28sb.AppendLine(@"// <auto-generated/>"); 30sb.AppendLine("using System;"); 40sb.AppendLine($@" 45sb.AppendLine($@" 56sb.AppendLine($@" 61sb.AppendLine($@" 68sb.AppendLine($@" 83sb.AppendLine(@"];");
GenerateAnalyzerNuspec (25)
Program.cs (25)
44result.AppendLine(@"<?xml version=""1.0""?>"); 45result.AppendLine(@"<package xmlns=""http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"">"); 46result.AppendLine(@" <metadata>"); 86result.AppendLine(@" <dependencies>"); 93result.AppendLine(@" </dependencies>"); 96result.AppendLine(@" </metadata>"); 98result.AppendLine(@" <files>"); 99result.AppendLine(@" $CommonFileElements$"); 151result.AppendLine(FileElement(assemblyPathForNuspec, target)); 164result.AppendLine(FileElement(resourceAssemblyPathForNuspec, targetForNuspec)); 175result.AppendLine(FileElement(fileWithPath, "buildTransitive")); 182result.AppendLine(FileElement(readmeFile, directoryName)); 194result.AppendLine(FileElement(fileWithPath, Path.Combine("lib", tfm))); 218result.AppendLine(FileElement(fileWithPath, targetPath)); 224result.AppendLine(FileElement(Path.Combine(assetsDir, "Install.ps1"), "tools")); 225result.AppendLine(FileElement(Path.Combine(assetsDir, "Uninstall.ps1"), "tools")); 234result.AppendLine(FileElement(Path.Combine(rulesetsDir, ruleset), "rulesets")); 246result.AppendLine(FileElement(Path.Combine(directory, editorconfig), $"editorconfig\\{directoryName}")); 257result.AppendLine(FileElement(Path.Combine(globalAnalyzerConfigsDir, globalconfig), $"buildTransitive\\config")); 271result.AppendLine(FileElement(fileWithPath, "documentation")); 280result.AppendLine(FileElement(fileWithPath, "documentation")); 289result.AppendLine(FileElement(fileWithPath, "documentation")); 293result.AppendLine(FileElement(Path.Combine(assetsDir, "ThirdPartyNotices.txt"), "")); 294result.AppendLine(@" </files>"); 296result.AppendLine(@"</package>");
GenerateDocumentationAndConfigFiles (23)
Program.cs (16)
593builder.AppendLine(description); 596builder.AppendLine("|Item|Value|"); 597builder.AppendLine("|-|-|"); 603builder.AppendLine("---"); 830builder.AppendLine(line); 1121result.AppendLine(@"<?xml version=""1.0""?>"); 1127result.AppendLine("</RuleSet>"); 1137result.AppendLine(" </Rules>"); 1186result.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 1191result.AppendLine(@"# Code files"); 1192result.AppendLine(@"[*.{cs,vb}]"); 1422result.AppendLine(@"# NOTE: Requires **VS2019 16.7** or later"); 1427result.AppendLine($@"is_global = true"); 1782builder.AppendLine($""" 1792builder.AppendLine($@" </ItemGroup>"); 1820builder.AppendLine($@" </PropertyGroup>");
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (1)
42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 182sb.AppendLine($" Allocation stack trace:");
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later");
GetDocument.Insider (4)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
ilasm (1)
Program.cs (1)
79contentBuilder.AppendLine(File.ReadAllText(file));
ILCompiler.RyuJit (1)
Compiler\DependencyAnalysis\MethodCodeNode.cs (1)
351sb.AppendLine(_node.Method.ToString());
ILCompiler.TypeSystem (7)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\MethodILDebugView.cs (7)
30sb.AppendLine(owningMethod.ToString()); 56sb.AppendLine(") cil managed"); 58sb.AppendLine("{"); 80sb.AppendLine(","); 90sb.AppendLine(")"); 133sb.AppendLine(disasm.GetNextInstruction()); 136sb.AppendLine("}");
illink (1)
ILLink.Tasks (27)
LinkTask.cs (27)
301args.Append(enabled ? "--enable-opt " : "--disable-opt ").AppendLine(opt); 306args.Append(enabled ? "--enable-opt " : "--disable-opt ").Append(opt).Append(' ').AppendLine(assembly); 316args.Append("-x ").AppendLine(Quote(rootFile.ItemSpec)); 336args.AppendLine("--singlewarn"); 338args.AppendLine("--singlewarn-"); 348args.Append("--trim-mode ").AppendLine(trimMode); 357args.Append("--action ").AppendLine(defaultAction); 370args.Append("-reference ").AppendLine(Quote(assemblyPath)); 391args.Append(' ').AppendLine(Quote(assemblyName)); 415args.Append("--singlewarn ").AppendLine(Quote(assemblyName)); 417args.Append("--singlewarn- ").AppendLine(Quote(assemblyName)); 433args.Append("-reference ").AppendLine(Quote(assemblyPath)); 438args.Append("--action skip ").AppendLine(Quote(assemblyName)); 443args.Append("-out ").AppendLine(Quote(OutputDirectory.ItemSpec)); 446args.Append("--nowarn ").AppendLine(Quote(NoWarn)); 449args.Append("--warn ").AppendLine(Quote(Warn)); 457args.Append("--warnaserror ").AppendLine(Quote(WarningsAsErrors)); 460args.Append("--warnaserror- ").AppendLine(Quote(WarningsNotAsErrors)); 489args.Append("--custom-data ").Append(' ').Append(key).Append('=').AppendLine(Quote(value)); 501args.Append("--feature ").Append(feature).Append(' ').AppendLine(featureValue); 508args.Append("--keep-metadata ").AppendLine(Quote(metadata.ItemSpec)); 512args.AppendLine("-b"); 515args.AppendLine("--preserve-symbol-paths"); 538args.AppendLine(Quote(customStepString)); 543args.AppendLine(ExtraArgs); 546args.AppendLine("--dump-dependencies"); 550args.Append("--dependencies-file-format ").AppendLine(DependenciesFileFormat);
Infrastructure.Common (8)
JsonSerializer.cs (2)
19sb.AppendLine("{"); 26sb.AppendLine("\n}");
xunit\WcfTestCase.cs (6)
73etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Begins---", DisplayName)); 78etwOutput.AppendLine(string.Format(DisplayName + ": " + item.Message, item.Payload.ToArray())); 85etwOutput.AppendLine(String.Format("ETW message encountered FormatException '{0}' using DisplayName '{1}', format '{2}', and '{3}' payload items", 88etwOutput.AppendLine(string.Format("ETW message: {0}, payload below was received", item.Message)); 93etwOutput.AppendLine(string.Format("{0}: {1}", DisplayName, payloadPara.ToString())); 98etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Ends---", DisplayName));
Infrastructure.Tests (89)
ExtractTestPartitions\MockAssemblyBuilder.cs (69)
24code.AppendLine("using System;"); 26code.AppendLine("[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]"); 27code.AppendLine("public class TraitAttribute : Attribute"); 28code.AppendLine("{"); 29code.AppendLine(" public TraitAttribute(string name, string value) { Name = name; Value = value; }"); 30code.AppendLine(" public string Name { get; }"); 31code.AppendLine(" public string Value { get; }"); 32code.AppendLine("}"); 39code.AppendLine("{"); 40code.AppendLine(" public void TestMethod() { }"); 41code.AppendLine("}"); 56code.AppendLine("using System;"); 58code.AppendLine("[AttributeUsage(AttributeTargets.Class)]"); 59code.AppendLine("public class CollectionAttribute : Attribute"); 60code.AppendLine("{"); 61code.AppendLine(" public CollectionAttribute(string name) { Name = name; }"); 62code.AppendLine(" public string Name { get; }"); 63code.AppendLine("}"); 70code.AppendLine("{"); 71code.AppendLine(" public void TestMethod() { }"); 72code.AppendLine("}"); 88code.AppendLine("using System;"); 90code.AppendLine("[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]"); 91code.AppendLine("public class TraitAttribute : Attribute"); 92code.AppendLine("{"); 93code.AppendLine(" public TraitAttribute(string name, string value) { Name = name; Value = value; }"); 94code.AppendLine(" public string Name { get; }"); 95code.AppendLine(" public string Value { get; }"); 96code.AppendLine("}"); 98code.AppendLine("[AttributeUsage(AttributeTargets.Class)]"); 99code.AppendLine("public class CollectionAttribute : Attribute"); 100code.AppendLine("{"); 101code.AppendLine(" public CollectionAttribute(string name) { Name = name; }"); 102code.AppendLine(" public string Name { get; }"); 103code.AppendLine("}"); 110code.AppendLine("{"); 111code.AppendLine(" public void TestMethod() { }"); 112code.AppendLine("}"); 120code.AppendLine("{"); 121code.AppendLine(" public void TestMethod() { }"); 122code.AppendLine("}"); 135code.AppendLine("using System;"); 143code.AppendLine("{"); 144code.AppendLine(" public void TestMethod() { }"); 145code.AppendLine("}"); 171code.AppendLine("using System;"); 173code.AppendLine("[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]"); 174code.AppendLine("public class TraitAttribute : Attribute"); 175code.AppendLine("{"); 176code.AppendLine(" public TraitAttribute(string name, string value) { Name = name; Value = value; }"); 177code.AppendLine(" public string Name { get; }"); 178code.AppendLine(" public string Value { get; }"); 179code.AppendLine("}"); 185code.AppendLine("{"); 188code.AppendLine(" {"); 189code.AppendLine(" public void TestMethod() { }"); 190code.AppendLine(" }"); 191code.AppendLine("}"); 206code.AppendLine("using System;"); 208code.AppendLine("[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]"); 209code.AppendLine("public class TraitAttribute : Attribute"); 210code.AppendLine("{"); 211code.AppendLine(" public TraitAttribute(string name, string value) { Name = name; Value = value; }"); 212code.AppendLine(" public string Name { get; }"); 213code.AppendLine(" public string Value { get; }"); 214code.AppendLine("}"); 221code.AppendLine("{"); 222code.AppendLine(" public void TestMethod() { }"); 223code.AppendLine("}");
tools\GenerateCITimeline\TimelineRenderer.cs (20)
299sb.AppendLine("<table>"); 300sb.AppendLine("<tr><th>Metric</th><th>Value</th></tr>"); 308sb.AppendLine("</table>"); 335sb.AppendLine("<table>"); 336sb.AppendLine("<tr><th>#</th><th>Job</th><th>Total</th><th>Deps</th><th>Queue</th><th>Run</th></tr>"); 353sb.AppendLine("</table>"); 379sb.AppendLine("<table>"); 380sb.AppendLine("<tr><th>Job</th><th>Queue</th></tr>"); 390sb.AppendLine("</table>"); 425sb.AppendLine("<table>"); 426sb.AppendLine("<tr><th>Job</th><th>Total</th><th>Deps</th><th>Queue</th><th>Run</th></tr>"); 452sb.AppendLine("</table>"); 522sb.AppendLine("<h2>⏱️ CI Timeline</h2>"); 534sb.AppendLine("<details open>"); 539sb.AppendLine("</details>"); 545sb.AppendLine("<details open>"); 546sb.AppendLine("<summary><b>⏳ Queue hotspots</b> — longest queue waits</summary>"); 550sb.AppendLine("</details>"); 554sb.AppendLine("<details>"); 564sb.AppendLine("</details>");
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
MessageSinkTestOutputHelper.cs (1)
36_sb.AppendLine(message);
TestCommand.cs (1)
77outputBuilder.AppendLine(args.Data);
Microsoft.AspNetCore.Components.AI.SourceGenerators (146)
ToolBlockEmitter.cs (146)
18sb.AppendLine("// <auto-generated/>"); 19sb.AppendLine("#nullable enable"); 24sb.AppendLine($"namespace {candidate.Namespace};"); 30sb.AppendLine($"[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]"); 31sb.AppendLine($"internal sealed class {className}"); 32sb.AppendLine($" : global::Microsoft.AspNetCore.Components.AI.ContentBlockHandler<{blockType}>"); 33sb.AppendLine("{"); 34sb.AppendLine($" public override global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}> Handle("); 35sb.AppendLine($" global::Microsoft.AspNetCore.Components.AI.BlockMappingContext context,"); 36sb.AppendLine($" {blockType} state)"); 37sb.AppendLine(" {"); 38sb.AppendLine(" if (state.Result is not null)"); 39sb.AppendLine(" {"); 40sb.AppendLine($" return global::Microsoft.AspNetCore.Components.AI"); 41sb.AppendLine($" .BlockMappingResult<{blockType}>.Complete();"); 42sb.AppendLine(" }"); 44sb.AppendLine(" var shouldEmit = false;"); 48sb.AppendLine(" if (state.Call is null)"); 49sb.AppendLine(" {"); 50sb.AppendLine(" global::Microsoft.Extensions.AI.FunctionCallContent? callContent = null;"); 51sb.AppendLine(" foreach (var content in context.UnhandledContents)"); 52sb.AppendLine(" {"); 53sb.AppendLine(" if (content is global::Microsoft.Extensions.AI.FunctionCallContent fc"); 54sb.AppendLine($" && fc.Name == \"{EscapeString(candidate.ToolName)}\")"); 55sb.AppendLine(" {"); 56sb.AppendLine(" callContent = fc;"); 57sb.AppendLine(" break;"); 58sb.AppendLine(" }"); 59sb.AppendLine(" }"); 61sb.AppendLine(" if (callContent is not null)"); 62sb.AppendLine(" {"); 63sb.AppendLine(" context.MarkHandled(callContent);"); 64sb.AppendLine(" state.Call = callContent;"); 65sb.AppendLine(" shouldEmit = true;"); 71sb.AppendLine(" if (callContent.Arguments is { } args)"); 72sb.AppendLine(" {"); 78sb.AppendLine($" if (args.TryGetValue(\"{EscapeString(param.ArgumentKey)}\", out var {varName}) && {varName} is not null)"); 79sb.AppendLine(" {"); 80sb.AppendLine($" {member} = {varName} switch"); 81sb.AppendLine(" {"); 83sb.AppendLine(" };"); 84sb.AppendLine(" }"); 87sb.AppendLine(" }"); 90sb.AppendLine(" }"); 91sb.AppendLine(" }"); 95sb.AppendLine(" global::Microsoft.Extensions.AI.FunctionResultContent? resultContent = null;"); 96sb.AppendLine(" foreach (var content in context.UnhandledContents)"); 97sb.AppendLine(" {"); 98sb.AppendLine(" if (content is global::Microsoft.Extensions.AI.FunctionResultContent frc"); 99sb.AppendLine(" && state.Call is not null"); 100sb.AppendLine(" && frc.CallId == state.Call.CallId)"); 101sb.AppendLine(" {"); 102sb.AppendLine(" resultContent = frc;"); 103sb.AppendLine(" break;"); 104sb.AppendLine(" }"); 105sb.AppendLine(" }"); 107sb.AppendLine(" if (resultContent is not null)"); 108sb.AppendLine(" {"); 109sb.AppendLine(" context.MarkHandled(resultContent);"); 110sb.AppendLine(" state.Result = resultContent;"); 116sb.AppendLine(" if (resultContent.Result is not null)"); 117sb.AppendLine(" {"); 125sb.AppendLine($" var {varName} = resultContent.Result;"); 126sb.AppendLine($" {member} = {varName} switch"); 127sb.AppendLine(" {"); 129sb.AppendLine(" };"); 134sb.AppendLine(" var __resultObj = resultContent.Result switch"); 135sb.AppendLine(" {"); 136sb.AppendLine(" global::System.Text.Json.JsonElement __element => __element,"); 137sb.AppendLine(" string __json => global::System.Text.Json.JsonSerializer.Deserialize<global::System.Text.Json.JsonElement>(__json),"); 138sb.AppendLine(" _ => global::System.Text.Json.JsonSerializer.SerializeToElement(resultContent.Result),"); 139sb.AppendLine(" };"); 141sb.AppendLine(" if (__resultObj.ValueKind == global::System.Text.Json.JsonValueKind.Object)"); 142sb.AppendLine(" {"); 148sb.AppendLine($" if (__resultObj.TryGetProperty(\"{EscapeString(rp.ResultKey)}\", out var {varName}))"); 149sb.AppendLine(" {"); 150sb.AppendLine($" {member} = {varName} switch"); 151sb.AppendLine(" {"); 153sb.AppendLine(" };"); 154sb.AppendLine(" }"); 157sb.AppendLine(" }"); 160sb.AppendLine(" }"); 163sb.AppendLine(" return shouldEmit"); 164sb.AppendLine($" ? global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Emit(state, state)"); 165sb.AppendLine($" : global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Complete();"); 166sb.AppendLine(" }"); 168sb.AppendLine(" return shouldEmit"); 169sb.AppendLine($" ? global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Emit(state, state)"); 170sb.AppendLine($" : global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Pass();"); 171sb.AppendLine(" }"); 172sb.AppendLine("}"); 202sb.AppendLine("// <auto-generated/>"); 203sb.AppendLine("#nullable enable"); 205sb.AppendLine("namespace Microsoft.AspNetCore.Components.AI;"); 207sb.AppendLine("[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]"); 208sb.AppendLine("internal static class GeneratedToolBlockRegistrations"); 209sb.AppendLine("{"); 210sb.AppendLine(" internal static void AddGeneratedToolBlocks(this UIAgentOptions options)"); 211sb.AppendLine(" {"); 219sb.AppendLine($" options.AddBlockHandler(new {fullClass}());"); 222sb.AppendLine(" }"); 223sb.AppendLine("}"); 266sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetString()!,"); 267sb.AppendLine($" string __s => __s,"); 268sb.AppendLine($" _ => (string){varName}!"); 271sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt32(),"); 272sb.AppendLine($" _ => global::System.Convert.ToInt32({varName})"); 275sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt64(),"); 276sb.AppendLine($" _ => global::System.Convert.ToInt64({varName})"); 279sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDouble(),"); 280sb.AppendLine($" _ => global::System.Convert.ToDouble({varName})"); 283sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetSingle(),"); 284sb.AppendLine($" _ => global::System.Convert.ToSingle({varName})"); 287sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDecimal(),"); 288sb.AppendLine($" _ => global::System.Convert.ToDecimal({varName})"); 291sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetBoolean(),"); 292sb.AppendLine($" _ => global::System.Convert.ToBoolean({varName})"); 295sb.AppendLine($" global::System.Text.Json.JsonElement __je => global::System.Text.Json.JsonSerializer.Deserialize<{param.TypeName}>(__je)!,"); 296sb.AppendLine($" _ => ({param.TypeName}){varName}!"); 312sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetString()!,"); 313sb.AppendLine($" string __s => __s,"); 314sb.AppendLine($" _ => {varName}!.ToString()!"); 317sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt32(),"); 318sb.AppendLine($" _ => global::System.Convert.ToInt32({varName})"); 321sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt64(),"); 322sb.AppendLine($" _ => global::System.Convert.ToInt64({varName})"); 325sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDouble(),"); 326sb.AppendLine($" _ => global::System.Convert.ToDouble({varName})"); 329sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetSingle(),"); 330sb.AppendLine($" _ => global::System.Convert.ToSingle({varName})"); 333sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDecimal(),"); 334sb.AppendLine($" _ => global::System.Convert.ToDecimal({varName})"); 337sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetBoolean(),"); 338sb.AppendLine($" _ => global::System.Convert.ToBoolean({varName})"); 341sb.AppendLine($" global::System.Text.Json.JsonElement __je => global::System.Text.Json.JsonSerializer.Deserialize<{prop.TypeName}>(__je)!,"); 342sb.AppendLine($" string __json => global::System.Text.Json.JsonSerializer.Deserialize<{prop.TypeName}>(__json)!,"); 343sb.AppendLine($" _ => ({prop.TypeName}){varName}!"); 354sb.AppendLine($" global::System.Text.Json.JsonElement {{ ValueKind: global::System.Text.Json.JsonValueKind.String }} => {varName}.GetString()!,"); 355sb.AppendLine($" _ => {varName}.GetRawText()"); 358sb.AppendLine($" _ => {varName}.GetInt32()"); 361sb.AppendLine($" _ => {varName}.GetInt64()"); 364sb.AppendLine($" _ => {varName}.GetDouble()"); 367sb.AppendLine($" _ => {varName}.GetSingle()"); 370sb.AppendLine($" _ => {varName}.GetDecimal()"); 373sb.AppendLine($" _ => {varName}.GetBoolean()"); 376sb.AppendLine($" _ => global::System.Text.Json.JsonSerializer.Deserialize<{prop.TypeName}>({varName})!");
Microsoft.AspNetCore.Components.Testing (3)
Infrastructure\ServerInstance.cs (3)
339buffer.AppendLine(line); 357sb.AppendLine("[STDOUT]"); 365sb.AppendLine("[STDERR]");
Microsoft.AspNetCore.Components.Testing.Generators (64)
StartupHookGenerator.cs (19)
172sb.AppendLine("// <auto-generated/>"); 173sb.AppendLine("#nullable enable"); 175sb.AppendLine("namespace Microsoft.AspNetCore.Components.Testing.Generated;"); 177sb.AppendLine("internal sealed class ServiceOverrideResolver : global::Microsoft.AspNetCore.Components.Testing.Infrastructure.IE2EServiceOverrideResolver"); 178sb.AppendLine("{"); 179sb.AppendLine(" public global::System.Action<global::Microsoft.Extensions.DependencyInjection.IServiceCollection>? TryResolve("); 180sb.AppendLine(" string assemblyQualifiedTypeName, string methodName)"); 181sb.AppendLine(" {"); 193sb.AppendLine($" if (assemblyQualifiedTypeName.StartsWith(\"{typePrefix}\", global::System.StringComparison.Ordinal))"); 194sb.AppendLine(" {"); 195sb.AppendLine(" return methodName switch"); 196sb.AppendLine(" {"); 200sb.AppendLine($" \"{callsite.MethodName}\" => {callsite.TypeFullyQualifiedName}.{callsite.MethodName},"); 203sb.AppendLine(" _ => null,"); 204sb.AppendLine(" };"); 205sb.AppendLine(" }"); 210sb.AppendLine(" return null;"); 211sb.AppendLine(" }"); 212sb.AppendLine("}");
UITestGenerator.cs (45)
64sb.AppendLine("// <auto-generated/>"); 65sb.AppendLine("#nullable enable"); 66sb.AppendLine("using System;"); 67sb.AppendLine("using System.Collections.Generic;"); 68sb.AppendLine("using System.IO;"); 69sb.AppendLine("using Microsoft.AspNetCore.Components.Testing.Infrastructure;"); 70sb.AppendLine("using Microsoft.VisualStudio.TestTools.UnitTesting;"); 75sb.Append("namespace ").Append(target.Namespace).AppendLine(";"); 80sb.Append("partial class ").Append(target.Name).AppendLine(" : ITestArtifactManager"); 81sb.AppendLine("{"); 82sb.AppendLine(" private bool __uiTestCleanupFailed;"); 84sb.AppendLine(" /// <summary>The MSTest test context for the current test (injected by MSTest).</summary>"); 85sb.AppendLine(" public TestContext TestContext { get; set; } = null!;"); 87sb.AppendLine(" bool ITestArtifactManager.ShouldSaveArtifacts()"); 88sb.AppendLine(" => __uiTestCleanupFailed ||"); 89sb.AppendLine(" TestContext.CurrentTestOutcome is not (UnitTestOutcome.Passed or UnitTestOutcome.Inconclusive);"); 91sb.AppendLine(" string ITestArtifactManager.CreateArtifactDirectory(string category)"); 92sb.AppendLine(" => Path.Combine("); 93sb.AppendLine(" TestArtifactDirectory.GetPath(TestContext.TestName ?? \"unknown\"),"); 94sb.AppendLine(" category,"); 95sb.AppendLine(" Guid.NewGuid().ToString(\"N\"));"); 97sb.AppendLine(" void ITestArtifactManager.AddArtifacts(IReadOnlyList<string> paths)"); 98sb.AppendLine(" {"); 99sb.AppendLine(" foreach (var path in paths)"); 100sb.AppendLine(" {"); 101sb.AppendLine(" TestContext.AddResultFile(path);"); 102sb.AppendLine(" }"); 103sb.AppendLine(" }"); 105sb.AppendLine(" [TestInitialize]"); 106sb.AppendLine(" public global::System.Threading.Tasks.Task __UITestInitializeAsync()"); 107sb.AppendLine(" => InitializeCoreAsync();"); 109sb.AppendLine(" [TestCleanup]"); 110sb.AppendLine(" public async global::System.Threading.Tasks.Task __UITestCleanupAsync()"); 111sb.AppendLine(" {"); 112sb.AppendLine(" try"); 113sb.AppendLine(" {"); 114sb.AppendLine(" await CleanupCoreAsync().ConfigureAwait(false);"); 115sb.AppendLine(" }"); 116sb.AppendLine(" catch"); 117sb.AppendLine(" {"); 118sb.AppendLine(" __uiTestCleanupFailed = true;"); 119sb.AppendLine(" throw;"); 120sb.AppendLine(" }"); 121sb.AppendLine(" }"); 122sb.AppendLine("}");
Microsoft.AspNetCore.Diagnostics (4)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (4)
236sb.AppendLine(errorContext.Exception.ToString()); 238sb.AppendLine("HEADERS"); 239sb.AppendLine("======="); 242sb.AppendLine(FormattableString.Invariant($"{pair.Key}: {pair.Value}"));
Microsoft.AspNetCore.Http.Extensions (17)
RequestDelegateFactory.cs (15)
2909errorMessage.AppendLine("Failure to infer one or more parameters."); 2910errorMessage.AppendLine("Below is the list of parameters that we found: "); 2912errorMessage.AppendLine(FormattableString.Invariant($"{"Parameter",-20}| {"Source",-30}")); 2913errorMessage.AppendLine("---------------------------------------------------------------------------------"); 2918errorMessage.AppendLine("Did you mean to register the \"UNKNOWN\" parameters as a Service?") 2926errorMessage.AppendLine("Body was inferred but the method does not allow inferred body parameters."); 2927errorMessage.AppendLine("Below is the list of parameters that we found: "); 2929errorMessage.AppendLine(FormattableString.Invariant($"{"Parameter",-20}| {"Source",-30}")); 2930errorMessage.AppendLine("---------------------------------------------------------------------------------"); 2935errorMessage.AppendLine("Did you mean to register the \"Body (Inferred)\" parameter(s) as a Service or apply the [FromServices] or [FromBody] attribute?") 2943errorMessage.AppendLine("An action cannot use both form and JSON body parameters."); 2944errorMessage.AppendLine("Below is the list of parameters that we found: "); 2946errorMessage.AppendLine(FormattableString.Invariant($"{"Parameter",-20}| {"Source",-30}")); 2947errorMessage.AppendLine("---------------------------------------------------------------------------------"); 2958errorMessage.AppendLine(FormattableString.Invariant($"{kv.Key,-19} | {kv.Value,-15}"));
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (2)
196stringBuilder.AppendLine("but found"); 292stringBuilder.AppendLine("but found");
Microsoft.AspNetCore.InternalTesting (3)
Logging\XunitLoggerProvider.cs (3)
78messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 83messageBuilder.AppendLine(additionalLinePrefix + line); 92messageBuilder.AppendLine(additionalLinePrefix + line);
Microsoft.AspNetCore.Mvc.Abstractions (2)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (2)
196stringBuilder.AppendLine("but found"); 292stringBuilder.AppendLine("but found");
Microsoft.AspNetCore.OpenApi (2)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (2)
196stringBuilder.AppendLine("but found"); 292stringBuilder.AppendLine("but found");
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\StringExtensions.cs (1)
75builder.AppendLine(line.Substring(minLeadingWhitespace));
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 182sb.AppendLine($" Allocation stack trace:");
Microsoft.AspNetCore.Routing (5)
EndpointDataSource.cs (1)
138sb.AppendLine(endpoint.DisplayName);
EndpointNameAddressScheme.cs (3)
76builder.AppendLine(Resources.DuplicateEndpointNameHeader); 83builder.AppendLine(Resources.FormatDuplicateEndpointNameEntry(group.Key)); 87builder.AppendLine(endpoint.DisplayName);
Tree\LinkGenerationDecisionTree.cs (1)
249sb.AppendLine(")");
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.IntegrationTesting (2)
src\aspnetcore\src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (3)
HubClientProxyGenerator.Emitter.cs (3)
53registerProviderBody.AppendLine($@" 182registrationMethodBody.AppendLine($@" 186registrationMethodBody.AppendLine(@"
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamStringReader.cs (1)
27private void OnReceivedLine(string line) => _stringBuilder.AppendLine(line);
Microsoft.Build (9)
Evaluation\Profiler\EvaluationLocationMarkdownPrettyPrinter.cs (1)
23stringBuilder.AppendLine("---|---|---|---|---:|---|---:|---:|---:|---:|---:|---:|---");
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (1)
97stringBuilder.AppendLine(string.Join(separator,
Graph\GraphBuilder.cs (1)
663.AppendLine(" ->");
Graph\ProjectGraph.cs (3)
538sb.AppendLine("digraph g") 539.AppendLine("{") 540.AppendLine("\tnode [shape=box]");
Logging\TerminalLogger\Terminal.cs (1)
162_outputBuilder.AppendLine(text);
src\msbuild\src\Shared\TaskLoggingHelper.cs (2)
1662builder.AppendLine(currentException.Message); 1665builder.AppendLine(currentException.StackTrace);
Microsoft.Build.Framework (1)
TaskParameterEventArgs.cs (1)
114sb.AppendLine(item.ToString());
Microsoft.Build.Tasks.CodeAnalysis (6)
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (4)
70builder.AppendLine("is_global = true"); 78.AppendLine(prop.GetMetadata("Value")); 90builder.AppendLine("]"); 103.AppendLine(item.GetMetadata(metadataName));
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (2)
84builder.AppendLine("Stack trace:"); 85builder.AppendLine(exception.StackTrace);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\ResolveAssemblyReference.cs (1)
1536log.AppendLine().Append(Strings.EightSpaces).AppendLine(dependeeReference.FullPath);
FileIO\WriteLinesToFile.cs (1)
102buffer.AppendLine(line.ItemSpec);
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\TaskLoggingHelper.cs (2)
1662builder.AppendLine(currentException.Message); 1665builder.AppendLine(currentException.StackTrace);
Microsoft.CodeAnalysis (3)
Diagnostic\DiagnosticBag.cs (1)
283builder.AppendLine(diag.ToString());
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 182sb.AppendLine($" Allocation stack trace:");
Microsoft.CodeAnalysis.Analyzers (20)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (5)
381builder.AppendLine(entriesToAdd.First()); 444builder.AppendLine(ReleaseTrackingHelper.TableTitleNewRules); 446builder.AppendLine(ReleaseTrackingHelper.TableHeaderNewOrRemovedRulesLine1); 458builder.AppendLine(ReleaseTrackingHelper.TableTitleChangedRules); 460builder.AppendLine(ReleaseTrackingHelper.TableHeaderChangedRulesLine1);
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 182sb.AppendLine($" Allocation stack trace:"); 183sb.AppendLine($" {info.StackTrace}");
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 182sb.AppendLine($" Allocation stack trace:"); 183sb.AppendLine($" {info.StackTrace}");
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.CodeStyle (8)
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (2)
69sb.AppendLine(commentText.ToString()); 83sb.AppendLine(trimmedPart);
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 182sb.AppendLine($" Allocation stack trace:"); 183sb.AppendLine($" {info.StackTrace}");
Microsoft.CodeAnalysis.CSharp (26)
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (1)
83sb.AppendLine("User defined conversion analysis results:");
Binder\Semantics\Operators\BinaryOperatorOverloadResolutionResult.cs (4)
87sb.AppendLine("Overload resolution succeeded and chose " + this.Best.Signature.ToString()); 91sb.AppendLine("Overload resolution failed because of ambiguous possible best operators."); 95sb.AppendLine("Overload resolution failed because no operator was applicable."); 98sb.AppendLine("Detailed results:");
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (4)
87sb.AppendLine("Overload resolution succeeded and chose " + this.Best.Signature.ToString()); 91sb.AppendLine("Overload resolution failed because of ambiguous possible best operators."); 95sb.AppendLine("Overload resolution failed because no operator was applicable."); 98sb.AppendLine("Detailed results:");
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
365sb.AppendLine("Method type inference internal state"); 385sb.AppendLine("Dependencies are not yet calculated"); 390sb.AppendLine("dependency matrix (Not dependent / Direct / Indirect / Unknown):");
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (4)
1597sb.AppendLine("Overload resolution succeeded and chose " + this.ValidResult.Member.ToString()); 1601sb.AppendLine("Overload resolution failed because of ambiguous possible best methods."); 1605sb.AppendLine("Overload resolution failed (possibly) because type inference was unable to infer type parameters."); 1608sb.AppendLine("Detailed results:");
BoundTree\BoundDecisionDag.cs (1)
217result.AppendLine(state.GetDebuggerDisplay());
BoundTree\BoundNode_Source.cs (3)
515builder.AppendLine(s); 521builder.AppendLine(s); 527builder.AppendLine(s);
BoundTree\LengthBasedStringSwitchData.cs (3)
265builder.AppendLine("Length dispatch:"); 271builder.AppendLine("Char dispatches:"); 280builder.AppendLine("String dispatches:");
Compiler\DocumentationCommentCompiler.cs (1)
1418builder.AppendLine(message);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
83builder.AppendLine(kv.Key.Dump()); 85builder.AppendLine(kv.Value.Dump());
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
105textBuilder.AppendLine(trimmedLine);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
105textBuilder.AppendLine(trimmedLine);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 182sb.AppendLine($" Allocation stack trace:"); 183sb.AppendLine($" {info.StackTrace}");
Microsoft.CodeAnalysis.Features (7)
EmbeddedLanguages\DateAndTime\EmbeddedCompletionContext.cs (2)
134descriptionBuilder.AppendLine( 137descriptionBuilder.AppendLine(example);
Options\EditorConfig\EditorConfigFileGenerator.cs (4)
25editorconfig.AppendLine("root = true"); 31editorconfig.AppendLine("[*.cs]"); 36editorconfig.AppendLine("[*.vb]"); 78editorconfig.AppendLine(entry);
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
83sb.AppendLine(trimmedPart);
Microsoft.CodeAnalysis.NetAnalyzers (9)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
55builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 57builder.AppendLine($@"# {name}"); 58builder.AppendLine($@"# Description: {description}"); 60builder.AppendLine(@"# Code files"); 61builder.AppendLine(@"[*.{cs,vb}]"); 72builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 73builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 88builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 214builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.Razor.Compiler (5)
CSharp\DefaultUtf8WriteLiteralFeature.cs (5)
164sb.Append("namespace __Utf8Probe_").Append(i).AppendLine(" {"); 167sb.Append(" using ").Append(u).AppendLine(";"); 175sb.AppendLine(" using TModel = global::System.Object;"); 177sb.Append(" class __Probe__ : ").Append(info.BaseTypeName).AppendLine(" { }"); 178sb.AppendLine("}");
Microsoft.CodeAnalysis.ResxSourceGenerator (27)
AbstractResxGenerator.cs (12)
479strings.AppendLine($"{memberIndent}public const string @{identifier} = \"{name}\";"); 492strings.AppendLine($"{memberIndent}public static string @{identifier} => GetResourceString(\"{name}\"{defaultValue}){(needSuppression ? "!" : "")};"); 511strings.AppendLine($""" 517strings.AppendLine($"{memberIndent}Public Shared ReadOnly Property [{identifier}] As String"); 518strings.AppendLine($"{memberIndent} Get"); 519strings.AppendLine($"{memberIndent} Return GetResourceString(\"{name}\"{defaultValue})"); 520strings.AppendLine($"{memberIndent} End Get"); 521strings.AppendLine($"{memberIndent}End Property"); 803strings.AppendLine(line); 849strings.AppendLine($"{indent}public static string Format{resourceString.Name}({resourceString.GetMethodParameters(language, supportsNullable)})"); 852strings.AppendLine($@"{indent} => string.Format(Culture, GetResourceString(""{resourceString.Name}"", new[] {{ {resourceString.GetArgumentNames()} }}), {resourceString.GetArguments()});"); 856strings.AppendLine($@"{indent} => string.Format(Culture, GetResourceString(""{resourceString.Name}"") ?? """", {resourceString.GetArguments()});");
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 182sb.AppendLine($" Allocation stack trace:"); 183sb.AppendLine($" {info.StackTrace}");
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
256input.AppendLine(line);
Microsoft.CodeAnalysis.VisualBasic (2)
CommandLine\CommandLineDiagnosticFormatter.vb (1)
57sb.AppendLine(baseMessage)
Compilation\DocumentationComments\DocWriter.vb (1)
63builder.AppendLine(message)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\KeywordRecommenders\RecommendationHelpers.vb (1)
160stringBuilder.AppendLine(firstLine)
Microsoft.CodeAnalysis.Workspaces (6)
Log\RoslynEventSource.cs (2)
114output.AppendLine(fvi.ProductVersion); 132output.AppendLine(goal.ToString());
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (1)
42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 182sb.AppendLine($" Allocation stack trace:");
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
132builder.AppendLine(nameof(SourceGeneratorExecutionVersionMap));
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
494_processLogMessages.AppendLine(e.Data);
Microsoft.Diagnostics.DataContractReader.DataGenerator (82)
Emitter.cs (82)
33sb.AppendLine("// <auto-generated/>"); 34sb.AppendLine("#nullable enable"); 36sb.AppendLine("using Microsoft.Diagnostics.DataContractReader;"); 37sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Contracts;"); 42sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Generated;"); 47sb.AppendLine($"namespace {model.Namespace};"); 51sb.AppendLine(BuildClassDoc(model)); 55sb.AppendLine($"partial class {model.ClassName} : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData"); 57sb.AppendLine($"partial class {model.ClassName}"); 58sb.AppendLine("{"); 64sb.AppendLine($" private static readonly string[] _typeNames = {namesLiteral};"); 71sb.AppendLine($" public static {ITypeHandleType} TypeHandle({Target} target)"); 72sb.AppendLine($" => TypeNameResolver.GetTypeHandle(target, _typeNames);"); 78sb.AppendLine(" [UsesDataDescriptorTypeSize]"); 79sb.AppendLine($" public static uint GetSize({Target} target)"); 80sb.AppendLine(" => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize);"); 86sb.AppendLine($" public {TargetPointer} Address {{ get; }}"); 93sb.AppendLine($" private readonly {Target} _target;"); 104sb.AppendLine(" private readonly LayoutSet _layouts;"); 135sb.AppendLine("}"); 148sb.AppendLine($" public static int Get{member.Name}Offset({Target} target)"); 151sb.AppendLine($" => {offset};"); 155sb.AppendLine(" {"); 156sb.AppendLine(" LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);"); 157sb.AppendLine($" layouts.Select(default, out var type, out _, out var name, {NameArgs(member)});"); 158sb.AppendLine(" return type.Fields[name].Offset;"); 159sb.AppendLine(" }"); 195sb.AppendLine($" public void Write{member.Name}({propType} value)"); 196sb.AppendLine(" {"); 197sb.AppendLine($" _layouts.Select(Address, out var t, out var b, out var n, {NameArgs(member)});"); 200sb.AppendLine($" _target.WriteField<byte>(b, t, n, (byte)(value ? 1 : 0));"); 204sb.AppendLine($" _target.WriteNUIntField(b, t, n, value);"); 209sb.AppendLine($" _target.WriteField<{typeArg}>(b, t, n, value);"); 211sb.AppendLine($" {member.Name} = value;"); 212sb.AppendLine(" }"); 218sb.AppendLine($" public {model.ClassName}({Target} target, {TargetPointer} address)"); 219sb.AppendLine(" {"); 220sb.AppendLine(" Address = address;"); 224sb.AppendLine(" _target = target;"); 229sb.AppendLine(" _layouts = LayoutSet.Resolve(target, _typeNames);"); 232sb.AppendLine(" }"); 278sb.AppendLine($" [System.Diagnostics.CodeAnalysis.SuppressMessage(\"Performance\", \"CA1822:Mark members as static\", Justification = \"Generated lazy initializer; may read instance members.\")]"); 279sb.AppendLine($" private partial {Shorten(member.PropertyOrReturnTypeFqn)} {initializerName}({Target} target, {TargetPointer} address);"); 320sb.AppendLine($" private {propType} {valueField} = default!;"); 321sb.AppendLine($" private bool {readFlag};"); 323sb.AppendLine($" public partial {propType} {member.Name}"); 324sb.AppendLine(" {"); 325sb.AppendLine(" get"); 326sb.AppendLine(" {"); 327sb.AppendLine($" if (!{readFlag})"); 328sb.AppendLine(" {"); 330sb.AppendLine(line); 331sb.AppendLine($" {readFlag} = true;"); 332sb.AppendLine(" }"); 333sb.AppendLine($" return {valueField};"); 334sb.AppendLine(" }"); 337sb.AppendLine(" private set"); 338sb.AppendLine(" {"); 339sb.AppendLine($" {valueField} = value;"); 340sb.AppendLine($" {readFlag} = true;"); 341sb.AppendLine(" }"); 343sb.AppendLine(" }"); 356sb.AppendLine(" [UsesDataDescriptorTypeSize]"); 361sb.AppendLine( 378sb.AppendLine(" void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead()"); 379sb.AppendLine(" {"); 387sb.AppendLine($" _ = {member.Name};"); 390sb.AppendLine(" }"); 407sb.AppendLine( 411sb.AppendLine(" [UsesDataDescriptorTypeSize]"); 467sb.AppendLine($" static {model.ClassName} {IDataInterface}<{model.ClassName}>.Create({Target} target, {TargetPointer} address)"); 468sb.AppendLine($" => new {model.ClassName}(target, address);"); 523sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target)"); 524sb.AppendLine($" => TypeNameResolver.GetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\");"); 530sb.AppendLine($" public static partial {TargetPointer}? {member.Name}({Target} target)"); 531sb.AppendLine(" {"); 532sb.AppendLine($" if (TypeNameResolver.TryGetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", out {TargetPointer} address))"); 533sb.AppendLine($" return target.ReadPointer(address);"); 534sb.AppendLine($" return null;"); 535sb.AppendLine(" }"); 541sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target, {TargetPointer} thread)"); 542sb.AppendLine($" => TypeNameResolver.GetThreadStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", thread);");
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
432strings.AppendLine(line);
Microsoft.DotNet.Build.Tasks.Installers (18)
src\CreateWixBuildWixpack.cs (9)
437createCmdFileContents.AppendLine("@echo off"); 438createCmdFileContents.AppendLine("set outputfolder=%1"); 439createCmdFileContents.AppendLine("if \"%outputfolder%\" NEQ \"\" ("); 440createCmdFileContents.AppendLine(" if \"%outputfolder:~-1%\" NEQ \"\\\" ( "); 441createCmdFileContents.AppendLine(" set outputfolder=%outputfolder%\\"); 442createCmdFileContents.AppendLine(" )"); 443createCmdFileContents.AppendLine(")"); 444createCmdFileContents.AppendLine("REM Wix build command"); 445createCmdFileContents.AppendLine(commandLine);
src\CreateWixCommandPackageDropBase.cs (9)
83commandString.AppendLine("@echo off"); 84commandString.AppendLine("set outputfolder=%1"); 85commandString.AppendLine("if \"%outputfolder%\" NEQ \"\" ("); 86commandString.AppendLine(" if \"%outputfolder:~-1%\" NEQ \"\\\" ( "); 87commandString.AppendLine(" set outputfolder=%outputfolder%\\"); 88commandString.AppendLine(" )"); 89commandString.AppendLine(")"); 92commandString.AppendLine($"REM Original command"); 95commandString.AppendLine("REM Modified command");
Microsoft.DotNet.Build.Tasks.Packaging (2)
GetPackageDescription.cs (2)
130description.AppendLine("Commonly Used Types:"); 134description.AppendLine(type);
Microsoft.DotNet.GenFacades (5)
SourceGenerator.cs (5)
50sb.AppendLine("// <auto-generated/>"); // Adding this because the following code is autogenerated. 51sb.AppendLine("#pragma warning disable CS0618,CA2252"); // Adding this to avoid warnings while adding typeforwards for obselete types. CA2252 suppresses warnings on preview APIs 86sb.AppendLine(GetTypeForwardsToString(type, alias)); 89sb.AppendLine("#pragma warning restore CS0618"); 101sb.AppendLine(string.Format("extern alias {0};", alias));
Microsoft.DotNet.HotReload.Utils.Generator (1)
DeltaProject.cs (1)
101sb.AppendLine (diag.ToString ());
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
DependencyInjectionValidation.cs (1)
120msgBuilder.AppendLine(errorMessage);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIAssistantsChatClient.cs (1)
498_ = instructions.AppendLine().AppendLine(toAppend);
Microsoft.Extensions.AI.Templates.Tests (2)
MessageSinkTestOutputHelper.cs (1)
36_sb.AppendLine(message);
TestCommand.cs (1)
77outputBuilder.AppendLine(args.Data);
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationRootExtensions.cs (2)
60.AppendLine(")"); 67.AppendLine(":");
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\SourceWriter.cs (1)
45_sb.AppendLine(text);
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
314builder.AppendLine(FormattableString.Invariant($"Health check data for {_name}:")); 324builder.AppendLine(kvp.Value?.ToString());
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLogCollectorTests.cs (1)
30_sb.AppendLine(message);
Microsoft.Extensions.Http (2)
Logging\HttpHeadersLogValue.cs (2)
117builder.AppendLine(_kind == Kind.Request ? "Request Headers:" : "Response Headers:"); 124builder.AppendLine((string)kvp.Value);
Microsoft.Extensions.Logging.AzureAppServices (3)
BatchingLogger.cs (3)
53builder.AppendLine(":"); 60builder.AppendLine(formatter(state, exception)); 64builder.AppendLine(exception.ToString());
Microsoft.Extensions.Logging.EventLog (5)
EventLogLogger.cs (5)
93.AppendLine(_name) 104sb.Append(pair.Key).Append(": ").AppendLine(pair.Value?.ToString()); 109sb.AppendLine(scope.ToString()); 115.AppendLine(message); 119builder.AppendLine().AppendLine("Exception: ").Append(exception).AppendLine();
Microsoft.Extensions.Logging.Generators (9)
LoggerMessageGenerator.Emitter.cs (9)
46_builder.AppendLine("// <auto-generated/>"); 47_builder.AppendLine("#nullable enable"); 157_builder.AppendLine($@" 226_builder.AppendLine($" {nestedIndentation}private readonly {p.Type} {NormalizeSpecialSymbol(p.CodeName)};"); 234_builder.AppendLine($" {nestedIndentation}this.{NormalizeSpecialSymbol(p.CodeName)} = {p.CodeName};"); 260_builder.AppendLine($" {nestedIndentation}var {t.Key} = " 267_builder.AppendLine($" {nestedIndentation}var {t.Key} = this.{NormalizeSpecialSymbol(lm.TemplateParameters[index].CodeName)};"); 286_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{name}\", this.{NormalizeSpecialSymbol(p.CodeName)}),"); 289_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{{OriginalFormat}}\", {SymbolDisplay.FormatLiteral(lm.Message, quote: true)}),");
Microsoft.Extensions.Options.SourceGeneration (2)
EmitterBase.cs (2)
81_ = _sb.AppendLine(line); 86_ = _sb.AppendLine(line);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
XunitLoggerFactoryExtensions.cs (3)
94messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty); 99messageBuilder.AppendLine(additionalLinePrefix + line); 108messageBuilder.AppendLine(additionalLinePrefix + line);
Microsoft.Extensions.Telemetry (2)
Latency\Internal\LatencyConsoleExporter.cs (1)
138_ = sb.AppendLine(_dashes(valueHeader.Length + 1));
Logging\ExtendedLogger.cs (1)
196_ = sb.AppendLine(exception.Message);
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Emitters\ValidationsGenerator.InfoClasses.Emitter.cs (1)
61sb.Append(" ").AppendLine(line);
Microsoft.Gen.BuildMetadata (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.ComplianceReports (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.ContextualOptions (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.Logging (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.MetadataExtractor (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.Metrics (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.Metrics.Unit.Tests (4)
ParserTests.Diagnostics.cs (3)
374sb.AppendLine(@" public static partial class MetricClass 553sb.AppendLine("public class C31 { public string Tag31 { get; set; } }"); 555sb.AppendLine(@"
ParserTests.StrongTypes.cs (1)
606sb.AppendLine(@" public static partial class MetricClass
Microsoft.Gen.MetricsReports (2)
EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Maui.Controls (2)
Internals\ProfilePage.cs (2)
92 sb.AppendLine("".PadLeft(depth * 2) + line); 141 sb.AppendLine($"Profiled: {profiledMs}ms");
Microsoft.Maui.Controls.SourceGen (30)
CodeBehindGenerator.cs (30)
284 sb.AppendLine(AutoGeneratedHeaderText); 290 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", {(rootType == null ? "null" : "typeof(global::" + rootClrNamespace + "." + rootType + ")")})]"); 304 sb.AppendLine($"namespace {rootClrNamespace}"); 305 sb.AppendLine("{"); 306 sb.AppendLine($"\t[global::Microsoft.Maui.Controls.Xaml.XamlFilePath(\"{projItem.RelativePath?.Replace("\\", "\\\\")}\")]"); 309 sb.AppendLine($"\t[global::Microsoft.Maui.Controls.Xaml.XamlCompilation(global::Microsoft.Maui.Controls.Xaml.XamlCompilationOptions.Compile)]"); 314 sb.AppendLine($"\t[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]"); 317 sb.AppendLine($"\t{accessModifier} partial class {rootType} : {baseType}"); 318 sb.AppendLine("\t{"); 323 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]"); 324 sb.AppendLine($"\t\tpublic {rootType}()"); 325 sb.AppendLine("\t\t{"); 326 sb.AppendLine("\t\t\tInitializeComponent();"); 327 sb.AppendLine("\t\t}"); 336 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]"); 338 sb.AppendLine($"\t\t{faccess} {ftype} {EscapeIdentifier(fname)};"); 344 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]"); 349 sb.AppendLine($"#if NET5_0_OR_GREATER"); 353 sb.AppendLine($"\t\t[global::System.Diagnostics.CodeAnalysis.MemberNotNullAttribute(nameof({EscapeIdentifier(fname)}))]"); 356 sb.AppendLine($"#endif"); 359 sb.AppendLine("\t\tprivate void InitializeComponent()"); 360 sb.AppendLine("\t\t{"); 361 sb.AppendLine("#pragma warning disable IL2026, IL3050 // The body of InitializeComponent will be replaced by XamlC so LoadFromXaml will never be called in production builds"); 362 sb.AppendLine($"\t\t\tglobal::Microsoft.Maui.Controls.Xaml.Extensions.LoadFromXaml(this, typeof({rootType}));"); 368 sb.AppendLine($"\t\t\t{EscapeIdentifier(fname)} = global::Microsoft.Maui.Controls.NameScopeExtensions.FindByName<{ftype}>(this, \"{fname}\");"); 371 sb.AppendLine("#pragma warning restore IL2026, IL3050"); 373 sb.AppendLine("\t\t}"); 374 sb.AppendLine("\t}"); 375 sb.AppendLine("}"); 637 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", null)]");
Microsoft.Maui.Essentials (1)
VersionTracking\VersionTracking.shared.cs (1)
311 sb.AppendLine("VersionTracking");
Microsoft.ML.Data (17)
Dirty\IniFileUtils.cs (8)
31bld.AppendLine("[Evaluator:" + (numEvaluators + 1) + "]"); 32bld.AppendLine(evaluator); 54newEvaluator.AppendLine("EvaluatorType=Aggregator"); 55newEvaluator.AppendLine("Type=Sigmoid"); 56newEvaluator.AppendLine("Bias=" + -calibrator.Offset); 57newEvaluator.AppendLine("NumNodes=1"); 58newEvaluator.AppendLine("Nodes=E:" + NumEvaluators(originalIni)); 59newEvaluator.AppendLine("Weights=" + -calibrator.Slope);
Evaluators\AnomalyDetectionEvaluator.cs (2)
694sb.AppendLine("================================================="); 695sb.AppendLine("Instance Anomaly Score Labeled");
Evaluators\EvaluatorUtils.cs (6)
1552sb.AppendLine(string.Format(" ({0:N4})", numFolds == 1 ? 0 : 1647sb.AppendLine(" (sampled)"); 1659sb.AppendLine(" Recall"); 1700sb.AppendLine("OVERALL RESULTS"); 1701sb.AppendLine("---------------------------------------"); 1707sb.AppendLine("\n---------------------------------------");
Evaluators\MultiOutputRegressionEvaluator.cs (1)
722sb.AppendLine("Per-label metrics:");
Microsoft.ML.FastTree (2)
Utils\FastTreeIniFileUtils.cs (2)
49newSection.AppendLine("[TLCCalibration]"); 50newSection.AppendLine("Type=" + calibrator.GetType().Name);
Microsoft.ML.GenAI.LLaMA.Tests (2)
LLaMA3_1Tests.cs (2)
85sb.AppendLine(decodeToString); 88sb.AppendLine(tokenizedStr);
Microsoft.ML.GenAI.Mistral.Tests (2)
Mistral_7B_Instruct_V0_3Tests.cs (2)
130sb.AppendLine(decodeToString); 133sb.AppendLine(tokenizedStr);
Microsoft.ML.GenAI.Phi.Tests (3)
Phi2Tests.cs (1)
59sb.AppendLine(tokenizedStr);
Phi3Tests.cs (2)
144sb.AppendLine(decodeToString); 147sb.AppendLine(tokenizedStr);
Microsoft.ML.StandardTrainers (16)
Standard\LinearPredictorUtils.cs (16)
119inputBuilder.AppendLine("[Input:" + numNonZeroWeights + "]"); 120inputBuilder.AppendLine("Name=" + (featureNames.GetValues().Length == 0 ? "Feature_" + idx : name.IsEmpty ? $"f{idx}" : name.ToString())); 121inputBuilder.AppendLine("Transform=linear"); 122inputBuilder.AppendLine("Slope=1"); 123inputBuilder.AppendLine("Intercept=0"); 132builder.AppendLine("[TreeEnsemble]"); 133builder.AppendLine("Inputs=" + numNonZeroWeights); 134builder.AppendLine("Evaluators=1"); 137builder.AppendLine(inputBuilder.ToString()); 139builder.AppendLine("[Evaluator:1]"); 140builder.AppendLine("EvaluatorType=Aggregator"); 141builder.AppendLine("Type=Linear"); 142builder.AppendLine("Bias=" + bias); 143builder.AppendLine("NumNodes=" + numNonZeroWeights); 144builder.AppendLine(aggregatedNodesBuilder.ToString().Trim()); 145builder.AppendLine(weightsBuilder.ToString().Trim());
Microsoft.NET.Build.Containers (2)
Registry\HttpExtensions.cs (2)
74s.AppendLine($"Response headers:"); 75s.AppendLine(response.Headers.ToString());
Microsoft.NET.Build.Tasks (39)
ResolveTargetingPackAssets.cs (25)
543cacheKeyBuilder.AppendLine(frameworkReference.CacheKey()); 548cacheKeyBuilder.AppendLine(resolvedTargetingPack.CacheKey()); 551cacheKeyBuilder.AppendLine(nameof(RuntimeFrameworks)); 554cacheKeyBuilder.AppendLine(runtimeFramework.CacheKey()); 627builder.AppendLine(nameof(TargetingPack)); 629builder.AppendLine(Name); 630builder.AppendLine(Path.Value); 631builder.AppendLine(Path.OriginalValue); 632builder.AppendLine(Format); 633builder.AppendLine(TargetFramework); 634builder.AppendLine(Profile); 635builder.AppendLine(NuGetPackageId); 636builder.AppendLine(NuGetPackageVersion); 637builder.AppendLine(PackageConflictPreferredPackages); 706keyBuilder.AppendLine(FrameworkListPath.Value); 707keyBuilder.AppendLine(FrameworkListPath.OriginalValue); 708keyBuilder.AppendLine(TargetingPackRoot.Value); 709keyBuilder.AppendLine(TargetingPackRoot.OriginalValue); 710keyBuilder.AppendLine(TargetingPackDllFolder.Value); 711keyBuilder.AppendLine(TargetingPackDllFolder.OriginalValue); 712keyBuilder.AppendLine(FrameworkReferenceName); 713keyBuilder.AppendLine(Profile); 714keyBuilder.AppendLine(NuGetPackageId); 715keyBuilder.AppendLine(NuGetPackageVersion); 716keyBuilder.AppendLine(ProjectLanguage);
RunCsWinRTGenerator.cs (2)
231_ = args.AppendLine(additionalArgument.ItemSpec); 245_ = args.Append($"{commandName} ").AppendLine(commandValue);
RunReadyToRunCompiler.cs (12)
281result.AppendLine("/nologo"); 292result.AppendLine(_createPDBCommand); 297result.AppendLine("/MissingDependenciesOK"); 322result.AppendLine("-O"); 329result.AppendLine("--pdb"); 334result.AppendLine("--perfmap"); 362result.AppendLine(extraArg); 373result.AppendLine(extraArg); 379result.AppendLine("--partial"); 387result.AppendLine("--composite"); 399result.AppendLine("--inputbubble"); 409result.AppendLine(reference.ItemSpec);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (7)
BrotliCompress.cs (7)
72builder.AppendLine("brotli"); 76builder.AppendLine("-c"); 77builder.AppendLine(CompressionLevel); 110builder.AppendLine("-s"); 111builder.AppendLine(Quote(inputFullPath)); 113builder.AppendLine("-o"); 114builder.AppendLine(Quote(outputFullPath));
Microsoft.NET.Sdk.Publish.Tasks (2)
Tasks\GenerateEFSQLScripts.cs (2)
176_standardError.AppendLine(e.Data); 187_standardOut.AppendLine(e.Data);
Microsoft.NET.Sdk.Razor.Tasks (49)
SdkRazorGenerate.cs (34)
102builder.AppendLine(Command); 115builder.AppendLine("-s"); 116builder.AppendLine(input.GetMetadata(FullPath)); 118builder.AppendLine("-r"); 119builder.AppendLine(input.GetMetadata(TargetPath)); 121builder.AppendLine("-o"); 123builder.AppendLine(outputPath); 131builder.AppendLine("-k"); 132builder.AppendLine(kind); 149builder.AppendLine("-cssscopedinput"); 150builder.AppendLine(input.GetMetadata(FullPath)); 151builder.AppendLine("-cssscopevalue"); 152builder.AppendLine(cssScope); 157builder.AppendLine("-p"); 158builder.AppendLine(ProjectRoot); 160builder.AppendLine("-t"); 161builder.AppendLine(TagHelperManifest); 163builder.AppendLine("-v"); 164builder.AppendLine(Version); 166builder.AppendLine("-c"); 167builder.AppendLine(Configuration[0].GetMetadata(Identity)); 174builder.AppendLine("--root-namespace"); 175builder.AppendLine(RootNamespace); 180builder.AppendLine("--generate-declaration"); 186builder.AppendLine("--support-localized-component-names"); 191builder.AppendLine("--csharp-language-version"); 192builder.AppendLine(CSharpLanguageVersion); 197builder.AppendLine("-n"); 198builder.AppendLine(Extensions[i].GetMetadata(Identity)); 200builder.AppendLine("-e"); 201builder.AppendLine(Path.GetFullPath(Extensions[i].GetMetadata(AssemblyFilePath))); 209builder.AppendLine("--use-source-generator"); 215builder.AppendLine("-a"); 216builder.AppendLine(Assemblies[i]);
SdkRazorTagHelper.cs (15)
91builder.AppendLine(Command); 95builder.AppendLine(Assemblies[i]); 98builder.AppendLine("-o"); 99builder.AppendLine(TagHelperManifest); 101builder.AppendLine("-p"); 102builder.AppendLine(ProjectRoot); 104builder.AppendLine("-v"); 105builder.AppendLine(Version); 107builder.AppendLine("-c"); 108builder.AppendLine(Configuration[0].GetMetadata(Identity)); 112builder.AppendLine("-n"); 113builder.AppendLine(Extensions[i].GetMetadata(Identity)); 115builder.AppendLine("-e"); 116builder.AppendLine(Path.GetFullPath(Extensions[i].GetMetadata(AssemblyFilePath))); 121builder.AppendLine("--use-source-generator");
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
Compression\BrotliCompress.cs (7)
66builder.AppendLine("brotli"); 70builder.AppendLine("-c"); 71builder.AppendLine(CompressionLevel); 111builder.AppendLine("-s"); 112builder.AppendLine(Quote(inputFullPath)); 114builder.AppendLine("-o"); 115builder.AppendLine(Quote(outputFullPath));
ScopedCss\ConcatenateCssFiles.cs (1)
92builder.AppendLine(line);
ScopedCss\ConcatenateCssFiles50.cs (1)
92builder.AppendLine(line);
Microsoft.NET.StringTools (5)
WeakStringCacheInterner.cs (5)
146result.AppendLine("Elimination assumes that strings provided were unique objects."); 147result.AppendLine("|---------------------------------------------------------------------------------|"); 156result.AppendLine(string.Format("##########Top Top Interned Strings: \n{0} ", string.Join("\n==============\n", topInternedStrings.ToArray()))); 160result.AppendLine("WeakStringCache statistics:"); 166result.AppendLine(" - EnableStatisticsGathering() has not been called");
Microsoft.TemplateEngine.Cli (12)
CliTemplateParameter.cs (9)
462displayValue.AppendLine(Description); 467displayValue.AppendLine(precedenceValue); 472displayValue.AppendLine(string.Format(HelpStrings.RowHeader_Type, string.IsNullOrWhiteSpace(DataType) ? "choice" : DataType)); 480displayValue.AppendLine(choiceInfo.Value.Description.Replace("\r\n", " ").Replace("\n", " ")); 490displayValue.AppendLine(string.Format(HelpStrings.RowHeader_Type, string.IsNullOrWhiteSpace(DataType) ? "string" : DataType)); 494displayValue.AppendLine(string.Format(HelpStrings.RowHeader_AllowMultiValue, AllowMultipleValues)); 499displayValue.AppendLine(string.Format(HelpStrings.RowHeader_DefaultValue, DefaultValue)); 511displayValue.AppendLine(string.Format(HelpStrings.RowHeader_DefaultIfOptionWithoutValue, DefaultIfOptionWithoutValue)); 518displayValue.AppendLine(string.Format(HelpStrings.RowHeader_DefaultIfOptionWithoutValue, DefaultIfOptionWithoutValue));
Commands\create\InstantiateCommand.NoMatchHandling.cs (3)
100invalidParamsErrorText.AppendLine(invalidParam.InputFormat); 105invalidParamsErrorText.AppendLine(invalidParam.InputFormat + ' ' + invalidParam.SpecifiedValue); 117invalidParamsErrorText.AppendLine(invalidParam.InputFormat + ' ' + invalidParam.SpecifiedValue);
Microsoft.TemplateEngine.Edge (3)
Settings\TemplateCache.cs (1)
185templatesList.AppendLine(string.Format(
ValidationUtils.cs (2)
128sb.AppendLine(header); 131sb.AppendLine(PrintError(error));
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
ListGlobbingPatternMatcher.cs (1)
34displaySB.AppendLine("Composite matcher - matches any of these:");
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
240_ = message.AppendLine($"Status code: {response.StatusCode}").AppendLine("Headers:");
Microsoft.TestPlatform.CrossPlatEngine (2)
TestEngine.cs (2)
522stringBuilder.AppendLine(Resources.Resources.NoTestHostProviderFound); 550stringBuilder.AppendLine().AppendLine(Resources.Resources.NoTestHostProviderFound);
Microsoft.TestPlatform.Utilities (1)
InferRunSettingsHelper.cs (1)
691warnings.AppendLine(incompatibilityMessage);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
251_vstestConsoleError.AppendLine(e.Data);
Microsoft.VisualStudio.TestPlatform.Common (4)
Utilities\ExceptionUtilities.cs (3)
34.Append(Resources.Resources.InnerException).Append(' ').AppendLine(inner.Message); 48.AppendLine(Resources.Resources.StackTrace) 49.AppendLine(exception.StackTrace);
Utilities\MetadataReaderHelper.cs (1)
191log.AppendLine(current.ToString());
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
TrxLogger.cs (1)
203builder.AppendLine(message);
Utility\Converter.cs (4)
247debugTrace.AppendLine(message.Text); 251stdErr.AppendLine(message.Text); 255stdOut.AppendLine(message.Text); 416stdErr.AppendLine(errorMsg);
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Client\FilterOptions.cs (2)
33sb.AppendLine(string.Format(CultureInfo.CurrentCulture, "FilterOptions:")); 34sb.AppendLine(string.Format(CultureInfo.CurrentCulture,
Client\TestRunCriteria.cs (3)
616sb.AppendLine(string.Format(CultureInfo.CurrentCulture, "TestRunCriteria:")); 617sb.AppendLine(string.Format( 625sb.AppendLine(string.Format(CultureInfo.CurrentCulture, " Settingsxml={0}", TestRunSettings));
NuGet.CommandLine.XPlat (2)
Utility\CommandOutputLogger.cs (1)
125builder.AppendLine(line);
Utility\MSBuildAPIUtility.cs (1)
668errors.AppendLine(string.Format(CultureInfo.CurrentCulture,
NuGet.Commands (6)
RestoreCommand\RestoreCommand.cs (1)
1549errorMessageBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageValidationFailed, package.ToString()));
TrustedSignersCommand\TrustedSignersCommandRunner.cs (5)
225trustedSignerBuilder.AppendLine(index + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogTitle, item.Name, item.ElementName)); 229trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogServiceIndex, repoItem.ServiceIndex)); 233trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogOwners, string.Join("; ", repoItem.Owners))); 237trustedSignerBuilder.AppendLine(defaultIndentation + Strings.TrustedSignerLogCertificates); 244trustedSignerBuilder.AppendLine(defaultIndentation + extraIndentation + string.Format(CultureInfo.CurrentCulture, summaryAllowUntrustedRoot, cert.HashAlgorithm.ToString(), cert.Fingerprint));
NuGet.Common (1)
ExceptionUtilities.cs (1)
210builder.AppendLine(line);
NuGet.Credentials (1)
PluginCredentialProvider.cs (1)
269process.OutputDataReceived += (object o, DataReceivedEventArgs e) => { outBuffer.AppendLine(e.Data); };
NuGet.PackageManagement (1)
PackageDownloader.cs (1)
208errors.AppendLine(string.Format(CultureInfo.CurrentCulture,
NuGet.Packaging (28)
PackageCreation\Authoring\PackageBuilder.cs (2)
908warningMessage.AppendLine(StringFormatter.ZipFileTimeStampModifiedMessage(entryName, timeOffset.DateTime.ToShortDateString(), ZipFormatMinDate.ToShortDateString())); 913warningMessage.AppendLine(StringFormatter.ZipFileTimeStampModifiedMessage(entryName, timeOffset.DateTime.ToShortDateString(), ZipFormatMaxDate.ToShortDateString()));
Rules\DependenciesGroupsForEachTFMRule.cs (7)
113noExactMatchString.AppendLine(MessageFormat); 125noExactMatchString.AppendLine(AnalysisResources.DependenciesGroupsForEachTFMEndingToNuspec); 132noExactMatchString.AppendLine(AnalysisResources.DependenciesGroupsForEachTFMEndingToNuspec); 139noExactMatchString.AppendLine(MessageFormat); 153noExactMatchString.AppendLine(AnalysisResources.DependenciesGroupsForEachTFMEndingToFile); 164compatMatchString.AppendLine(CompatMatchFoundWarningMessageFormat); 176compatMatchString.AppendLine(AnalysisResources.DependenciesGroupsForEachTFMEndingToNuspec);
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (4)
134message.AppendLine(MessageFormat); 141message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToRefFormat, item, file.Tfm)); 151message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToNuspecNoTfmFormat, item)); 155message.AppendLine(string.Format(CultureInfo.CurrentCulture, _addToNuspecFormat, item, reference.Tfm));
Rules\UpholdBuildConventionRule.cs (1)
52warningMessage.AppendLine(string.Format(CultureInfo.CurrentCulture, MessageFormat, expectedFile.Extension, expectedFile.Path, expectedFile.ExpectedPath));
Signing\Authoring\X509SignatureProvider.cs (4)
143exceptionBuilder.AppendLine(Strings.SignFailureCertificateInvalidProviderType); 144exceptionBuilder.AppendLine(CertificateUtility.X509Certificate2ToString(request.Certificate, Common.HashAlgorithmName.SHA256)); 179exceptionBuilder.AppendLine(Strings.SignFailureCertificateInvalidProviderType); 180exceptionBuilder.AppendLine(CertificateUtility.X509Certificate2ToString(request.Certificate, Common.HashAlgorithmName.SHA256));
Signing\Utility\CertificateUtility.cs (10)
74certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateSubjectName, cert.Subject)); 75certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHashSha1, cert.Thumbprint)); 76certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint)); 77certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name)); 78certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter)); 82certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateCrlUrl, url)); 87certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateOcspUrl, url)); 112collectionStringBuilder.AppendLine(Strings.CertUtilityMultipleCertificatesHeader); 123collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, certCollection.Count - ChainDepthLimit)); 145collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, chainElementsCount - ChainDepthLimit));
PresentationFramework (7)
System\Windows\Controls\ItemContainerGenerator.cs (7)
1065sb.AppendLine(SR.Generator_Readme0); // Developer info: 1068sb.AppendLine(SR.Generator_Readme2); // The following differences... 1076sb.AppendLine(SR.Generator_Readme3); // The following sources... 1082sb.AppendLine(SR.Generator_Readme4); // Starred sources are considered more likely 1085sb.AppendLine(SR.Generator_Readme5); // The most common causes... 1092sb.AppendLine(SR.Format(SR.Generator_Readme8, // One way to do this ... 1094sb.AppendLine(SR.Generator_Readme9); // This slows down the app.
Roslyn.Diagnostics.Analyzers (15)
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
166sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 182sb.AppendLine($" Allocation stack trace:"); 183sb.AppendLine($" {info.StackTrace}");
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
105textBuilder.AppendLine(trimmedLine);
rzc (4)
CommandLine\CommandLineApplication.cs (4)
473argumentsBuilder.AppendLine("Arguments:"); 489optionsBuilder.AppendLine("Options:"); 505commandsBuilder.AppendLine("Commands:"); 530nameAndVersion.AppendLine(GetFullNameAndVersion());
ScenarioTests.Common.Tests (22)
ScenarioTestHelpers.cs (2)
138errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 144errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variation, ex.ToString()));
ScenarioTestTypes.cs (20)
566sb.AppendLine("BoolValue: " + _boolValue); 567sb.AppendLine("CharValue: " + _charValue); 568sb.AppendLine("DateTimeValue: " + _dateTimeValue); 569sb.AppendLine("IntValue: " + _intValue); 570sb.AppendLine("ShortValue: " + _shortValue); 571sb.AppendLine("FloatValue: " + _floatValue); 572sb.AppendLine("LongValue: " + _longValue); 573sb.AppendLine("DoubleValue: " + _doubleValue); 574sb.AppendLine("UintValue: " + _uintValue); 575sb.AppendLine("ushortValue: " + _ushortValue); 576sb.AppendLine("ulongValue: " + _ulongValue); 577sb.AppendLine("GuidValue: " + _guidValue); 578sb.AppendLine("ByteArrayValue: " + (_byteArrayValue != null ? "Length: " + _byteArrayValue.Length : "null")); 579sb.AppendLine("CharArrayValue: " + (_charArrayValue != null ? "Length: " + _charArrayValue.Length : "null")); 580sb.AppendLine("StringValue: " + (string.IsNullOrEmpty(_stringValue) ? "<empty>" : _stringValue.ToString())); 581sb.AppendLine("LongerStringValue: " + (string.IsNullOrEmpty(_longerStringValue) ? "<empty>" : _longerStringValue.ToString())); 582sb.AppendLine("SbyteValue: " + _sbyteValue); 583sb.AppendLine("TimeSpanValue: " + _timeSpanValue); 584sb.AppendLine("DayOfWeekValue: " + _dayOfWeekValue); 678sb.AppendLine("GuidValue: " + _guidValue);
sdk-tasks (2)
GenerateMSBuildExtensionsSWR.cs (1)
50sb.AppendLine(@"\""");
GenerateRuntimeAnalyzersSWR.cs (1)
88sb.AppendLine(@"\""");
Security.TransportSecurity.IntegrationTests (12)
Https\HttpsTests.4.1.0.cs (12)
91errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 96errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 130errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 135errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 169errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 174errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 208errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 213errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
SelectTests (37)
Program.cs (37)
321sb.AppendLine("<Project>"); 322sb.AppendLine(" <ItemGroup>"); 332sb.AppendLine(" </ItemGroup>"); 333sb.AppendLine("</Project>"); 496sb.AppendLine("## SelectTests FAILED"); 498sb.AppendLine("The selector crashed before completing. The CI step fails by design — a crash must"); 499sb.AppendLine("never be downgraded to a silent under-selection."); 510sb.AppendLine("### Inputs (to reproduce)"); 520sb.AppendLine("<details><summary>stack trace</summary>"); 522sb.AppendLine("```"); 523sb.AppendLine(ex.ToString()); 524sb.AppendLine("```"); 526sb.AppendLine("</details>"); 718sb.AppendLine(options.Enforce ? "## Tests selector" : "## Tests selector (audit mode)"); 726sb.AppendLine("_The full test matrix and all jobs still run in audit mode. The tests and jobs below are what selective CI **would** run under enforcement._"); 753sb.AppendLine(tests.Count == 0 760sb.AppendLine(jobs.Count == 0 783sb.AppendLine("---"); 788sb.AppendLine("<details>"); 789sb.AppendLine("<summary>How these were chosen — grouped by what changed</summary>"); 840sb.AppendLine(CauseGroupHeader(key)); 865sb.AppendLine("#### Job reasons"); 869sb.AppendLine("_none_"); 873sb.AppendLine("| Job | Triggered by |"); 874sb.AppendLine("|---|---|"); 882sb.AppendLine("</details>"); 1031sb.AppendLine("## SelectTests"); 1039sb.AppendLine("### Options"); 1052sb.AppendLine("<details><summary>show</summary>"); 1059sb.AppendLine("</details>"); 1069sb.AppendLine("Dropped before selection by the prefilter (CI skip-gate patterns; no CI impact):"); 1087sb.AppendLine("_none — every changed file was matched by Layer 2, ignored, or Layer-1-owned._"); 1091sb.AppendLine("Matched by no map rule (Layer 2) and not a project-owned source file"); 1092sb.AppendLine("(Layer 1). Add a curated rule if any of these gate a test:"); 1101sb.AppendLine("### Selection"); 1156builder.AppendLine("</details>"); 1169builder.AppendLine("</details>");
Stress.ApiService (1)
Program.cs (1)
349sb.AppendLine(line);
SuperFileCheck (6)
Program.cs (6)
133stdOut.AppendLine(e.Data); 145stdErr.AppendLine(e.Data); 405tmpSrc.AppendLine(String.Empty); 407tmpSrc.AppendLine(beginAnchorText); 408tmpSrc.AppendLine(TransformMethod(methodDecl, checkPrefixes)); 409tmpSrc.AppendLine(endAnchorText);
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\CompositionException.cs (2)
204writer.AppendLine(SR.CompositionException_ReviewErrorProperty); 239writer.AppendLine(error.Description);
System.Data.OleDb (1)
OleDbStruct.cs (1)
146builder.AppendLine("tagDBBINDING");
System.Diagnostics.FileVersionInfo (13)
System\Diagnostics\FileVersionInfo.cs (13)
324sb.Append("File: ").AppendLine(FileName); 325sb.Append("InternalName: ").AppendLine(InternalName); 326sb.Append("OriginalFilename: ").AppendLine(OriginalFilename); 327sb.Append("FileVersion: ").AppendLine(FileVersion); 328sb.Append("FileDescription: ").AppendLine(FileDescription); 329sb.Append("Product: ").AppendLine(ProductName); 330sb.Append("ProductVersion: ").AppendLine(ProductVersion); 331sb.Append("Debug: ").AppendLine(IsDebug.ToString()); 332sb.Append("Patched: ").AppendLine(IsPatched.ToString()); 333sb.Append("PreRelease: ").AppendLine(IsPreRelease.ToString()); 334sb.Append("PrivateBuild: ").AppendLine(IsPrivateBuild.ToString()); 335sb.Append("SpecialBuild: ").AppendLine(IsSpecialBuild.ToString()); 336sb.Append("Language: ").AppendLine(Language);
System.Linq.Expressions (8)
System\Linq\Expressions\Interpreter\LightLambda.cs (8)
133sb.Append("object ").Append(name).AppendLine("(object[])"); 134sb.AppendLine("{"); 154sb.Append(_indent).AppendLine(".try"); 155sb.Append(_indent).AppendLine("{"); 163sb.Append(_indent).AppendLine(handler); 164sb.Append(_indent).AppendLine("{"); 175sb.AppendLine("}"); 188sb.Append(_indent).AppendLine("}");
System.Net.Http.WinHttpHandler (3)
System\Net\Http\WinHttpHandler.cs (3)
738requestHeadersBuffer.AppendLine(cookieHeader); 743requestHeadersBuffer.AppendLine(requestMessage.Headers.ToString()); 758requestHeadersBuffer.AppendLine(requestMessage.Content.Headers.ToString());
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\Tensor.cs (5)
2202sb.AppendLine(" {"); 2229sb.AppendLine("["); 2247sb.AppendLine(","); 2254sb.AppendLine(","); 2263sb.AppendLine("..");
System.Private.CoreLib (46)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (43)
32sb.AppendLine("<instrumentationManifest xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">"); 33sb.AppendLine(" <instrumentation xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:win=\"http://manifests.microsoft.com/win/2004/08/windows/events\">"); 34sb.AppendLine(" <events xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">"); 43sb.AppendLine("\">"); 241templates?.Append(" <template tid=\"").Append(eventName).AppendLine("Args\">"); 251templates?.Append(" <data name=\"").Append(name).AppendLine("Size\" inType=\"win:UInt32\"/>"); 270templates?.AppendLine("/>"); 278templates?.AppendLine(" </template>"); 281events?.AppendLine("/>"); 368sb?.AppendLine(" <channels>"); 398sb?.Append(" enabled=\"").Append(enabled ? "true" : "false").AppendLine("\"/>"); 400sb?.AppendLine(" </channels>"); 406sb?.AppendLine(" <tasks>"); 414sb?.Append(" value=\"").Append(task).AppendLine("\"/>"); 416sb?.AppendLine(" </tasks>"); 432sb?.AppendLine(" <maps>"); 437sb?.Append(" <").Append(mapKind).Append(" name=\"").Append(enumType.Name).AppendLine("\">"); 464sb?.AppendLine("/>"); 475sb?.AppendLine("/>"); 477sb?.Append(" </").Append(mapKind).AppendLine(">"); 479sb?.AppendLine(" </maps>"); 483sb?.AppendLine(" <opcodes>"); 491sb?.Append(" value=\"").Append(opcode).AppendLine("\"/>"); 493sb?.AppendLine(" </opcodes>"); 498sb?.AppendLine(" <keywords>"); 508sb?.Append(" mask=\"0x").Append(keywordFormatted).AppendLine("\"/>"); 510sb?.AppendLine(" </keywords>"); 513sb?.AppendLine(" <events>"); 515sb?.AppendLine(" </events>"); 517sb?.AppendLine(" <templates>"); 526sb?.AppendLine(" <template tid=\"_empty\"></template>"); 528sb?.AppendLine(" </templates>"); 530sb?.AppendLine("</provider>"); 531sb?.AppendLine("</events>"); 532sb?.AppendLine("</instrumentation>"); 535sb?.AppendLine("<localization>"); 542sb?.Append(" <resources culture=\"").Append(ci.Name).AppendLine("\">"); 543sb?.AppendLine(" <stringTable>"); 547sb?.Append(" <string id=\"").Append(stringKey).Append("\" value=\"").Append(val).AppendLine("\"/>"); 549sb?.AppendLine(" </stringTable>"); 550sb?.AppendLine(" </resources>"); 552sb?.AppendLine("</localization>"); 553sb?.AppendLine("</instrumentationManifest>");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
248sb.AppendLine(SR.Exception_EndStackTraceFromPreviousThrow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
97sb.AppendLine(stateMachineType.FullName);
System\Diagnostics\StackFrame.NativeAot.cs (1)
236builder.AppendLine(SR.UsingResourceKeys() ?
System.Private.TypeLoader (11)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (11)
106sb.AppendLine("Generic virtual method pointer lookup failure."); 108sb.AppendLine("Declaring type: " + GetTypeNameDebug(slotMethod.OwningType)); 109sb.AppendLine("Target type: " + GetTypeNameDebug(targetType)); 110sb.AppendLine("Method name: " + slotMethod.GetName()); 111sb.AppendLine("Instantiation:"); 114sb.AppendLine(" Argument " + i.LowLevelToString() + ": " + GetTypeNameDebug(slotMethod.Instantiation[i])); 148sb.AppendLine("Failed to create generic virtual method implementation"); 150sb.AppendLine("Declaring type: " + GetTypeNameDebug(result.OwningType)); 151sb.AppendLine("Method name: " + result.GetName()); 152sb.AppendLine("Instantiation:"); 155sb.AppendLine(" Argument " + i.LowLevelToString() + ": " + GetTypeNameDebug(result.Instantiation[i]));
System.Private.Xml (5)
System\Xml\Schema\ContentValidator.cs (5)
1516bb.AppendLine("Positions"); 1519bb.AppendLine(i + " " + _positions[i].symbol.ToString(NumberFormatInfo.InvariantInfo) + " " + _symbols!.NameOf(_positions[i].symbol)); 1522bb.AppendLine("Followpos"); 1535bb.AppendLine("Transitions"); 1550bb.AppendLine(transitionTable[i][_symbols.Count] == 1 ? "+" : "");
System.Security.Cryptography (25)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
418sb.AppendLine("[Private Key]");
System\Security\Cryptography\X509Certificates\X509Certificate.cs (10)
615sb.AppendLine("[Subject]"); 617sb.AppendLine(Subject); 621sb.AppendLine("[Issuer]"); 623sb.AppendLine(Issuer); 627sb.AppendLine("[Serial Number]"); 636sb.AppendLine("[Not Before]"); 638sb.AppendLine(FormatDate(GetNotBefore())); 642sb.AppendLine("[Not After]"); 644sb.AppendLine(FormatDate(GetNotAfter())); 648sb.AppendLine("[Thumbprint]");
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (14)
445sb.AppendLine("[Version]"); 452sb.AppendLine("[Subject]"); 491sb.AppendLine("[Issuer]"); 530sb.AppendLine("[Serial Number]"); 532sb.AppendLine(SerialNumber); 536sb.AppendLine("[Not Before]"); 538sb.AppendLine(FormatDate(NotBefore)); 542sb.AppendLine("[Not After]"); 544sb.AppendLine(FormatDate(NotAfter)); 548sb.AppendLine("[Thumbprint]"); 550sb.AppendLine(Thumbprint); 554sb.AppendLine("[Signature Algorithm]"); 559sb.AppendLine(")"); 595sb.AppendLine(pubKey.EncodedKeyValue.Format(true));
System.ServiceModel.Primitives (57)
System\IdentityModel\SecurityUtils.cs (2)
190sb.AppendLine("ClaimSet ["); 197sb.AppendLine(claim.ToString());
System\ServiceModel\Channels\SecurityBindingElement.cs (17)
606sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString())); 607sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString())); 608sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", IncludeTimestamp.ToString())); 609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString())); 610sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", MessageSecurityVersion.ToString())); 611sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString())); 612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString())); 613sb.AppendLine("EndpointSupportingTokenParameters:"); 614sb.AppendLine(" " + EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 615sb.AppendLine("OptionalEndpointSupportingTokenParameters:"); 616sb.AppendLine(" " + OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 620sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none")); 626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction)); 627sb.AppendLine(" " + OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 633sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none")); 639sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction)); 640sb.AppendLine(" " + OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
151sb.AppendLine(base.ToString()); 153sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "TokenType: {0}", TokenType == null ? "null" : TokenType)); 154sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString())); 155sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture))); 156sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", IssuerAddress == null ? "null" : IssuerAddress.ToString())); 157sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", IssuerMetadataAddress == null ? "null" : IssuerMetadataAddress.ToString())); 158sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", DefaultMessageSecurityVersion == null ? "null" : DefaultMessageSecurityVersion.ToString())); 159sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", UseStrTransform.ToString())); 163sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding: null")); 167sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding:")); 171sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture))); 172sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n ")); 178sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none")); 182sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:")); 185sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", ClaimTypeRequirements[i].ClaimType, ClaimTypeRequirements[i].IsOptional));
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (5)
159sb.AppendLine(base.ToString()); 161sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "RequireCancellation: {0}", RequireCancellation.ToString())); 164sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "BootstrapSecurityBindingElement: null")); 168sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "BootstrapSecurityBindingElement:")); 169sb.AppendLine(" " + BootstrapSecurityBindingElement.ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (1)
192sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (4)
230sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString())); 234sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyName: {0}", propertyName)); 235sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "PropertyValue: {0}", propertyValue)); 236sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "---"));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
117sb.AppendLine("No endorsing tokens."); 123sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture))); 124sb.AppendLine(" " + Endorsing[k].ToString().Trim().Replace("\n", "\n ")); 130sb.AppendLine("No signed tokens."); 136sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture))); 137sb.AppendLine(" " + Signed[k].ToString().Trim().Replace("\n", "\n ")); 143sb.AppendLine("No signed encrypted tokens."); 149sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture))); 150sb.AppendLine(" " + SignedEncrypted[k].ToString().Trim().Replace("\n", "\n ")); 156sb.AppendLine("No signed endorsing tokens."); 162sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture))); 163sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
132sb.AppendLine(base.ToString());
System.ServiceModel.Primitives.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
310errorBuilder.AppendLine(String.Format("---- Header[{0}] ----", i)); 311errorBuilder.AppendLine(String.Format("{0}", headerValues[i]));
System.Text.Json.SourceGeneration (7)
JsonSourceGenerator.Emitter.cs (6)
2355source.AppendLine($"new {JsonPolymorphismOptionsTypeRef}"); 2356source.AppendLine("{"); 2363source.AppendLine(" DerivedTypes ="); 2364source.AppendLine(" {"); 2370source.AppendLine(","); 2373source.AppendLine(" },");
src\runtime\src\libraries\Common\src\SourceGenerators\SourceWriter.cs (1)
45_sb.AppendLine(text);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexInterpreterCode.cs (1)
131sb.AppendLine(DescribeInstruction(i));
System\Text\RegularExpressions\RegexNode.cs (1)
3464var sb = new StringBuilder().AppendLine(curNode.Describe());
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Emitter.cs (1)
5539tmp.AppendLine(decl);
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
3464var sb = new StringBuilder().AppendLine(curNode.Describe());
System.Windows.Forms (3)
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (3)
175detailsTextBuilder.AppendLine(t.ToString()); 197detailsTextBuilder.AppendLine(SR.ExDlgMsgFooterNonSwitchable); 201detailsTextBuilder.AppendLine(SR.ExDlgMsgFooterSwitchable);
System.Windows.Forms.PrivateSourceGenerators (12)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (12)
100sb.AppendLine( 111sb.AppendLine($"{indent}/// <summary>Validates that the enum value passed in is valid for the enum type.</summary>"); 112sb.AppendLine($"{indent}public static void Validate({info.EnumType} enumToValidate, string parameterName = \"value\")"); 113sb.AppendLine($"{indent}{{"); 117sb.AppendLine($"{indent}}}"); 121sb.AppendLine(ReportErrorMethod); 122sb.AppendLine(@" } 128sb.AppendLine($"{indent}int intValue = (int)enumToValidate;"); 138sb.AppendLine($"{indent}ReportEnumValidationError(parameterName, intValue, typeof({info.EnumType}));"); 149sb.AppendLine($"{indent}if ((intValue & {total}) == intValue) return;"); 158sb.AppendLine($"{indent}if (intValue == {min}) return;"); 162sb.AppendLine($"{indent}if (intValue >= {min} && intValue <= {max}) return;");
System.Windows.Input.Manipulations (7)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
1095log.AppendLine(msg);
System\Windows\Input\Manipulations\ManipulationSequence.cs (6)
331this.log.AppendLine(timestamp.ToString(CultureInfo.InvariantCulture) + "\t" + 475this.log.AppendLine(timestamp.ToString(CultureInfo.InvariantCulture) + "\t" + 487this.log.AppendLine(timestamp.ToString(CultureInfo.InvariantCulture) + "\t" + 570this.log.AppendLine(timestamp.ToString(CultureInfo.InvariantCulture) + "\t" + 981this.log.AppendLine(timestamp.ToString(CultureInfo.InvariantCulture) + "\t" + 999this.log.AppendLine(timestamp.ToString(CultureInfo.InvariantCulture) + "\t" +
TypeScriptApiCompat (14)
ApiCompatReport.cs (14)
15builder.AppendLine("# TypeScript API compatibility report"); 22builder.AppendLine("No undeclared TypeScript API compatibility breaks were found."); 26builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "Suppressed diagnostics: {0}", result.SuppressedDiagnostics.Count)); 34builder.AppendLine("## Unsuppressed breaking changes"); 38builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}` `{1}` `{2}` - {3}", diagnostic.Kind, diagnostic.PackageName, diagnostic.Symbol, diagnostic.Message)); 46builder.AppendLine("## Suppression file errors"); 50builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- {0}", error)); 58builder.AppendLine("## Unused suppressions"); 62builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}` `{1}` `{2}` at `{3}:{4}`", suppression.Kind, suppression.PackageName, suppression.Symbol, suppression.FilePath, suppression.LineNumber)); 70builder.AppendLine("## Suppressed breaking changes"); 74builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}` `{1}` `{2}` - {3}", diagnostic.Kind, diagnostic.PackageName, diagnostic.Symbol, diagnostic.Message)); 88builder.AppendLine("## Excluded packages"); 90builder.AppendLine("These packages set `DisablePackageBaselineValidation=true`, so TypeScript API compatibility is not enforced for them."); 95builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}`", packageName));
UnitTests.Common (44)
TestHelpers.cs (25)
101errorBuilder.AppendLine(results); 106errorBuilder.AppendLine(String.Format("Unexpected exception was caught: {0}", ex.ToString())); 128errorBuilder.AppendLine(String.Format("{0} expected Type = {0}, actual = {1}", prefix, expectedType, contractType)); 135errorBuilder.AppendLine(String.Format("{0} operations.Count: expected={1}, actual = {2}", prefix, expectedOperations.Length, ops.Count)); 144errorBuilder.AppendLine(String.Format("{0} operations: could not find operation {1}", prefix, expectedOp.Name)); 151errorBuilder.AppendLine(String.Format("{0} expected operation Name = {1}, actual = {2}", 158errorBuilder.AppendLine(String.Format("{0} expected operation {1}.IsOneWay = {2}, actual = {3}", 166errorBuilder.AppendLine(String.Format("{0} expected operation {1}.HasTask = {2}, actual = {3}", 178errorBuilder.AppendLine(String.Format("{0} could not find expected message action {1} in operation {2}", 186errorBuilder.AppendLine(String.Format("{0} message action {1} expected Direction = {2}, actual = {3}", 194errorBuilder.AppendLine(String.Format("{0} message action {1} expected MessageType = {2}, actual = {3}", 213errorBuilder.AppendLine(String.Format("{0} unexpected exception was caught: {1}", 226errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part count = {2}, actual = {3}", 243errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2} but did not find it.", 250errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2}, actual = {3}", 256errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Type = {3}, actual = {4}", 262errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Multiple = {3}, actual = {4}", 379errorBuilder.AppendLine(String.Format("AddBindingParameters {1}", errorMessage)); 383errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 387errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(BindingParameterCollection).ToString())); 398errorBuilder.AppendLine(String.Format("ApplyClientBehavior {1}", errorMessage)); 402errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 406errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(ClientOperation).ToString())); 423errorBuilder.AppendLine(String.Format("Validate {1}", errorMessage)); 428errorBuilder.AppendLine(String.Format("The parameter passed into the Validate method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
TestTypes.cs (19)
610sb.AppendLine("BoolValue: " + _boolValue); 611sb.AppendLine("CharValue: " + _charValue); 612sb.AppendLine("DateTimeValue: " + _dateTimeValue); 613sb.AppendLine("IntValue: " + _intValue); 614sb.AppendLine("ShortValue: " + _shortValue); 615sb.AppendLine("FloatValue: " + _floatValue); 616sb.AppendLine("LongValue: " + _longValue); 617sb.AppendLine("DoubleValue: " + _doubleValue); 618sb.AppendLine("UintValue: " + _uintValue); 619sb.AppendLine("ushortValue: " + _ushortValue); 620sb.AppendLine("ulongValue: " + _ulongValue); 621sb.AppendLine("GuidValue: " + _guidValue); 622sb.AppendLine("ByteArrayValue: " + (_byteArrayValue != null ? "Length: " + _byteArrayValue.Length : "null")); 623sb.AppendLine("CharArrayValue: " + (_charArrayValue != null ? "Length: " + _charArrayValue.Length : "null")); 624sb.AppendLine("StringValue: " + (string.IsNullOrEmpty(_stringValue) ? "<empty>" : _stringValue.ToString())); 625sb.AppendLine("LongerStringValue: " + (string.IsNullOrEmpty(_longerStringValue) ? "<empty>" : _longerStringValue.ToString())); 626sb.AppendLine("SbyteValue: " + _sbyteValue); 627sb.AppendLine("TimeSpanValue: " + _timeSpanValue); 628sb.AppendLine("DayOfWeekValue: " + _dayOfWeekValue);
vbc (4)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (2)
84builder.AppendLine("Stack trace:"); 85builder.AppendLine(exception.StackTrace);
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
VBCSCompiler (4)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (2)
84builder.AppendLine("Stack trace:"); 85builder.AppendLine(exception.StackTrace);
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
vstest.console (7)
Internal\MSBuildLogger.cs (7)
184formattedError.AppendLine(result.ErrorMessage); 220formattedError.AppendLine(Resources.Resources.StacktraceBanner); 221formattedError.AppendLine(result.ErrorStackTrace); 325stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdOutMessagesBanner); 332stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdErrMessagesBanner); 339stringBuilder.AppendLine(testResultPrefix + CommandLineResources.DbgTrcMessagesBanner); 346stringBuilder.AppendLine(testResultPrefix + CommandLineResources.AddnlInfoMessagesBanner);
vstest.console.arm64 (7)
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (7)
184formattedError.AppendLine(result.ErrorMessage); 220formattedError.AppendLine(Resources.Resources.StacktraceBanner); 221formattedError.AppendLine(result.ErrorStackTrace); 325stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdOutMessagesBanner); 332stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdErrMessagesBanner); 339stringBuilder.AppendLine(testResultPrefix + CommandLineResources.DbgTrcMessagesBanner); 346stringBuilder.AppendLine(testResultPrefix + CommandLineResources.AddnlInfoMessagesBanner);