266 references to XAttribute
BuildBoss (4)
dotnet-svcutil-lib (17)
Shared\MSBuildProj.cs (15)
144_packageReferenceGroup.Add(new XAttribute("Condition", $"'$(TargetFramework)' != '{netfxInfo.FullName}'"));
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)));
561this.PacakgeReferenceGroup.Add(new XElement("PackageReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version)));
564this.ReferenceGroup.Add(new XElement("DotNetCliToolReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version)));
579new XAttribute("CopyToOutputDirectory", "always"),
580new XAttribute("Include", Path.Combine(basePath, $"{framework}\\**")),
581new XAttribute("Link", $"{framework}/%(RecursiveDir)%(Filename)%(Extension)")));
589new XAttribute("CopyToOutputDirectory", "always"),
590new XAttribute("Include", $"{basePath}\\{framework}\\**"),
591new XAttribute("Link", $"{framework}/%(RecursiveDir)%(Filename)%(Extension)")));
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IISExpress.FunctionalTests (4)
illink (4)
Linker\WarningSuppressionWriter.cs (4)
62 var xmlAssembly = new XElement ("assembly", new XAttribute ("fullname", assemblyName.FullName));
68 new XAttribute ("fullname", "System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute"),
71 new XElement ("property", new XAttribute ("name", UnconditionalSuppressMessageAttributeState.ScopeProperty),
73 new XElement ("property", new XAttribute ("name", UnconditionalSuppressMessageAttributeState.TargetProperty),
Microsoft.AspNetCore.App.Analyzers.Test (7)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (7)
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));
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 (17)
KeyManagement\XmlKeyManager.cs (6)
388new XAttribute(VersionAttributeName, 1),
392new XAttribute(IdAttributeName, RevokeAllKeysValue)),
525new XAttribute(IdAttributeName, keyId),
526new XAttribute(VersionAttributeName, 1),
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.CodeStyle (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
465new XAttribute(nameof(ID), ID),
466new XAttribute(nameof(Name), Name),
467new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
468new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
469new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
470new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
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 (2)
Microsoft.CodeAnalysis.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
465new XAttribute(nameof(ID), ID),
466new XAttribute(nameof(Name), Name),
467new XAttribute(nameof(Prefix), Prefix ?? string.Empty),
468new XAttribute(nameof(Suffix), Suffix ?? string.Empty),
469new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty),
470new XAttribute(nameof(CapitalizationScheme), CapitalizationScheme));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (14)
Workspaces\TestWorkspace_XmlCreation.cs (14)
92new XAttribute(AssemblyNameAttributeName, assemblyName),
93new XAttribute(LanguageAttributeName, language),
94commonReferences ? new XAttribute(CommonReferencesAttributeName, true) : null,
108return new XAttribute(LanguageVersionAttributeName, CodeAnalysis.CSharp.LanguageVersionFacts.ToDisplayString(csharpOptions.LanguageVersion));
112return new XAttribute(LanguageVersionAttributeName, CodeAnalysis.VisualBasic.LanguageVersionFacts.ToDisplayString(vbOptions.LanguageVersion));
128return new XAttribute(FeaturesAttributeName, value);
139return new XAttribute(DocumentationModeAttributeName, parseOptions.DocumentationMode);
193new XAttribute(FilePathAttributeName, filePath),
194new XAttribute(NormalizeAttributeName, false),
199element.Add(new XAttribute(FoldersAttributeName, folders));
202element.Add(new XAttribute(MarkupAttributeName, isMarkup));
210new XAttribute(FilePathAttributeName, hintName),
211new XAttribute(NormalizeAttributeName, false),
221new XAttribute(KindAttributeName, parseOptions.Kind));
Microsoft.DotNet.Arcade.Sdk (4)
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.VersionTools (1)
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.VisualStudio.LanguageServices (2)
System.Private.Xml.Linq (9)
XmlFileLogger (19)
xunit.console (1)