283 references to Add
aspire (35)
Projects\DotNetBasedAppHostServerProject.cs (13)
187projectRefGroup.Add(new XElement("ProjectReference",
197projectRefGroup.Add(new XElement("ProjectReference",
216projectRefGroup.Add(new XElement("ProjectReference",
223doc.Root!.Add(projectRefGroup);
228doc.Root!.Add(new XElement("ItemGroup",
240doc.Root!.Add(new XElement("Import", new XAttribute("Project", appHostInTargets)));
244doc.Root!.Add(new XElement("Import", new XAttribute("Project", sdkInTargets)));
251doc.Root!.Add(new XElement("ItemGroup",
258doc.Root!.Add(new XElement("ItemGroup",
263doc.Root!.Add(new XElement("Target", new XAttribute("Name", "_CSharpWriteHostProjectMetadataSources")));
264doc.Root!.Add(new XElement("Target", new XAttribute("Name", "_CSharpWriteProjectMetadataSources")));
379.Add(new XElement("RestoreAdditionalProjectSources", sourceList));
383doc.Root!.Add(new XElement("ItemGroup",
Aspire.Hosting.Maui (12)
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)
illink (2)
ILLink.Tasks (1)
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)