234 references to Add
BuildBoss (4)
InternalsVisibleTo.cs (4)
31element.Add(new XAttribute("Include", TargetAssembly)); 36element.Add(new XAttribute("Key", PublicKey)); 41element.Add(new XAttribute("LoadsWithinVisualStudio", LoadsWithinVisualStudio)); 46element.Add(new XAttribute("WorkItem", WorkItem));
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);
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.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
29temp.Add(node);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
264accessibilitiesElement.Add(new XElement("AccessibilityKind", accessibility));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (14)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (7)
206element.Add(new XAttribute("Message", d.Message)); 208element.Add(new XAttribute("Start", d.Span.Start)); 209element.Add(new XAttribute("Length", d.Span.Length)); 229element.Add(NodeOrTokenToElement(child)); 277element.Add(new XAttribute("value", token.Value)); 280element.Add(new XElement("Trivia", token.LeadingTrivia.Select(t => TriviaToElement(t)))); 286element.Add(new XElement("Trivia", token.TrailingTrivia.Select(t => TriviaToElement(t))));
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (7)
205element.Add(CreateDiagnosticsElement(text, tree)); 208element.Add(new XElement("Captures", 249element.Add(AlternationToElement(alternationNode, end - 2)); 250element.Add(TokenToElement(alternationNode.SequenceList.NodesAndTokens[end - 2].Token)); 251element.Add(NodeToElement(alternationNode.SequenceList.NodesAndTokens[end - 1].Node)); 261element.Add(new XAttribute("value", token.Value)); 266element.Add(new XElement("Trivia", token.LeadingTrivia.Select(t => TriviaToElement(t))));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (2)
108elem.Add(new XAttribute("name", t.Name)); 112elem.Add(new XAttribute("arity", t.Arity));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
EmitMetadataTestBase.cs (5)
50elem.Add(new XAttribute("name", t.Name)); 66elem.Add(new XAttribute("Of", typeParams)); 71elem.Add(new XAttribute("base", t.BaseType().ToTestDisplayString())); 89elem.Add(new XAttribute("name", f.Name)); 90elem.Add(new XAttribute("type", f.Type.ToTestDisplayString()));
Microsoft.CodeAnalysis.Test.Utilities (15)
Syntax\XmlHelpers.cs (15)
51xml.Add(new XAttribute("Type", info.ClassName)); 56xml.Add(@"<<%= f.PropertyName %> FieldType=<%= f.FieldType.Name %>><%= New XCData(f.Value.ToString) %></>"); 83xml.Add(@"<Errors> 131xml.Add(@"<Span Start=<%= node.SpanStart %> End=<%= node.Span.End %> Length=<%= node.Span.Length %>/>"); 132xml.Add(@"<FullSpan Start=<%= node.FullSpan.Start %> End=<%= node.FullSpan.End %> Length=<%= node.FullSpan.Length %>/>"); 150xml.Add(c.ToXml(syntaxTree, options)); 172retVal.Add(@"<Span Start=<%= token.SpanStart %> End=<%= token.Span.End %> Length=<%= token.Span.Length %>/>"); 173retVal.Add(@"<FullSpan Start=<%= token.FullSpan.Start %> End=<%= token.FullSpan.End %> Length=<%= token.FullSpan.Length %>/>"); 178retVal.Add(@"<Text><%= New XCData(token.GetText()) %></Text>"); 198retVal.Add(@"<LeadingTrivia><%= From t In token.LeadingTrivia Select t.ToXml(syntaxTree, options) %></LeadingTrivia>"); 203retVal.Add(@"<TrailingTrivia><%= From t In token.TrailingTrivia Select t.ToXml(syntaxTree, options) %></TrailingTrivia>"); 224retVal.Add(@"<Span Start=<%= trivia.SpanStart %> End=<%= trivia.Span.End %> Length=<%= trivia.Span.Length %>/>"); 225retVal.Add(@"<FullSpan Start=<%= trivia.FullSpan.Start %> End=<%= trivia.FullSpan.End %> Length=<%= trivia.FullSpan.Length %>/>"); 230retVal.Add(@"<Text><%= New XCData(trivia.GetText()) %></Text>"); 248retVal.Add(trivia.GetStructure().ToXml(syntaxTree, options));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (20)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (2)
72source.Add(ExampleSource) 73source.Add(InstrumentationHelperSource)
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (18)
36source.Add(testSource) 37source.Add(InstrumentationHelperSource) 125source.Add(testSource) 126source.Add(InstrumentationHelperSource) 203source.Add(testSource) 204source.Add(testSource1) 205source.Add(testSource2) 206source.Add(InstrumentationHelperSource) 285source.Add(testSource) 286source.Add(InstrumentationHelperSource) 420source.Add(testSource) 421source.Add(InstrumentationHelperSource) 494source.Add(testSource) 495source.Add(InstrumentationHelperSource) 672source.Add(testSource) 673source.Add(InstrumentationHelperSource) 962source.Add(testSource) 963source.Add(InstrumentationHelperSource)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (15)
SymbolsTests\Source\ComClassTests.vb (15)
42result.Add(<TypeDefFlags><%= typeDefFlags %></TypeDefFlags>) 49result.Add(<Implements><%= [interface].ToTestDisplayString() %></Implements>) 87result.Add(application) 92application.Add(<a><%= arg.Value.ToString() %></a>) 96application.Add(<Named Name=<%= named.Key %>><%= named.Value.Value.ToString() %></Named>) 111result.Add(<MethodFlags><%= methodFlags %></MethodFlags>) 112result.Add(<MethodImplFlags><%= methodImplFlags %></MethodImplFlags>) 119result.Add(<Implements><%= impl.ToTestDisplayString() %></Implements>) 127result.Add(ret) 134ret.Add(<ParamFlags><%= paramFlags %></ParamFlags>) 149result.Add(<ParamFlags><%= paramFlags %></ParamFlags>) 162result.Add(type) 188result.Add(<PropertyFlags><%= propertyFlags %></PropertyFlags>) 210result.Add(<EventFlags><%= eventFlags %></EventFlags>) 236result.Add(<FieldFlags><%= fieldFlags %></FieldFlags>)
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\ISymbolExtensions.cs (1)
576temp.Add(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
264accessibilitiesElement.Add(new XElement("AccessibilityKind", accessibility));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
29temp.Add(node);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
SolutionGeneration.cs (2)
327itemGroup.Add(itemElement); 338element.Add(new XElement(XName.Get(elementName, NS), elementValue));
VisualStudioMSBuildWorkspaceTests.cs (2)
2439r => r.Add(new XElement(XName.Get("ReferenceOutputAssembly", MSBuildNamespace), "false"))); 2459r => r.Add(new XElement(XName.Get("ReferenceOutputAssembly", MSBuildNamespace), "false")));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestWorkspace_XmlCreation.cs (3)
155element.Add(vbOptions.GlobalImports.AsEnumerable().Select(i => new XElement(GlobalImportElementName, i.Name))); 199element.Add(new XAttribute(FoldersAttributeName, folders)); 202element.Add(new XAttribute(MarkupAttributeName, isMarkup));
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)
96report.Add( 111report.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);
Microsoft.Maui.Resizetizer (12)
GeneratePackageAppxManifest.cs (10)
85 appx.Root.Add(identity); 129 appx.Root.Add(properties); 175 appx.Root.Add(applications); 184 applications.Add(application); 193 application.Add(visual); 256 visual.Add(tile); 313 tile.Add(showname); 320 showname.Add(new XElement(xshowon, new XAttribute("Tile", "square150x150Logo"))); 322 showname.Add(new XElement(xshowon, new XAttribute("Tile", "wide310x150Logo"))); 332 visual.Add(splash);
GenerateTizenManifest.cs (2)
166 uiApplicationElement.Add(splashscreensElement); 184 splashscreensElement.Add(splashscreenElement);
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Snippets\CSharpSnippetExpansionClientTests.vb (1)
369snippetNode.Element("Imports").Add(<Import>
Snippets\VisualBasicSnippetExpansionClientTests.vb (1)
390snippetNode.Element("Imports").Add(<Import>
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
370e.Add(name);
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);
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)
291assembliesElement.Add(assemblyElement); 299assembliesElement.Add(assemblyElement); 306assembliesElement.Add(new XAttribute("timestamp", DateTime.Now.ToString(CultureInfo.InvariantCulture)));