1438 references to AppendLine
aspire (61)
Agents\OpenCode\OpenCodeAgentEnvironmentScanner.cs (1)
174result.AppendLine(trimmedLine);
Commands\Sdk\SdkDumpCommand.cs (45)
275sb.AppendLine("# Aspire Type System Capabilities"); 276sb.AppendLine("# Generated by: aspire sdk dump --format ci"); 282sb.AppendLine("# Diagnostics"); 286sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}: {1}{2}", d.Severity.ToLowerInvariant(), d.Message, loc)); 292sb.AppendLine("# Handle Types"); 309sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}{1}", t.AtsTypeId, flagStr)); 316sb.AppendLine("# DTO Types"); 321sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} # {1}", t.TypeId, t.Description)); 325sb.AppendLine(t.TypeId); 331sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}: {2}{3}", p.Name, optional, p.Type?.TypeId ?? "unknown", desc)); 340sb.AppendLine("# Enum Types"); 343sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} = {1}", t.TypeId, string.Join(" | ", t.Values))); 349sb.AppendLine("# Capabilities"); 358sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}({1}) -> {2}", c.CapabilityId, paramStr, returnStr)); 369sb.AppendLine("================================================================================"); 370sb.AppendLine(" Aspire Type System Capabilities "); 371sb.AppendLine("================================================================================"); 377sb.AppendLine("Summary"); 378sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Handle Types: {0}", capabilities.HandleTypes.Count)); 379sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " DTO Types: {0}", capabilities.DtoTypes.Count)); 380sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Enum Types: {0}", capabilities.EnumTypes.Count)); 381sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Capabilities: {0}", capabilities.Capabilities.Count)); 384sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Diagnostics: {0} errors, {1} warnings", errorCount, warningCount)); 391sb.AppendLine("Diagnostics"); 392sb.AppendLine("--------------------------------------------------------------------------------"); 396sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0} {1}", icon, d.Message)); 399sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " -> {0}", d.Location)); 406sb.AppendLine("Handle Types (passed by reference)"); 407sb.AppendLine("--------------------------------------------------------------------------------"); 429sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}", shortName, flagStr)); 436sb.AppendLine("DTO Types (serialized as JSON)"); 437sb.AppendLine("--------------------------------------------------------------------------------"); 440sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name)); 443sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Description)); 451sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " - {0}{1}: {2}", p.Name, optional, simpleType)); 454sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", p.Description)); 464sb.AppendLine("Enum Types"); 465sb.AppendLine("--------------------------------------------------------------------------------"); 468sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name)); 469sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", string.Join(" | ", t.Values))); 475sb.AppendLine("Capabilities"); 476sb.AppendLine("--------------------------------------------------------------------------------"); 485sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " [{0}]", group.Key)); 495sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}({1}) -> {2}", c.MethodName, paramStr, returnType)); 498sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", c.Description));
DotNet\DotNetCliRunner.cs (6)
353stdoutBuilder.AppendLine(line); 359stderrBuilder.AppendLine(line); 511stdoutBuilder.AppendLine(line); 518stderrBuilder.AppendLine(line); 913stdoutBuilder.AppendLine(line); 920stderrBuilder.AppendLine(line);
Mcp\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.");
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)
652consoleLogsText.AppendLine(logEntry);
Aspire.Cli.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 (4)
Components\Layout\MainLayout.razor.cs (3)
134unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointTelemetryBody)]); 138unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointMcpBody)]); 142unsecuredEndpointsMessage.AppendLine(Loc[nameof(Resources.Layout.MessageUnsecuredEndpointApiBody)]);
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
652consoleLogsText.AppendLine(logEntry);
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 (3)
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)
37sb.AppendLine("## ✅ Deployment Succeeded"); 46sb.AppendLine("### Deployed Resources"); 48sb.AppendLine("| Resource | URL |"); 49sb.AppendLine("|----------|-----|"); 88sb.AppendLine("## ❌ Deployment Failed"); 93sb.AppendLine("### Error"); 95sb.AppendLine("```"); 96sb.AppendLine(errorMessage); 97sb.AppendLine("```"); 102sb.AppendLine("<details>"); 103sb.AppendLine("<summary>Full Logs</summary>"); 105sb.AppendLine("```"); 106sb.AppendLine(logs); 107sb.AppendLine("```"); 109sb.AppendLine("</details>"); 146sb.AppendLine($"### 🧹 Cleanup"); 152sb.AppendLine($"### ⚠️ Cleanup Warning"); 160sb.AppendLine("Manual cleanup may be required.");
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
211output.AppendLine(logLine); 244output.AppendLine(line);
Aspire.Hosting (30)
ApplicationModel\ResourceNotificationService.cs (3)
885.AppendLine(cancellationMessage); 892.AppendLine(value?.ToString() ?? "(null)"); 916error.AppendLine("- Health Reports:");
Pipelines\DistributedApplicationPipeline.cs (27)
870sb.AppendLine("PIPELINE DEPENDENCY GRAPH DIAGNOSTICS"); 871sb.AppendLine("====================================="); 873sb.AppendLine("This diagnostic output shows the complete pipeline dependency graph structure."); 874sb.AppendLine("Use this to understand step relationships and troubleshoot execution issues."); 882sb.AppendLine("Analysis for full pipeline execution (showing all steps and their relationships)"); 890sb.AppendLine("EXECUTION ORDER"); 891sb.AppendLine("==============="); 892sb.AppendLine("This shows the order in which steps would execute, respecting all dependencies."); 893sb.AppendLine("Steps with no dependencies run first, followed by steps that depend on them."); 903sb.AppendLine("DETAILED STEP ANALYSIS"); 904sb.AppendLine("======================"); 905sb.AppendLine("Shows each step's dependencies, associated resources, tags, and descriptions."); 906sb.AppendLine("✓ = dependency exists, ? = dependency missing"); 932sb.AppendLine(string.Join(", ", depStatuses)); 936sb.AppendLine(" Dependencies: none"); 959sb.AppendLine("POTENTIAL ISSUES:"); 960sb.AppendLine("Identifies problems in the pipeline configuration that could prevent execution."); 961sb.AppendLine("─────────────────"); 986sb.AppendLine("INFO: Orphaned steps (no dependencies, not required by others):"); 996sb.AppendLine("No issues detected"); 1001sb.AppendLine("EXECUTION SIMULATION (\"What If\" Analysis):"); 1002sb.AppendLine("Shows what steps would run for each possible target step and in what order."); 1003sb.AppendLine("Steps at the same level can run concurrently."); 1004sb.AppendLine("─────────────────────────────────────────────────────────────────────────────"); 1019sb.AppendLine(" Direct dependencies: none"); 1028sb.AppendLine(" No steps would execute (isolated step with missing dependencies)"); 1040sb.AppendLine(" Execution order:");
Aspire.Hosting.Azure (1)
Provisioning\Internal\BicepCompiler.cs (1)
54armTemplateContents.AppendLine(data);
Aspire.Hosting.Azure.AppService (8)
AzureAppServiceEnvironmentResource.cs (8)
241sb.AppendLine("Resource '" + resource.Name + "' cannot be published to Azure App Service because it has environment variables with '-' in the name."); 243sb.AppendLine("Azure App Service removes '-' characters from environment variable names at runtime."); 244sb.AppendLine("This will change the keys and can prevent Aspire client integrations from finding the expected connection string."); 246sb.AppendLine("Affected setting(s):"); 251sb.AppendLine(" - " + key + " (becomes " + normalized + ")"); 255sb.AppendLine("Fix options:"); 256sb.AppendLine(" - Use a dash-free connection name in the AppHost (e.g. WithReference(resource, connectionName: \"mydb\"))."); 257sb.AppendLine($" - Call {nameof(AzureAppServiceComputeResourceExtensions.SkipEnvironmentVariableNameChecks)}() on this resource to bypass this validation.");
Aspire.Hosting.Azure.Tests (1)
AzureManifestUtils.cs (1)
68sb.AppendLine(bicep);
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
298batchBuilder.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 (5)
MSBuildTests.cs (2)
243output.AppendLine(e.Data); 569output.AppendLine(e.Data);
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)
85builder.AppendLine("Stack trace:"); 86builder.AppendLine(exception.StackTrace);
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
dotnet (7)
Commands\Reference\Add\ReferenceAddCommand.cs (1)
97sb.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\TestApplication.cs (2)
530builder.AppendLine(line); 597messageBuilder.AppendLine(ex.ToString());
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26323.115\contentFiles\cs\net11.0\CompilerServerLogger.cs (2)
85builder.AppendLine("Stack trace:"); 86builder.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\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.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");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
42triviaWriter: trivia => builder.AppendLine(trivia),
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 (69)
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("}");
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
77outputBuilder.AppendLine(args.Data);
Microsoft.AspNetCore.Components.Testing (3)
Infrastructure\ServerInstance.cs (3)
246buffer.AppendLine(line); 264sb.AppendLine("[STDOUT]"); 272sb.AppendLine("[STDERR]");
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)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.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.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)
1642builder.AppendLine(currentException.Message); 1645builder.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)
85builder.AppendLine("Stack trace:"); 86builder.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)
1642builder.AppendLine(currentException.Message); 1645builder.AppendLine(currentException.StackTrace);
Microsoft.CodeAnalysis (3)
Diagnostic\DiagnosticBag.cs (1)
283builder.AppendLine(diag.ToString());
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.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\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 170sb.AppendLine($" {group.Key.Type}{poolInfo}: {group.Count()}"); 176sb.AppendLine($" Allocation stack trace:"); 177sb.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}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 170sb.AppendLine($" {group.Key.Type}{poolInfo}: {group.Count()}"); 176sb.AppendLine($" Allocation stack trace:"); 177sb.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}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
Microsoft.CodeAnalysis.CodeStyle (8)
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)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 170sb.AppendLine($" {group.Key.Type}{poolInfo}: {group.Count()}"); 176sb.AppendLine($" Allocation stack trace:"); 177sb.AppendLine($" {info.StackTrace}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
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)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 170sb.AppendLine($" {group.Key.Type}{poolInfo}: {group.Count()}"); 176sb.AppendLine($" Allocation stack trace:"); 177sb.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.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\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 170sb.AppendLine($" {group.Key.Type}{poolInfo}: {group.Count()}"); 176sb.AppendLine($" Allocation stack trace:"); 177sb.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}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
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\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 176sb.AppendLine($" Allocation stack trace:");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
42triviaWriter: trivia => builder.AppendLine(trivia),
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
132builder.AppendLine(nameof(SourceGeneratorExecutionVersionMap));
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
484_processLogMessages.AppendLine(e.Data);
Microsoft.Diagnostics.DataContractReader.DataGenerator (66)
Emitter.cs (66)
32sb.AppendLine("// <auto-generated/>"); 33sb.AppendLine("#nullable enable"); 35sb.AppendLine("using Microsoft.Diagnostics.DataContractReader;"); 36sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Contracts;"); 41sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Generated;"); 46sb.AppendLine($"namespace {model.Namespace};"); 50sb.AppendLine(BuildClassDoc(model)); 51sb.AppendLine($"partial class {model.ClassName}"); 52sb.AppendLine("{"); 58sb.AppendLine($" private static readonly string[] _typeNames = {namesLiteral};"); 65sb.AppendLine($" public static {TypeHandleType} TypeHandle({Target} target)"); 66sb.AppendLine($" => TypeNameResolver.GetTypeHandle(target, _typeNames);"); 70sb.AppendLine($" public {TargetPointer} Address {{ get; }}"); 77sb.AppendLine($" private readonly {Target} _target;"); 102sb.AppendLine("}"); 135sb.AppendLine($" public void Write{member.Name}({propType} value)"); 136sb.AppendLine(" {"); 137sb.AppendLine($" LayoutSet layouts = LayoutSet.Resolve(_target, _typeNames);"); 138sb.AppendLine($" layouts.Select(Address, out var t, out var b, out var n, {NameArgs(member)});"); 141sb.AppendLine($" _target.WriteField<byte>(b, t, n, (byte)(value ? 1 : 0));"); 145sb.AppendLine($" _target.WriteNUIntField(b, t, n, value);"); 150sb.AppendLine($" _target.WriteField<{typeArg}>(b, t, n, value);"); 152sb.AppendLine($" {member.Name} = value;"); 153sb.AppendLine(" }"); 164sb.AppendLine($" partial void OnInit({Target} target, {TargetPointer} address);"); 167sb.AppendLine($" public {model.ClassName}({Target} target, {TargetPointer} address)"); 168sb.AppendLine(" {"); 169sb.AppendLine(" Address = address;"); 173sb.AppendLine(" _target = target;"); 179sb.AppendLine($" LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);"); 187sb.AppendLine(" OnInit(target, address);"); 188sb.AppendLine(" }"); 201sb.AppendLine($" {member.Name} = {RawOffsetReadExpression(member, offset)};"); 210sb.AppendLine($" {{"); 211sb.AppendLine($" if (layouts.TrySelect(address, out var t, out var b, out var n, {NameArgs(member)}))"); 212sb.AppendLine($" {member.Name} = {readExpr};"); 213sb.AppendLine($" else"); 214sb.AppendLine($" {member.Name} = default({propType});"); 215sb.AppendLine($" }}"); 219sb.AppendLine($" {{"); 220sb.AppendLine($" layouts.Select(address, out var t, out var b, out var n, {NameArgs(member)});"); 221sb.AppendLine($" {member.Name} = {readExpr};"); 222sb.AppendLine($" }}"); 229sb.AppendLine($" {{"); 230sb.AppendLine($" if (layouts.TrySelect(address, out var t, out var b, out var n, {NameArgs(member)}))"); 231sb.AppendLine($" {member.Name} = b + (ulong)t.Fields[n].Offset;"); 232sb.AppendLine($" else"); 233sb.AppendLine($" {member.Name} = null;"); 234sb.AppendLine($" }}"); 238sb.AppendLine($" {{"); 239sb.AppendLine($" layouts.Select(address, out var t, out var b, out var n, {NameArgs(member)});"); 240sb.AppendLine($" {member.Name} = b + (ulong)t.Fields[n].Offset;"); 241sb.AppendLine($" }}"); 245sb.AppendLine($" {member.Name} = address + layouts.InstanceSize;"); 297sb.AppendLine($" static {model.ClassName} {IDataInterface}<{model.ClassName}>.Create({Target} target, {TargetPointer} address)"); 298sb.AppendLine($" => new {model.ClassName}(target, address);"); 350sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target)"); 351sb.AppendLine($" => TypeNameResolver.GetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\");"); 357sb.AppendLine($" public static partial {TargetPointer}? {member.Name}({Target} target)"); 358sb.AppendLine(" {"); 359sb.AppendLine($" if (TypeNameResolver.TryGetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", out {TargetPointer} address))"); 360sb.AppendLine($" return target.ReadPointer(address);"); 361sb.AppendLine($" return null;"); 362sb.AppendLine(" }"); 368sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target, {TargetPointer} thread)"); 369sb.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 (1)
ToolReduction\EmbeddingToolReductionStrategy.cs (1)
71_ = sb.AppendLine(text);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIAssistantsChatClient.cs (1)
500_ = instructions.AppendLine().AppendLine(toAppend);
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
77outputBuilder.AppendLine(args.Data);
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationRootExtensions.cs (2)
60.AppendLine(")"); 67.AppendLine(":");
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
314builder.AppendLine(FormattableString.Invariant($"Health check data for {_name}:")); 324builder.AppendLine(kvp.Value?.ToString());
Microsoft.Extensions.Http (1)
Logging\HttpHeadersLogValue.cs (1)
91builder.AppendLine(_kind == Kind.Request ? "Request Headers:" : "Response Headers:");
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.Gen.BuildMetadata (2)
src\Generators\Shared\EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.ComplianceReports (2)
src\Generators\Shared\EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.ContextualOptions (2)
src\Generators\Shared\EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.Logging (2)
src\Generators\Shared\EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Shared\EmitterBase.cs (2)
76_ = _sb.AppendLine(line); 81_ = _sb.AppendLine(line);
Microsoft.Gen.Metrics (2)
src\Generators\Shared\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)
src\Generators\Shared\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.McpServer.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
77outputBuilder.AppendLine(args.Data);
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 (44)
ResolveTargetingPackAssets.cs (30)
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); 659builder.AppendLine(nameof(RuntimeFramework)); 660builder.AppendLine(Name); 661builder.AppendLine(FrameworkName); 665builder.AppendLine(Item.ItemSpec); 671builder.AppendLine(Item.GetMetadata(metadataName)); 721keyBuilder.AppendLine(FrameworkListPath.Value); 722keyBuilder.AppendLine(FrameworkListPath.OriginalValue); 723keyBuilder.AppendLine(TargetingPackRoot.Value); 724keyBuilder.AppendLine(TargetingPackRoot.OriginalValue); 725keyBuilder.AppendLine(TargetingPackDllFolder.Value); 726keyBuilder.AppendLine(TargetingPackDllFolder.OriginalValue); 727keyBuilder.AppendLine(FrameworkReferenceName); 728keyBuilder.AppendLine(Profile); 729keyBuilder.AppendLine(NuGetPackageId); 730keyBuilder.AppendLine(NuGetPackageVersion); 731keyBuilder.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"); 386result.AppendLine("--composite"); 398result.AppendLine("--inputbubble"); 408result.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 (45)
SdkRazorGenerate.cs (31)
98builder.AppendLine(Command); 111builder.AppendLine("-s"); 112builder.AppendLine(input.GetMetadata(FullPath)); 114builder.AppendLine("-r"); 115builder.AppendLine(input.GetMetadata(TargetPath)); 117builder.AppendLine("-o"); 119builder.AppendLine(outputPath); 127builder.AppendLine("-k"); 128builder.AppendLine(kind); 145builder.AppendLine("-cssscopedinput"); 146builder.AppendLine(input.GetMetadata(FullPath)); 147builder.AppendLine("-cssscopevalue"); 148builder.AppendLine(cssScope); 153builder.AppendLine("-p"); 154builder.AppendLine(ProjectRoot); 156builder.AppendLine("-t"); 157builder.AppendLine(TagHelperManifest); 159builder.AppendLine("-v"); 160builder.AppendLine(Version); 162builder.AppendLine("-c"); 163builder.AppendLine(Configuration[0].GetMetadata(Identity)); 170builder.AppendLine("--root-namespace"); 171builder.AppendLine(RootNamespace); 176builder.AppendLine("--generate-declaration"); 182builder.AppendLine("--support-localized-component-names"); 187builder.AppendLine("--csharp-language-version"); 188builder.AppendLine(CSharpLanguageVersion); 193builder.AppendLine("-n"); 194builder.AppendLine(Extensions[i].GetMetadata(Identity)); 196builder.AppendLine("-e"); 197builder.AppendLine(Path.GetFullPath(Extensions[i].GetMetadata(AssemblyFilePath)));
SdkRazorTagHelper.cs (14)
89builder.AppendLine(Command); 93builder.AppendLine(Assemblies[i]); 96builder.AppendLine("-o"); 97builder.AppendLine(TagHelperManifest); 99builder.AppendLine("-p"); 100builder.AppendLine(ProjectRoot); 102builder.AppendLine("-v"); 103builder.AppendLine(Version); 105builder.AppendLine("-c"); 106builder.AppendLine(Configuration[0].GetMetadata(Identity)); 110builder.AppendLine("-n"); 111builder.AppendLine(Extensions[i].GetMetadata(Identity)); 113builder.AppendLine("-e"); 114builder.AppendLine(Path.GetFullPath(Extensions[i].GetMetadata(AssemblyFilePath)));
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)
89builder.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.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
240_ = message.AppendLine($"Status code: {response.StatusCode}").AppendLine("Headers:");
Microsoft.TestPlatform.CrossPlatEngine (2)
TestEngine.cs (2)
673stringBuilder.AppendLine(Resources.Resources.NoTestHostProviderFound); 701stringBuilder.AppendLine().AppendLine(Resources.Resources.NoTestHostProviderFound);
Microsoft.TestPlatform.Utilities (1)
InferRunSettingsHelper.cs (1)
676warnings.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)
444_runLevelStdOut.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)
667errors.AppendLine(string.Format(CultureInfo.CurrentCulture,
NuGet.Commands (6)
RestoreCommand\RestoreCommand.cs (1)
1350errorMessageBuilder.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)
263process.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)
937warningMessage.AppendLine(StringFormatter.ZipFileTimeStampModifiedMessage(entryName, timeOffset.DateTime.ToShortDateString(), ZipFormatMinDate.ToShortDateString())); 942warningMessage.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\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (4)
165sb.AppendLine("Pool leak detected! The following pooled objects were not returned:"); 170sb.AppendLine($" {group.Key.Type}{poolInfo}: {group.Count()}"); 176sb.AppendLine($" Allocation stack trace:"); 177sb.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}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"), 42triviaWriter: trivia => builder.AppendLine(trivia),
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()));
Stress.ApiService (1)
Program.cs (1)
319sb.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)
2215sb.AppendLine(" {"); 2242sb.AppendLine("["); 2260sb.AppendLine(","); 2267sb.AppendLine(","); 2276sb.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)
105sb.AppendLine("Generic virtual method pointer lookup failure."); 107sb.AppendLine("Declaring type: " + GetTypeNameDebug(slotMethod.OwningType)); 108sb.AppendLine("Target type: " + GetTypeNameDebug(targetType)); 109sb.AppendLine("Method name: " + slotMethod.GetName()); 110sb.AppendLine("Instantiation:"); 113sb.AppendLine(" Argument " + i.LowLevelToString() + ": " + GetTypeNameDebug(slotMethod.Instantiation[i])); 134sb.AppendLine("Failed to create generic virtual method implementation"); 136sb.AppendLine("Declaring type: " + GetTypeNameDebug(result.OwningType)); 137sb.AppendLine("Method name: " + result.GetName()); 138sb.AppendLine("Instantiation:"); 141sb.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)
2264source.AppendLine($"new {JsonPolymorphismOptionsTypeRef}"); 2265source.AppendLine("{"); 2272source.AppendLine(" DerivedTypes ="); 2273source.AppendLine(" {"); 2279source.AppendLine(","); 2282source.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" +
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)
85builder.AppendLine("Stack trace:"); 86builder.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)
85builder.AppendLine("Stack trace:"); 86builder.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); 286stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdOutMessagesBanner); 293stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdErrMessagesBanner); 300stringBuilder.AppendLine(testResultPrefix + CommandLineResources.DbgTrcMessagesBanner); 307stringBuilder.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); 286stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdOutMessagesBanner); 293stringBuilder.AppendLine(testResultPrefix + CommandLineResources.StdErrMessagesBanner); 300stringBuilder.AppendLine(testResultPrefix + CommandLineResources.DbgTrcMessagesBanner); 307stringBuilder.AppendLine(testResultPrefix + CommandLineResources.AddnlInfoMessagesBanner);