83 references to XElement
dotnet-svcutil-lib (3)
Shared\MSBuildProj.cs (3)
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)));
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
63propertyGroup.Add(new XElement("UserSecretsId", newSecretsId));
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
63propertyGroup.Add(new XElement("UserSecretsId", newSecretsId));
illink (3)
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (2)
249var element = new XElement("Tree", 276parameterElement.Add(new XElement("Policy", policy));
Microsoft.AspNetCore.DataProtection (18)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptor.cs (2)
43var encryptionElement = new XElement("encryption", 48: (object)new XElement("validation",
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (1)
54var hashElement = new XElement("hash",
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (1)
49var validationElement = new XElement("validation",
AuthenticatedEncryption\ConfigurationModel\SecretExtensions.cs (1)
39new XElement("value", unprotectedSecretAsBase64String));
KeyManagement\XmlKeyManager.cs (9)
367new XElement(RevocationDateElementName, revocationDate), 369new XElement(KeyElementName, 371new XElement(ReasonElementName, reason)); 435new XElement(CreationDateElementName, creationDate), 436new XElement(ActivationDateElementName, activationDate), 437new XElement(ExpirationDateElementName, expirationDate), 542new XElement(RevocationDateElementName, revocationDate), 543new XElement(KeyElementName, 545new XElement(ReasonElementName, reason));
XmlEncryption\CertificateXmlEncryptor.cs (1)
89xmlDocument.Load(new XElement("root", plaintextElement).CreateReader());
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
88new XElement("value",
XmlEncryption\DpapiXmlEncryptor.cs (1)
84new XElement("value",
XmlEncryption\EncryptedXmlDecryptor.cs (1)
69xmlDocument.Load(new XElement("root", encryptedElement).CreateReader());
Microsoft.AspNetCore.DataProtection.Tests (16)
KeyManagement\XmlKeyManagerTests.cs (10)
154new XElement("creationDate", creationDate), 155new XElement("activationDate", activationDate), 156new XElement("expirationDate", expirationDate)); 253new XElement("creationDate", creationDate), 254new XElement("activationDate", activationDate), 255new XElement("expirationDate", expirationDate)); 282new XElement("creationDate", creationDate), 283new XElement("activationDate", activationDate), 284new XElement("expirationDate", expirationDate)); 712new XElement("revocationDate", revocationDate));
XmlEncryption\EncryptedXmlDecryptorTests.cs (4)
20var data = new XElement("SampleData", "Lorem ipsum"); 38var data = new XElement("SampleData", "Lorem ipsum"); 56var data = new XElement("SampleData", "Lorem ipsum"); 78var data = new XElement("SampleData", "Lorem ipsum");
XmlEncryption\XmlEncryptionExtensionsTests.cs (2)
179.Returns<XElement>(el => new XElement(el.Name.LocalName + "_decrypted", new XElement(XmlConstants.EncryptedSecretElementName, "nested")));
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
UnaryServerCallHandlerTests.cs (3)
1137var requestContent = new XDocument(new XElement("name", "World")).ToString(); 1291var requestContent = new XDocument(new XElement("name", "World")).ToString(); 1321var requestContent = new XDocument(new XElement("name", "World")).ToString();
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
XElementExtensions.cs (2)
38existing = new XElement(name, new XAttribute(attribute, attributeValue)); 47var innerElement = new XElement(name, new XAttribute(attribute, attributeValue));
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\GenerateBindingRedirects.cs (1)
91select new XElement(
AssemblyDependency\ResolveAssemblyReference.cs (2)
1220var node = new XElement( 1224new XElement(
CombineTargetFrameworkInfoProperties.cs (2)
49new("TargetFramework", new XAttribute("Name", EscapingUtilities.Escape(RootElementName))) : 54root.Add(new XElement(item.ItemSpec, item.GetMetadata("Value")));
Microsoft.DotNet.Arcade.Sdk (3)
src\GenerateResxSource.cs (1)
427string escapedTrimmedValue = new XElement("summary", value).ToString();
src\SourceBuild\AddSourceMappingToNugetConfig.cs (2)
62var pkgSrc = new XElement("packageSource", new XAttribute("key", SourceName)); 65pkgSrc.Add(new XElement("package", new XAttribute("pattern", packagePattern)));
Microsoft.DotNet.Build.Tasks.Installers (5)
src\GenerateMacOSDistributionFile.cs (5)
41var titleElement = new XElement("title", $"{ProductBrandName} ({TargetArchitecture})"); 62var scriptElement = new XElement("script", new XCData(archScriptContent)); 70new XElement("pkg-ref", new XAttribute("id", component.GetMetadata("FileNameWithExtension"))))); 87.Select(c => new XElement("line", new XAttribute("choice", c.Attribute("id").Value))); 116document.Root.Add(new XElement("choices-outline", choiceLineElements));
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\WorkloadPackGroupMsi.wix.cs (1)
95componentGroupRefElement.ReplaceWith(Enumerable.Range(1, _package.Packs.Count).Select(n => new XElement(ns + "ComponentGroupRef", new XAttribute("Id", "CG_PackageContents" + n))));
Microsoft.DotNet.SourceBuild.Tasks (8)
src\UsageReport\UsageData.cs (6)
20CreatedByRid == null ? null : new XElement( 23ProjectDirectories?.Any() != true ? null : new XElement( 26.Select(dir => new XElement("Dir", dir))), 27NeverRestoredTarballPrebuilts?.Any() != true ? null : new XElement( 32IgnorePatterns?.Any() != true ? null : new XElement( 36Usages?.Any() != true ? null : new XElement(
src\UsageReport\ValidateUsageAgainstBaseline.cs (2)
98new XElement( 112report.Add(new XElement("Removed", diff.Removed.Select(id => id.ToXElement())));
Microsoft.DotNet.VersionTools (2)
BuildManifest\Model\BuildIdentity.cs (1)
163public XElement ToXmlBuildElement() => new XElement("Build", ToXmlAttributes());
BuildManifest\Model\SigningInformationModel.cs (1)
35public XElement ToXml() => IsEmpty() ? null : new XElement(
Microsoft.DotNet.XliffTasks (3)
Model\XElementExtensions.cs (1)
35targetElement = new XElement(Target, new XAttribute("state", "new"));
Model\XlfDocument.cs (2)
190new XElement(Source, sourceNode.Source), 192new XElement(Note, sourceNode.Note == "" ? null : sourceNode.Note));
Microsoft.Extensions.FileProviders.Embedded.Tests (3)
Manifest\TestEntry.cs (1)
24new XElement("File", new XAttribute("Name", Name), new XElement("ResourcePath", ResourcePath)) :
TestAssembly.cs (2)
35new XElement("ManifestVersion", "1.0"), 36new XElement("FileSystem", entry.Children.Select(c => c.ToXElement()))));
System.Private.Xml.Linq (2)
System\Xml\Linq\XElement.cs (2)
95public XElement(XName name, params object?[] content) : this(name, (object)content) { } 1270AddNode(new XElement(name, GetStringValue(value)));
WorkloadBuildTasks (1)
PatchNuGetConfig.cs (1)
125(pattern => new XElement("package", new XAttribute("pattern", pattern))));
XmlFileLogger (1)
LogProcessNode.cs (1)
131propElement.Add(new XElement("Property", new XAttribute("Name", p.Key)) { Value = p.Value });