137 references to Add
dotnet-svcutil-lib (14)
Shared\MSBuildProj.cs (13)
83this.ProjectNode.Add(_projectReferenceGroup); 106this.ProjectNode.Add(_referenceGroup); 130this.ProjectNode.Add(_packageReferenceGroup); 144_packageReferenceGroup.Add(new XAttribute("Condition", $"'$(TargetFramework)' != '{netfxInfo.FullName}'")); 454projectElement.Add(propertyGroup); 541this.ProjectReferceGroup.Add(new XElement("ProjectReference", new XAttribute("Include", dependency.FullPath))); 552this.ReferenceGroup.Add(new XElement("Reference", new XAttribute("Condition", $"'$(TargetFramework)' == '{netfxInfo.FullName}'"), new XAttribute("Include", dependency.AssemblyName), new XElement("HintPath", dependency.FullPath))); 557this.ReferenceGroup.Add(new XElement("Reference", new XAttribute("Include", dependency.AssemblyName), new XElement("HintPath", dependency.FullPath))); 561this.PacakgeReferenceGroup.Add(new XElement("PackageReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version))); 564this.ReferenceGroup.Add(new XElement("DotNetCliToolReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version))); 573this.ReferenceGroup.Add(new XElement("Content", new XAttribute("CopyToOutputDirectory", "always"), new XAttribute("Include", Path.Combine(dependency.FullPath.Substring(0, dependency.FullPath.LastIndexOf(Path.DirectorySeparatorChar)), "internalAssets\\**")), new XAttribute("Link", "internalAssets/%(RecursiveDir)%(Filename)%(Extension)"))); 577this.PacakgeReferenceGroup.Add(new XElement("Content", new XAttribute("CopyToOutputDirectory", "always"), new XAttribute("Include", path), new XAttribute("Link", "internalAssets/%(RecursiveDir)%(Filename)%(Extension)"))); 611propertyGroup.Add(element);
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
103pkgSourcesNode.Add(addElement);
dotnet-user-jwts (3)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (3)
62propertyGroup.Add(" "); 63propertyGroup.Add(new XElement("UserSecretsId", newSecretsId)); 64propertyGroup.Add($"{Environment.NewLine} ");
dotnet-user-secrets (3)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (3)
62propertyGroup.Add(" "); 63propertyGroup.Add(new XElement("UserSecretsId", newSecretsId)); 64propertyGroup.Add($"{Environment.NewLine} ");
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
274siteElement.Add(rootApplication);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
137siteElement.Add(newApplication);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
274siteElement.Add(rootApplication);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
274siteElement.Add(rootApplication);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
274siteElement.Add(rootApplication);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
274siteElement.Add(rootApplication);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
274siteElement.Add(rootApplication);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
137siteElement.Add(newApplication);
illink (2)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
35 combined.Add (element);
Microsoft.AspNetCore.App.Analyzers.Test (5)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (5)
254element.Add(CreateDiagnosticsElement(text, tree)); 257element.Add(new XElement("Parameters", 272parameterElement.Add(new XAttribute("DefaultValue", parameter.DefaultValue)); 276parameterElement.Add(new XElement("Policy", policy)); 310element.Add(new XAttribute("value", token.Value));
Microsoft.AspNetCore.Authentication.Test (4)
CookieTests.cs (2)
1893xml.Add(result.Ticket.Principal.Claims.Select(claim => new XElement("claim", new XAttribute("type", claim.Type), new XAttribute("value", claim.Value)))); 1897xml.Add(result.Ticket.Properties.Items.Select(extra => new XElement("extra", new XAttribute("type", extra.Key), new XAttribute("value", extra.Value))));
TestExtensions.cs (2)
54xml.Add(identity.Claims.Select(claim => 73xml.Add(new XElement("token", new XAttribute("name", token.Name),
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
412xml.Add(result.Principal.Claims.Select(claim => new XElement("claim", new XAttribute("type", claim.Type), new XAttribute("value", claim.Value)))); 416xml.Add(result.Properties.Items.Select(extra => new XElement("extra", new XAttribute("type", extra.Key), new XAttribute("value", extra.Value))));
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (2)
170aspNetCoreSection.Add(environmentVariablesSection); 178environmentVariablesSection.Add(environmentVariable);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
XElementExtensions.cs (3)
27element.Add(existing); 39element.Add(existing); 48element.Add(innerElement);
Microsoft.Build.Tasks.Core (4)
AssemblyDependency\GenerateBindingRedirects.cs (2)
81doc.Root.Add(runtimeNode); 105runtimeNode.Add(redirectNodes);
CombineTargetFrameworkInfoProperties.cs (1)
54root.Add(new XElement(item.ItemSpec, item.GetMetadata("Value")));
CombineXmlElements.cs (1)
40root.Add(XElement.Parse(item.ItemSpec));
Microsoft.Cci.Extensions (5)
Dgml\DgmlExtensions.cs (5)
32xDocument.Add(xRoot); 35xRoot.Add(xNodes); 44xNodes.Add(xNode); 48xRoot.Add(xLinks); 57xLinks.Add(xLink);
Microsoft.DotNet.Arcade.Sdk (1)
src\SourceBuild\AddSourceMappingToNugetConfig.cs (1)
65pkgSrc.Add(new XElement("package", new XAttribute("pattern", packagePattern)));
Microsoft.DotNet.Build.Tasks.Installers (7)
src\GenerateMacOSDistributionFile.cs (7)
107optionsElement.Add(new XAttribute("hostArchitectures", hostArchitecture)); 112document.Root.Add(optionsElement); 115document.Root.Add(titleElement); 116document.Root.Add(new XElement("choices-outline", choiceLineElements)); 117document.Root.Add(choiceElements); 118document.Root.Add(pkgRefElements); 119document.Root.Add(scriptElement);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\FinalizeInsertionVsixFile.cs (1)
104installationElement.Add(systemComponent);
Microsoft.DotNet.Build.Tasks.Workloads (3)
Msi\MsiPayloadPackageProject.wix.cs (1)
61itemGroup.Add(new XElement("None",
Msi\WorkloadPackGroupMsi.wix.cs (2)
105registryKeyElement.Add(new XElement(ns + "RegistryKey", new XAttribute("Key", pack.Id), 190xml.Add(subdir.ToXml());
Microsoft.DotNet.PackageTesting (8)
VerifyClosure.cs (8)
349doc.Root.Add(nodesElement); 350doc.Root.Add(linksElement); 360linksElement.Add(new XElement(s_dgmlns + "Link", 369linksElement.Add(new XElement(s_dgmlns + "Link", 378doc.Root.Add(categoriesElement); 380categoriesElement.Add(new XElement(s_dgmlns + "Category", 385categoriesElement.Add(new XElement(s_dgmlns + "Category", 400parent.Add(new XElement(s_dgmlns + "Node",
Microsoft.DotNet.SharedFramework.Sdk (16)
src\CreateFrameworkListFile.cs (8)
165element.Add(new XAttribute("Language", analyzerLanguage)); 170element.Add( 177element.Add(new XAttribute("DropFromSingleFile", "true")); 211element.Add(new XAttribute("FileVersion", f.FileVersion)); 221element.Add(new XAttribute("Profile", profile)); 228element.Add(new XAttribute("ReferencedByDefault", referencedByDefault)); 246element.Add(new XAttribute("DropFromSingleFile", "true")); 250frameworkManifest.Add(element);
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (8)
349doc.Root.Add(nodesElement); 350doc.Root.Add(linksElement); 360linksElement.Add(new XElement(s_dgmlns + "Link", 369linksElement.Add(new XElement(s_dgmlns + "Link", 378doc.Root.Add(categoriesElement); 380categoriesElement.Add(new XElement(s_dgmlns + "Category", 385categoriesElement.Add(new XElement(s_dgmlns + "Category", 400parent.Add(new XElement(s_dgmlns + "Node",
Microsoft.DotNet.SourceBuild.Tasks (3)
src\UsageReport\ValidateUsageAgainstBaseline.cs (2)
97report.Add( 112report.Add(new XElement("Removed", diff.Removed.Select(id => id.ToXElement())));
src\UsageReport\WriteUsageReports.cs (1)
157report.Add(annotatedUsages.Select(u => u.ToXml()));
Microsoft.DotNet.XliffTasks (4)
Model\XElementExtensions.cs (2)
42targetElement.Add(new XAttribute("state", "new")); 77targetElement.Add(stateAttribute);
Model\XlfDocument.cs (2)
207bodyElement.Add(newTransUnit); 250bodyElement.Add(sortedTransUnits.Values);
System.Private.Xml.Linq (16)
System\Xml\Linq\XContainer.cs (5)
170foreach (object? obj in o) Add(obj); 176foreach (object? obj in e) Add(obj); 194Add((object)content); 210/// See <see cref="XContainer.Add(object)"/> for details about the content that can be added 441Add(content);
System\Xml\Linq\XDocument.cs (2)
59/// See <see cref="XContainer.Add(object)"/> for details about the content that can be added 87/// See <see cref="XContainer.Add(object)"/> for details about the content that can be added
System\Xml\Linq\XElement.cs (3)
318Add(value); 975Add(content); 1012Add(content);
System\Xml\Linq\XNodeBuilder.cs (5)
47_root.Add(_content); 96_parent.Add(a); 142e.Add(string.Empty); 218_parent.Add(n); 243_parent.Add(s);
System\Xml\Schema\XNodeValidator.cs (1)
290e.Add(a);
WorkloadBuildTasks (3)
PatchNuGetConfig.cs (3)
106packageSources.Add(newPackageSourceElement); 119doc.Root.Add(packageSourceMapping); 132packageSourceMapping.Add(newPackageSourceMappingElement);
XmlFileLogger (16)
LogProcessNode.cs (3)
131propElement.Add(new XElement("Property", new XAttribute("Name", p.Key)) { Value = p.Value }); 134parentElement.Add(propElement); 164parentElement.Add(node);
ObjectModel\Build.cs (1)
54document.Add(root);
ObjectModel\Item.cs (5)
72parentElement.Add(element); 76element.Add(new XAttribute(xmlAttributeName, Text)); 80metadataElement.Add(metadataItem.Value); 81element.Add(metadataElement); 86element.Add(new XText(Text));
ObjectModel\Message.cs (1)
36element.Add(new XElement("Message", new XAttribute("Timestamp", _timestamp), new XText(_message)));
ObjectModel\Project.cs (1)
104parentElement.Add(element);
ObjectModel\Target.cs (1)
40parentElement.Add(element);
ObjectModel\Task.cs (2)
54element.Add(task); 63task.Add(new XElement("CommandLineArguments") { Value = CommandLineArguments });
ObjectModel\TaskParameter.cs (2)
47parentElement.Add(element); 51element.Add(items[0].Text);
xunit.console (3)
ConsoleRunner.cs (3)
290assembliesElement.Add(assemblyElement); 298assembliesElement.Add(assemblyElement); 305assembliesElement.Add(new XAttribute("timestamp", DateTime.Now.ToString(CultureInfo.InvariantCulture)));