328 references to AppendLine
Aspire.Cli.Tests (10)
Acquisition\PeerInstallProbeTests.cs (9)
629sb.AppendLine($"exit /b {ExitCode}"); 651sb.AppendLine($"powershell -NoProfile -ExecutionPolicy Bypass -Command \"[Console]::Error.Write(('x' * {ByteCount}))\""); 652sb.AppendLine($"exit /b {ExitCode}"); 723sb.AppendLine($"exit /b {DoctorExitCode}"); 729sb.AppendLine($"exit /b {VersionExitCode}"); 764sb.AppendLine($"type nul > \"{ArgvFile}\""); 767sb.AppendLine($"echo %~1>>\"{ArgvFile}\""); 806sb.AppendLine($"powershell -NoProfile -ExecutionPolicy Bypass -Command \"$bytes=[Convert]::FromBase64String('{encoded}'); [Console]::Error.Write([Text.Encoding]::UTF8.GetString($bytes))\""); 811sb.AppendLine($"echo %* | findstr /C:\"{arg}\" > nul");
DotNet\ProcessExecutionTests.cs (1)
278builder.AppendLine($" \"value-{i}\"{suffix}");
Aspire.Dashboard.Tests (6)
Integration\Playwright\AccessibilityTests.cs (6)
480sb.AppendLine($"Found {blocking.Count} serious/critical WCAG 2.x A/AA accessibility violation(s) on '{relativeUrl}' ({scanContext}):"); 485sb.AppendLine($" [{violation.Impact}] {violation.Id}: {violation.Help}"); 486sb.AppendLine($" {violation.HelpUrl}"); 494sb.AppendLine($" target: {node.Target}"); 495sb.AppendLine($" html: {Truncate(node.Html, 200)}"); 502sb.AppendLine($" why: {check.Message}");
Aspire.Deployment.EndToEnd.Tests (11)
Helpers\DeploymentReporter.cs (11)
44sb.AppendLine($"**Test:** {testName}"); 45sb.AppendLine($"**Duration:** {duration:hh\\:mm\\:ss}"); 46sb.AppendLine($"**Resource Group:** `{resourceGroupName}`"); 57sb.AppendLine($"| {name} | [{url}]({url}) |"); 63sb.AppendLine($"[View in Azure Portal]({azurePortalUrl})"); 104sb.AppendLine($"**Test:** {testName}"); 105sb.AppendLine($"**Resource Group:** `{resourceGroupName}`"); 131sb.AppendLine($"[View Resource Group in Azure Portal]({azurePortalUrl})"); 162sb.AppendLine($"Resource group `{resourceGroupName}` deleted successfully."); 168sb.AppendLine($"Failed to delete resource group `{resourceGroupName}`."); 171sb.AppendLine($"Error: {errorMessage}");
Aspire.Hosting.Azure.Tests (1)
AzureManifestUtils.cs (1)
66sb.AppendLine($"// Resource: {resource.Name}");
Aspire.Hosting.Tests (10)
Backchannel\BackchannelContractTests.cs (10)
90errors.AppendLine($"❌ {type.Name}: Must be a class (not struct or interface)"); 94errors.AppendLine($"❌ {type.Name}: Must be sealed"); 100errors.AppendLine($"❌ {type.Name}.{field.Name}: Public fields not allowed, use properties"); 115errors.AppendLine($"❌ {type.Name}: Name should end with 'Request' or 'Response'"); 136errors.AppendLine($"❌ {type.Name}.{prop.Name}: Must use {{ get; init; }} not {{ get; set; }}"); 152errors.AppendLine($"❌ {type.Name}.{prop.Name}: Required properties should not be nullable"); 166errors.AppendLine($"❌ {type.Name}.{prop.Name}: Optional properties should be nullable (T?) or have a default"); 175errors.AppendLine($"❌ {type.Name}: Requests must derive from {nameof(BackchannelRequest)} so profiling propagation stays AOT-safe."); 225errors.AppendLine($"ERROR {requestType.Name}: {nameof(BackchannelRequest.WithTraceContext)} returned {copy.GetType().Name}"); 238errors.AppendLine($"ERROR {requestType.Name}.{property.Name}: Expected {FormatValue(expectedValue)}, actual {FormatValue(actualValue)}");
Aspire.Hosting.Yarp.Tests (1)
YarpConfigGeneratorTests.cs (1)
239sb.AppendLine($"{variable.Key}={variable.Value}");
Aspire.Playground.Tests (2)
AppHostTests.cs (2)
73sb.AppendLine($"Timed out waiting for this text from resource {readyStateTexts[i].ResourceName}: {readyStateTexts[i].Pattern}"); 107sb.AppendLine($"Timed out waiting for resource '{waits[i].ResourceName}' to reach state '{waits[i].TargetState}' in app '{appHost.AppHostAssembly}'");
CodeStyleConfigFileGenerator (4)
Program.cs (4)
107result.AppendLine($"# Style rules with '{analysisMode}' analysis mode"); 149result.AppendLine($"# {rule.Id}: {rule.Title}"); 152result.AppendLine($"# {rule.HelpLinkUri}"); 154result.AppendLine($"dotnet_diagnostic.{rule.Id}.severity = {severityString}");
Crossgen2Tasks (19)
RunReadyToRunCompiler.cs (19)
236result.AppendLine($"-r:\"{reference.ItemSpec}\""); 240result.AppendLine($"-r \"{reference.ItemSpec}\""); 282result.AppendLine($"/DiasymreaderPath \"{DiaSymReader}\""); 286result.AppendLine($"\"{_outputR2RImage}\""); 291result.AppendLine($"/JITPath \"{CrossgenTool.GetMetadata(MetadataKeys.JitPath)}\""); 293result.AppendLine($"/out \"{_outputR2RImage}\""); 294result.AppendLine($"\"{_inputAssembly}\""); 307result.AppendLine($"--jitpath:\"{jitPath}\""); 311result.AppendLine($"--targetos:{Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS)}"); 312result.AppendLine($"--targetarch:{Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch)}"); 323result.AppendLine($"--pdb-path:{Path.GetDirectoryName(_outputPDBImage)}"); 328result.AppendLine($"--perfmap-path:{Path.GetDirectoryName(_outputPDBImage)}"); 333result.AppendLine($"--perfmap-format-version:{perfmapFormatVersion}"); 342result.AppendLine($"-m:\"{mibc.ItemSpec}\""); 348result.AppendLine($"--obj-format:{Crossgen2ContainerFormat}"); 367result.AppendLine($"--out:\"{_outputR2RImage}\""); 382result.AppendLine($"-u:\"{unrooted.ItemSpec}\""); 389result.AppendLine($"--out:\"{_outputR2RImage}\""); 393result.AppendLine($"{_inputAssembly}");
csc (2)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
83builder.AppendLine($"Exception: '{exception.GetType().Name}' '{exception.Message}' occurred during '{reason}'");
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (1)
47builder.AppendLine($"Debug.Assert failed with message: {originalMessage}");
dotnet (38)
Commands\Reference\Add\ReferenceAddCommand.cs (1)
177sb.AppendLine($" - {tfm}");
Commands\Test\MTP\MSBuildHandler.cs (6)
103logMessageBuilder.AppendLine($"{ProjectProperties.ProjectFullPath}: {module.ProjectFullPath}"); 104logMessageBuilder.AppendLine($"{ProjectProperties.IsTestingPlatformApplication}: {module.IsTestingPlatformApplication}"); 105logMessageBuilder.AppendLine($"{ProjectProperties.TargetFramework}: {module.TargetFramework}"); 106logMessageBuilder.AppendLine($"{ProjectProperties.RunCommand}: {module.RunProperties.Command}"); 107logMessageBuilder.AppendLine($"{ProjectProperties.RunArguments}: {module.RunProperties.Arguments}"); 108logMessageBuilder.AppendLine($"{ProjectProperties.RunWorkingDirectory}: {module.RunProperties.WorkingDirectory}");
Commands\Test\MTP\TestApplication.cs (3)
1123messageBuilder.AppendLine($"{kvp.Key}: {kvp.Value}"); 1132messageBuilder.AppendLine($"RunCommand: {Module.RunProperties.Command}"); 1133messageBuilder.AppendLine($"RunArguments: {Module.RunProperties.Arguments}");
Commands\Test\MTP\TestApplicationHandler.cs (27)
662logMessageBuilder.AppendLine($"{GetHandshakePropertyName(property.Key)}: {property.Value}"); 677logMessageBuilder.AppendLine($"DiscoveredTests Execution Id: {discoveredTestMessages.ExecutionId}"); 678logMessageBuilder.AppendLine($"TestResults Instance Id: {discoveredTestMessages.InstanceId}"); 682logMessageBuilder.AppendLine($"DiscoveredTest: {discoveredTestMessage.Uid}, {discoveredTestMessage.DisplayName}, " + 702logMessageBuilder.AppendLine($"TestResults Execution Id: {testResultMessages.ExecutionId}"); 703logMessageBuilder.AppendLine($"TestResults Instance Id: {testResultMessages.InstanceId}"); 707logMessageBuilder.AppendLine($"SuccessfulTestResult: {successfulTestResult.Uid}, {successfulTestResult.DisplayName}, " + 714logMessageBuilder.AppendLine($"FailedTestResult: {failedTestResult.Uid}, {failedTestResult.DisplayName}, " + 731logMessageBuilder.AppendLine($"TestInProgress Execution Id: {testInProgressMessages.ExecutionId}"); 732logMessageBuilder.AppendLine($"TestInProgress Instance Id: {testInProgressMessages.InstanceId}"); 736logMessageBuilder.AppendLine($"TestInProgress: {inProgressMessage.Uid}, {inProgressMessage.DisplayName}"); 751logMessageBuilder.AppendLine($"FileArtifactMessages Execution Id: {fileArtifactMessages.ExecutionId}"); 752logMessageBuilder.AppendLine($"TestResults Instance Id: {fileArtifactMessages.InstanceId}"); 756logMessageBuilder.AppendLine($"FileArtifact: {fileArtifactMessage.FullPath}, {fileArtifactMessage.DisplayName}, " + 775logMessageBuilder.AppendLine($"Test Process exited with non-zero exit code: {exitCode}"); 780logMessageBuilder.AppendLine($"Output Data: {outputData}"); 785logMessageBuilder.AppendLine($"Error Data: {errorData}"); 800logMessageBuilder.AppendLine($"TestSessionEvent.SessionType: {testSessionEvent.SessionType}"); 801logMessageBuilder.AppendLine($"TestSessionEvent.SessionUid: {testSessionEvent.SessionUid}"); 802logMessageBuilder.AppendLine($"TestSessionEvent.ExecutionId: {testSessionEvent.ExecutionId}"); 815logMessageBuilder.AppendLine($"AzureDevOpsLogMessage.ExecutionId: {azureDevOpsLogMessage.ExecutionId}"); 816logMessageBuilder.AppendLine($"AzureDevOpsLogMessage.InstanceId: {azureDevOpsLogMessage.InstanceId}"); 817logMessageBuilder.AppendLine($"AzureDevOpsLogMessage.LogText: {azureDevOpsLogMessage.LogText}"); 830logMessageBuilder.AppendLine($"DisplayMessage.ExecutionId: {displayMessage.ExecutionId}"); 831logMessageBuilder.AppendLine($"DisplayMessage.InstanceId: {displayMessage.InstanceId}"); 832logMessageBuilder.AppendLine($"DisplayMessage.Level: {displayMessage.Level}"); 833logMessageBuilder.AppendLine($"DisplayMessage.Text: {displayMessage.Text}");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\CompilerServerLogger.cs (1)
83builder.AppendLine($"Exception: '{exception.GetType().Name}' '{exception.Message}' occurred during '{reason}'");
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
453errMsg.AppendLine($"+ {baseline}"); 454cmdStr.AppendLine($"del /s {baseline}");
GenerateAnalyzerNuspec (4)
Program.cs (4)
64case "license": result.AppendLine($" <license type=\"expression\">{value}</license>"); continue; 70result.AppendLine($" <{name}>{value}</{name}>"); 81result.AppendLine($@" <repository type=""{repositoryType}"" url=""{repositoryUrl}"" commit=""{repositoryCommit}""/>"); 90result.AppendLine($@" <dependency id=""{dependency}"" version=""{version}"" />");
GenerateDocumentationAndConfigFiles (30)
Program.cs (22)
549builder.AppendLine($"# {fileTitle}"); 575builder.AppendLine($"## {ruleIdWithHyperLink}: {title}"); 598builder.AppendLine($"|Category|{descriptor.Category}|"); 599builder.AppendLine($"|Enabled|{descriptor.IsEnabledByDefault}|"); 600builder.AppendLine($"|Severity|{descriptor.DefaultSeverity}|"); 602builder.AppendLine($"|CodeFix|{hasCodeFix}|"); 1122result.AppendLine($@"<RuleSet Name=""{rulesetTitle}"" Description=""{rulesetDescription}"" ToolsVersion=""15.0"">"); 1132result.AppendLine($@" <Rules AnalyzerId=""{analyzerPackageName}"" RuleNamespace=""{analyzerPackageName}"">"); 1143result.AppendLine($@" <Rule Id=""{rule.Id}"" Action=""{severity}"" /> {spacing} <!-- {rule.Title} -->"); 1188result.AppendLine($@"# {editorconfigTitle}"); 1189result.AppendLine($@"# Description: {editorconfigDescription}"); 1211result.AppendLine($"# {rule.Id}: {rule.Title}"); 1212result.AppendLine($@"dotnet_diagnostic.{rule.Id}.severity = {severity}"); 1242result.AppendLine($@"{commentStart}{category ?? customTag} Rules{commentEnd}"); 1247result.AppendLine($@"{commentStart}Other Rules{commentEnd}"); 1424result.AppendLine($@"# {title}"); 1425result.AppendLine($@"# Description: {description}"); 1436result.AppendLine($@"global_level = {globalLevel}"); 1480result.AppendLine($"# {rule.Id}: {rule.Title}"); 1481result.AppendLine($@"dotnet_diagnostic.{rule.Id}.severity = {severityString}"); 1789builder.AppendLine($@" <CompilerVisibleProperty Include=""{compilerVisibleProperty}"" />"); 1817builder.AppendLine($@" <{propertyName}>@({itemOptionName}, '{MSBuildItemOptionNamesHelpers.ValuesSeparator}')</{propertyName}>");
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (1)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 183sb.AppendLine($" {info.StackTrace}");
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (5)
58builder.AppendLine($@"# {name}"); 59builder.AppendLine($@"# Description: {description}"); 74builder.AppendLine($@"dotnet_analyzer_diagnostic.severity = {ruleset.GeneralDiagnosticOption.ToAnalyzerConfigString()}"); 89builder.AppendLine($@"dotnet_diagnostic.{id}.severity = {severity.ToAnalyzerConfigString()}"); 215builder.AppendLine($@"# {trimmedCommentPart}");
Infrastructure.Tests (14)
ExtractTestPartitions\MockAssemblyBuilder.cs (14)
37code.AppendLine($"[Trait(\"Partition\", \"{partitionName}\")]"); 38code.AppendLine($"public class {className}"); 68code.AppendLine($"[Collection(\"{collectionName}\")]"); 69code.AppendLine($"public class {className}"); 108code.AppendLine($"[Trait(\"Partition\", \"{partitionName}\")]"); 109code.AppendLine($"public class {className}"); 118code.AppendLine($"[Collection(\"{collectionName}\")]"); 119code.AppendLine($"public class {className}"); 142code.AppendLine($"public class {className}"); 184code.AppendLine($"public class {outerClassName}"); 186code.AppendLine($" [Trait(\"Partition\", \"{partitionName}\")]"); 187code.AppendLine($" public class {innerClassName}"); 219code.AppendLine($"[Trait(\"{traitKey}\", \"{traitValue}\")]"); 220code.AppendLine($"public class {className}");
Microsoft.Arcade.Common (2)
CommandResult.cs (2)
37message.AppendLine($"{Environment.NewLine}Standard Output:{Environment.NewLine}{StdOut}"); 42message.AppendLine($"{Environment.NewLine}Standard Error:{Environment.NewLine}{StdErr}");
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 183sb.AppendLine($" {info.StackTrace}");
Microsoft.Build (4)
Graph\ProjectGraph.cs (3)
536sb.AppendLine($"/* {DebuggerDisplayString()} */"); 555sb.AppendLine($"\t{nodeId} [label=<{nodeName}<br/>({targetListString})<br/>{globalPropertiesString}>]"); 561sb.AppendLine($"\t{nodeId} -> {referenceId}");
Logging\TerminalLogger\TerminalNodesFrame.cs (1)
124sb.AppendLine($"{AnsiCodes.CSI}{previousFrame.NodesCount + 1}{AnsiCodes.MoveUpToLineStart}");
Microsoft.Build.Framework (1)
TaskParameterEventArgs.cs (1)
111sb.AppendLine($"{args.Kind}: {args.ItemType}");
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
83builder.AppendLine($"Exception: '{exception.GetType().Name}' '{exception.Message}' occurred during '{reason}'");
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalysisContextInfo.cs (6)
80sb.AppendLine($"{nameof(Compilation)}: {_compilation.AssemblyName}"); 85sb.AppendLine($"{nameof(IOperation)}: {_operation.Kind}"); 90sb.AppendLine($"{nameof(ISymbol)}: {_symbol.Name} ({_symbol.Kind})"); 97sb.AppendLine($"{nameof(SyntaxTree)}: {_file.Value.SourceTree.FilePath}"); 102sb.AppendLine($"{nameof(AdditionalText)}: {_file.Value.AdditionalFile.Path}"); 115sb.AppendLine($"{nameof(SyntaxNode)}: {GetFlattenedNodeText(_node)} [{_node.GetType().Name}]@{_node.Span} {(lineSpan.HasValue ? lineSpan.Value.ToString() : string.Empty)}");
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 183sb.AppendLine($" {info.StackTrace}");
Microsoft.CodeAnalysis.CSharp (11)
Binder\DecisionDagBuilder.cs (5)
2862result.AppendLine($"{(remainingValues.Any() ? " REMAINING " + string.Join(" ", remainingValues) : "")}"); 2866result.AppendLine($" {dumpStateForCase(cd)}"); 2871result.AppendLine($" Test: {dumpDagTest(state.SelectedTest)}"); 2876result.AppendLine($" TrueBranch: {stateIdentifierMap[state.TrueBranch]}"); 2881result.AppendLine($" FalseBranch: {stateIdentifierMap[state.FalseBranch]}");
BoundTree\LengthBasedStringSwitchData.cs (6)
266builder.AppendLine($"Buckets: {string.Join(", ", StringBasedJumpTables.Select(t => t.StringCaseLabels.Length))}"); 267builder.AppendLine($" case null: {readable(LengthBasedJumpTable.NullCaseLabel)}"); 274builder.AppendLine($"Label {readable(charJumpTable.Label)}:"); 275builder.AppendLine($" Selected char position: {charJumpTable.SelectedCharPosition}:"); 283builder.AppendLine($"Label {readable(stringJumpTable.Label)}:"); 294builder.AppendLine($" case {constant}: {readable(label)}");
Microsoft.CodeAnalysis.Features (6)
CodeRefactorings\SyncNamespace\SyncNamespaceDocumentsNotInSolutionException.cs (1)
20builder.AppendLine($"{documentId.GetDebuggerDisplay()}, IsSourceGeneratedDocument: {documentId.IsSourceGenerated}");
Options\EditorConfig\EditorConfigFileGenerator.cs (5)
24editorconfig.AppendLine($"# {WorkspacesResources.Remove_the_line_below_if_you_want_to_inherit_dot_editorconfig_settings_from_higher_directories}"); 30editorconfig.AppendLine($"# {WorkspacesResources.CSharp_files}"); 35editorconfig.AppendLine($"# {WorkspacesResources.Visual_Basic_files}"); 59editorconfig.AppendLine($"#### {feature} ####"); 64editorconfig.AppendLine($"# {optionGrouping.Key.Description}");
Microsoft.CodeAnalysis.Workspaces (4)
src\a1065d420d446521\NamingStylePreferencesEditorConfigSerializer.cs (1)
41entryWriter: (name, value) => builder.AppendLine($"{name} = {value}"),
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (2)
176sb.AppendLine($" {group.Key.Type}{poolInfo}{allocSite}: {group.Count()}"); 183sb.AppendLine($" {info.StackTrace}");
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
134builder.AppendLine($" {projectId}: {version}");
Microsoft.Diagnostics.DataContractReader.Contracts (3)
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\NativeArray.cs (3)
40sb.AppendLine($"NativeArray Size: {_nElements}"); 41sb.AppendLine($"EntryIndexSize: {_entryIndexSize}"); 47sb.AppendLine($"{i}: {val}");
Microsoft.DotNet.Arcade.Sdk (11)
src\GenerateResxSource.cs (11)
141strings.AppendLine($"{memberIndent}internal const string @{identifier} = \"{name}\";"); 145strings.AppendLine($"{memberIndent}internal static string @{identifier} => GetResourceString(\"{name}\"{defaultValue});"); 163strings.AppendLine($"{memberIndent}Friend Const [{identifier}] As String = \"{name}\""); 167strings.AppendLine($"{memberIndent}Friend Shared ReadOnly Property [{identifier}] As String"); 168strings.AppendLine($"{memberIndent} Get"); 169strings.AppendLine($"{memberIndent} Return GetResourceString(\"{name}\"{defaultValue})"); 170strings.AppendLine($"{memberIndent} End Get"); 171strings.AppendLine($"{memberIndent}End Property"); 475strings.AppendLine($"{indent}internal static string Format{resourceString.Name}({resourceString.GetMethodParameters(language)})"); 478strings.AppendLine($@"{indent} => string.Format(Culture, GetResourceString(""{resourceString.Name}"", new [] {{ {resourceString.GetArgumentNames()} }}), {resourceString.GetArguments()});"); 482strings.AppendLine($@"{indent} => string.Format(Culture, GetResourceString(""{resourceString.Name}""), {resourceString.GetArguments()});");
Microsoft.DotNet.Build.Tasks.Installers (7)
src\CreateWixCommandPackageDropBase.cs (1)
93commandString.AppendLine($"REM {originalCommand }");
src\RpmHeader.cs (6)
49builder.AppendLine($"\tTag: {entry.Tag}, Type: {entry.Type}"); 52builder.AppendLine($"\t\t'{str}'"); 56builder.AppendLine($"\t\t{((ArraySegment<byte>)entry.Value).Count} bytes"); 57builder.AppendLine($"\t\t{BitConverter.ToString(((ArraySegment<byte>)entry.Value).Array!, ((ArraySegment<byte>)entry.Value).Offset, ((ArraySegment<byte>)entry.Value).Count)}"); 63builder.AppendLine($"\t\t- '{item}'"); 68builder.AppendLine($"\t\t{entry.Value}");
Microsoft.Extensions.Options.SourceGeneration (8)
Emitter.cs (8)
591sb.AppendLine($"else if (value is {typeName})"); 592sb.AppendLine($"{padding}{{"); 593sb.AppendLine($"{padding} length = (({typeName})value).Count;"); 594sb.AppendLine($"{padding}}}"); 616sb.AppendLine($"(validationContext.ObjectInstance is {type} && OtherProperty == \"{property}\")"); 617sb.AppendLine($"{padding}{{"); 618sb.AppendLine($"{padding} result = Equals(value, (({type})validationContext.ObjectInstance).{EscapeIdentifier(property)});"); 619sb.AppendLine($"{padding}}}");
Microsoft.Gen.Metrics.Unit.Tests (5)
ParserTests.Diagnostics.cs (3)
369sb.AppendLine($"public class C{i} : C{i + 1} {{ public string dim{i} {{get;set;}}}}"); 372sb.AppendLine($"public class C{i} {{ public string dim{i} {{get;set;}}}}"); 550sb.AppendLine($"public class C{i} : C{i + 1} {{ public string Tag{i} {{ get; set; }} }}");
ParserTests.StrongTypes.cs (2)
602sb.AppendLine($"public class C{i} : C{i + 1} {{ public string dim{i} {{get;set;}}}}"); 605sb.AppendLine($"public class C{i} {{ public string dim{i} {{get;set;}}}}");
Microsoft.Maui.Essentials (11)
VersionTracking\VersionTracking.shared.cs (11)
312 sb.AppendLine($" IsFirstLaunchEver: {IsFirstLaunchEver}"); 313 sb.AppendLine($" IsFirstLaunchForCurrentVersion: {IsFirstLaunchForCurrentVersion}"); 314 sb.AppendLine($" IsFirstLaunchForCurrentBuild: {IsFirstLaunchForCurrentBuild}"); 316 sb.AppendLine($" CurrentVersion: {CurrentVersion}"); 317 sb.AppendLine($" PreviousVersion: {PreviousVersion}"); 318 sb.AppendLine($" FirstInstalledVersion: {FirstInstalledVersion}"); 319 sb.AppendLine($" VersionHistory: [{string.Join(", ", VersionHistory)}]"); 321 sb.AppendLine($" CurrentBuild: {CurrentBuild}"); 322 sb.AppendLine($" PreviousBuild: {PreviousBuild}"); 323 sb.AppendLine($" FirstInstalledBuild: {FirstInstalledBuild}"); 324 sb.AppendLine($" BuildHistory: [{string.Join(", ", BuildHistory)}]");
Microsoft.ML.GenAI.Core (2)
Extension\ModuleExtension.cs (2)
260sb.AppendLine($"{i}: {str}"); 279sb.AppendLine($"{i}: {key} shape: [{shapeStr}]");
Microsoft.NET.Build.Containers (3)
Registry\HttpExtensions.cs (3)
72s.AppendLine($"Request URI: {response.RequestMessage?.Method} {response.RequestMessage?.RequestUri?.ToString()}"); 73s.AppendLine($"Status code: {response.StatusCode}"); 77s.AppendLine($"Response content: {(string.IsNullOrWhiteSpace(detail) ? "<empty>" : detail)}");
Microsoft.NET.Build.Tasks (25)
ResolveTargetingPackAssets.cs (5)
557cacheKeyBuilder.AppendLine($"{nameof(GenerateErrorForMissingTargetingPacks)}={GenerateErrorForMissingTargetingPacks}"); 558cacheKeyBuilder.AppendLine($"{nameof(NuGetRestoreSupported)}={NuGetRestoreSupported}"); 559cacheKeyBuilder.AppendLine($"{nameof(DisableTransitiveFrameworkReferences)}={DisableTransitiveFrameworkReferences}"); 561cacheKeyBuilder.AppendLine($"{nameof(NetCoreTargetingPackRoot)}={NetCoreTargetingPackRoot}"); 563cacheKeyBuilder.AppendLine($"{nameof(ProjectLanguage)}={ProjectLanguage}");
RunReadyToRunCompiler.cs (20)
243result.AppendLine($"-r:\"{reference.ItemSpec}\""); 247result.AppendLine($"-r \"{reference.ItemSpec}\""); 289result.AppendLine($"/DiasymreaderPath \"{DiaSymReader}\""); 293result.AppendLine($"\"{_outputR2RImage}\""); 298result.AppendLine($"/JITPath \"{CrossgenTool.GetMetadata(MetadataKeys.JitPath)}\""); 300result.AppendLine($"/out \"{_outputR2RImage}\""); 301result.AppendLine($"\"{_inputAssembly}\""); 314result.AppendLine($"--jitpath:\"{jitPath}\""); 318result.AppendLine($"--targetos:{Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS)}"); 319result.AppendLine($"--targetarch:{Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch)}"); 330result.AppendLine($"--pdb-path:{Path.GetDirectoryName(_outputPDBImage)}"); 335result.AppendLine($"--perfmap-path:{Path.GetDirectoryName(_outputPDBImage)}"); 340result.AppendLine($"--perfmap-format-version:{perfmapFormatVersion}"); 349result.AppendLine($"-m:\"{mibc.ItemSpec}\""); 355result.AppendLine($"--obj-format:{Crossgen2ContainerFormat}"); 391result.AppendLine($"--rtr-header-symbol-name:{_r2rHeaderSymbolName}"); 401result.AppendLine($"--out:\"{_outputR2RImage}\""); 416result.AppendLine($"-u:\"{unrooted.ItemSpec}\""); 423result.AppendLine($"--out:\"{_outputR2RImage}\""); 427result.AppendLine($"{_inputAssembly}");
Microsoft.NET.StringTools (7)
WeakStringCacheInterner.cs (7)
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}|"); 161result.AppendLine($"String count live/collected/total = {debugInfo.LiveStringCount}/{debugInfo.CollectedStringCount}/{debugInfo.LiveStringCount + debugInfo.CollectedStringCount}");
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
ListGlobbingPatternMatcher.cs (1)
38displaySB.AppendLine($"\t{matcher.Pattern}");
Microsoft.TemplateSearch.Common (3)
Providers\NuGetMetadataSearchProvider.cs (3)
240_ = message.AppendLine($"Status code: {response.StatusCode}").AppendLine("Headers:"); 243_ = message.AppendLine($" {header.Key}: {string.Join(", ", header.Value)}"); 247_ = message.AppendLine($" {header.Key}: {string.Join(", ", header.Value)}");
PresentationFramework (6)
MS\Internal\Data\PropertyPathWorker.cs (5)
1256sb.AppendLine($" Info is wrong: expected '{info}' got '{svs.info}'"); 1259sb.AppendLine($" Type is wrong: expected '{sourceType}' got '{svs.type}'"); 1262sb.AppendLine($" Item is wrong: expected '{item}' got '{BindingExpression.GetReference(svs.item)}'"); 1272sb.AppendLine($" args[{i}] is wrong: expected '{args[i]}' got '{svs.args[i]}'"); 1277sb.AppendLine($" Args are wrong: expected length '{len1}' got length '{len2}'");
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (1)
156sb.AppendLine($" {iteratorFrame.Depth} {iteratorFrame}");
System.Data.OleDb (25)
OleDbStruct.cs (25)
54builder.AppendLine($"\tulParamSize ={ulParamSize}"); 55builder.AppendLine($"\tdwFlags =0x{dwFlags:X4}"); 56builder.AppendLine($"\tPrecision ={bPrecision}"); 57builder.AppendLine($"\tScale ={bScale}"); 80builder.AppendLine($"pwszDataSourceType ={Marshal.PtrToStringUni(pwszDataSourceType)}"); 82builder.AppendLine($"\tulParamSize ={ulParamSize}"); 83builder.AppendLine($"\tdwFlags =0x{dwFlags:X4}"); 84builder.AppendLine($"\tPrecision ={bPrecision}"); 85builder.AppendLine($"\tScale ={bScale}"); 147builder.AppendLine($"\tOrdinal ={iOrdinal}"); 148builder.AppendLine($"\tValueOffset ={obValue}"); 149builder.AppendLine($"\tLengthOffset={obLength}"); 150builder.AppendLine($"\tStatusOffset={obStatus}"); 151builder.AppendLine($"\tMaxLength ={cbMaxLen}"); 152builder.AppendLine($"\tDB_Type ={ODB.WLookup(wType)}"); 153builder.AppendLine($"\tPrecision ={bPrecision}"); 154builder.AppendLine($"\tScale ={bScale}"); 444builder.AppendLine($"tagDBCOLUMNINFO: {Convert.ToString(pwszName, CultureInfo.InvariantCulture)}"); 445builder.AppendLine($"\t{((long)iOrdinal).ToString(CultureInfo.InvariantCulture)}"); 446builder.AppendLine($"\t0x{dwFlags:X8}"); 447builder.AppendLine($"\t{ulColumnSize}"); 448builder.AppendLine($"\t0x{wType:X2}"); 449builder.AppendLine($"\t{bPrecision}"); 450builder.AppendLine($"\t{bScale}"); 451builder.AppendLine($"\t{columnid.eKind}");
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Emitter.cs (3)
2357source.AppendLine($" IgnoreUnrecognizedTypeDiscriminators = {FormatBoolLiteral(options.IgnoreUnrecognizedTypeDiscriminators)},"); 2358source.AppendLine($" TypeDiscriminatorPropertyName = {FormatStringLiteral(options.TypeDiscriminatorPropertyName)},"); 2359source.AppendLine($" UnknownDerivedTypeHandling = {SourceGeneratorHelpers.FormatEnumLiteral(JsonUnknownDerivedTypeHandlingTypeRef, options.UnknownDerivedTypeHandling)},");
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexInterpreterCode.cs (1)
127sb.AppendLine($"Direction: {((Options & RegexOptions.RightToLeft) != 0 ? "right-to-left" : "left-to-right")}");
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (1)
156sb.AppendLine($" {iteratorFrame.Depth} {iteratorFrame}");
vbc (2)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
83builder.AppendLine($"Exception: '{exception.GetType().Name}' '{exception.Message}' occurred during '{reason}'");
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (1)
47builder.AppendLine($"Debug.Assert failed with message: {originalMessage}");
VBCSCompiler (11)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (9)
423diff.AppendLine($"- {line}"); 431diff.AppendLine($"+ {line}"); 681sb.AppendLine($"Cache: {cachePath}"); 682sb.AppendLine($" Hits (reused): {Hits}"); 683sb.AppendLine($" Stores (new): {Stores}"); 684sb.AppendLine($" Untouched: {Untouched}"); 706sb.AppendLine($" {label} details:"); 709sb.AppendLine($" {group.Key} ({group.Count()})"); 714sb.AppendLine($" {hashKey} (created: {created:u}, last used: {lastUsed:u})");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
83builder.AppendLine($"Exception: '{exception.GetType().Name}' '{exception.Message}' occurred during '{reason}'");
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (1)
47builder.AppendLine($"Debug.Assert failed with message: {originalMessage}");