467 references to XAttribute
BuildBoss (4)
dotnet-svcutil-lib (14)
Shared\MSBuildProj.cs (12)
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)));
562new XAttribute("CopyToOutputDirectory", "always"),
563new XAttribute("Include", Path.Combine(basePath, $"{framework}\\**")),
564new XAttribute("Link", $"{framework}/%(RecursiveDir)%(Filename)%(Extension)")));
572new XAttribute("CopyToOutputDirectory", "always"),
573new XAttribute("Include", $"{basePath}\\{framework}\\**"),
574new XAttribute("Link", $"{framework}/%(RecursiveDir)%(Filename)%(Extension)")));
GenerateDocumentationAndConfigFiles (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IISExpress.FunctionalTests (4)
illink (4)
Linker\WarningSuppressionWriter.cs (4)
67var xmlAssembly = new XElement("assembly", new XAttribute("fullname", assemblyName.FullName));
74new XAttribute("fullname", "System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute"),
77new XElement("property", new XAttribute("name", UnconditionalSuppressMessageAttributeState.ScopeProperty),
79new XElement("property", new XAttribute("name", UnconditionalSuppressMessageAttributeState.TargetProperty),
Metrics (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Metrics.Legacy (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.AspNetCore.App.Analyzers.Test (9)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (9)
266new XAttribute("Name", parameter.Name),
267new XAttribute("IsCatchAll", parameter.IsCatchAll),
268new XAttribute("IsOptional", parameter.IsOptional),
269new XAttribute("EncodeSlashes", parameter.EncodeSlashes));
272parameterElement.Add(new XAttribute("DefaultValue", parameter.DefaultValue));
286new XAttribute("Message", d.Message),
287new XAttribute("Span", d.Span),
291=> new("Text", text.ToString(span));
310element.Add(new XAttribute("value", token.Value));
Microsoft.AspNetCore.Authentication.Test (9)
TestExtensions.cs (5)
55new XElement("claim", new XAttribute("type", claim.Type),
56new XAttribute("value", claim.Value),
57new XAttribute("issuer", claim.Issuer))));
73xml.Add(new XElement("token", new XAttribute("name", token.Name),
74new XAttribute("value", token.Value)));
Microsoft.AspNetCore.DataProtection (18)
KeyManagement\XmlKeyManager.cs (7)
388new XAttribute(VersionAttributeName, 1),
392new XAttribute(IdAttributeName, RevokeAllKeysValue)),
525new XAttribute(IdAttributeName, keyId),
526new XAttribute(VersionAttributeName, 1),
531new XAttribute(DeserializerTypeAttributeName, descriptorXmlInfo.DeserializerType.AssemblyQualifiedName!),
633new XAttribute(VersionAttributeName, 1),
636new XAttribute(IdAttributeName, keyId)),
Microsoft.AspNetCore.Identity.InMemory.Test (4)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
Microsoft.Build.Tasks.Core (15)
AssemblyDependency\GenerateBindingRedirects.cs (9)
97new XAttribute("name", redirect.Key.Name),
98new XAttribute("publicKeyToken", ResolveAssemblyReference.ByteArrayToString(redirect.Key.GetPublicKeyToken())),
99new XAttribute("culture", String.IsNullOrEmpty(redirect.Key.CultureName) ? "neutral" : redirect.Key.CultureName)),
102new XAttribute("oldVersion", "0.0.0.0-" + redirect.Value),
103new XAttribute("newVersion", redirect.Value))));
296new XAttribute("name", newName),
297new XAttribute(
300new XAttribute(
306attributes.Add(new XAttribute("processorArchitecture", newProcessorArchitecture.ToString()));
Microsoft.Cci.Extensions (4)
Microsoft.CodeAnalysis.Analyzers (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.AnalyzerUtilities (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.BannedApiAnalyzers (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (16)
Microsoft.CodeAnalysis.PublicApiAnalyzers (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.ResxSourceGenerator (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.Test.Utilities (14)
Syntax\XmlHelpers.cs (13)
51xml.Add(new XAttribute("Type", info.ClassName));
124new XAttribute("IsToken", false),
125new XAttribute("IsTrivia", true),
126new XAttribute("Kind", node.GetKind()),
127new XAttribute("IsMissing", node.IsMissing));
165new XAttribute("IsToken", false),
166new XAttribute("IsTrivia", true),
167new XAttribute("Kind", token.GetKind()),
168new XAttribute("IsMissing", token.IsMissing));
218new XAttribute("IsToken", false),
219new XAttribute("IsTrivia", true),
220new XAttribute("Kind", trivia.GetKind()),
221new XAttribute("IsMissing", false));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (14)
Workspaces\TestWorkspace_XmlCreation.cs (14)
91new XAttribute(AssemblyNameAttributeName, assemblyName),
92new XAttribute(LanguageAttributeName, language),
93commonReferences ? new XAttribute(CommonReferencesAttributeName, true) : null,
107return new XAttribute(LanguageVersionAttributeName, CodeAnalysis.CSharp.LanguageVersionFacts.ToDisplayString(csharpOptions.LanguageVersion));
111return new XAttribute(LanguageVersionAttributeName, CodeAnalysis.VisualBasic.LanguageVersionFacts.ToDisplayString(vbOptions.LanguageVersion));
127return new XAttribute(FeaturesAttributeName, value);
138return new XAttribute(DocumentationModeAttributeName, parseOptions.DocumentationMode);
192new XAttribute(FilePathAttributeName, filePath),
193new XAttribute(NormalizeAttributeName, false),
198element.Add(new XAttribute(FoldersAttributeName, folders));
201element.Add(new XAttribute(MarkupAttributeName, isMarkup));
209new XAttribute(FilePathAttributeName, hintName),
210new XAttribute(NormalizeAttributeName, false),
220new XAttribute(KindAttributeName, parseOptions.Kind));
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Installers (8)
src\GenerateMacOSDistributionFile.cs (8)
66new XAttribute("id", component.GetMetadata("FileNameWithExtension")),
67new XAttribute("visible", "true"),
68new XAttribute("title", component.GetMetadata("Title")),
69new XAttribute("description", component.GetMetadata("Description")),
70new XElement("pkg-ref", new XAttribute("id", component.GetMetadata("FileNameWithExtension")))));
87.Select(c => new XElement("line", new XAttribute("choice", c.Attribute("id").Value)));
91new XAttribute("id", component.GetMetadata("FileNameWithExtension")),
107optionsElement.Add(new XAttribute("hostArchitectures", hostArchitecture));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Build.Tasks.Workloads (8)
Msi\WorkloadPackGroupMsi.wix.cs (5)
95componentGroupRefElement.ReplaceWith(Enumerable.Range(1, _package.Packs.Count).Select(n => new XElement(ns + "ComponentGroupRef", new XAttribute("Id", "CG_PackageContents" + n))));
105registryKeyElement.Add(new XElement(ns + "RegistryKey", new XAttribute("Key", pack.Id),
106new XElement(ns + "RegistryKey", new XAttribute("Key", pack.PackageVersion),
107new XElement(ns + "RegistryValue", new XAttribute("Value", ""), new XAttribute("Type", "string")))));
Microsoft.DotNet.PackageTesting (10)
VerifyClosure.cs (10)
361new XAttribute("Source", assembly.Name),
362new XAttribute("Target", reference.Name)));
370new XAttribute("Source", assembly.Name),
371new XAttribute("Target", moduleReference)));
381new XAttribute("Id", "native"),
382new XAttribute("Background", "Blue")
386new XAttribute("Id", "managed"),
387new XAttribute("Background", "Green")
401new XAttribute("Id", id),
402new XAttribute("Category", isNative ? "native": "managed")));
Microsoft.DotNet.SharedFramework.Sdk (23)
src\CreateFrameworkListFile.cs (13)
64?.Select(item => new XAttribute(item.ItemSpec, item.GetMetadata("Value")))
160new XAttribute("Type", type),
161new XAttribute("Path", path));
165element.Add(new XAttribute("Language", analyzerLanguage));
171new XAttribute("Culture", Path.GetFileName(Path.GetDirectoryName(path))));
177element.Add(new XAttribute("DropFromSingleFile", "true"));
201new XAttribute("AssemblyName", f.AssemblyName.Name),
202new XAttribute("PublicKeyToken", publicKeyTokenHex),
203new XAttribute("AssemblyVersion", f.AssemblyName.Version));
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"));
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (10)
361new XAttribute("Source", assembly.Name),
362new XAttribute("Target", reference.Name)));
370new XAttribute("Source", assembly.Name),
371new XAttribute("Target", moduleReference)));
381new XAttribute("Id", "native"),
382new XAttribute("Background", "Blue")
386new XAttribute("Id", "managed"),
387new XAttribute("Background", "Green")
401new XAttribute("Id", id),
402new XAttribute("Category", isNative ? "native": "managed")));
Microsoft.DotNet.SourceBuild.Tasks (4)
Microsoft.DotNet.XliffTasks (13)
Model\XlfDocument.cs (10)
50new XAttribute("xmlns", XliffNS.NamespaceName),
51new XAttribute(XNamespace.Xmlns + "xsi", XsiNS.NamespaceName),
52new XAttribute("version", "1.2"),
53new XAttribute(XsiNS + "schemaLocation", $"{XliffNS.NamespaceName} xliff-core-1.2-transitional.xsd"),
55new XAttribute("datatype", "xml"),
56new XAttribute("source-language", "en"),
57new XAttribute("target-language", targetLanguage),
58new XAttribute("original", "_"), // placeholder will be replaced on first update
189new XAttribute("id", sourceNode.Id),
191new XElement(Target, new XAttribute("state", "new"), sourceNode.Source),
Microsoft.DotNet.XliffTasks.Tests (2)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Maui.Resizetizer (2)
Microsoft.VisualStudio.LanguageServices (2)
Roslyn.Diagnostics.Analyzers (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
System.Private.Xml.Linq (9)
Test.Utilities (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Text.Analyzers (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
466new XAttribute(nameof(ID), ID),
467new XAttribute(nameof(Name), Name),
468new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
469new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
471new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
XmlFileLogger (19)
xunit.console (1)