299 references to Add
aspire (12)
Aspire.Cli.EndToEnd.Tests (3)
Aspire.Cli.Tests (2)
Aspire.Hosting.Maui (12)
Aspire.Tray.Tests (20)
Helpers\TrayPanelSvgRenderer.cs (20)
34root.Add(defs);
37defs.Add(new XElement(s_svg + "filter", new XAttribute("id", "shadow"),
41root.Add(new XElement(s_svg + "rect", new XAttribute("width", F(scene.Width)), new XAttribute("height", F(scene.Height)),
53current.Add(new XElement(s_svg + "path", new XAttribute("d", ToPathData(fill.Path)), Paint("fill", fill.Color)));
56current.Add(new XElement(s_svg + "path", new XAttribute("d", ToPathData(stroke.Path)), new XAttribute("fill", "none"),
61current.Add(RenderText(text));
67current.Add(shape switch
78current.Add(logoPng is null
85defs.Add(new XElement(s_svg + "clipPath", new XAttribute("id", id), new XElement(s_svg + "rect", Bounds(clip.Bounds))));
87current.Add(group);
115root.Add(layer);
122line.Add(new XAttribute("stroke-dasharray", dash));
132layer.Add(Line(guide.Position, b.Y, guide.Position, b.Bottom, "#00E5FF"));
133layer.Add(new XElement(s_svg + "text", new XAttribute("x", F(guide.Position)), new XAttribute("y", "-2"),
137layer.Add(Line(b.X, guide.Position, b.Right, guide.Position, "#FF2BD6"));
140layer.Add(Line(b.X, guide.Position, b.Right, guide.Position, "#2BB52B", "2 1"));
143layer.Add(new XElement(s_svg + "rect", Bounds(b), new XAttribute("fill", "none"), new XAttribute("stroke", "#E6B800"),
150layer.Add(Line(text.Bounds.X, text.Baseline, text.Bounds.X + Math.Min(text.Bounds.Width, 40), text.Baseline, "#FF3B30", "1 0.6"));
189element.Add(new XAttribute("letter-spacing", "0.4"));
200element.Add(new XElement(s_svg + "tspan", new XAttribute("x", F(x)),
dotnet-svcutil-lib (12)
Shared\MSBuildProj.cs (11)
85this.ProjectNode.Add(_projectReferenceGroup);
108this.ProjectNode.Add(_referenceGroup);
132this.ProjectNode.Add(_packageReferenceGroup);
451projectElement.Add(propertyGroup);
538this.ProjectReferceGroup.Add(new XElement("ProjectReference", new XAttribute("Include", dependency.FullPath)));
541this.ReferenceGroup.Add(new XElement("Reference", new XAttribute("Include", dependency.AssemblyName), new XElement("HintPath", dependency.FullPath)));
544this.PacakgeReferenceGroup.Add(new XElement("PackageReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version)));
547this.ReferenceGroup.Add(new XElement("DotNetCliToolReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version)));
561this.ReferenceGroup.Add(new XElement("Content",
571this.PacakgeReferenceGroup.Add(new XElement("Content",
609propertyGroup.Add(element);
dotnet-user-jwts (3)
dotnet-user-secrets (3)
GenerateDocumentationAndConfigFiles (3)
GenerateTemplateManifest (7)
illink (2)
ILLink.Tasks (1)
Infrastructure.Tests (7)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.Build.Tasks.Core (4)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Workspaces (29)
Log\WorkspaceStructureLogger.cs (25)
42document.Add(workspaceElement);
59projectElement.Add(msbuildReferencesElement);
65projectElement.Add(additionalElements);
69projectElement.Add(BuildWorkspaceReferencesElement(project));
72projectElement.Add(workspaceAnalyzerReferencesElement);
76workspaceAnalyzerReferencesElement.Add(CreateElementForAnalyzerReference(analyzerReference));
80projectElement.Add(new XElement("workspaceDocuments", await CreateElementsForDocumentCollectionAsync(project.Documents, "document", cancellationToken).ConfigureAwait(false)));
81projectElement.Add(new XElement("workspaceAdditionalDocuments", await CreateElementsForDocumentCollectionAsync(project.AdditionalDocuments, "additionalDocuments", cancellationToken).ConfigureAwait(false)));
82projectElement.Add(new XElement("workspaceAnalyzerConfigDocuments", await CreateElementsForDocumentCollectionAsync(project.AnalyzerConfigDocuments, "analyzerConfigDocument", cancellationToken).ConfigureAwait(false)));
86projectElement.Add(new XElement("workspaceSourceGeneratedDocuments", CreateElementsForSourceGeneratedDocuments(sourceGeneratedDocuments)));
90projectElement.Add(generatorDiagnosticsElement);
94generatorDiagnosticsElement.Add(CreateElementForDiagnostic(diagnostic));
100workspaceElement.Add(projectElement);
139msbuildReferencesElement.Add(msbuildProject.Descendants(msbuildNamespace + "ProjectReference"));
140msbuildReferencesElement.Add(msbuildProject.Descendants(msbuildNamespace + "Reference"));
141msbuildReferencesElement.Add(msbuildProject.Descendants(msbuildNamespace + "ReferencePath"));
151workspaceReferencesElement.Add(CreateElementForPortableExecutableReference(metadataReference));
160workspaceReferencesElement.Add(referenceElement);
173projectElement.Add(compilationReferencesElement);
176compilationReferencesElement.Add(CreateElementForPortableExecutableReference(reference));
178projectElement.Add(CreateElementForCompilation(compilation));
181projectElement.Add(diagnosticsElement);
185diagnosticsElement.Add(CreateElementForDiagnostic(diagnostic));
283typesElement.Add(new XElement("type", new XAttribute("name", type.ToDisplayString())));
310documentElement.Add(new XElement("loadDiagnostic", loadDiagnostic));
Microsoft.DotNet.Build.Tasks.Installers (7)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Build.Tasks.Workloads (9)
Microsoft.DotNet.HotReload.Watch (1)
Microsoft.DotNet.PackageTesting (8)
Microsoft.DotNet.SharedFramework.Sdk (16)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.XliffTasks (4)
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
Microsoft.Maui.Resizetizer (12)
Microsoft.NET.Build.Tasks (6)
Microsoft.NET.HostModel (5)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks (5)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (11)
NuGet.Commands (8)
NuGet.Configuration (10)
NuGet.PackageManagement (7)
NuGet.Packaging (29)
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (16)
40elem.Add(new XElement(ns + "id", metadata.Id));
50elem.Add(new XElement(ns + "developmentDependency", metadata.DevelopmentDependency));
56elem.Add(new XElement(ns + "requireLicenseAcceptance", metadata.RequireLicenseAcceptance));
64elem.Add(licenseElement);
85elem.Add(new XElement(ns + "serviceable", metadata.Serviceable));
90elem.Add(GetXElementFromManifestPackageTypes(ns, metadata.PackageTypes));
98elem.Add(repoElement);
102elem.Add(GetXElementFromGroupableItemSets(
113elem.Add(GetXElementFromGroupableItemSets(
123elem.Add(GetXElementFromGroupableItemSets(
133elem.Add(GetXElementFromFrameworkAssemblies(ns, metadata.FrameworkReferences));
134elem.Add(GetXElementFromManifestContentFiles(ns, metadata.ContentFiles));
326packageTypesElement.Add(packageTypeElement);
360parent.Add(new XElement(ns + name, value));
372parent.Add(new XElement(ns + name, processed));
384parent.Add(new XElement(ns + name, processed));
Roslyn.Diagnostics.Analyzers (3)
System.Private.Xml.Linq (16)