288 references to XElement
aspire (20)
DotNet\DotNetAppHostRestorePreview.cs (11)
76var target = new XElement("Target",
91imports.Add(new XElement("Import",
95imports.Add(new XElement("Import",
114target.Add(new XElement("PropertyGroup",
120var document = new XDocument(new XElement("Project",
154return new XElement("Target",
157new XElement("PropertyGroup",
162new XElement("_AspireProjectLockFile",
167new XElement("_AspireProjectLockFile",
170new XElement("_AspireProjectLockFile",
176new XElement("Copy",
aspire-tray (2)
Aspire.Cli.EndToEnd.Tests (8)
IntegrationSourceTests.cs (5)
28sources.Add(new XElement("add", new XAttribute("key", "aspire-apphost-test"),
33sources.Add(new XElement("add", new XAttribute("key", "nuget.org"),
194sources.Add(new XElement("add", new XAttribute("key", "nuget.org"),
198originalConfig.Root.Add(new XElement("packageSourceMapping",
201new XElement("packageSource", new XAttribute("key", source.Attribute("key")!.Value),
Aspire.Cli.Tests (30)
NuGet\NuGetClientTests.cs (11)
41new XDocument(new XElement("configuration",
42new XElement("packageSources",
44new XElement("add", new XAttribute("key", "fixture"), new XAttribute("value", feed.FullName))),
45new XElement("fallbackPackageFolders",
47new XElement("add", new XAttribute("key", "fixture"), new XAttribute("value", fallback.FullName)))))
441new XElement("add", new XAttribute("key", "selected"), new XAttribute("value", selectedSource)),
442new XElement("add", new XAttribute("key", selectedSource), new XAttribute("value", otherSource))
445new XElement("packageSources",
450config.Add(new XElement("packageSourceMapping",
452new XElement("packageSource", new XAttribute("key", "selected"),
454new XElement("packageSource", new XAttribute("key", selectedSource),
Projects\PrebuiltAppHostServerTests.cs (14)
360var packageSources = new XElement("packageSources",
362new XElement("add", new XAttribute("key", "channel"), new XAttribute("value", channelFeed.FullName)),
363new XElement("add", new XAttribute("key", "team"), new XAttribute("value", teamFeed.FullName)));
364var packageMappings = new XElement("packageSourceMapping",
366new XElement("packageSource", new XAttribute("key", "channel"),
368new XElement("packageSource", new XAttribute("key", "team"),
373packageSources.Add(new XElement("add", new XAttribute("key", "other"), new XAttribute("value", overrideFeed.FullName)));
374packageMappings.Add(new XElement("packageSource", new XAttribute("key", "other"),
378await File.WriteAllTextAsync(configPath, new XElement("configuration",
754new XElement("configuration",
755new XElement("packageSources",
757new XElement("add",
760new XElement("packageSourceMapping",
762new XElement("packageSource",
Aspire.Hosting.Azure.Provisioning.Generators (3)
Aspire.Hosting.Dotnet (9)
Aspire.Hosting.Maui (6)
Aspire.Templates.Tests (2)
Aspire.Tray.Tests (20)
Helpers\TrayPanelSvgRenderer.cs (18)
27var root = new XElement(s_svg + "svg",
37defs.Add(new XElement(s_svg + "filter", new XAttribute("id", "shadow"),
39new XElement(s_svg + "feDropShadow", new XAttribute("dx", "0"), new XAttribute("dy", "6"),
41root.Add(new XElement(s_svg + "rect", new XAttribute("width", F(scene.Width)), new XAttribute("height", F(scene.Height)),
53current.Add(new XElement(s_svg + "path", new XAttribute("d", ToPathData(fill.Path)), Paint("fill", fill.Color)));
56current.Add(new XElement(s_svg + "path", new XAttribute("d", ToPathData(stroke.Path)), new XAttribute("fill", "none"),
69FillPathCommand fill => new XElement(s_svg + "path", new XAttribute("d", ToPathData(fill.Path)), Paint("fill", fill.Color)),
70StrokePathCommand stroke => new XElement(s_svg + "path", new XAttribute("d", ToPathData(stroke.Path)), new XAttribute("fill", "none"),
79? new XElement(s_svg + "rect", Bounds(logo.Bounds), new XAttribute("rx", "6"), new XAttribute("fill", "#512BD4"))
80: new XElement(s_svg + "image", Bounds(logo.Bounds),
85defs.Add(new XElement(s_svg + "clipPath", new XAttribute("id", id), new XElement(s_svg + "rect", Bounds(clip.Bounds))));
114var layer = new XElement(s_svg + "g", new XAttribute("font-family", "Menlo, Consolas, monospace"), new XAttribute("font-size", "4"));
118var line = new XElement(s_svg + "line", new XAttribute("x1", F(x1)), new XAttribute("y1", F(y1)), new XAttribute("x2", F(x2)),
133layer.Add(new XElement(s_svg + "text", new XAttribute("x", F(guide.Position)), new XAttribute("y", "-2"),
143layer.Add(new XElement(s_svg + "rect", Bounds(b), new XAttribute("fill", "none"), new XAttribute("stroke", "#E6B800"),
181var element = new XElement(s_svg + "text",
200element.Add(new XElement(s_svg + "tspan", new XAttribute("x", F(x)),
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)
GenerateTemplateManifest (9)
TemplateRestorePlan.cs (5)
151var project = new XElement("Project", new XAttribute("Sdk", "Microsoft.NET.Sdk"),
152new XElement("PropertyGroup",
172project.Add(new XElement("ItemGroup", new XElement("PackageReference", new XAttribute("Include", name), new XAttribute("Version", value))));
286project.Add(new XElement(groupName, elements));
297root.AddFirst(new XElement("PropertyGroup",
illink (3)
Infrastructure.Tests (35)
Hex1bNativePublishingTests.cs (17)
391nativeItems.Add(new XElement(rid.Length == 0 ? "RuntimeTargetsCopyLocalItems" : "NativeCopyLocalItems",
401var unrelatedItem = new XElement("ResolvedFileToPublish",
406var publishItems = new XElement("ItemGroup",
407new XElement("ResolvedFileToPublish",
413publishItems.Add(new XElement("ResolvedFileToPublish",
421var project = new XDocument(new XElement("Project",
422new XElement("PropertyGroup",
425new XElement("Import", new XAttribute("Project", "Sdk.props"), new XAttribute("Sdk", "Microsoft.NET.Sdk")),
426new XElement("PropertyGroup",
431new XElement("Import", new XAttribute("Project", "Sdk.targets"), new XAttribute("Sdk", "Microsoft.NET.Sdk")),
433new XElement("Target", new XAttribute("Name", "ResolvePackageAssets"), nativeItems),
434new XElement("Target", new XAttribute("Name", "_ResolveCopyLocalAssetsForPublish"),
436new XElement("ItemGroup", new XElement("_ResolvedCopyLocalPublishAssets",
440new XElement("Target", new XAttribute("Name", "ComputeResolvedFilesToPublishList"),
442new XElement("Target", new XAttribute("Name", "ComputeFilesToPublish"),
444new XElement("Target", new XAttribute("Name", "CopyTestFiles"),
446new XElement("Copy", new XAttribute("SourceFiles", "@(ResolvedFileToPublish)"),
TemplateManifest\TemplateManifestTestEnvironment.cs (7)
50new XDocument(new XElement("configuration",
51new XElement("packageSources",
53new XElement("add", new XAttribute("key", "external"), new XAttribute("value", ExternalFeed))),
54new XElement("packageSourceMapping",
56new XElement("packageSource", new XAttribute("key", "external"),
123new XElement("metadata",
130new XElement("dependency", new XAttribute("id", dependency.Name),
Microsoft.AspNetCore.DataProtection (15)
Microsoft.Build.Tasks.Core (5)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.DotNet.Build.Manifest (4)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.SharedFramework.Sdk (7)
Microsoft.DotNet.SourceBuild.Tasks (5)
Microsoft.DotNet.XliffTasks (4)
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
Microsoft.ML.Maml (2)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.HostModel (3)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
NuGet.Commands (7)
NuGet.Configuration (1)
NuGet.Packaging (16)
Roslyn.Diagnostics.Analyzers (5)