161 references to XElement
aspire (10)
Projects\DotNetBasedAppHostServerProject.cs (5)
187projectRefGroup.Add(new XElement("ProjectReference", 197projectRefGroup.Add(new XElement("ProjectReference", 216projectRefGroup.Add(new XElement("ProjectReference", 229otherPackages.Select(p => new XElement("PackageReference", 384new XElement("None",
Projects\PrebuiltAppHostServer.cs (5)
273var propertyGroup = new XElement("PropertyGroup", 293new XElement("Project", 306return new XElement("PackageReference", 322new XElement("Target", 325new XElement("WriteLinesToFile",
Aspire.Hosting.Maui (6)
Utilities\MauiEnvironmentHelper.cs (6)
95projectElement.Add(new XElement( 110var targetElement = new XElement( 118targetElement.Add(new XElement( 266projectElement.Add(new XElement( 289projectElement.Add(new XElement( 294new XElement(
dotnet-svcutil-lib (6)
Shared\MSBuildProj.cs (6)
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", 598XElement element = new XElement(propertyName, null);
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),
illink (3)
Microsoft.AspNetCore.DataProtection (16)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptor.cs (1)
51var outerElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (2)
46var encryptionElement = new XElement("encryption", 61var rootElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptor.cs (2)
45var encryptionElement = new XElement("encryption", 53var rootElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (2)
45var encryptionElement = new XElement("encryption", 52var rootElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\SecretExtensions.cs (1)
38var masterKeyElement = new XElement("masterKey",
KeyManagement\XmlKeyManager.cs (4)
387var revocationElement = new XElement(RevocationElementName, 524var keyElement = new XElement(KeyElementName, 530new XElement(DescriptorElementName, 632var revocationElement = new XElement(RevocationElementName,
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
85var element = new XElement("encryptedKey",
XmlEncryption\DpapiXmlEncryptor.cs (1)
82var element = new XElement("encryptedKey",
XmlEncryption\NullXmlEncryptor.cs (1)
56var newElement = new XElement("unencryptedKey",
XmlEncryption\XmlEncryptionExtensions.cs (1)
150new XElement(XmlConstants.EncryptedSecretElementName,
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\GenerateBindingRedirects.cs (3)
97new XElement( 99new XElement( 104new XElement(
AssemblyDependency\ResolveAssemblyReference.cs (2)
1390new XElement( 1395new XElement(
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),
Microsoft.CodeAnalysis.Workspaces (11)
Log\WorkspaceStructureLogger.cs (6)
190=> new("diagnostic", 203var element = new XElement("sourceGeneratedDocument", 246return new XElement("compilationReference", 252return new XElement("peReference", 264=> new("analyzerReference", 289return new XElement("compilation",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),
Microsoft.DotNet.Build.Manifest (4)
BlobArtifactModel.cs (1)
17public override XElement ToXml() => new XElement(
BuildModel.cs (1)
26public XElement ToXml() => new XElement(
PackageArtifactModel.cs (1)
60public override XElement ToXml() => new XElement(
PdbArtifactModel.cs (1)
29public override XElement ToXml() => new XElement(
Microsoft.DotNet.Build.Tasks.Installers (2)
src\GenerateMacOSDistributionFile.cs (2)
65.Select(component => new XElement("choice", 90.Select(component => new XElement("pkg-ref",
Microsoft.DotNet.Build.Tasks.Workloads (5)
Msi\WixDocument.cs (3)
105Package.Add(new XElement(s_wixNamespace + "Property", 140new XElement(s_wixNamespace + "Directory", 151new XElement(s_wixNamespace + "RegistryKey",
Msi\WixXmlExtensions.cs (2)
53var registryValue = new XElement(s_wixNamespace + "RegistryValue", 135var directory = new XElement(s_wixNamespace + "Directory",
Microsoft.DotNet.PackageTesting (5)
VerifyClosure.cs (5)
360linksElement.Add(new XElement(s_dgmlns + "Link", 369linksElement.Add(new XElement(s_dgmlns + "Link", 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 (7)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (5)
360linksElement.Add(new XElement(s_dgmlns + "Link", 369linksElement.Add(new XElement(s_dgmlns + "Link", 380categoriesElement.Add(new XElement(s_dgmlns + "Category", 385categoriesElement.Add(new XElement(s_dgmlns + "Category", 400parent.Add(new XElement(s_dgmlns + "Node",
src\CreateFrameworkListFile.cs (2)
67var frameworkManifest = new XElement("FileList", rootAttributes); 158var element = new XElement(
Microsoft.DotNet.SourceBuild.Tasks (5)
src\UsageReport\AnnotatedUsage.cs (1)
19public XElement ToXml() => new XElement(
src\UsageReport\Usage.cs (1)
30public XElement ToXml() => new XElement(
src\UsageReport\UsageData.cs (1)
18public XElement ToXml() => new XElement(
src\UsageReport\UsagePattern.cs (1)
15public XElement ToXml() => new XElement(
src\UsageReport\XmlParsingHelpers.cs (1)
15public static XElement ToXElement(this PackageIdentity ident) => new XElement(
Microsoft.DotNet.XliffTasks (4)
Model\XlfDocument.cs (4)
49new XElement(Xliff, 54new XElement(File, 188new(TransUnit, 191new XElement(Target, new XAttribute("state", "new"), sourceNode.Source),
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
Manifest.cs (2)
46var root = new XElement(ElementNames.Root, 60return new XElement(ElementNames.File,
Microsoft.ML.Maml (2)
HelpCommand.cs (2)
466select new XElement("Component", 481select new XElement("Argument",
Microsoft.NET.Build.Tasks (2)
GenerateToolsSettingsFile.cs (1)
97var dotnetCliToolNode = new XElement("DotNetCliTool",
WriteAppConfigWithSupportedRuntime.cs (1)
138new XElement(
Microsoft.NET.HostModel (3)
ComHost\RegFreeComManifest.cs (3)
31manifest.Add(new XElement(ns + "assemblyIdentity", 67XElement comClassElement = new XElement(ns + "comClass", new XAttribute("clsid", guid.ToString("B")), new XAttribute("threadingModel", "Both")); 90XElement typeLibElement = new XElement(ns + "typelib",
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
BlazorWriteSatelliteAssemblyFile.cs (1)
34root.Add(new XElement("Assembly",
CreateBlazorTrimmerRootDescriptorFile.cs (1)
61roots.Add(new XElement("assembly",
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\GenerateEnvTransform.cs (1)
77new XElement("environmentVariable", new XAttribute("name", envVariable.Key),
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
GeneratePackageAssetsTargetsFile.cs (1)
33var manifestItem = new XElement("StaticWebAssetPackageManifest",
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
57itemGroup.Add(new XElement(nameof(StaticWebAssetEndpoint),
GenerateStaticWebAssetsPropsFile.cs (1)
109itemGroup.Add(new XElement("StaticWebAsset",
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
62itemGroup.Add(new XElement("StaticWebAsset",
Legacy\GenerateV1StaticWebAssetsManifest.cs (2)
38var root = new XElement( 123nodes.Add(new XElement("ContentRoot",
NuGet.Commands (7)
RestoreCommand\Utility\BuildAssetsUtils.cs (7)
134doc.Root.Add(new XElement(Namespace + "Target", 213new XElement(Namespace + "PropertyGroup", 222new XElement(Namespace + "ItemGroup", 235new XElement(Namespace + "Project", 244return new XElement(Namespace + propertyName, 256return new XElement(Namespace + "Import", 263var entry = new XElement(Namespace + item.BuildAction.Value,
NuGet.Configuration (1)
Settings\Items\CredentialsItem.cs (1)
223var element = new XElement(XmlUtility.GetEncodedXMLName(ElementName),
NuGet.Packaging (16)
PackageCreation\Authoring\Manifest.cs (2)
101new XElement(schemaNamespace + "package", 105Files.Select(file => new XElement(schemaNamespace + "file",
PackageCreation\Authoring\PackageBuilder.cs (9)
1163new XElement(relationships + "Relationships", 1164new XElement(relationships + "Relationship", 1168new XElement(relationships + "Relationship", 1188XElement element = new XElement(content + "Types", 1189new XElement(content + "Default", 1192new XElement(content + "Default", 1199new XElement(content + "Default", 1208new XElement(content + "Override", 1236new XElement(core + "coreProperties",
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (4)
180var groupElem = new XElement( 197return new XElement(ns + parentName, childElements.ToArray()); 244new XElement(ns + FrameworkAssembly, 286return new XElement(ns + NuspecUtility.License, metadata.License, attributes.Where(xAtt => xAtt != null));
PackagesConfigWriter.cs (1)
495var newPackagesNode = new XElement(XName.Get(PackagesConfig.PackagesNodeName),
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
108=> new(XmlElement_CodeStyleOption, // Ensure that we use "CodeStyleOption" as the name for back compat.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
465=> new(nameof(NamingStyle),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
343return new XElement("NamingPreferencesInfo",
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
26var element = new XElement(nameof(SerializableNamingRule),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
214return new XElement(nameof(SymbolSpecification),