95 references to Descendants
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
432var ele = doc.Root?.Descendants(elementStr).FirstOrDefault();
IIS.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
154var eventElements = xDocument.Descendants(nameSpace + "Event"); 157var eventElementWithOpCode = eventElement.Descendants(nameSpace + "RenderingInfo").Single().Descendants(nameSpace + "Opcode").Single();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
105.Descendants("system.webServer")
IIS.LongTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1313element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1332element.Descendants("bindings") 1359element.Descendants("bindings") 1364element.Descendants("access") 1406element.Descendants("bindings")
IIS.NewHandler.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1313element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1332element.Descendants("bindings") 1359element.Descendants("bindings") 1364element.Descendants("access") 1406element.Descendants("bindings")
IIS.NewShim.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1313element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1332element.Descendants("bindings") 1359element.Descendants("bindings") 1364element.Descendants("access") 1406element.Descendants("bindings")
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
IISExpress.FunctionalTests (15)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
154var eventElements = xDocument.Descendants(nameSpace + "Event"); 157var eventElementWithOpCode = eventElement.Descendants(nameSpace + "RenderingInfo").Single().Descendants(nameSpace + "Opcode").Single();
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
105.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1313element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1332element.Descendants("bindings") 1359element.Descendants("bindings") 1364element.Descendants("access") 1406element.Descendants("bindings")
UpgradeFeatureDetectionTests.cs (1)
67element => element.Descendants("webSocket")
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\TestSettings.cs (2)
50var forms = xdoc.Descendants("form"); 88var forms = xdoc.Descendants("form");
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\XmlEncryptionExtensions.cs (1)
39var elementWhichRequiresDecryption = doc.Descendants(XmlConstants.EncryptedSecretElementName).FirstOrDefault();
Microsoft.AspNetCore.Rewrite (4)
IISUrlRewrite\RewriteMapParser.cs (1)
15var mapsElement = xmlRoot.Descendants(RewriteTags.RewriteMaps).SingleOrDefault();
IISUrlRewrite\UrlRewriteFileParser.cs (3)
24var xmlRoot = xmlDoc.Descendants(RewriteTags.Rewrite).FirstOrDefault(); 34ParseRules(xmlRoot.Descendants(RewriteTags.GlobalRules).FirstOrDefault(), result, global: true); 35ParseRules(xmlRoot.Descendants(RewriteTags.Rules).FirstOrDefault(), result, global: false);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\RewriteMapParserTests.cs (1)
28var xmlRoot = xmlDoc.Descendants(RewriteTags.Rewrite).FirstOrDefault();
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
155var aspNetCoreSection = webConfig.Descendants("aspNetCore")
xunit\IISExpressAncmSchema.cs (1)
45.Descendants("attribute")
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (11)
IISDeployer.cs (1)
138.Descendants("system.webServer")
IISDeployerBase.cs (2)
112.Descendants("system.webServer") 127.Descendants("system.webServer")
IISDeploymentParameterExtensions.cs (6)
31element.Descendants("binding") 35element.Descendants("access") 46element.Descendants("binding") 50element.Descendants("access") 211var aspNetCoreElement = config.Descendants("aspNetCore").Single(); 221var aspNetCoreElement = config.Descendants("aspNetCore").Single();
WebConfigHelpers.cs (2)
15.Descendants("system.webServer") 27.Descendants("system.webServer")
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
106foreach (var node in XDocument.Load(ResourceFile).Descendants("data"))
Microsoft.DotNet.Arcade.Sdk.Tests (3)
SourceMappingToNugetConfigTest.cs (3)
55.Descendants("packageSource") 63.Descendants("package") 70.Descendants("package")
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
164var licenseUrlElement = nuspec.Descendants(NuSpecXmlNamespace + "licenseUrl").Single();
Microsoft.DotNet.Build.Tasks.Workloads (2)
Msi\WorkloadPackGroupMsi.wix.cs (2)
94var componentGroupRefElement = productDoc.Root.Descendants(ns + "ComponentGroupRef").Single(); 102var registryKeyElement = registryDoc.Root.Descendants(ns + "RegistryKey").Single();
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
293Descendants(XName.Get("dependency", package.NuspecXmlns)) ?? Array.Empty<XElement>();
Microsoft.DotNet.SignTool.Tests (1)
FakeBuildEngine.cs (1)
44var itemGroupNode = xml.Descendants("ItemGroup");
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
82foreach (var x in xml.Descendants("Package"))
Microsoft.DotNet.XliffTasks (8)
Model\ResxDocument.cs (2)
18foreach (XElement node in Document.Descendants("data")) 59foreach (XElement node in Document.Descendants("data"))
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 (3)
108foreach (XElement unitElement in bodyElement.Descendants(TransUnit).ToList()) 264foreach (XElement element in _document.Descendants(TransUnit)) 280(_document.Descendants(TransUnit)
System.ComponentModel.TypeConverter (1)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
207return _value = new XDeferredAxis<XElement>((e, n) => n != null ? e.Descendants(n) : e.Descendants(), (component as XElement)!, null);