1819 references to AppendLine
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (2)
216completeOutput.AppendLine(message); 219uniqueOutput.AppendLine(message);
aspire (7)
DotNetCliRunner.cs (7)
57stdoutBuilder.AppendLine(line); 117stdoutBuilder.AppendLine(line); 124stderrBuilder.AppendLine(line); 231stdoutBuilder.AppendLine(line); 238stderrBuilder.AppendLine(line); 622stdoutBuilder.AppendLine(line); 629stderrBuilder.AppendLine(line);
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.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
208output.AppendLine(logLine); 240output.AppendLine(line);
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
161OnOutputData = data => armTemplateContents.AppendLine(data),
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
280batchBuilder.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 (4)
MSBuildTests.cs (1)
114output.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)
208output.AppendLine(logLine); 240output.AppendLine(line);
BasicWebSite (4)
Formatters\VCardFormatter_V3.cs (2)
34builder.AppendLine("BEGIN:VCARD"); 37builder.AppendLine("END:VCARD");
Formatters\VCardFormatter_V4.cs (2)
35builder.AppendLine("BEGIN:VCARD"); 40builder.AppendLine("END:VCARD");
BuildActionTelemetryTable (14)
Program.cs (14)
173table.AppendLine("let actions = datatable(Description: string, ActionName: string, FnvHash: string)"); 174table.AppendLine("["); 200builder.AppendLine("// Licensed to the .NET Foundation under one or more agreements."); 201builder.AppendLine("// The .NET Foundation licenses this file to you under the MIT license."); 202builder.AppendLine("// See the LICENSE file in the project root for more information."); 204builder.AppendLine("using System.Collections.Immutable;"); 205builder.AppendLine("using System.Collections.Generic;"); 207builder.AppendLine("namespace BuildActionTelemetryTable;"); 209builder.AppendLine("internal static class CodeActionDescriptions"); 210builder.AppendLine("{"); 212builder.AppendLine(" public static ImmutableDictionary<string, string> CodeActionDescriptionMap { get; } = new Dictionary<string, string>()"); 213builder.AppendLine(" {"); 230builder.AppendLine(" }.ToImmutableDictionary();"); 231builder.AppendLine("}");
ClientSample (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
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)
275result.AppendLine("/nologo"); 286result.AppendLine(_createPDBCommand); 291result.AppendLine("/MissingDependenciesOK"); 316result.AppendLine("-O"); 323result.AppendLine("--pdb"); 328result.AppendLine("--perfmap"); 351result.AppendLine(extraArg); 357result.AppendLine("--composite"); 361result.AppendLine("--inputbubble"); 371result.AppendLine(reference.ItemSpec);
csc (4)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (2)
83builder.AppendLine("Stack trace:"); 84builder.AppendLine(exception.StackTrace);
src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
CSharpErrorFactsGenerator (46)
Program.cs (46)
33outputText.AppendLine("namespace Microsoft.CodeAnalysis.CSharp"); 34outputText.AppendLine("{"); 35outputText.AppendLine(" internal static partial class ErrorFacts"); 36outputText.AppendLine(" {"); 62outputText.AppendLine(" public static bool IsWarning(ErrorCode code)"); 63outputText.AppendLine(" {"); 64outputText.AppendLine(" switch (code)"); 65outputText.AppendLine(" {"); 70outputText.AppendLine(":"); 72outputText.AppendLine(" return true;"); 73outputText.AppendLine(" default:"); 74outputText.AppendLine(" return false;"); 75outputText.AppendLine(" }"); 76outputText.AppendLine(" }"); 80outputText.AppendLine(" public static bool IsFatal(ErrorCode code)"); 81outputText.AppendLine(" {"); 82outputText.AppendLine(" switch (code)"); 83outputText.AppendLine(" {"); 88outputText.AppendLine(":"); 90outputText.AppendLine(" return true;"); 91outputText.AppendLine(" default:"); 92outputText.AppendLine(" return false;"); 93outputText.AppendLine(" }"); 94outputText.AppendLine(" }"); 98outputText.AppendLine(" public static bool IsInfo(ErrorCode code)"); 99outputText.AppendLine(" {"); 100outputText.AppendLine(" switch (code)"); 101outputText.AppendLine(" {"); 106outputText.AppendLine(":"); 108outputText.AppendLine(" return true;"); 109outputText.AppendLine(" default:"); 110outputText.AppendLine(" return false;"); 111outputText.AppendLine(" }"); 112outputText.AppendLine(" }"); 116outputText.AppendLine(" public static bool IsHidden(ErrorCode code)"); 117outputText.AppendLine(" {"); 118outputText.AppendLine(" switch (code)"); 119outputText.AppendLine(" {"); 124outputText.AppendLine(":"); 126outputText.AppendLine(" return true;"); 127outputText.AppendLine(" default:"); 128outputText.AppendLine(" return false;"); 129outputText.AppendLine(" }"); 130outputText.AppendLine(" }"); 132outputText.AppendLine(" }"); 133outputText.AppendLine("}");
dotnet-dev-certs (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-getdocument (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-openapi (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
dotnet-sql-cache (4)
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); 94s_helpBuilder.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", syntax)); 95s_helpBuilder.AppendLine(paragraphHelper.AddIndentation(string.Format(CultureInfo.InvariantCulture, " {0}", explanation), indentLength: 4)); 185s_helpBuilder.AppendLine(paragraphHelper.AddIndentation(optionHelp, helpTextIndent)); 241s_helpBuilder.AppendLine(new string(' ', _nameStart) + _name); 252s_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 (11)
Helpers\ConsoleTable.cs (5)
96builder.AppendLine(rowDivider); 97builder.AppendLine(columnHeaders); 103stringBuilder.AppendLine(divider); 127stringBuilder.AppendLine(outputRow); 129stringBuilder.AppendLine(divider);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
89outputBuilder.AppendLine(d.Data); 96errorBuilder.AppendLine(d.Data);
dotnet-user-secrets (6)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
89outputBuilder.AppendLine(d.Data); 96errorBuilder.AppendLine(d.Data);
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 (16)
Program.cs (16)
591builder.AppendLine(description); 594builder.AppendLine("|Item|Value|"); 595builder.AppendLine("|-|-|"); 601builder.AppendLine("---"); 828builder.AppendLine(line); 1119result.AppendLine(@"<?xml version=""1.0""?>"); 1125result.AppendLine("</RuleSet>"); 1135result.AppendLine(" </Rules>"); 1184result.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 1189result.AppendLine(@"# Code files"); 1190result.AppendLine(@"[*.{cs,vb}]"); 1420result.AppendLine(@"# NOTE: Requires **VS2019 16.7** or later"); 1425result.AppendLine($@"is_global = true"); 1780builder.AppendLine($""" 1790builder.AppendLine($@" </ItemGroup>"); 1818builder.AppendLine($@" </PropertyGroup>");
GenerateRulesMissingDocumentation (1)
Program.cs (1)
94builder.AppendLine(line);
GetDocument.Insider (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
HelixTestRunner (2)
ProcessUtil.cs (2)
130outputBuilder.AppendLine(e.Data); 146errorBuilder.AppendLine(e.Data);
IdeCoreBenchmarks (2)
SwitchStatementBenchmarks.cs (2)
29builder.AppendLine( 47builder.AppendLine(
illink (1)
ILLink.Tasks (27)
LinkTask.cs (27)
297 args.Append (enabled ? "--enable-opt " : "--disable-opt ").AppendLine (opt); 302 args.Append (enabled ? "--enable-opt " : "--disable-opt ").Append (opt).Append (' ').AppendLine (assembly); 311 args.Append ("-x ").AppendLine (Quote (rootFile.ItemSpec)); 328 args.AppendLine ("--singlewarn"); 330 args.AppendLine ("--singlewarn-"); 339 args.Append ("--trim-mode ").AppendLine (trimMode); 347 args.Append ("--action ").AppendLine (defaultAction); 359 args.Append ("-reference ").AppendLine (Quote (assemblyPath)); 375 args.Append (' ').AppendLine (Quote (assemblyName)); 397 args.Append ("--singlewarn ").AppendLine (Quote (assemblyName)); 399 args.Append ("--singlewarn- ").AppendLine (Quote (assemblyName)); 413 args.Append ("-reference ").AppendLine (Quote (assemblyPath)); 418 args.Append ("--action skip ").AppendLine (Quote (assemblyName)); 423 args.Append ("-out ").AppendLine (Quote (OutputDirectory.ItemSpec)); 426 args.Append ("--nowarn ").AppendLine (Quote (NoWarn)); 429 args.Append ("--warn ").AppendLine (Quote (Warn)); 437 args.Append ("--warnaserror ").AppendLine (Quote (WarningsAsErrors)); 440 args.Append ("--warnaserror- ").AppendLine (Quote (WarningsNotAsErrors)); 467 args.Append ("--custom-data ").Append (' ').Append (key).Append ('=').AppendLine (Quote (value)); 477 args.Append ("--feature ").Append (feature).Append (' ').AppendLine (featureValue); 483 args.Append ("--keep-metadata ").AppendLine (Quote (metadata.ItemSpec)); 487 args.AppendLine ("-b"); 490 args.AppendLine ("--preserve-symbol-paths"); 511 args.AppendLine (Quote (customStepString)); 516 args.AppendLine (ExtraArgs); 519 args.AppendLine ("--dump-dependencies"); 522 args.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));
InMemory.FunctionalTests (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
InteropTests (6)
Helpers\ClientProcess.cs (2)
68_output.AppendLine(data); 80_output.AppendLine("ERROR: " + data);
Helpers\WebsiteProcess.cs (2)
84_output.AppendLine(data); 96_output.AppendLine("ERROR: " + data);
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Metrics (9)
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}");
Metrics.Legacy (9)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.Arcade.Test.Common (6)
AssertEx.cs (6)
411output.AppendLine(trimmedLine); 464message.AppendLine("Actual:"); 465message.AppendLine(string.Join(itemSeparator, actual.Select(itemInspector))); 468message.AppendLine("Expected:"); 469message.AppendLine(string.Join(itemSeparator, expected.Select(itemInspector))); 472message.AppendLine("Diff:");
Microsoft.AspNetCore.App.Analyzers.Test (8)
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (8)
532builder.AppendLine(""" 540builder.AppendLine(" \"a{}bc\" +"); 542builder.AppendLine(""" 571builder.AppendLine(""" 580builder.AppendLine(" \"a{}bc\" +"); 582builder.AppendLine(""" 600builder.AppendLine(""" 626builder.AppendLine("""
Microsoft.AspNetCore.Authentication.Test (7)
OpenIdConnect\TestSettings.cs (7)
72buf.AppendLine("The challenge form post is not valid."); 77buf.AppendLine(error); 110buf.AppendLine("The signout form post is not valid."); 115buf.AppendLine(error); 149buf.AppendLine("The redirect uri is not valid."); 150buf.AppendLine(redirectUri.AbsoluteUri); 154buf.AppendLine(error);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Verifiers\DiagnosticVerifier.cs (1)
242builder.AppendLine("// " + diagnostics[i].ToString());
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Verifiers\DiagnosticVerifier.cs (1)
242builder.AppendLine("// " + diagnostics[i].ToString());
Microsoft.AspNetCore.DataProtection.Tests (1)
StringLoggerFactory.cs (1)
69_factory._log.AppendLine(message);
Microsoft.AspNetCore.Diagnostics (4)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (4)
238sb.AppendLine(errorContext.Exception.ToString()); 240sb.AppendLine("HEADERS"); 241sb.AppendLine("======="); 244sb.AppendLine(FormattableString.Invariant($"{pair.Key}: {pair.Value}"));
Microsoft.AspNetCore.Http.Extensions (17)
RequestDelegateFactory.cs (15)
2833errorMessage.AppendLine("Failure to infer one or more parameters."); 2834errorMessage.AppendLine("Below is the list of parameters that we found: "); 2836errorMessage.AppendLine(FormattableString.Invariant($"{"Parameter",-20}| {"Source",-30}")); 2837errorMessage.AppendLine("---------------------------------------------------------------------------------"); 2842errorMessage.AppendLine("Did you mean to register the \"UNKNOWN\" parameters as a Service?") 2850errorMessage.AppendLine("Body was inferred but the method does not allow inferred body parameters."); 2851errorMessage.AppendLine("Below is the list of parameters that we found: "); 2853errorMessage.AppendLine(FormattableString.Invariant($"{"Parameter",-20}| {"Source",-30}")); 2854errorMessage.AppendLine("---------------------------------------------------------------------------------"); 2859errorMessage.AppendLine("Did you mean to register the \"Body (Inferred)\" parameter(s) as a Service or apply the [FromServices] or [FromBody] attribute?") 2867errorMessage.AppendLine("An action cannot use both form and JSON body parameters."); 2868errorMessage.AppendLine("Below is the list of parameters that we found: "); 2870errorMessage.AppendLine(FormattableString.Invariant($"{"Parameter",-20}| {"Source",-30}")); 2871errorMessage.AppendLine("---------------------------------------------------------------------------------"); 2882errorMessage.AppendLine(FormattableString.Invariant($"{kv.Key,-19} | {kv.Value,-15}"));
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.InternalTesting.Tests (2)
TestTestOutputHelper.cs (2)
25_output.AppendLine(message); 34_output.AppendLine(string.Format(CultureInfo.InvariantCulture, format, args));
Microsoft.AspNetCore.Mvc.Abstractions (2)
src\Shared\ParameterBindingMethodCache.cs (2)
196stringBuilder.AppendLine("but found"); 292stringBuilder.AppendLine("but found");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
DefaultDisplayTemplatesTest.cs (2)
191stringBuilder.AppendLine(label); 198stringBuilder.AppendLine(value);
DefaultEditorTemplatesTest.cs (2)
424stringBuilder.AppendLine(label); 433stringBuilder.AppendLine(value);
Microsoft.AspNetCore.OpenApi (2)
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.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.Routing.Microbenchmarks (4)
EndpointRoutingBenchmarkBase.cs (4)
73message.AppendLine(FormattableString.Invariant($"Validation failed for request {Array.IndexOf(Requests, httpContext)}")); 74message.AppendLine(FormattableString.Invariant($"{httpContext.Request.Method} {httpContext.Request.Path}")); 75message.AppendLine(FormattableString.Invariant($"expected: '{((RouteEndpoint)expected)?.DisplayName ?? "null"}'")); 76message.AppendLine(FormattableString.Invariant($"actual: '{((RouteEndpoint)actual)?.DisplayName ?? "null"}'"));
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (38)
Listener\RequestHeaderTests.cs (5)
209builder.AppendLine("GET / HTTP/1.1"); 210builder.AppendLine("Connection: close"); 212builder.AppendLine(uri.Authority); 217builder.AppendLine(value); 218builder.AppendLine("Spacer-Header: spacervalue");
Listener\RequestTests.cs (3)
176builder.AppendLine(FormattableString.Invariant($"{method} {path} HTTP/1.1")); 177builder.AppendLine("Connection: close"); 179builder.AppendLine(uri.Authority);
OpaqueUpgradeTests.cs (1)
423builder.AppendLine(extraHeader);
RequestBodyTests.cs (2)
348builder.AppendLine("Connection: close"); 349builder.AppendLine("Content-Length: 10");
RequestHeaderTests.cs (9)
59builder.AppendLine("GET / HTTP/1.1"); 60builder.AppendLine("Connection: close"); 62builder.AppendLine(uri.Authority); 66builder.AppendLine(value); 67builder.AppendLine("Spacer-Header: spacervalue"); 256builder.AppendLine("POST / HTTP/1.1"); 257builder.AppendLine("Connection: close"); 259builder.AppendLine(uri.Authority); 266builder.AppendLine(value);
RequestTests.cs (14)
376builder.AppendLine(FormattableString.Invariant($"GET /a HTTP/1.1")); 377builder.AppendLine("Connection: close"); 379builder.AppendLine(uri.Authority); 532builder.AppendLine("POST / HTTP/1.1"); 533builder.AppendLine("Connection: close"); 534builder.AppendLine("Content-Length: 10"); 536builder.AppendLine(uri.Authority); 579builder.AppendLine("POST / HTTP/1.1"); 580builder.AppendLine("Connection: close"); 581builder.AppendLine("Content-Length: 10"); 583builder.AppendLine(uri.Authority); 629builder.AppendLine("GET " + path + " HTTP/1.1"); 630builder.AppendLine("Connection: close"); 632builder.AppendLine(uri.Authority);
ResponseTests.cs (4)
257builder.AppendLine("POST / HTTP/1.1"); 258builder.AppendLine("Connection: close"); 260builder.AppendLine(uri.Authority); 261builder.AppendLine("Content-Length: 10");
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.IntegrationTesting (2)
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
79builder.AppendLine("Block leased from:"); 80builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (3)
HubClientProxyGenerator.Emitter.cs (3)
53registerProviderBody.AppendLine($@" 182registrationMethodBody.AppendLine($@" 186registrationMethodBody.AppendLine(@"
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
425_factory._log.AppendLine(message);
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
src\Shared\SignalR\InProcessTestServer.cs (2)
144builder.AppendLine(FormattableString.Invariant($"{log.Timestamp:O} {log.Write.LoggerName} {log.Write.LogLevel}: {log.Write.Formatter(log.Write.State, log.Write.Exception)}")); 150builder.AppendLine(FormattableString.Invariant($"| {line}"));
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamStringReader.cs (1)
27private void OnReceivedLine(string line) => _stringBuilder.AppendLine(line);
Microsoft.AspNetCore.WebSockets.ConformanceTests (5)
Autobahn\AutobahnExpectations.cs (4)
54failures.AppendLine(FormattableString.Invariant($"Case {serverResult.Name}:{caseResult.Name}. Expected 'FAILED', but got '{caseResult.ActualBehavior}'")); 60failures.AppendLine(FormattableString.Invariant($"Case {serverResult.Name}:{caseResult.Name}. Expected 'NON-STRICT', but got '{caseResult.ActualBehavior}'")); 66failures.AppendLine(FormattableString.Invariant($"Case {serverResult.Name}:{caseResult.Name}. Expected 'NON-STRICT' or 'OK', but got '{caseResult.ActualBehavior}'")); 72failures.AppendLine(FormattableString.Invariant($"Case {serverResult.Name}:{caseResult.Name}. Expected 'FAILED', 'NON-STRICT' or 'OK', but got '{caseResult.ActualBehavior}'"));
Autobahn\AutobahnTester.cs (1)
115failures.AppendLine(FormattableString.Invariant($"Expected no results for server: {serverResult.Name} but found results!"));
Microsoft.Build (13)
Evaluation\Profiler\EvaluationLocationMarkdownPrettyPrinter.cs (1)
23stringBuilder.AppendLine("---|---|---|---|---:|---|---:|---:|---:|---:|---:|---:|---");
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (1)
97stringBuilder.AppendLine(string.Join(separator,
Graph\GraphBuilder.cs (1)
615.AppendLine(" ->");
Graph\ProjectGraph.cs (6)
507sb.AppendLine($"/* {DebuggerDisplayString()} */"); 509sb.AppendLine("digraph g") 510.AppendLine("{") 511.AppendLine("\tnode [shape=box]"); 526sb.AppendLine($"\t{nodeId} [label=<{nodeName}<br/>({targetListString})<br/>{globalPropertiesString}>]"); 532sb.AppendLine($"\t{nodeId} -> {referenceId}");
Logging\TerminalLogger\Terminal.cs (1)
146_outputBuilder.AppendLine(text);
Logging\TerminalLogger\TerminalNodesFrame.cs (1)
104sb.AppendLine($"{AnsiCodes.CSI}{previousFrame.NodesCount + 1}{AnsiCodes.MoveUpToLineStart}");
TaskLoggingHelper.cs (2)
964builder.AppendLine(exception.Message); 967builder.AppendLine(exception.StackTrace);
Microsoft.Build.Engine.OM.UnitTests (3)
Construction\ConstructionEditing_Tests.cs (2)
3265sb.Append(itemSpace).AppendLine(splits[0]); 3269sb.Append(metadataSpace).AppendLine(splits[i]);
Definition\Project_Tests.cs (1)
2849sb.Append("<i_").Append(i).AppendLine(" Include=\"a\"/>");
Microsoft.Build.Engine.UnitTests (25)
BackEnd\CustomTaskHelper.cs (1)
57builder.AppendLine(error.ToString());
BuildEventArgsSerialization_Tests.cs (2)
1219sb.AppendLine(item.Key.ToString()); 1220sb.AppendLine(item.Value.ToString());
Construction\SolutionFile_OldParser_Tests.cs (3)
2478stringBuilder.AppendLine(comment); 2479stringBuilder.AppendLine(lines[i]); 2481stringBuilder.AppendLine(comment);
Evaluation\ItemEvaluation_Tests.cs (1)
540content.Append("<i Include='ItemValue").Append(i).AppendLine("' />");
ProjectCache\ProjectCacheTests.cs (2)
633sb.AppendLine("<SolutionConfiguration>"); 653sb.AppendLine("</SolutionConfiguration>");
SolutionFileBuilder.cs (16)
145sb.AppendLine(@" 154Project(""").Append(project.ProjectTypeGuid).Append(@""") = """).Append(project.Name).Append(@""", """).Append(project.Path).Append(@""", """).Append(project.Guid).AppendLine(@""""); 158sb.AppendLine("\tProjectSection(ProjectDependencies) = postProject"); 162sb.Append("\t\t").Append(dependency.Guid).Append(" = ").AppendLine(dependency.Guid); 167sb.Append("\t\t").Append(dependencyGuid).Append(" = ").AppendLine(dependencyGuid); 170sb.AppendLine("\tEndProjectSection"); 173sb.AppendLine(@" 177sb.AppendLine("Global"); 179sb.AppendLine("\tGlobalSection(SolutionConfigurationPlatforms) = preSolution"); 183sb.Append("\t\t").Append(solutionConfigurationPlatform.FullName).Append(" = ").AppendLine(solutionConfigurationPlatform.FullName); 186sb.AppendLine("\tEndGlobalSection"); 188sb.AppendLine("\tGlobalSection(ProjectConfigurationPlatforms) = postSolution"); 196sb.Append("\t\t").Append(project.Value.Guid).Append('.').Append(solutionConfiguration.FullName).Append(".ActiveCfg = ").AppendLine(projectConfiguration.FullName); 197sb.Append("\t\t").Append(project.Value.Guid).Append('.').Append(solutionConfiguration.FullName).Append(".Build.0 = ").AppendLine(projectConfiguration.FullName); 201sb.AppendLine("\tEndGlobalSection"); 203sb.AppendLine("EndGlobal");
Microsoft.Build.Framework (2)
TaskParameterEventArgs.cs (2)
112sb.AppendLine($"{args.Kind}: {args.ItemType}"); 115sb.AppendLine(item.ToString());
Microsoft.Build.Tasks.CodeAnalysis (6)
GenerateMSBuildEditorConfig.cs (4)
70builder.AppendLine("is_global = true"); 78.AppendLine(prop.GetMetadata("Value")); 90builder.AppendLine("]"); 103.AppendLine(item.GetMetadata(metadataName));
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (2)
83builder.AppendLine("Stack trace:"); 84builder.AppendLine(exception.StackTrace);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
TestUtilities\MockEngine.cs (4)
31_log.AppendLine(msg); 38_log.AppendLine(msg); 44_log.AppendLine(eventArgs.Message); 50_log.AppendLine(eventArgs.Message);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\ResolveAssemblyReference.cs (1)
1390log.AppendLine().Append(Strings.EightSpaces).AppendLine(dependeeReference.FullPath);
FileIO\WriteLinesToFile.cs (1)
79buffer.AppendLine(line.ItemSpec);
Microsoft.Build.UnitTests.Shared (8)
MockEngine.cs (5)
102_log.AppendLine(message); 129_log.AppendLine(message); 143_log.AppendLine(eventArgs.Message); 157_log.AppendLine(eventArgs.Message); 178_log.AppendLine(message);
MockLogger.cs (3)
287_fullLog.AppendLine(logMessage); 297_fullLog.AppendLine(logMessage); 315_fullLog.AppendLine(msg);
Microsoft.Build.Utilities.Core (2)
TaskLoggingHelper.cs (2)
964builder.AppendLine(exception.Message); 967builder.AppendLine(exception.StackTrace);
Microsoft.Build.Utilities.UnitTests (4)
MockEngine.cs (4)
47_log.AppendLine(EventArgsFormatting.FormatEventMessage(eventArgs)); 54_log.AppendLine(EventArgsFormatting.FormatEventMessage(eventArgs)); 61_log.AppendLine(eventArgs.Message); 70_log.AppendLine(eventArgs.Message);
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticBag.cs (1)
282builder.AppendLine(diag.ToString());
Microsoft.CodeAnalysis.Analyzers (14)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (5)
380builder.AppendLine(entriesToAdd.First()); 443builder.AppendLine(ReleaseTrackingHelper.TableTitleNewRules); 445builder.AppendLine(ReleaseTrackingHelper.TableHeaderNewOrRemovedRulesLine1); 457builder.AppendLine(ReleaseTrackingHelper.TableTitleChangedRules); 459builder.AppendLine(ReleaseTrackingHelper.TableHeaderChangedRulesLine1);
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.BannedApiAnalyzers (9)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (2)
69sb.AppendLine(commentText.ToString()); 83sb.AppendLine(trimmedPart);
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.UnitTestUtilities (4)
src\Features\DiagnosticsTestUtilities\CodeActions\CodeFixVerifierHelper.cs (4)
109analyzerConfig.AppendLine(explicitEditorConfig); 113analyzerConfig.AppendLine("root = true"); 117analyzerConfig.AppendLine($"[*.{defaultFileExtension}]"); 129analyzerConfig.AppendLine($"{optionKey.Option.Definition.ConfigName} = {optionKey.Option.Definition.Serializer.Serialize(value)}");
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)
363sb.AppendLine("Method type inference internal state"); 383sb.AppendLine("Dependencies are not yet calculated"); 388sb.AppendLine("dependency matrix (Not dependent / Direct / Indirect / Unknown):");
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (4)
1559sb.AppendLine("Overload resolution succeeded and chose " + this.ValidResult.Member.ToString()); 1563sb.AppendLine("Overload resolution failed because of ambiguous possible best methods."); 1567sb.AppendLine("Overload resolution failed (possibly) because type inference was unable to infer type parameters."); 1570sb.AppendLine("Detailed results:");
BoundTree\BoundDecisionDag.cs (1)
222result.AppendLine(state.GetDebuggerDisplay());
BoundTree\BoundNode_Source.cs (3)
400builder.AppendLine(s); 406builder.AppendLine(s); 412builder.AppendLine(s);
BoundTree\LengthBasedStringSwitchData.cs (3)
265builder.AppendLine("Length dispatch:"); 271builder.AppendLine("Char dispatches:"); 280builder.AppendLine("String dispatches:");
Compiler\DocumentationCommentCompiler.cs (1)
1311builder.AppendLine(message);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
83builder.AppendLine(kv.Key.Dump()); 85builder.AppendLine(kv.Value.Dump());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
StringIndentation\StringIndentationTests.cs (2)
746input.AppendLine( 752input.AppendLine(
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (6)
Recommendations\RecommenderTests.cs (6)
229builder.AppendLine("using System.Threading.Tasks;"); 232builder.AppendLine("class C"); 233builder.AppendLine("{"); 253builder.AppendLine(" F()"); 254builder.AppendLine(" {"); 256builder.AppendLine(" }");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenAsyncIteratorTests.cs (3)
4614builder.AppendLine("await System.Threading.Tasks.Task.Yield();"); 4618builder.AppendLine("await System.Threading.Tasks.Task.CompletedTask;"); 4622builder.AppendLine($@"yield break;");
CodeGen\CodeGenCapturing.cs (4)
373methodText.AppendLine("{"); 397methodText.AppendLine(localFunc); 409methodText.AppendLine("}"); 460methodsText.AppendLine("\r\n}");
CodeGen\CodeGenDynamicTests.cs (3)
133sb.AppendLine(excludeBinderFlags ? "public enum CSharpBinderFlags { A }" : CSharpBinderFlagsSource); 134sb.AppendLine(excludeArgumentInfoFlags ? "public enum CSharpArgumentInfoFlags { A }" : CSharpArgumentInfoFlagsSource); 135sb.AppendLine(CSharpArgumentInfoSource);
CodeGen\CodeGenFieldInitTests.cs (1)
655expectedOutput.AppendLine(i.ToString());
Emit\EmitErrorTests.cs (1)
293builder.AppendLine(string.Format(" int i{0} = {0};", i));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Attributes\AttributeTests_Assembly.cs (1)
1798builder.AppendLine(attr.ToString());
Attributes\AttributeTests_MarshalAs.cs (4)
494source.AppendLine(string.Format("[MarshalAs(UnmanagedType.LPArray, ArraySubType = (UnmanagedType)0x{0:X})]int {1};", i, fldName)); 499source.AppendLine("}"); 637source.AppendLine(string.Format("[MarshalAs(UnmanagedType.ByValArray, ArraySubType = (UnmanagedType)0x{0:X})]int {1};", i, fldName)); 641source.AppendLine("}");
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2922sb.AppendLine("}");
Semantics\ExpressionOptionalAndNamedArgumentsTests.cs (2)
66builder.AppendLine(line.Substring(index)); 70builder.AppendLine(line);
Semantics\PatternMatchingTests.cs (3)
5039statement.AppendLine("{"); 5046statement.AppendLine($" break;"); 5049statement.AppendLine("}");
Semantics\PatternMatchingTests3.cs (2)
4932tests.AppendLine(FormattableString.Invariant($" Console.WriteLine(M({t}{point}{kind}));")); 4933expected.AppendLine(FormattableString.Invariant($"{i}"));
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (29)
EndToEndTests.cs (29)
148builder.AppendLine( 156builder.AppendLine(@" .M(""test"")"); 158builder.AppendLine( 229builder.AppendLine(""" 243builder.AppendLine(""".M("test")"""); 245builder.AppendLine("""; } }"""); 288builder.AppendLine(@" 307builder.AppendLine(" local;"); 308builder.AppendLine(@" 315builder.AppendLine($"public struct MyStruct{i}<T{i}> {{"); 319builder.AppendLine("}"); 429builder.AppendLine( 437builder.AppendLine( 443builder.AppendLine(" }"); 445builder.AppendLine( 468builder.AppendLine(""" 478builder.AppendLine($$""" 482builder.AppendLine(""" 572sourceBuilder.AppendLine($"class C{i}<T> where T : C{next}<T> {{ }}"); 593sb.AppendLine(""" 600sb.AppendLine(""" { "a", "b" },"""); 603sb.AppendLine("};"); 642builder.AppendLine("C.M();"); 690builder.AppendLine($"{i}"); 721builder1.AppendLine($$"""interface I{{i}} { }"""); 732builder2.AppendLine($$"""void M1(System.Action<I{{i}}> a) { }"""); 742builder2.AppendLine($$"""void M2(I{{i}} x, System.Func<string, I{{i}}> f) { }"""); 860builder.AppendLine(preamble); 871builder.AppendLine(postscript);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (179)
Semantics\LambdaTests.cs (3)
2631builder.AppendLine("using System;"); 2655builder.AppendLine("}"); 2691builder.AppendLine(getLine(i));
Semantics\NullableContextTests.cs (1)
451foreach (var str in Directives) builder.AppendLine(str);
Semantics\NullableReferenceTypesTests.cs (1)
64200builder.AppendLine(" };");
Semantics\OverloadResolutionPerfTests.cs (150)
27builder.AppendLine("class C"); 28builder.AppendLine("{"); 29builder.AppendLine($" static void F() {{ F(null); }}"); // matches n overloads: F(C0), F(C1), ... 34builder.AppendLine("}"); 53builder.AppendLine("class C"); 54builder.AppendLine("{"); 55builder.AppendLine($" static object F(C x) => x + null;"); // matches n overloads: +(C, C0), +(C, C1), ... 60builder.AppendLine("}"); 78builder.AppendLine("using System;"); 83builder.AppendLine("static class S"); 84builder.AppendLine("{"); 89builder.AppendLine("}"); 100builder.AppendLine("using System;"); 105builder.AppendLine("class C"); 106builder.AppendLine("{"); 112builder.AppendLine("}"); 123builder.AppendLine("using System;"); 128builder.AppendLine("static class S"); 129builder.AppendLine("{"); 134builder.AppendLine("}"); 145builder.AppendLine("using System;"); 150builder.AppendLine("static class S"); 151builder.AppendLine("{"); 156builder.AppendLine("}"); 167builder.AppendLine("using System;"); 172builder.AppendLine("static class S"); 173builder.AppendLine("{"); 185builder.AppendLine("}"); 200builder.AppendLine("using System;"); 205builder.AppendLine("{"); 210builder.AppendLine(" {"); 220builder.AppendLine(" return null;"); 221builder.AppendLine(" }"); 224builder.AppendLine("}"); 227builder.AppendLine(@" 465builder.AppendLine("{"); 466builder.AppendLine(" static object[] F = new[]"); 467builder.AppendLine(" {"); 472builder.AppendLine(" };"); 473builder.AppendLine("}"); 488builder.AppendLine("static class Program"); 489builder.AppendLine("{"); 492builder.AppendLine(i % 2 == 0 ? "#nullable enable" : "#nullable disable"); 495builder.AppendLine("}"); 514builder.AppendLine("#nullable enable"); 515builder.AppendLine("class Program"); 516builder.AppendLine("{"); 517builder.AppendLine(" static void F1(System.Func<object, object> f) { }"); 518builder.AppendLine(" static void F2(object arg)"); 519builder.AppendLine(" {"); 524builder.AppendLine(" }"); 525builder.AppendLine("}"); 544builder.AppendLine("#nullable enable"); 545builder.AppendLine("class Program"); 546builder.AppendLine("{"); 547builder.AppendLine(" static void F(object arg)"); 548builder.AppendLine(" {"); 554builder.AppendLine(" }"); 555builder.AppendLine("}"); 573builder.AppendLine("#pragma warning disable 168"); 574builder.AppendLine("#nullable enable"); 575builder.AppendLine("class Program"); 576builder.AppendLine("{"); 577builder.AppendLine(" static void F(object arg)"); 578builder.AppendLine(" {"); 583builder.AppendLine(" object i0 = arg;"); 584builder.AppendLine(" if (i0 == null) i0.ToString();"); 585builder.AppendLine(" }"); 586builder.AppendLine("}"); 601builder.AppendLine("#nullable enable"); 602builder.AppendLine("class Program"); 603builder.AppendLine("{"); 604builder.AppendLine(" static object F()"); 605builder.AppendLine(" {"); 606builder.AppendLine(" object i0 = null;"); 612builder.AppendLine(" }"); 613builder.AppendLine("}"); 633builder.AppendLine("#nullable enable"); 634builder.AppendLine("class Program"); 635builder.AppendLine("{"); 636builder.AppendLine(" static void F0(System.Action a) { }"); 637builder.AppendLine(" static U F1<T, U>(T arg, System.Func<T, U> f) => f(arg);"); 638builder.AppendLine(" static object F2(object arg)"); 639builder.AppendLine(" {"); 640builder.AppendLine(" if (arg == null) { }"); 641builder.AppendLine(" var value = arg;"); 642builder.AppendLine(" F0(() => { });"); 647builder.AppendLine(" return value;"); 648builder.AppendLine(" }"); 649builder.AppendLine("}"); 666builder.AppendLine("#nullable enable"); 667builder.AppendLine("class C"); 668builder.AppendLine("{"); 669builder.AppendLine(" C F(int i) => this;"); 670builder.AppendLine(" static void Main()"); 671builder.AppendLine(" {"); 672builder.AppendLine(" C c = new C()"); 677builder.AppendLine(" ;"); 678builder.AppendLine(" }"); 679builder.AppendLine("}"); 694builder.AppendLine("#nullable enable"); 695builder.AppendLine("class C"); 696builder.AppendLine("{"); 697builder.AppendLine(" C F(int i) => this;"); 698builder.AppendLine(" static void Main()"); 699builder.AppendLine(" {"); 700builder.AppendLine(" Local();"); 701builder.AppendLine(" static void Local()"); 702builder.AppendLine(" {"); 703builder.AppendLine(" C c = new C()"); 708builder.AppendLine(" ;"); 709builder.AppendLine(" }"); 710builder.AppendLine(" Local();"); 711builder.AppendLine(" }"); 712builder.AppendLine("}"); 745sourceBuilder.AppendLine(" c!.M(x)"); 804builder.AppendLine("#nullable enable"); 805builder.AppendLine("class Program"); 806builder.AppendLine("{"); 807builder.AppendLine(" static int GetIndex() => 0;"); 808builder.AppendLine(" static void Main()"); 809builder.AppendLine(" {"); 810builder.AppendLine(" int index = 0;"); 811builder.AppendLine(" int tmp1;"); 812builder.AppendLine(" int tmp2; // unused"); 814builder.AppendLine("L0:"); 815builder.AppendLine(" if (index < 64) goto LSwitch;"); 819builder.AppendLine(" tmp1 = GetIndex();"); 820builder.AppendLine(" if (index != tmp1)"); 821builder.AppendLine(" {"); 822builder.AppendLine(" if (index < 64) goto LSwitch;"); 824builder.AppendLine(" }"); 827builder.AppendLine(" tmp1 = GetIndex();"); 828builder.AppendLine(" return;"); 829builder.AppendLine("LSwitch:"); 830builder.AppendLine(" int tmp3 = index + 1;"); 831builder.AppendLine(" switch (GetIndex())"); 832builder.AppendLine(" {"); 836builder.AppendLine(" index++;"); 839builder.AppendLine(" default:"); 840builder.AppendLine(" break;"); 841builder.AppendLine(" }"); 842builder.AppendLine(" }"); 843builder.AppendLine("}"); 860builder.AppendLine( 897builder.AppendLine( 939builder.AppendLine( 1071builder.AppendLine(""" 1082builder.AppendLine(" a = new A();"); 1084builder.AppendLine("""
Semantics\SemanticErrorTests.cs (1)
23671builder.AppendLine(@"
SourceGeneration\GeneratorDriverFuzzTests.cs (17)
99builder.AppendLine(""" 105builder.AppendLine(""" 111builder.AppendLine(""" 115builder.AppendLine(""" 138builder.AppendLine(""" 148builder.AppendLine(""" 175builder.AppendLine(""" 181builder.AppendLine(""" 187builder.AppendLine(""" 193builder.AppendLine(""" 199builder.AppendLine(""" 203builder.AppendLine(""" 230builder.AppendLine(""" 248builder.AppendLine("context.AdditionalTextsProvider"); 437builder.AppendLine($$""" 475builder.AppendLine($$""" 485builder.AppendLine("""
SourceGeneration\GeneratorDriverTests.cs (6)
3405builder.AppendLine(";"); 4350builder.AppendLine("using System.Runtime.CompilerServices;"); 4351builder.AppendLine("using System;"); 4352builder.AppendLine("public static class Interceptors"); 4353builder.AppendLine("{"); 4368builder.AppendLine("}");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Compilation\SymbolVisitorTests.cs (20)
41_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 58_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 100_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 109_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 119_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 138_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 178_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 209_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 229_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 278_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 288_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 299_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 319_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 365_output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 392argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 401argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 410argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 421argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 457argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); 515argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
Symbols\EnumTests.cs (4)
297builder.AppendLine("enum E"); 298builder.AppendLine("{"); 308builder.AppendLine(","); 310builder.AppendLine("}");
Symbols\LookupSymbolsInfoTests.cs (1)
86sb.AppendLine(" {}");
Symbols\MockSymbolTests.cs (1)
149builder.AppendLine(" { ");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Parsing\ParserErrorMessageTests.cs (8)
6501builder.AppendLine("c = new C {"); 6508builder.AppendLine("}, u = 0"); 6530builder.AppendLine( 6542builder.AppendLine(line); 6567builder.AppendLine("c = new C {"); 6574builder.AppendLine("}, u = 0"); 6594builder.AppendLine("c = new C {"); 6601builder.AppendLine("}, u = 0");
Parsing\StatementParsingTests.cs (2)
3434builder.AppendLine("\"/>"); 3435builder.AppendLine("class C { }");
Syntax\SyntaxListTests.cs (2)
328builder.AppendLine("};"); 352builder.AppendLine("};");
Syntax\SyntaxNodeTests.cs (3)
27builder.AppendLine( 37builder.AppendLine(@" .M(""test"")"); 39builder.AppendLine(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
CSharpTestBase.cs (2)
2551builder.AppendLine(@" 2641builder.AppendLine(@"
LifetimeAnnotationAttributesVisitor.cs (2)
80_builder.AppendLine(method.ToTestDisplayString()); 88_builder.AppendLine(parameter.ToTestDisplayString());
NullableAttributesVisitor.cs (1)
93_builder.AppendLine(symbol.ToDisplayString(DisplayFormat));
RequiredMemberAttributesVisitor.cs (1)
66_builder.AppendLine(symbol.ToDisplayString(DisplayFormat));
TestAttributesVisitor.cs (2)
134_builder.AppendLine(s.ToDisplayString(DisplayFormat)); 150_builder.AppendLine(symbol.ToDisplayString(DisplayFormat));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (9)
Metadata\WinMdDumpTest.cs (9)
40result.AppendLine("{"); 143result.AppendLine("{"); 162result.AppendLine("}"); 207result.AppendLine("}"); 215result.AppendLine("}"); 230result.AppendLine("{"); 284result.AppendLine("}"); 391result.AppendLine("{"); 411result.AppendLine("}");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Completion\AbstractCompletionProviderTests.cs (1)
898builder.AppendLine($"<ProjectReference>ReferencedProject{i}</ProjectReference>");
QuickInfo\ToolTipAssert.cs (3)
131result.AppendLine($"{indent}{ContainerStyleToString(container.Style)},"); 138result.AppendLine(","); 164result.AppendLine(",");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
CodeActions\CodeChangeProviderMetadataTests.cs (8)
33failureMessage.AppendLine($"The following {providerType.Name}s exported without Name metadata:"); 40failureMessage.AppendLine(providerPart.Definition.Type.FullName); 60failureMessage.AppendLine($"The following {providerType.Name}s are exported for {language} without unique Name metadata:"); 79failureMessage.AppendLine($"'{namedGroup.Key}' is used by the following providers: {providerNames}"); 97failureMessage.AppendLine($"The following providers were exported with a Name not present in Predefined{providerType.Name}Names:"); 105failureMessage.AppendLine(providerPart.Definition.Type.FullName); 127failureMessage.AppendLine($"The following Predefined{providerType.Name}Names are not used as Name metadata:"); 133failureMessage.AppendLine(name);
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (4)
128baseline.AppendLine(diagnosticIdString); 129baseline.AppendLine(editorConfigString); 165extraEntitiesBuilder.AppendLine(kvp.Key); 166extraEntitiesBuilder.AppendLine(kvp.Value);
Utilities\StackFrameUtils.cs (2)
141sb.AppendLine($"Trivia is different on {token.Kind}"); 157sb.AppendLine("]");
Microsoft.CodeAnalysis.Features (4)
Options\EditorConfig\EditorConfigFileGenerator.cs (4)
25editorconfig.AppendLine("root = true"); 31editorconfig.AppendLine("[*.cs]"); 36editorconfig.AppendLine("[*.vb]"); 78editorconfig.AppendLine(entry);
Microsoft.CodeAnalysis.LanguageServer (12)
Testing\TestRunner.TestRunHandler.cs (12)
147messageBuilder.AppendLine(IndentString($"{LanguageServerResources.Message}:", 4)); 148messageBuilder.AppendLine(IndentString(result.ErrorMessage, 8)); 153messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Stack_Trace}:", 4)); 154messageBuilder.AppendLine(IndentString(result.ErrorStackTrace, 8)); 160messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Standard_Output_Messages}:", 4)); 161messageBuilder.AppendLine(FormatMessages(standardOutputMessages, 8)); 167messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Standard_Error_Messages}:", 4)); 168messageBuilder.AppendLine(FormatMessages(standardErrorMessages, 8)); 174messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Debug_Trace_Messages}:", 4)); 175messageBuilder.AppendLine(FormatMessages(debugTraceMessages, 8)); 181messageBuilder.AppendLine(value: IndentString($"{LanguageServerResources.Additional_Info_Messages}:", 4)); 182messageBuilder.AppendLine(FormatMessages(additionalInfoMessages, 8));
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteExportProviderBuilder.cs (1)
67_errorMessages.AppendLine(message);
Host\TestUtils.cs (1)
92stringBuilder.AppendLine(title);
Microsoft.CodeAnalysis.ResxSourceGenerator (21)
AbstractResxGenerator.cs (12)
432strings.AppendLine($"{memberIndent}public const string @{identifier} = \"{name}\";"); 445strings.AppendLine($"{memberIndent}public static string @{identifier} => GetResourceString(\"{name}\"{defaultValue}){(needSuppression ? "!" : "")};"); 464strings.AppendLine($"{memberIndent}Public Const [{identifier}] As String = \"{name}\""); 468strings.AppendLine($"{memberIndent}Public Shared ReadOnly Property [{identifier}] As String"); 469strings.AppendLine($"{memberIndent} Get"); 470strings.AppendLine($"{memberIndent} Return GetResourceString(\"{name}\"{defaultValue})"); 471strings.AppendLine($"{memberIndent} End Get"); 472strings.AppendLine($"{memberIndent}End Property"); 772strings.AppendLine(line); 818strings.AppendLine($"{indent}internal static string Format{resourceString.Name}({resourceString.GetMethodParameters(language, supportsNullable)})"); 821strings.AppendLine($@"{indent} => string.Format(Culture, GetResourceString(""{resourceString.Name}"", new[] {{ {resourceString.GetArgumentNames()} }}), {resourceString.GetArguments()});"); 825strings.AppendLine($@"{indent} => string.Format(Culture, GetResourceString(""{resourceString.Name}"") ?? """", {resourceString.GetArguments()});");
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
258input.AppendLine(line);
Microsoft.CodeAnalysis.Scripting.TestUtilities (4)
TestConsoleIO.cs (4)
49ContentRead.AppendLine(result); 76GetStringBuilder().AppendLine($"«{CurrentColor}»"); 96GetStringBuilder().AppendLine(value); 131GetStringBuilder().AppendLine(value);
Microsoft.CodeAnalysis.Test.Utilities (72)
Assert\AssertEx.cs (30)
214message.AppendLine("Expected:"); 215message.AppendLine(expected); 216message.AppendLine("Actual:"); 217message.AppendLine(actual); 280messageBuilder.AppendLine( 306messageBuilder.AppendLine(line.Text.Replace("\r", "<CR>").Replace("\n", "<LF>")); 636output.AppendLine(trimmedLine); 703message.AppendLine(prefix); 707message.AppendLine("Expected:"); 708message.AppendLine(expectedString); 711message.AppendLine("... truncated ..."); 714message.AppendLine("Actual:"); 715message.AppendLine(actualString); 716message.AppendLine("Differences:"); 717message.AppendLine(diffString); 721message.AppendLine(link); 801message.AppendLine(prefix); 805message.AppendLine("Expected:"); 806message.AppendLine(expectedString); 809message.AppendLine("... truncated ..."); 812message.AppendLine("Actual:"); 813message.AppendLine(actualString); 814message.AppendLine("Differences:"); 815message.AppendLine(DiffUtil.DiffReport(expected.ToArray(), actual.ToArray(), itemSeparator, comparer, itemInspector)); 819message.AppendLine(link); 934builder.AppendLine("Actual result: "); 952builder.AppendLine("},"); 997.AppendLine(stack[^2]) // Prints the failing line in the original test case. 998.AppendLine(ex.Message); 1000stringBuilder.AppendLine(ex.StackTrace);
Assert\AssertXml.cs (15)
103assertText.AppendLine(link); 107assertText.AppendLine("Expected"); 108assertText.AppendLine("===="); 109assertText.AppendLine(expectedString); 114assertText.AppendLine("First Difference"); 115assertText.AppendLine("===="); 116assertText.AppendLine("Expected Fragment"); 117assertText.AppendLine("----"); 118assertText.AppendLine(firstMismatch.Item1.ToString()); 120assertText.AppendLine("Actual Fragment"); 121assertText.AppendLine("----"); 122assertText.AppendLine(firstMismatch.Item2.ToString()); 126assertText.AppendLine("Actual"); 127assertText.AppendLine("===="); 128assertText.AppendLine(actualString);
Compilation\ControlFlowGraphVerifier.cs (2)
238stringBuilder.AppendLine(getOperationTree(statement)); 1369stringBuilder.AppendLine(line);
CompilationVerifier.cs (3)
238sb.AppendLine(pePath); 242sb.AppendLine(pdbPath); 691builder.AppendLine(AssertEx.GetAssertMessage(expected[i], actual[i], prefix: names[i], escapeQuotes: true));
Diagnostics\DiagnosticDescription.cs (6)
508assertText.AppendLine("Expected:"); 517assertText.AppendLine("Actual:"); 530assertText.AppendLine(","); 537assertText.AppendLine(message); 543assertText.AppendLine(l.SourceTree.GetText().Lines.GetLineFromPosition(l.SourceSpan.Start).ToString()); 555assertText.AppendLine("Diff:");
Diagnostics\DiagnosticExtensions.cs (1)
391return str.Aggregate(new StringBuilder(), (sb, s) => sb.AppendLine(s), sb => sb.ToString());
ExceptionHelper.cs (10)
19sb.AppendLine("Emit Failed, binaries saved to: "); 20sb.AppendLine(directory); 24sb.AppendLine(d.ToString()); 36sb.AppendLine("':"); 37sb.AppendLine(output); 47sb.AppendLine("'."); 58sb.AppendLine("'."); 62sb.AppendLine(expectedOutput); 64sb.AppendLine(actualOutput); 69sb.AppendLine(actualOutput);
FX\ProcessUtilities.cs (2)
65outputBuilder.AppendLine(args.Data); 70errorBuilder.AppendLine(args.Data);
InstrumentationChecker.cs (1)
37_consoleExpectations.AppendLine(text);
Metadata\ILBuilderVisualizer.cs (2)
160sb.AppendLine("{"); 171sb.AppendLine("}");
Microsoft.CodeAnalysis.VisualBasic (2)
CommandLine\CommandLineDiagnosticFormatter.vb (1)
57sb.AppendLine(baseMessage)
Compilation\DocumentationComments\DocWriter.vb (1)
63builder.AppendLine(message)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (81)
Attributes\AssemblyAttributes.vb (1)
2022builder.AppendLine(attr.ToString())
Attributes\AttributeTests_MarshalAs.vb (4)
392source.AppendLine(String.Format("<MarshalAs(UnmanagedType.LPArray, ArraySubType := CType(&H{0:X}, UnmanagedType))>Dim {1} As Integer", i, fldName)) 396source.AppendLine("End Class") 519source.AppendLine(String.Format("<MarshalAs(UnmanagedType.ByValArray, ArraySubType := CType(&H{0:X}, UnmanagedType))>Dim {1} As Integer", i, fldName)) 524source.AppendLine("End Class")
Attributes\AttributeTests_WellKnownAttributes.vb (3)
1931sb.AppendLine("Shared Sub M" & testCase.n & "()") 1932sb.AppendLine("End Sub") 1935sb.AppendLine("End Class")
CodeGen\CodeGenAsyncTests.vb (1)
6198builder.AppendLine(value.ToString)
CodeGen\CodeGenVBCore.vb (1)
3257builder.AppendLine(indent + "End Namespace")
ExpressionTrees\CodeGenExprLambda.vb (6)
1315builder.AppendLine(" Return Nothing") 1316builder.AppendLine(" End Operator") 1944prefixbuilder.AppendLine(tst.Prefix.Value) 1947testbuilder.AppendLine(String.Format("Console.WriteLine(""{0}"")", tst.Description)) 1948testbuilder.AppendLine(String.Format("Dim exprtree{0} As Expression(Of {1}) = {2}", count, tst.ExpressionTypeArgument, tst.Lambda)) 1949testbuilder.AppendLine(String.Format("Console.WriteLine(exprtree{0}.Dump)", count))
ExpressionTrees\Sources\ExprLambdaUtils.vb (51)
88_s.AppendLine(Me._indent + "<NULL>") 92_s.AppendLine(indent + node.NodeType.ToString() + "(") 95_s.AppendLine(indent + _indentStep + "type: " + node.Type.ToString()) 96_s.AppendLine(indent + ")") 102_s.AppendLine(Me._indent + "<NULL>") 111_s.AppendLine(indent + "MemberMemberBinding(") 112_s.AppendLine(indent + _indentStep + "member: " + node.Member.ToString()) 118_s.AppendLine(indent + ")") 124_s.AppendLine(indent + "MemberListBinding(") 125_s.AppendLine(indent + _indentStep + "member: " + node.Member.ToString()) 131_s.AppendLine(indent + ")") 137_s.AppendLine(indent + "MemberAssignment(") 138_s.AppendLine(indent + _indentStep + "member: " + node.Member.ToString()) 139_s.AppendLine(indent + _indentStep + "expression: {") 142_s.AppendLine(indent + _indentStep + "}") 143_s.AppendLine(indent + ")") 149_s.AppendLine(indent + "NewExpression(") 152_s.AppendLine(indent + ")") 153_s.AppendLine(indent + "bindings:") 171_s.AppendLine(indent + "conversion:") 177_s.AppendLine(indent + "Lifted") 181_s.AppendLine(indent + "LiftedToNull") 185_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString()) 202_s.AppendLine(_indent + If(node.Value Is Nothing, "null", GetCultureInvariantString(node.Value))) 215_s.AppendLine(indent + "indices(") 222_s.AppendLine(indent + ")") 225_s.AppendLine(indent + "indexer: " + node.Indexer.ToString()) 234_s.AppendLine(indent + "(") 241_s.AppendLine(indent + ")") 254_s.AppendLine(indent + node.Name) 257_s.AppendLine(indent + "body {") 260_s.AppendLine(indent + "}") 263_s.AppendLine(indent + "return type: " + node.ReturnType.ToString()) 267_s.AppendLine(indent + "tail call") 286_s.AppendLine(indent + "{") 293_s.AppendLine(indent + "}") 304_s.AppendLine(indent + "ElementInit(") 305_s.AppendLine(indent + _indentStep + node.AddMethod.ToString) 312_s.AppendLine(indent + ")") 320_s.AppendLine(indent + "Lifted") 324_s.AppendLine(indent + "LiftedToNull") 328_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString()) 337_s.AppendLine(indent + "-> " + node.Member.Name) 345_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString() + " (") 353_s.AppendLine(indent + ")") 360_s.AppendLine(indent + If((node.Constructor IsNot Nothing), node.Constructor.ToString(), "<.ctor>") + "(") 366_s.AppendLine(indent + ")") 371_s.AppendLine(indent + "members: {") 374_s.AppendLine(indent + _indentStep + info.ToString()) 377_s.AppendLine(indent + "}") 398_s.AppendLine(indent + "Type Operand: " + node.TypeOperand.ToString())
XmlLiteralTests.vb (14)
3490sourceBuilder.AppendLine("Module M") 3491sourceBuilder.AppendLine(" Sub Main()") 3494sourceBuilder.AppendLine(" End Sub") 3495sourceBuilder.AppendLine(" Sub Report(s As String)") 3496sourceBuilder.AppendLine(" For Each c As Char in s") 3497sourceBuilder.AppendLine(" System.Console.WriteLine(""{0}"", Microsoft.VisualBasic.AscW(c))") 3498sourceBuilder.AppendLine(" Next") 3499sourceBuilder.AppendLine(" End Sub") 3500sourceBuilder.AppendLine("End Module") 3547sourceBuilder.AppendLine("Module M") 3548sourceBuilder.AppendLine(" Sub Main()") 3549sourceBuilder.AppendLine(" System.Console.WriteLine(""[[{0}]]"", <x a=""" & str & """/>.@a)") 3550sourceBuilder.AppendLine(" End Sub") 3551sourceBuilder.AppendLine("End Module")
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\KeywordRecommenders\RecommendationHelpers.vb (1)
160stringBuilder.AppendLine(firstLine)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (1)
77pragmas.AppendLine($"#{disableOrEnable} Warning {id}")
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (6)
DocumentationComments\DocCommentTests.vb (1)
12066builder.AppendLine(s)
SymbolsTests\MockSymbolTests.vb (1)
117builder.AppendLine(" { ")
SymbolsTests\Source\EnumTests.vb (4)
1332builder.AppendLine("Enum E") 1342builder.AppendLine("End Enum") 1513text.AppendLine( 1523text.AppendLine(
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (34)
Parser\ParseExpression.vb (17)
2814builder.AppendLine(<![CDATA[ 2823builder.AppendLine(line) 2827builder.AppendLine("End Sub") 2830builder.AppendLine(<![CDATA[} 2843builder.AppendLine(<![CDATA[ 2855builder.AppendLine(".C = New Customer With { _") 2858builder.AppendLine(".C = Nothing, U = 0 }, _") 2861builder.AppendLine(".U = 0}, _") 2864builder.AppendLine(<![CDATA[} 2877builder.AppendLine("Sub()") 2880builder.AppendLine(line) 2884builder.AppendLine("End Sub") 2887builder.AppendLine("End Sub") 2898builder.AppendLine("Dim c = Sub()") 2901builder.AppendLine(line) 2905builder.AppendLine("End Sub") 2908builder.AppendLine("End Sub")
Parser\ParseStatements.vb (6)
7866builder.AppendLine("Class C") 7871builder.AppendLine(")") 7872builder.AppendLine("End Class") 7897builder.AppendLine("""/>") 7898builder.AppendLine("Class C") 7899builder.AppendLine("End Class")
Syntax\SyntaxListTests.vb (10)
249builder.AppendLine("Module M") 250builder.AppendLine(" Sub Main") 255builder.AppendLine("}") 256builder.AppendLine(" End Sub") 257builder.AppendLine("End Module") 275builder.AppendLine("Module M") 276builder.AppendLine(" Sub Main") 281builder.AppendLine("}") 282builder.AppendLine(" End Sub") 283builder.AppendLine("End Module")
TestSyntaxNodes.vb (1)
3433code.AppendLine(<![CDATA["last"
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
565output.AppendLine(GetErrorString(e.Code, e.GetMessage(EnsureEnglishUICulture.PreferredOrNull), span.Start.ToString(), span.End.ToString()))
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
VisualBasicExtensionsTests.vb (1)
26code.AppendLine(<![CDATA["last"
Microsoft.CodeAnalysis.Workspaces (3)
Log\RoslynEventSource.cs (1)
114output.AppendLine(fvi.ProductVersion);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
42triviaWriter: trivia => builder.AppendLine(trivia),
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
125builder.AppendLine(nameof(SourceGeneratorExecutionVersionMap));
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
411_processLogMessages.AppendLine(e.Data);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (2)
193sb.AppendLine( 200sb.AppendLine("EndProject");
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
432strings.AppendLine(line);
Microsoft.DotNet.Build.Tasks.Feed (2)
src\common\GeneralUtils.cs (2)
294stdOut.AppendLine(e.Data); 310stdErr.AppendLine(e.Data);
Microsoft.DotNet.Build.Tasks.Installers (14)
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");
src\GenerateJsonObjectString.cs (5)
39result.AppendLine("{"); 51result.AppendLine(","); 66result.AppendLine("["); 78result.AppendLine(","); 92result.AppendLine("}");
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.Internal.DependencyInjection.Testing (1)
DependencyInjectionValidation.cs (1)
120msgBuilder.AppendLine(errorMessage);
Microsoft.DotNet.NuGetRepack.Tests (5)
TestHelpers\AssertEx.cs (5)
410output.AppendLine(trimmedLine); 466message.AppendLine("Expected:"); 467message.AppendLine(expectedString); 469message.AppendLine("Actual:"); 470message.AppendLine(actualString);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
ProcessEx.cs (2)
91_stderrCapture.AppendLine(e.Data); 106_stdoutCapture.AppendLine(e.Data);
Microsoft.DotNet.RemoteExecutor (21)
Program.cs (6)
82output.AppendLine("Child exception:"); 83output.AppendLine(" " + exc); 85output.AppendLine("Child process:"); 86output.AppendLine(string.Format(" {0} {1} {2}", a, t, mi)); 91output.AppendLine("Child arguments:"); 92output.AppendLine(" " + string.Join(", ", additionalArgs));
RemoteInvokeHandle.cs (15)
113description.AppendLine($"Half-way through waiting for remote process."); 118description.AppendLine($"Memory load: {memoryLoad}"); 123description.AppendLine($"Process: {p.Id} {p.ProcessName} PrivateMemory: {p.PrivateMemorySize64}"); 147description.AppendLine($"Timed out at {DateTime.Now} after {Options.TimeOut}ms waiting for remote process."); 159description.AppendLine($"Wrote mini dump to: {miniDmpPath}"); 163description.AppendLine($"Failed to create mini dump: {exc.Message}"); 171description.AppendLine($"\tProcess ID: {Process.Id}"); 172description.AppendLine($"\tHandle: {Process.Handle}"); 173description.AppendLine($"\tName: {Process.ProcessName}"); 174description.AppendLine($"\tMainModule: {Process.MainModule?.FileName}"); 175description.AppendLine($"\tStartTime: {Process.StartTime}"); 176description.AppendLine($"\tTotalProcessorTime: {Process.TotalProcessorTime}"); 190description.AppendLine("\tThreads:"); 208description.AppendLine($"\t\tThread #{thread.ManagedThreadId} (OS 0x{thread.OSThreadId:X}) {threadKind} {isBackground} {apartmentModel}"); 211description.AppendLine($"\t\t\t{frame}");
Microsoft.DotNet.SignTool (3)
src\RealSignTool.cs (2)
73process.OutputDataReceived += (sender, e) => output.AppendLine(e.Data); 74process.ErrorDataReceived += (sender, e) => error.AppendLine(e.Data);
src\SignTool.cs (1)
245builder.AppendLine(text);
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TestCommand.cs (1)
77outputBuilder.AppendLine(args.Data);
Microsoft.Extensions.ApiDescription.Client.Tests (6)
MockBuildEngine.cs (4)
68_log.AppendLine(eventArgs.Message); 74_log.AppendLine(eventArgs.Message); 80_log.AppendLine(eventArgs.Message); 89_log.AppendLine(eventArgs.Message);
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationRootExtensions.cs (2)
60.AppendLine(")"); 67.AppendLine(":");
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
318builder.AppendLine(FormattableString.Invariant($"Health check data for {_name}:")); 328builder.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)
37_builder.AppendLine("// <auto-generated/>"); 38_builder.AppendLine("#nullable enable"); 139_builder.AppendLine($@" 203_builder.AppendLine($" {nestedIndentation}private readonly {p.Type} {NormalizeSpecialSymbol(p.CodeName)};"); 211_builder.AppendLine($" {nestedIndentation}this.{NormalizeSpecialSymbol(p.CodeName)} = {p.CodeName};"); 237_builder.AppendLine($" {nestedIndentation}var {t.Key} = " 244_builder.AppendLine($" {nestedIndentation}var {t.Key} = this.{NormalizeSpecialSymbol(lm.TemplateParameters[index].CodeName)};"); 263_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{name}\", this.{NormalizeSpecialSymbol(p.CodeName)}),"); 266_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{{OriginalFormat}}\", \"{ConvertEndOfLineAndQuotationCharactersToEscapeForm(lm.Message)}\"),");
Microsoft.Extensions.Options.SourceGeneration (10)
Emitter.cs (8)
578sb.AppendLine($"else if (value is {typeName})"); 579sb.AppendLine($"{padding}{{"); 580sb.AppendLine($"{padding} length = (({typeName})value).Count;"); 581sb.AppendLine($"{padding}}}"); 603sb.AppendLine($"(validationContext.ObjectInstance is {type} && OtherProperty == \"{property}\")"); 604sb.AppendLine($"{padding}{{"); 605sb.AppendLine($"{padding} result = Equals(value, (({type})validationContext.ObjectInstance).{property});"); 606sb.AppendLine($"{padding}}}");
EmitterBase.cs (2)
81_ = _sb.AppendLine(line); 86_ = _sb.AppendLine(line);
Microsoft.Extensions.Telemetry (2)
Latency\Internal\LatencyConsoleExporter.cs (1)
139_ = sb.AppendLine(_dashes(valueHeader.Length + 1));
Logging\ExtendedLogger.cs (1)
202_ = sb.AppendLine(exception.Message);
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 (2)
ParserTests.Diagnostics.cs (1)
376sb.AppendLine(@" public static partial class MetricClass
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.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 (15)
Standard\LinearPredictorUtils.cs (15)
119inputBuilder.AppendLine("[Input:" + numNonZeroWeights + "]"); 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.StringTools (12)
WeakStringCacheInterner.cs (12)
140result.AppendLine($"\n{new string('=', 41 - (title.Length / 2))}{title}{new string('=', 41 - (title.Length / 2))}"); 141result.AppendLine($"||{"WeakStringCache Hits",50}|{_regularInternHits,20:N0}|{"hits",8}|"); 142result.AppendLine($"||{"WeakStringCache Misses",50}|{_regularInternMisses,20:N0}|{"misses",8}|"); 143result.AppendLine($"||{"Eliminated Strings*",50}|{_internEliminatedStrings,20:N0}|{"strings",8}|"); 144result.AppendLine($"||{"Eliminated Chars",50}|{_internEliminatedChars,20:N0}|{"chars",8}|"); 145result.AppendLine($"||{"Estimated Eliminated Bytes",50}|{_internEliminatedChars * 2,20:N0}|{"bytes",8}|"); 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:"); 161result.AppendLine($"String count live/collected/total = {debugInfo.LiveStringCount}/{debugInfo.CollectedStringCount}/{debugInfo.LiveStringCount + debugInfo.CollectedStringCount}"); 166result.AppendLine(" - EnableStatisticsGathering() has not been called");
Microsoft.NET.StringTools.net35 (12)
WeakStringCacheInterner.cs (12)
140result.AppendLine($"\n{new string('=', 41 - (title.Length / 2))}{title}{new string('=', 41 - (title.Length / 2))}"); 141result.AppendLine($"||{"WeakStringCache Hits",50}|{_regularInternHits,20:N0}|{"hits",8}|"); 142result.AppendLine($"||{"WeakStringCache Misses",50}|{_regularInternMisses,20:N0}|{"misses",8}|"); 143result.AppendLine($"||{"Eliminated Strings*",50}|{_internEliminatedStrings,20:N0}|{"strings",8}|"); 144result.AppendLine($"||{"Eliminated Chars",50}|{_internEliminatedChars,20:N0}|{"chars",8}|"); 145result.AppendLine($"||{"Estimated Eliminated Bytes",50}|{_internEliminatedChars * 2,20:N0}|{"bytes",8}|"); 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:"); 161result.AppendLine($"String count live/collected/total = {debugInfo.LiveStringCount}/{debugInfo.CollectedStringCount}/{debugInfo.LiveStringCount + debugInfo.CollectedStringCount}"); 166result.AppendLine(" - EnableStatisticsGathering() has not been called");
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
2241textBuilder.AppendLine(commentText)
PrepareTests (8)
MinimizeUtil.cs (8)
137rehydrateAllBuilder.AppendLine("export HELIX_CORRELATION_PAYLOAD=$scriptroot/.duplicate"); 141rehydrateAllBuilder.AppendLine(@"set HELIX_CORRELATION_PAYLOAD=%~dp0\.duplicate"); 153rehydrateAllBuilder.AppendLine(@"bash """ + Path.Combine("$scriptroot", group.Key, "rehydrate.sh") + @""""); 158rehydrateAllBuilder.AppendLine("call " + Path.Combine("%~dp0", group.Key, "rehydrate.cmd")); 184builder.AppendLine("@echo off"); 206builder.AppendLine("@echo on"); // so the rest of the commands show up in helix logs 211builder.AppendLine(@"#!/bin/bash 252builder.AppendLine(@"find $scriptroot -name ilasm -exec chmod 755 {} +");
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.
Replay (2)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (2)
83builder.AppendLine("Stack trace:"); 84builder.AppendLine(exception.StackTrace);
Roslyn.Diagnostics.Analyzers (9)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (9)
56builder.AppendLine(@"# NOTE: Requires **VS2019 16.3** or later"); 58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 61builder.AppendLine(@"# Code files"); 62builder.AppendLine(@"[*.{cs,vb}]"); 73builder.AppendLine(@"# Default severity for analyzer diagnostics - Requires **VS2019 16.5** or later"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Roslyn.Test.PdbUtilities (5)
EditAndContinue\EditAndContinueTest.cs (5)
156builder.AppendLine($"-------------------------------------"); 157builder.AppendLine($" Generation #{generation} failures"); 158builder.AppendLine($"-------------------------------------"); 162builder.AppendLine(exception.Message); 164builder.AppendLine(exception.StackTrace);
Roslyn.Test.Performance.Utilities (1)
Logger.cs (1)
65_buffer.AppendLine(DateTime.Now + " : " + v);
Roslyn.VisualStudio.DiagnosticsWindow (5)
Panels\TelemetryPanel.xaml.cs (3)
67sb.AppendLine($"Searching: {assembly.FullName}"); 68sb.AppendLine(result); 121typeDiscovered.AppendLine($"Found: {type.FullName}: {telemetryId.ToString()}");
Panels\WorkspacePanel.xaml.cs (2)
102output.AppendLine($"{document.FilePath}: {BitConverter.ToString([.. snapshotChecksum])} : {BitConverter.ToString([.. fileChecksum])}"); 110output.AppendLine(outOfDateCount == 0
RoutingSandbox (3)
UseEndpointRoutingStartup.cs (3)
38sb.AppendLine("Endpoints:"); 41sb.AppendLine(FormattableString.Invariant($"- {endpoint.RoutePattern.RawText}")); 44sb.AppendLine(" " + metadata);
RoutingWebSite (2)
UseEndpointRoutingStartup.cs (2)
44sb.AppendLine("Endpoints:"); 47sb.AppendLine(FormattableString.Invariant($"- {endpoint.RoutePattern.RawText}"));
RulesetToEditorconfigConverter (9)
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}");
RunTests (17)
HelixTestRunner.cs (16)
181builder.AppendLine(""" 253command.AppendLine(isUnix ? $"ls -l" : $"dir"); 254command.AppendLine("dotnet --info"); 288command.AppendLine(isUnix ? "env | sort" : "set"); 300command.AppendLine(isUnix ? $"./{directoryName}/rehydrate.sh" : $@"call {directoryName}\rehydrate.cmd"); 301command.AppendLine(isUnix ? $"ls -l {directoryName}" : $"dir {directoryName}"); 313command.AppendLine("vstestConsolePath=$(find ${DOTNET_ROOT} -name \"vstest.console.dll\")"); 314command.AppendLine("echo ${vstestConsolePath}"); 319command.AppendLine(@"powershell -NoProfile -Command { Set-MpPreference -DisableRealtimeMonitoring $true }"); 320command.AppendLine(@"powershell -NoProfile -Command { Set-MpPreference -ExclusionPath (Resolve-Path 'artifacts') }"); 323command.AppendLine("where /r %DOTNET_ROOT% vstest.console.dll > temp.txt"); 324command.AppendLine("set /p vstestConsolePath=<temp.txt"); 325command.AppendLine("echo %vstestConsolePath%"); 427builder.AppendLine($@"/Logger:xunit;LogFilePath=work-item-test-results.xml"); 430builder.AppendLine($"/ResultsDirectory:."); 442builder.AppendLine("\"");
ProcessTestExecutor.cs (1)
91fileContentsBuilder.AppendLine(filterStringBuilder.ToString());
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);
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()));
StackDepthTest (3)
Program.cs (3)
59builder.AppendLine( 67builder.AppendLine(@" .M(""test"")"); 69builder.AppendLine(
StatusCodePagesSample (7)
Startup.cs (7)
66builder.AppendLine("<html><body>"); 67builder.AppendLine("An error occurred, Status Code: " + HtmlEncoder.Default.Encode(context.Request.Path.ToString().Substring(1)) + "<br>"); 71builder.AppendLine("<a href=\"" + HtmlEncoder.Default.Encode(referrer) + "\">Retry " + WebUtility.HtmlEncode(referrer) + "</a><br>"); 73builder.AppendLine("</body></html>"); 83builder.AppendLine("<html><body>"); 84builder.AppendLine("<a href=\"" + 101builder.AppendLine("</body></html>");
Stress.ApiService (1)
Program.cs (1)
243sb.AppendLine(line);
Swaggatherer (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\CompositionException.cs (2)
204writer.AppendLine(SR.CompositionException_ReviewErrorProperty); 239writer.AppendLine(error.Description);
System.Diagnostics.FileVersionInfo (13)
System\Diagnostics\FileVersionInfo.cs (13)
292sb.Append("File: ").AppendLine(FileName); 293sb.Append("InternalName: ").AppendLine(InternalName); 294sb.Append("OriginalFilename: ").AppendLine(OriginalFilename); 295sb.Append("FileVersion: ").AppendLine(FileVersion); 296sb.Append("FileDescription: ").AppendLine(FileDescription); 297sb.Append("Product: ").AppendLine(ProductName); 298sb.Append("ProductVersion: ").AppendLine(ProductVersion); 299sb.Append("Debug: ").AppendLine(IsDebug.ToString()); 300sb.Append("Patched: ").AppendLine(IsPatched.ToString()); 301sb.Append("PreRelease: ").AppendLine(IsPreRelease.ToString()); 302sb.Append("PrivateBuild: ").AppendLine(IsPrivateBuild.ToString()); 303sb.Append("SpecialBuild: ").AppendLine(IsSpecialBuild.ToString()); 304sb.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.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\Tensor.cs (3)
2297sb.AppendLine(separator); 2308sb.AppendLine(separator); 2310sb.AppendLine("...");
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
308sb.AppendLine("{"); 310sb.AppendLine("}");
System.Private.CoreLib (49)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (43)
5321sb.AppendLine("<instrumentationManifest xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">"); 5322sb.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\">"); 5323sb.AppendLine(" <events xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">"); 5332sb.AppendLine("\">"); 5530templates?.Append(" <template tid=\"").Append(eventName).AppendLine("Args\">"); 5540templates?.Append(" <data name=\"").Append(name).AppendLine("Size\" inType=\"win:UInt32\"/>"); 5559templates?.AppendLine("/>"); 5567templates?.AppendLine(" </template>"); 5570events?.AppendLine("/>"); 5657sb?.AppendLine(" <channels>"); 5687sb?.Append(" enabled=\"").Append(enabled ? "true" : "false").AppendLine("\"/>"); 5689sb?.AppendLine(" </channels>"); 5695sb?.AppendLine(" <tasks>"); 5703sb?.Append(" value=\"").Append(task).AppendLine("\"/>"); 5705sb?.AppendLine(" </tasks>"); 5721sb?.AppendLine(" <maps>"); 5726sb?.Append(" <").Append(mapKind).Append(" name=\"").Append(enumType.Name).AppendLine("\">"); 5753sb?.AppendLine("/>"); 5764sb?.AppendLine("/>"); 5766sb?.Append(" </").Append(mapKind).AppendLine(">"); 5768sb?.AppendLine(" </maps>"); 5772sb?.AppendLine(" <opcodes>"); 5780sb?.Append(" value=\"").Append(opcode).AppendLine("\"/>"); 5782sb?.AppendLine(" </opcodes>"); 5787sb?.AppendLine(" <keywords>"); 5797sb?.Append(" mask=\"0x").Append(keywordFormatted).AppendLine("\"/>"); 5799sb?.AppendLine(" </keywords>"); 5802sb?.AppendLine(" <events>"); 5804sb?.AppendLine(" </events>"); 5806sb?.AppendLine(" <templates>"); 5815sb?.AppendLine(" <template tid=\"_empty\"></template>"); 5817sb?.AppendLine(" </templates>"); 5819sb?.AppendLine("</provider>"); 5820sb?.AppendLine("</events>"); 5821sb?.AppendLine("</instrumentation>"); 5824sb?.AppendLine("<localization>"); 5831sb?.Append(" <resources culture=\"").Append(ci.Name).AppendLine("\">"); 5832sb?.AppendLine(" <stringTable>"); 5836sb?.Append(" <string id=\"").Append(stringKey).Append("\" value=\"").Append(val).AppendLine("\"/>"); 5838sb?.AppendLine(" </stringTable>"); 5839sb?.AppendLine(" </resources>"); 5841sb?.AppendLine("</localization>"); 5842sb?.AppendLine("</instrumentationManifest>");
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
248sb.AppendLine(SR.Exception_EndStackTraceFromPreviousThrow);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
97sb.AppendLine(stateMachineType.FullName);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
48var errorWriter = new Interop.HostPolicy.corehost_error_writer_fn(message => errorMessage.AppendLine(Marshal.PtrToStringAuto(message)));
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
393sb.Append("Name: ").Append(m_strName).AppendLine(" ");
src\System\Reflection\Emit\SignatureHelper.cs (2)
906sb.AppendLine("Field Signature"); 909sb.AppendLine("Signature: ");
System.Private.CoreLib.Generators (8)
EventSourceGenerator.Emitter.cs (8)
22sb.AppendLine(@"// <auto-generated/>"); 24sb.AppendLine("using System;"); 34sb.AppendLine($@" 39sb.AppendLine($@" 47sb.AppendLine($@" 52sb.AppendLine($@" 59sb.AppendLine($@" 74sb.AppendLine(@"};");
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\OpenSslX509CertificateReader.cs (1)
829sb.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.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 (1)
src\libraries\Common\src\SourceGenerators\SourceWriter.cs (1)
45_sb.AppendLine(text);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexNode.cs (1)
2851var sb = new StringBuilder().AppendLine(curNode.Describe());
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
2851var 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.Primitives.TestUtilities (3)
Metafiles\EmfScope.cs (2)
213sb.AppendLine(record.ToString()); 225sb.AppendLine(record.ToString(state));
Metafiles\EmfValidateHelper.cs (1)
29sb.AppendLine("\r\n\r\n```c");
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.Forms.UI.IntegrationTests (4)
Infra\DataCollectionService.cs (4)
174exceptionDetails.AppendLine(ex.ToString()); 175exceptionDetails.AppendLine("---------------------------------"); 176exceptionDetails.AppendLine("Stack Trace at Log Time:"); 177exceptionDetails.AppendLine(new StackTrace(true).ToString());
System.Windows.Input.Manipulations (7)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
1098log.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" +
Templates.Blazor.Tests (6)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Templates.Blazor.WebAssembly.Auth.Tests (11)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (5)
25builder.AppendLine(exception.ToString()); 29builder.AppendLine(FormattableString.Invariant($"Screen shot captured at '{screenShotPath}'")); 34builder.AppendLine("Encountered browser errors") 38builder.AppendLine("Page content:") 39.AppendLine(innerHTML);
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Templates.Blazor.WebAssembly.Tests (11)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (5)
25builder.AppendLine(exception.ToString()); 29builder.AppendLine(FormattableString.Invariant($"Screen shot captured at '{screenShotPath}'")); 34builder.AppendLine("Encountered browser errors") 38builder.AppendLine("Page content:") 39.AppendLine(innerHTML);
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Templates.Mvc.Tests (11)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (5)
25builder.AppendLine(exception.ToString()); 29builder.AppendLine(FormattableString.Invariant($"Screen shot captured at '{screenShotPath}'")); 34builder.AppendLine("Encountered browser errors") 38builder.AppendLine("Page content:") 39.AppendLine(innerHTML);
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Templates.Tests (11)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
src\Shared\E2ETesting\BrowserAssertFailedException.cs (5)
25builder.AppendLine(exception.ToString()); 29builder.AppendLine(FormattableString.Invariant($"Screen shot captured at '{screenShotPath}'")); 34builder.AppendLine("Encountered browser errors") 38builder.AppendLine("Page content:") 39.AppendLine(innerHTML);
src\Shared\Process\ProcessEx.cs (2)
144_stderrCapture.AppendLine(e.Data); 165_stdoutCapture.AppendLine(e.Data);
Test.Utilities (4)
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");
Text.Analyzers (9)
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}");
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\Compilers\Core\CommandLine\CompilerServerLogger.cs (2)
83builder.AppendLine("Stack trace:"); 84builder.AppendLine(exception.StackTrace);
src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
VBCSCompiler (4)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (2)
83builder.AppendLine("Stack trace:"); 84builder.AppendLine(exception.StackTrace);
src\Compilers\Shared\ExitingTraceListener.cs (2)
48builder.AppendLine("Stack Trace"); 50builder.AppendLine(stackTrace.ToString());
VisualBasicErrorFactsGenerator (12)
Program.vb (12)
22outputText.AppendLine("Namespace Microsoft.CodeAnalysis.VisualBasic") 23outputText.AppendLine(" Friend Partial Module ErrorFacts") 51outputText.AppendLine(" End Module") 52outputText.AppendLine("End Namespace") 59outputText.AppendLine(String.Format(" Public Function {0}(code as ERRID) As Boolean", functionName)) 60outputText.AppendLine(" Select Case code") 72outputText.AppendLine(" Return True") 74outputText.AppendLine(",") 77outputText.AppendLine(" Case Else") 78outputText.AppendLine(" Return False") 79outputText.AppendLine(" End Select") 80outputText.AppendLine(" End Function")
Wasm.Performance.ConsoleHost (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
479argumentsBuilder.AppendLine("Arguments:"); 495optionsBuilder.AppendLine("Options:"); 511commandsBuilder.AppendLine("Commands:"); 536nameAndVersion.AppendLine(GetFullNameAndVersion());
Wasm.Performance.Driver (3)
Program.cs (3)
254builder.AppendLine("#StartJobStatistics"); 255builder.AppendLine(JsonSerializer.Serialize(output)); 256builder.AppendLine("#EndJobStatistics");