113 references to Root
dotnet-svcutil-lib (4)
Shared\MSBuildProj.cs (4)
183if (projDefinition.Root != null && projDefinition.Root.Name != null) 185msbuildNS = projDefinition.Root.Name.Namespace; 432var ele = doc.Root?.Descendants(elementStr).FirstOrDefault();
dotnet-user-jwts (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
48var propertyGroup = projectDocument.Root.DescendantNodes() 58projectDocument.Root.AddFirst(propertyGroup);
dotnet-user-secrets (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
48var propertyGroup = projectDocument.Root.DescendantNodes() 58projectDocument.Root.AddFirst(propertyGroup);
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
152var xDocument = XDocument.Load(xmlFile).Root;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
101action(document.Root);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
87.Root
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
104webConfig.Root
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
101action(document.Root);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
87.Root
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
101action(document.Root);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
87.Root
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
101action(document.Root);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
87.Root
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
101action(document.Root);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
87.Root
IIS.Tests (1)
Utilities\TestServer.cs (1)
129var siteElement = webHostConfig.Root
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
152var xDocument = XDocument.Load(xmlFile).Root;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
101action(document.Root);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
104webConfig.Root
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
34 foreach (var element in subFile.Root.Elements ()) {
Microsoft.AspNetCore.App.UnitTests (5)
SharedFxTests.cs (2)
269var runtimeListEntries = runtimeListDoc.Root.Descendants(); 322var runtimeListEntries = runtimeListDoc.Root.Descendants();
TargetingPackTests.cs (3)
300var frameworkListEntries = frameworkListDoc.Root.Descendants(); 363var frameworkListEntries = frameworkListDoc.Root.Descendants(); 405var frameworkListEntries = frameworkListDoc.Root.Descendants();
Microsoft.AspNetCore.DataProtection (2)
XmlEncryption\XmlEncryptionExtensions.cs (2)
67return doc.Root!; 154return doc.Root;
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
XmlAssert.cs (1)
59SortAttributes(document.Root));
Microsoft.AspNetCore.Mvc.FunctionalTests (7)
AsyncEnumerableTestBase.cs (2)
76var @namespace = xml.Root.Name.NamespaceName; 77var projects = xml.Root.Elements(XName.Get("Project", @namespace));
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (1)
59SortAttributes(document.Root));
XmlDataContractSerializerFormattersWrappingTest.cs (2)
228var root = XDocument.Parse(content).Root; 270var root = XDocument.Parse(content).Root;
XmlSerializerFormattersWrappingTest.cs (2)
210var root = XDocument.Parse(content).Root; 252var root = XDocument.Parse(content).Root;
Microsoft.AspNetCore.Server.IntegrationTesting (1)
xunit\IISExpressAncmSchema.cs (1)
44.Root
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (7)
IISDeployer.cs (1)
313ConfigureAppHostConfig(config.Root, contentRoot, port);
IISDeployerBase.cs (2)
26action(document.Root); 48action.Invoke(webconfig.Root, contentRoot);
IISExpressDeployer.cs (4)
290config.Root 296ConfigureModuleAndBinding(config.Root, contentRoot, port); 302AddAspNetCoreElement(config.Root); 305RunServerConfigActions(config.Root, contentRoot);
Microsoft.Build.BuildCheck.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.Build.CommandLine.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.Build.Engine.OM.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.Build.Engine.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.Build.Framework.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\GenerateBindingRedirects.cs (4)
73XElement runtimeNode = doc.Root 81doc.Root.Add(runtimeNode); 345if (document.Root == null || document.Root.Name != "configuration")
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
316if (document.Root == null) 326foreach (XNode node in document.Root.Nodes() 378document.Root.Name.LocalName); 387document.Root.Name.LocalName);
Microsoft.Build.Tasks.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.Build.Utilities.UnitTests (2)
TestAssemblyInfo.cs (2)
114var ns = doc.Root.Name.Namespace; 115var cliVersionElement = doc.Root.Elements(ns + "PropertyGroup").Elements(ns + "DotNetCliVersion").FirstOrDefault();
Microsoft.DotNet.Arcade.Sdk (4)
src\ExtractNgenMethodList.cs (1)
55var parentElement = document.Root.Element("MethodProfilingData");
src\SourceBuild\AddSourceMappingToNugetConfig.cs (1)
28XElement pkgSrcMappingElement = document.Root.Descendants().FirstOrDefault(e => e.Name == "packageSourceMapping");
src\SourceBuild\AddSourceToNuGetConfig.cs (2)
37return document.Root.GetDefaultNamespace().GetName(plainName); 40XElement packageSourcesElement = document.Root
Microsoft.DotNet.Arcade.Sdk.Tests (1)
SourceMappingToNugetConfigTest.cs (1)
49XElement packageSourceMapping = document.Root;
Microsoft.DotNet.Build.Tasks.Installers (8)
src\GenerateMacOSDistributionFile.cs (7)
94var optionsElement = document.Root.Element("options"); 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);
src\StabilizeWixFileId.cs (1)
54XNamespace rootNamespace = content.Root.GetDefaultNamespace();
Microsoft.DotNet.Build.Tasks.Workloads (6)
Msi\MsiPayloadPackageProject.wix.cs (1)
58var itemGroup = proj.Root.Element("ItemGroup");
Msi\WorkloadPackGroupMsi.wix.cs (5)
85var dotnetHomeElement = directoriesDoc.Root.Descendants().Where(d => (string)d.Attribute("Id") == "DOTNETHOME").Single(); 93var ns = productDoc.Root.Name.Namespace; 94var componentGroupRefElement = productDoc.Root.Descendants(ns + "ComponentGroupRef").Single(); 101ns = registryDoc.Root.Name.Namespace; 102var registryKeyElement = registryDoc.Root.Descendants(ns + "RegistryKey").Single();
Microsoft.DotNet.NuGetRepack.Tasks (4)
src\NuGetVersionUpdater.cs (2)
140if (nuspecXml.Root.HasAttributes) 142var xmlNsAttribute = nuspecXml.Root.Attributes("xmlns").SingleOrDefault();
src\ReplacePackageParts.cs (2)
146if (nuspecXml.Root.HasAttributes) 148var xmlNsAttribute = nuspecXml.Root.Attributes("xmlns").SingleOrDefault();
Microsoft.DotNet.PackageTesting (3)
VerifyClosure.cs (3)
349doc.Root.Add(nodesElement); 350doc.Root.Add(linksElement); 378doc.Root.Add(categoriesElement);
Microsoft.DotNet.SharedFramework.Sdk (3)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (3)
349doc.Root.Add(nodesElement); 350doc.Root.Add(linksElement); 378doc.Root.Add(categoriesElement);
Microsoft.DotNet.VersionTools (1)
Automation\NupkgInfoFactory.cs (1)
59XElement metadataElement = GetSingleElement(doc.Root, "metadata");
Microsoft.DotNet.XliffTasks (7)
Model\VsctDocument.cs (3)
20foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 64foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 79foreach (XElement imageTag in Document.Descendants(Document.Root.Name.Namespace + "Bitmap"))
Model\XlfDocument.cs (4)
89XElement fileElement = _document.Root.Element(File); 224XNamespace ns = _document.Root.Name.Namespace; 226XElement fileElement = _document.Root.Element(File); 277XNamespace ns = _document.Root.Name.Namespace;
System.Private.Xml.Linq (4)
System\Xml\Linq\XDocument.cs (2)
431if (d.Root == null) throw new InvalidOperationException(SR.InvalidOperation_MissingRoot); 473if (d.Root == null) throw new InvalidOperationException(SR.InvalidOperation_MissingRoot);
System\Xml\Schema\XNodeValidator.cs (1)
49source = ((XDocument)source).Root!;
System\Xml\XPath\XNodeNavigator.cs (1)
279XElement? root = ((XDocument)_source).Root;
WorkloadBuildTasks (2)
PatchNuGetConfig.cs (2)
115if (doc.Root is null) 119doc.Root.Add(packageSourceMapping);