1438 references to AppendLine
aspire (61)
Commands\Sdk\SdkDumpCommand.cs (45)
275sb.AppendLine("# Aspire Type System Capabilities");
276sb.AppendLine("# Generated by: aspire sdk dump --format ci");
282sb.AppendLine("# Diagnostics");
286sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}: {1}{2}", d.Severity.ToLowerInvariant(), d.Message, loc));
292sb.AppendLine("# Handle Types");
309sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}{1}", t.AtsTypeId, flagStr));
316sb.AppendLine("# DTO Types");
321sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} # {1}", t.TypeId, t.Description));
325sb.AppendLine(t.TypeId);
331sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}: {2}{3}", p.Name, optional, p.Type?.TypeId ?? "unknown", desc));
340sb.AppendLine("# Enum Types");
343sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} = {1}", t.TypeId, string.Join(" | ", t.Values)));
349sb.AppendLine("# Capabilities");
358sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}({1}) -> {2}", c.CapabilityId, paramStr, returnStr));
369sb.AppendLine("================================================================================");
370sb.AppendLine(" Aspire Type System Capabilities ");
371sb.AppendLine("================================================================================");
377sb.AppendLine("Summary");
378sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Handle Types: {0}", capabilities.HandleTypes.Count));
379sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " DTO Types: {0}", capabilities.DtoTypes.Count));
380sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Enum Types: {0}", capabilities.EnumTypes.Count));
381sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Capabilities: {0}", capabilities.Capabilities.Count));
384sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Diagnostics: {0} errors, {1} warnings", errorCount, warningCount));
391sb.AppendLine("Diagnostics");
392sb.AppendLine("--------------------------------------------------------------------------------");
396sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0} {1}", icon, d.Message));
399sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " -> {0}", d.Location));
406sb.AppendLine("Handle Types (passed by reference)");
407sb.AppendLine("--------------------------------------------------------------------------------");
429sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}", shortName, flagStr));
436sb.AppendLine("DTO Types (serialized as JSON)");
437sb.AppendLine("--------------------------------------------------------------------------------");
440sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name));
443sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Description));
451sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " - {0}{1}: {2}", p.Name, optional, simpleType));
454sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", p.Description));
464sb.AppendLine("Enum Types");
465sb.AppendLine("--------------------------------------------------------------------------------");
468sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name));
469sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", string.Join(" | ", t.Values)));
475sb.AppendLine("Capabilities");
476sb.AppendLine("--------------------------------------------------------------------------------");
485sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " [{0}]", group.Key));
495sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}({1}) -> {2}", c.MethodName, paramStr, returnType));
498sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", c.Description));
Aspire.Cli.Tests (3)
Aspire.Dashboard (4)
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (3)
Aspire.Deployment.EndToEnd.Tests (18)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (30)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.AppService (8)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (5)
Aspire.Playground.Tests (3)
Aspire.Templates.Tests (4)
CodeStyleConfigFileGenerator (3)
Crossgen2Tasks (10)
csc (4)
dotnet (7)
dotnet-dev-certs (4)
dotnet-getdocument (4)
dotnet-openapi (4)
dotnet-sql-cache (4)
dotnet-svcutil-lib (96)
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\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\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 "));
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (13)
dotnet-user-secrets (8)
EventSourceGenerator (8)
GenerateAnalyzerNuspec (25)
Program.cs (25)
44result.AppendLine(@"<?xml version=""1.0""?>");
45result.AppendLine(@"<package xmlns=""http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"">");
46result.AppendLine(@" <metadata>");
86result.AppendLine(@" <dependencies>");
93result.AppendLine(@" </dependencies>");
96result.AppendLine(@" </metadata>");
98result.AppendLine(@" <files>");
99result.AppendLine(@" $CommonFileElements$");
151result.AppendLine(FileElement(assemblyPathForNuspec, target));
164result.AppendLine(FileElement(resourceAssemblyPathForNuspec, targetForNuspec));
175result.AppendLine(FileElement(fileWithPath, "buildTransitive"));
182result.AppendLine(FileElement(readmeFile, directoryName));
194result.AppendLine(FileElement(fileWithPath, Path.Combine("lib", tfm)));
218result.AppendLine(FileElement(fileWithPath, targetPath));
224result.AppendLine(FileElement(Path.Combine(assetsDir, "Install.ps1"), "tools"));
225result.AppendLine(FileElement(Path.Combine(assetsDir, "Uninstall.ps1"), "tools"));
234result.AppendLine(FileElement(Path.Combine(rulesetsDir, ruleset), "rulesets"));
246result.AppendLine(FileElement(Path.Combine(directory, editorconfig), $"editorconfig\\{directoryName}"));
257result.AppendLine(FileElement(Path.Combine(globalAnalyzerConfigsDir, globalconfig), $"buildTransitive\\config"));
271result.AppendLine(FileElement(fileWithPath, "documentation"));
280result.AppendLine(FileElement(fileWithPath, "documentation"));
289result.AppendLine(FileElement(fileWithPath, "documentation"));
293result.AppendLine(FileElement(Path.Combine(assetsDir, "ThirdPartyNotices.txt"), ""));
294result.AppendLine(@" </files>");
296result.AppendLine(@"</package>");
GenerateDocumentationAndConfigFiles (23)
GetDocument.Insider (4)
ilasm (1)
ILCompiler.RyuJit (1)
ILCompiler.TypeSystem (7)
illink (1)
ILLink.Tasks (27)
Infrastructure.Common (8)
xunit\WcfTestCase.cs (6)
73etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Begins---", DisplayName));
78etwOutput.AppendLine(string.Format(DisplayName + ": " + item.Message, item.Payload.ToArray()));
85etwOutput.AppendLine(String.Format("ETW message encountered FormatException '{0}' using DisplayName '{1}', format '{2}', and '{3}' payload items",
88etwOutput.AppendLine(string.Format("ETW message: {0}, payload below was received", item.Message));
93etwOutput.AppendLine(string.Format("{0}: {1}", DisplayName, payloadPara.ToString()));
98etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Ends---", DisplayName));
Infrastructure.Tests (69)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.AspNetCore.Components.Testing (3)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Http.Extensions (17)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (3)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.Build (9)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (6)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (20)
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
Microsoft.CodeAnalysis.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp (26)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.Razor.Compiler (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (27)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Diagnostics.DataContractReader.DataGenerator (66)
Emitter.cs (66)
32sb.AppendLine("// <auto-generated/>");
33sb.AppendLine("#nullable enable");
35sb.AppendLine("using Microsoft.Diagnostics.DataContractReader;");
36sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Contracts;");
41sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Generated;");
46sb.AppendLine($"namespace {model.Namespace};");
50sb.AppendLine(BuildClassDoc(model));
51sb.AppendLine($"partial class {model.ClassName}");
52sb.AppendLine("{");
58sb.AppendLine($" private static readonly string[] _typeNames = {namesLiteral};");
65sb.AppendLine($" public static {TypeHandleType} TypeHandle({Target} target)");
66sb.AppendLine($" => TypeNameResolver.GetTypeHandle(target, _typeNames);");
70sb.AppendLine($" public {TargetPointer} Address {{ get; }}");
77sb.AppendLine($" private readonly {Target} _target;");
102sb.AppendLine("}");
135sb.AppendLine($" public void Write{member.Name}({propType} value)");
136sb.AppendLine(" {");
137sb.AppendLine($" LayoutSet layouts = LayoutSet.Resolve(_target, _typeNames);");
138sb.AppendLine($" layouts.Select(Address, out var t, out var b, out var n, {NameArgs(member)});");
141sb.AppendLine($" _target.WriteField<byte>(b, t, n, (byte)(value ? 1 : 0));");
145sb.AppendLine($" _target.WriteNUIntField(b, t, n, value);");
150sb.AppendLine($" _target.WriteField<{typeArg}>(b, t, n, value);");
152sb.AppendLine($" {member.Name} = value;");
153sb.AppendLine(" }");
164sb.AppendLine($" partial void OnInit({Target} target, {TargetPointer} address);");
167sb.AppendLine($" public {model.ClassName}({Target} target, {TargetPointer} address)");
168sb.AppendLine(" {");
169sb.AppendLine(" Address = address;");
173sb.AppendLine(" _target = target;");
179sb.AppendLine($" LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);");
187sb.AppendLine(" OnInit(target, address);");
188sb.AppendLine(" }");
201sb.AppendLine($" {member.Name} = {RawOffsetReadExpression(member, offset)};");
210sb.AppendLine($" {{");
211sb.AppendLine($" if (layouts.TrySelect(address, out var t, out var b, out var n, {NameArgs(member)}))");
212sb.AppendLine($" {member.Name} = {readExpr};");
213sb.AppendLine($" else");
214sb.AppendLine($" {member.Name} = default({propType});");
215sb.AppendLine($" }}");
219sb.AppendLine($" {{");
220sb.AppendLine($" layouts.Select(address, out var t, out var b, out var n, {NameArgs(member)});");
221sb.AppendLine($" {member.Name} = {readExpr};");
222sb.AppendLine($" }}");
229sb.AppendLine($" {{");
230sb.AppendLine($" if (layouts.TrySelect(address, out var t, out var b, out var n, {NameArgs(member)}))");
231sb.AppendLine($" {member.Name} = b + (ulong)t.Fields[n].Offset;");
232sb.AppendLine($" else");
233sb.AppendLine($" {member.Name} = null;");
234sb.AppendLine($" }}");
238sb.AppendLine($" {{");
239sb.AppendLine($" layouts.Select(address, out var t, out var b, out var n, {NameArgs(member)});");
240sb.AppendLine($" {member.Name} = b + (ulong)t.Fields[n].Offset;");
241sb.AppendLine($" }}");
245sb.AppendLine($" {member.Name} = address + layouts.InstanceSize;");
297sb.AppendLine($" static {model.ClassName} {IDataInterface}<{model.ClassName}>.Create({Target} target, {TargetPointer} address)");
298sb.AppendLine($" => new {model.ClassName}(target, address);");
350sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target)");
351sb.AppendLine($" => TypeNameResolver.GetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\");");
357sb.AppendLine($" public static partial {TargetPointer}? {member.Name}({Target} target)");
358sb.AppendLine(" {");
359sb.AppendLine($" if (TypeNameResolver.TryGetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", out {TargetPointer} address))");
360sb.AppendLine($" return target.ReadPointer(address);");
361sb.AppendLine($" return null;");
362sb.AppendLine(" }");
368sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target, {TargetPointer} thread)");
369sb.AppendLine($" => TypeNameResolver.GetThreadStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", thread);");
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Installers (18)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.GenFacades (5)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.Configuration.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Logging.AzureAppServices (3)
Microsoft.Extensions.Logging.EventLog (5)
Microsoft.Extensions.Logging.Generators (9)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Microsoft.Extensions.Telemetry (2)
Microsoft.Gen.BuildMetadata (2)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.Metrics.Unit.Tests (4)
Microsoft.Gen.MetricsReports (2)
Microsoft.Maui.Controls (2)
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)
Microsoft.McpServer.ProjectTemplates.Tests (1)
Microsoft.ML.Data (17)
Microsoft.ML.FastTree (2)
Microsoft.ML.GenAI.LLaMA.Tests (2)
Microsoft.ML.GenAI.Mistral.Tests (2)
Microsoft.ML.GenAI.Phi.Tests (3)
Microsoft.ML.StandardTrainers (16)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.Build.Tasks (44)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (7)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Razor.Tasks (45)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
Microsoft.NET.StringTools (5)
Microsoft.TemplateEngine.Cli (12)
Microsoft.TemplateEngine.Edge (3)
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CrossPlatEngine (2)
Microsoft.TestPlatform.Utilities (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
Microsoft.VisualStudio.TestPlatform.Common (4)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
NuGet.CommandLine.XPlat (2)
NuGet.Commands (6)
TrustedSignersCommand\TrustedSignersCommandRunner.cs (5)
225trustedSignerBuilder.AppendLine(index + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogTitle, item.Name, item.ElementName));
229trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogServiceIndex, repoItem.ServiceIndex));
233trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogOwners, string.Join("; ", repoItem.Owners)));
237trustedSignerBuilder.AppendLine(defaultIndentation + Strings.TrustedSignerLogCertificates);
244trustedSignerBuilder.AppendLine(defaultIndentation + extraIndentation + string.Format(CultureInfo.CurrentCulture, summaryAllowUntrustedRoot, cert.HashAlgorithm.ToString(), cert.Fingerprint));
NuGet.Common (1)
NuGet.Credentials (1)
NuGet.PackageManagement (1)
NuGet.Packaging (28)
Signing\Utility\CertificateUtility.cs (10)
74certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateSubjectName, cert.Subject));
75certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHashSha1, cert.Thumbprint));
76certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint));
77certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name));
78certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter));
82certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateCrlUrl, url));
87certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateOcspUrl, url));
112collectionStringBuilder.AppendLine(Strings.CertUtilityMultipleCertificatesHeader);
123collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, certCollection.Count - ChainDepthLimit));
145collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, chainElementsCount - ChainDepthLimit));
PresentationFramework (7)
Roslyn.Diagnostics.Analyzers (15)
Roslyn.Diagnostics.CSharp.Analyzers (1)
rzc (4)
ScenarioTests.Common.Tests (22)
sdk-tasks (2)
Security.TransportSecurity.IntegrationTests (12)
Https\HttpsTests.4.1.0.cs (12)
91errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
96errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
130errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
135errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
169errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
174errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
208errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
213errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
Stress.ApiService (1)
SuperFileCheck (6)
System.ComponentModel.Composition (2)
System.Data.OleDb (1)
System.Diagnostics.FileVersionInfo (13)
System.Linq.Expressions (8)
System.Net.Http.WinHttpHandler (3)
System.Numerics.Tensors (5)
System.Private.CoreLib (46)
System.Private.TypeLoader (11)
System.Private.Xml (5)
System.Security.Cryptography (25)
System.ServiceModel.Primitives (57)
System\ServiceModel\Channels\SecurityBindingElement.cs (17)
606sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
607sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString()));
608sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", IncludeTimestamp.ToString()));
609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString()));
610sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", MessageSecurityVersion.ToString()));
611sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString()));
613sb.AppendLine("EndpointSupportingTokenParameters:");
614sb.AppendLine(" " + EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
615sb.AppendLine("OptionalEndpointSupportingTokenParameters:");
616sb.AppendLine(" " + OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
620sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
627sb.AppendLine(" " + OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
633sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
639sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
640sb.AppendLine(" " + OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
151sb.AppendLine(base.ToString());
153sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "TokenType: {0}", TokenType == null ? "null" : TokenType));
154sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
155sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture)));
156sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", IssuerAddress == null ? "null" : IssuerAddress.ToString()));
157sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", IssuerMetadataAddress == null ? "null" : IssuerMetadataAddress.ToString()));
158sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", DefaultMessageSecurityVersion == null ? "null" : DefaultMessageSecurityVersion.ToString()));
159sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", UseStrTransform.ToString()));
163sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
167sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
171sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
172sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n "));
178sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
182sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
185sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", ClaimTypeRequirements[i].ClaimType, ClaimTypeRequirements[i].IsOptional));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
117sb.AppendLine("No endorsing tokens.");
123sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
124sb.AppendLine(" " + Endorsing[k].ToString().Trim().Replace("\n", "\n "));
130sb.AppendLine("No signed tokens.");
136sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture)));
137sb.AppendLine(" " + Signed[k].ToString().Trim().Replace("\n", "\n "));
143sb.AppendLine("No signed encrypted tokens.");
149sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture)));
150sb.AppendLine(" " + SignedEncrypted[k].ToString().Trim().Replace("\n", "\n "));
156sb.AppendLine("No signed endorsing tokens.");
162sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
163sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
System.ServiceModel.Primitives.Tests (2)
System.Text.Json.SourceGeneration (7)
System.Text.RegularExpressions (2)
System.Text.RegularExpressions.Generator (2)
System.Windows.Forms (3)
System.Windows.Forms.PrivateSourceGenerators (12)
System.Windows.Input.Manipulations (7)
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()));
vbc (4)
VBCSCompiler (4)
vstest.console (7)
vstest.console.arm64 (7)