457 instantiations of XAttribute
aspire (40)
Projects\DotNetBasedAppHostServerProject.cs (13)
187new XAttribute("Include", integration.ProjectPath!),
198new XAttribute("Include", projectPath),
217new XAttribute("Include", hostingPath),
230new XAttribute("Include", p.Name),
231new XAttribute("VersionOverride", p.Version)))));
240doc.Root!.Add(new XElement("Import", new XAttribute("Project", appHostInTargets)));
244doc.Root!.Add(new XElement("Import", new XAttribute("Project", sdkInTargets)));
252new XElement("ProjectReference", new XAttribute("Include", dashboardProject))));
259new XElement("ProjectReference", new XAttribute("Include", remoteHostProject))));
263doc.Root!.Add(new XElement("Target", new XAttribute("Name", "_CSharpWriteHostProjectMetadataSources")));
264doc.Root!.Add(new XElement("Target", new XAttribute("Name", "_CSharpWriteProjectMetadataSources")));
380new XAttribute("Include", "appsettings.json"),
381new XAttribute("CopyToOutputDirectory", "PreserveNewest"))));
Projects\PrebuiltAppHostServer.cs (25)
906new XAttribute("Sdk", "Microsoft.NET.Sdk"),
919new XAttribute("Include", p.Name),
920new XAttribute("Version", GetRestoreVersion(p.Name, p.Version, useExactPackageVersions)));
928new XAttribute("Include", p.ProjectPath!)))));
933new XAttribute("Name", "_WriteAspireProjectRefAssemblyNames"),
934new XAttribute("AfterTargets", "Build"),
936new XAttribute("File", "$(AspireProjectRefAssemblyNamesFile)"),
937new XAttribute("Lines", "@(_ResolvedProjectReferencePaths->'%(Filename)')"),
938new XAttribute("Overwrite", "true"),
939new XAttribute("WriteOnlyWhenDifferent", "true"))));
943new XAttribute("Name", "_WriteAspireClosureManifest"),
944new XAttribute("AfterTargets", "Build"),
945new XAttribute("DependsOnTargets", "ResolveLockFileCopyLocalFiles"),
947new XAttribute("File", "$(AspireClosureSourcesFile)"),
948new XAttribute("Lines", "@(ReferenceCopyLocalPaths->'%(FullPath)')"),
949new XAttribute("Overwrite", "true"),
950new XAttribute("WriteOnlyWhenDifferent", "true")),
952new XAttribute("File", "$(AspireClosureMetadataFile)"),
953new XAttribute("Lines", "@(ReferenceCopyLocalPaths->'%(NuGetPackageId)|%(NuGetPackageVersion)|%(PathInPackage)|%(AssetType)')"),
954new XAttribute("Overwrite", "true"),
955new XAttribute("WriteOnlyWhenDifferent", "true")),
957new XAttribute("File", "$(AspireClosureTargetsFile)"),
958new XAttribute("Lines", "@(ReferenceCopyLocalPaths->'%(DestinationSubDirectory)%(Filename)%(Extension)')"),
959new XAttribute("Overwrite", "true"),
960new XAttribute("WriteOnlyWhenDifferent", "true"))));
Aspire.Hosting.Maui (21)
Utilities\MauiEnvironmentHelper.cs (21)
91new XAttribute("Project", "$(MSBuildExtensionsPath)/v$(MSBuildToolsVersion)/Custom.After.Microsoft.Common.targets"),
92new XAttribute("Condition", "Exists('$(MSBuildExtensionsPath)/v$(MSBuildToolsVersion)/Custom.After.Microsoft.Common.targets')")
100itemGroup.Add(new XElement("_GeneratedAndroidEnvironment", new XAttribute("Include", $"{key}={encodedValue}")));
107new XAttribute("Name", "AspireGenerateAndroidEnvironmentFiles"),
108new XAttribute("BeforeTargets", "_GenerateEnvironmentFiles"),
109new XAttribute("Condition", "'@(_GeneratedAndroidEnvironment)' != ''")
115new XAttribute("File", "$(IntermediateOutputPath)__aspire_environment__.txt"),
116new XAttribute("Lines", "@(_GeneratedAndroidEnvironment)"),
117new XAttribute("Overwrite", "True"),
118new XAttribute("WriteOnlyWhenDifferent", "True")
124new XElement("AndroidEnvironment", new XAttribute("Include", "$(IntermediateOutputPath)__aspire_environment__.txt"))
130new XElement("FileWrites", new XAttribute("Include", "$(IntermediateOutputPath)__aspire_environment__.txt"))
136new XAttribute("Files", "$(_AndroidStampDirectory)_GeneratePackageManagerJava.stamp")
267new XAttribute("Project", "$(MSBuildExtensionsPath)/v$(MSBuildToolsVersion)/Custom.After.Microsoft.Common.targets"),
268new XAttribute("Condition", "Exists('$(MSBuildExtensionsPath)/v$(MSBuildToolsVersion)/Custom.After.Microsoft.Common.targets')")
281new XAttribute("Include", $"{key}={encodedValue}")));
289new XAttribute("Name", "AspireLogMlaunchEnvironmentVariables"),
290new XAttribute("AfterTargets", "PrepareForBuild"),
291new XAttribute("Condition", "'@(MlaunchEnvironmentVariables)' != ''"),
294new XAttribute("Importance", "High"),
295new XAttribute("Text", "Aspire forwarding mlaunch environment variables: @(MlaunchEnvironmentVariables, ', ')")
Aspire.Hosting.RemoteHost.Tests (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\roslyn\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));
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),
Infrastructure.Tests (20)
Shared\TestTrxBuilder.cs (20)
39new XAttribute("total", testCases.Length),
40new XAttribute("executed", testCases.Length),
41new XAttribute("passed", testCases.Count(test => test.Outcome == "Passed")),
42new XAttribute("failed", testCases.Count(test => test.Outcome == "Failed")),
43new XAttribute("error", testCases.Count(test => test.Outcome == "Error")),
44new XAttribute("timeout", testCases.Count(test => test.Outcome == "Timeout")),
45new XAttribute("aborted", 0),
46new XAttribute("inconclusive", 0),
47new XAttribute("passedButRunAborted", 0),
48new XAttribute("notRunnable", 0),
49new XAttribute("notExecuted", 0)))));
96new XAttribute("name", testCase.DisplayName),
97new XAttribute("id", $"test-{index}"),
100new XAttribute("className", testCase.CanonicalTestName[..lastDotIndex]),
101new XAttribute("name", testCase.TestMethodName ?? testCase.CanonicalTestName[(lastDotIndex + 1)..])));
108new XAttribute("testId", $"test-{index}"),
109new XAttribute("testName", testCase.DisplayName),
110new XAttribute("outcome", testCase.Outcome),
114testCase.StartTime is null ? null : new XAttribute("startTime", testCase.StartTime),
115testCase.EndTime is null ? null : new XAttribute("endTime", testCase.EndTime),
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.Build.Tasks.Core (15)
AssemblyDependency\GenerateBindingRedirects.cs (9)
101new XAttribute("name", redirect.Key.Name),
102new XAttribute("publicKeyToken", ResolveAssemblyReference.ByteArrayToString(redirect.Key.GetPublicKeyToken())),
103new XAttribute("culture", String.IsNullOrEmpty(redirect.Key.CultureName) ? "neutral" : redirect.Key.CultureName)),
106new XAttribute("oldVersion", "0.0.0.0-" + redirect.Value),
107new XAttribute("newVersion", redirect.Value))));
301new XAttribute("name", newName),
302new XAttribute(
305new XAttribute(
311attributes.Add(new XAttribute("processorArchitecture", newProcessorArchitecture.ToString()));
Microsoft.CodeAnalysis.Analyzers (16)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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 (36)
Log\WorkspaceStructureLogger.cs (20)
155var referenceElement = new XElement("projectReference", new XAttribute("id", SanitizePath(projectReference.ProjectId.ToString())));
191new XAttribute("id", diagnostic.Id),
192new XAttribute("severity", diagnostic.Severity.ToString()),
193new XAttribute("path", SanitizePath(diagnostic.Location.GetLineSpan().Path)),
204new XAttribute("hintName", document.HintName),
205new XAttribute("path", SanitizePath(document.FilePath)),
206new XAttribute("generatorType", identity.Generator.TypeName),
207new XAttribute("generatorAssembly", identity.Generator.AssemblyName),
208new XAttribute("generatorAssemblyVersion", identity.Generator.AssemblyVersion.ToString()),
209new XAttribute("generatorAssemblyPath", SanitizePath(identity.Generator.AssemblyPath)));
242var aliasesAttribute = new XAttribute("aliases", string.Join(",", reference.Properties.Aliases));
253new XAttribute("file", SanitizePath(portableExecutableReference.FilePath)),
254new XAttribute("display", SanitizePath(portableExecutableReference.Display)),
259return new XElement("metadataReference", new XAttribute("display", SanitizePath(reference.Display)));
265new XAttribute("path", SanitizePath(reference.FullPath)),
266new XAttribute("display", SanitizePath(reference.Display)));
283typesElement.Add(new XElement("type", new XAttribute("name", type.ToDisplayString())));
290new XAttribute("objectId", compilationId.Value),
291new XAttribute("assemblyIdentity", compilation.Assembly.Identity.ToString()),
301var documentElement = new XElement(elementName, new XAttribute("path", SanitizePath(document.FilePath)));
src\roslyn\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.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Installers (8)
src\GenerateMacOSDistributionFile.cs (8)
65new XAttribute("id", component.GetMetadata("FileNameWithExtension")),
66new XAttribute("visible", "true"),
67new XAttribute("title", component.GetMetadata("Title")),
68new XAttribute("description", component.GetMetadata("Description")),
69new XElement("pkg-ref", new XAttribute("id", component.GetMetadata("FileNameWithExtension")))));
86.Select(c => new XElement("line", new XAttribute("choice", c.Attribute("id").Value)));
90new XAttribute("id", component.GetMetadata("FileNameWithExtension")),
106optionsElement.Add(new XAttribute("hostArchitectures", hostArchitecture));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Build.Tasks.Workloads (15)
Msi\WixDocument.cs (8)
106new XAttribute("Id", id),
107new XAttribute("Value", value)));
115new XAttribute("Id", id)));
123new XAttribute("Id", id)));
141new XAttribute("Id", id),
142new XAttribute("Name", name));
152new XAttribute("Root", root),
153new XAttribute("Key", key));
Msi\WixXmlExtensions.cs (7)
54new XAttribute("Value", value),
55new XAttribute("Type", type),
56new XAttribute("KeyPath", keyPath ? "yes" : "no"));
88new XAttribute("Key", key));
116new XAttribute("Id", id));
136new XAttribute("Id", id),
137new XAttribute("Name", name));
Microsoft.DotNet.HotReload.Watch (1)
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\arcade\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")));
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"));
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.Extensions.FileProviders.Embedded.Manifest.Task (2)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.Maml (1)
Microsoft.NET.Build.Tasks (9)
Microsoft.NET.HostModel (12)
ComHost\RegFreeComManifest.cs (12)
30XElement manifest = new XElement(ns + "assembly", new XAttribute("manifestVersion", "1.0"));
32new XAttribute("type", "win32"),
33new XAttribute("name", $"{assemblyName}.X"),
34new XAttribute("version", assemblyVersion)));
56XElement fileElement = new XElement(ns + "file", new XAttribute("name", comHostName));
67XElement comClassElement = new XElement(ns + "comClass", new XAttribute("clsid", guid.ToString("B")), new XAttribute("threadingModel", "Both"));
70comClassElement.Add(new XAttribute("progid", progIdValue.GetString()));
91new XAttribute("tlbid", name.ToString("B")),
92new XAttribute("resourceid", typeLibrary.Key),
93new XAttribute("version", version),
94new XAttribute("helpdir", ""));
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (7)
Microsoft.NET.Sdk.Publish.Tasks (5)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (8)
NuGet.Commands (14)
RestoreCommand\Utility\BuildAssetsUtils.cs (14)
135new XAttribute("Name", "EmitMSBuildWarning"),
136new XAttribute("BeforeTargets", "Build"),
139new XAttribute("Text", Strings.MSBuildWarning_MultiTarget))));
214new XAttribute("Condition", $" {ExcludeAllCondition} "),
223new XAttribute("Condition", $" {ExcludeAllCondition} "),
236new XAttribute("ToolsVersion", "14.0"),
237new XAttribute("xmlns", Namespace.NamespaceName)));
245new XAttribute("Condition", $" '$({propertyName})' == '' "),
251return new XElement(Namespace + itemName, new XAttribute("Include", path));
257new XAttribute("Project", path),
258new XAttribute("Condition", $"Exists('{path}')"));
264new XAttribute("Include", path),
265new XAttribute("Condition", $"Exists('{path}')"),
337itemGroup.Add(new XAttribute("Condition", conditionValue));
NuGet.Packaging (41)
PackageCreation\Authoring\PackageBuilder.cs (17)
1165new XAttribute("Type", "http://schemas.microsoft.com/packaging/2010/07/manifest"),
1166new XAttribute("Target", $"/{path}"),
1167new XAttribute("Id", GenerateRelationshipId($"/{path}"))),
1169new XAttribute("Type", "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"),
1170new XAttribute("Target", $"/{psmdcpPath}"),
1171new XAttribute("Id", GenerateRelationshipId($"/{psmdcpPath}")))
1190new XAttribute("Extension", "rels"),
1191new XAttribute("ContentType", "application/vnd.openxmlformats-package.relationships+xml")),
1193new XAttribute("Extension", "psmdcp"),
1194new XAttribute("ContentType", "application/vnd.openxmlformats-package.core-properties+xml"))
1200new XAttribute("Extension", extension),
1201new XAttribute("ContentType", "application/octet")
1209new XAttribute("PartName", file),
1210new XAttribute("ContentType", "application/octet")
1237new XAttribute(XNamespace.Xmlns + "dc", dcText),
1238new XAttribute(XNamespace.Xmlns + "dcterms", dctermsText),
1239new XAttribute(XNamespace.Xmlns + "xsi", xsiText),
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (13)
202return new XElement(ns + NuspecUtility.FrameworkReference, new XAttribute(NuspecUtility.Name, frameworkReference.Name));
207return new XElement(ns + Reference, new XAttribute(File, reference));
214attributes.Add(new XAttribute("id", dependency.Id));
218attributes.Add(new XAttribute("version", dependency.VersionRange.ToLegacyShortString()));
223attributes.Add(new XAttribute("include", string.Join(",", dependency.Include)));
228attributes.Add(new XAttribute("exclude", string.Join(",", dependency.Exclude)));
245new XAttribute(AssemblyName, reference.AssemblyName),
247new XAttribute("targetFramework", string.Join(", ", reference.SupportedFrameworks.Where(f => f.IsSpecificFramework).Select(f => f.GetFrameworkString()))) :
294attributeList.Add(new XAttribute(NuspecUtility.Type, repository.Type));
299attributeList.Add(new XAttribute(NuspecUtility.RepositoryUrl, repository.Url));
304attributeList.Add(new XAttribute(NuspecUtility.RepositoryBranch, repository!.Branch!));
309attributeList.Add(new XAttribute(NuspecUtility.RepositoryCommit, repository!.Commit!));
352return new XAttribute(name, value);
Roslyn.Diagnostics.Analyzers (16)
src\roslyn\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 (12)
569 references to XAttribute
dotnet-svcutil-lib (3)
GenerateDocumentationAndConfigFiles (4)
ilc (7)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.Build.Tasks.Core (13)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp (8)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.CodeAnalysis.Workspaces (7)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Manifest (2)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Build.Tasks.VisualStudio (2)
Microsoft.DotNet.NuGetRepack.Tasks (4)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.XliffTasks (9)
Microsoft.Extensions.AI.Abstractions.Tests (48)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XAttribute.g.cs (41)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute>? _XAttribute;
21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute> XAttribute
24get => _XAttribute ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.XAttribute));
27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute> Create_XAttribute(global::System.Text.Json.JsonSerializerOptions options)
29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.XAttribute>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute> jsonTypeInfo))
31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.XAttribute>
41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.XAttribute>(options, objectInfo);
58DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
60Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).IsNamespaceDeclaration,
68AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("IsNamespaceDeclaration", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
78DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
80Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).Name,
88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XName), global::System.Array.Empty<global::System.Type>(), null),
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
98DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
100Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).NextAttribute,
108AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("NextAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info2);
118DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
120Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).NodeType,
128AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("NodeType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.XmlNodeType), global::System.Array.Empty<global::System.Type>(), null),
133var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
138DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
140Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).PreviousAttribute,
148AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("PreviousAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
151properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info4);
158DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
160Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).Value,
161Setter = static (obj, value) => ((global::System.Xml.Linq.XAttribute)obj).Value = value!,
168AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
258private void XAttributeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.XAttribute? value)
268writer.WriteBoolean(PropName_IsNamespaceDeclaration, ((global::System.Xml.Linq.XAttribute)value).IsNamespaceDeclaration);
270XNameSerializeHandler(writer, ((global::System.Xml.Linq.XAttribute)value).Name);
272XAttributeSerializeHandler(writer, ((global::System.Xml.Linq.XAttribute)value).NextAttribute);
274global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::System.Xml.Linq.XAttribute)value).NodeType, XmlNodeType);
276XAttributeSerializeHandler(writer, ((global::System.Xml.Linq.XAttribute)value).PreviousAttribute);
277writer.WriteString(PropName_Value, ((global::System.Xml.Linq.XAttribute)value).Value);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XElement.g.cs (6)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
68AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XElement).GetProperty("FirstAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info0);
133var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
148AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XElement).GetProperty("LastAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
151properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info4);
Microsoft.Maui.Resizetizer (13)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.TestPlatform.Build (1)
netstandard (1)
NuGet.Configuration (7)
NuGet.PackageManagement (10)
NuGet.Packaging (29)
NuGet.Protocol (1)
Roslyn.Diagnostics.Analyzers (4)
sdk-tasks (1)
Shared.Tests (48)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XAttribute.g.cs (41)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute>? _XAttribute;
21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute> XAttribute
24get => _XAttribute ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.XAttribute));
27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute> Create_XAttribute(global::System.Text.Json.JsonSerializerOptions options)
29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.XAttribute>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XAttribute> jsonTypeInfo))
31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.XAttribute>
41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.XAttribute>(options, objectInfo);
58DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
60Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).IsNamespaceDeclaration,
68AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("IsNamespaceDeclaration", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
78DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
80Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).Name,
88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XName), global::System.Array.Empty<global::System.Type>(), null),
94var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
99DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
101Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).NextAttribute,
109AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("NextAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
112properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info2);
119DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
121Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).NodeType,
129AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("NodeType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.XmlNodeType), global::System.Array.Empty<global::System.Type>(), null),
134var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
139DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
141Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).PreviousAttribute,
149AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("PreviousAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
152properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info4);
159DeclaringType = typeof(global::System.Xml.Linq.XAttribute),
161Getter = static obj => ((global::System.Xml.Linq.XAttribute)obj).Value,
162Setter = static (obj, value) => ((global::System.Xml.Linq.XAttribute)obj).Value = value!,
169AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XAttribute).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
262private void XAttributeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.XAttribute? value)
272writer.WriteBoolean(PropName_IsNamespaceDeclaration, ((global::System.Xml.Linq.XAttribute)value).IsNamespaceDeclaration);
274XNameSerializeHandler(writer, ((global::System.Xml.Linq.XAttribute)value).Name);
276XAttributeSerializeHandler(writer, ((global::System.Xml.Linq.XAttribute)value).NextAttribute);
278global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::System.Xml.Linq.XAttribute)value).NodeType, XmlNodeType);
280XAttributeSerializeHandler(writer, ((global::System.Xml.Linq.XAttribute)value).PreviousAttribute);
281writer.WriteString(PropName_Value, ((global::System.Xml.Linq.XAttribute)value).Value);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XElement.g.cs (6)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
68AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XElement).GetProperty("FirstAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info0);
133var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XAttribute>
148AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XElement).GetProperty("LastAttribute", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XAttribute), global::System.Array.Empty<global::System.Type>(), null),
151properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XAttribute>(options, info4);
System.ComponentModel.TypeConverter (13)
System.Private.Xml.Linq (282)
System.Xml.Linq (1)
System.Xml.XDocument (1)