297 references to XElement
aspire (25)
Projects\DotNetBasedAppHostServerProject.cs (14)
195new XElement("IsAspireProjectResource", "false")));
205new XElement("IsAspireProjectResource", "false")));
224new XElement("IsAspireProjectResource", "false")));
234doc.Root!.Add(new XElement("ItemGroup",
246doc.Root!.Add(new XElement("Import", new XAttribute("Project", appHostInTargets)));
250doc.Root!.Add(new XElement("Import", new XAttribute("Project", sdkInTargets)));
257doc.Root!.Add(new XElement("ItemGroup",
258new XElement("ProjectReference", new XAttribute("Include", dashboardProject))));
264doc.Root!.Add(new XElement("ItemGroup",
265new XElement("ProjectReference", new XAttribute("Include", remoteHostProject))));
269doc.Root!.Add(new XElement("Target", new XAttribute("Name", "_CSharpWriteHostProjectMetadataSources")));
270doc.Root!.Add(new XElement("Target", new XAttribute("Name", "_CSharpWriteProjectMetadataSources")));
385.Add(new XElement("RestoreAdditionalProjectSources", sourceList));
389doc.Root!.Add(new XElement("ItemGroup",
Projects\PrebuiltAppHostServer.cs (11)
273new XElement("TargetFramework", DotNetBasedAppHostServerProject.TargetFramework),
274new XElement("EnableDefaultItems", "false"),
275new XElement("CopyLocalLockFileAssemblies", "true"),
276new XElement("ProduceReferenceAssembly", "false"),
277new XElement("EnableNETAnalyzers", "false"),
278new XElement("GenerateDocumentationFile", "false"),
279new XElement("OutDir", outputDir));
287propertyGroup.Add(new XElement("RestoreAdditionalProjectSources", sourceList));
298doc.Root!.Add(new XElement("ItemGroup",
313doc.Root!.Add(new XElement("ItemGroup",
314projectRefs.Select(p => new XElement("ProjectReference",
Aspire.Hosting.Maui (7)
dotnet-svcutil-lib (2)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
GenerateDocumentationAndConfigFiles (8)
illink (3)
Metrics (8)
Metrics.Legacy (8)
Microsoft.AspNetCore.App.Analyzers.Test (4)
Microsoft.AspNetCore.DataProtection (18)
KeyManagement\XmlKeyManager.cs (9)
389new XElement(RevocationDateElementName, revocationDate),
391new XElement(KeyElementName,
393new XElement(ReasonElementName, reason));
527new XElement(CreationDateElementName, creationDate),
528new XElement(ActivationDateElementName, activationDate),
529new XElement(ExpirationDateElementName, expirationDate),
634new XElement(RevocationDateElementName, revocationDate),
635new XElement(KeyElementName,
637new XElement(ReasonElementName, reason));
Microsoft.AspNetCore.DataProtection.Tests (16)
KeyManagement\XmlKeyManagerTests.cs (10)
154new XElement("creationDate", creationDate),
155new XElement("activationDate", activationDate),
156new XElement("expirationDate", expirationDate));
253new XElement("creationDate", creationDate),
254new XElement("activationDate", activationDate),
255new XElement("expirationDate", expirationDate));
282new XElement("creationDate", creationDate),
283new XElement("activationDate", activationDate),
284new XElement("expirationDate", expirationDate));
712new XElement("revocationDate", revocationDate));
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
Microsoft.Build.Tasks.Core (5)
Microsoft.CodeAnalysis.Analyzers (8)
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
Microsoft.CodeAnalysis.BannedApiAnalyzers (8)
Microsoft.CodeAnalysis.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (12)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (8)
Microsoft.CodeAnalysis.PublicApiAnalyzers (8)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.SemanticSearch.Extensions (1)
Microsoft.CodeAnalysis.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Installers (5)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.SourceBuild.Tasks (6)
Microsoft.DotNet.XliffTasks (3)
Microsoft.DotNet.XliffTasks.Tests (17)
XElementExtensionsTests.cs (17)
18new XElement(Source, "source text"),
19new XElement(Target, "target text"));
31new XElement(Source, "source text"),
32new XElement(Target, string.Empty));
43new(TransUnit,
44new XElement(Source, "source text"));
56new XElement(Source, "source text"),
57new XElement(Target, "original target text"),
70new XElement(Source, "source text"),
83new(TransUnit,
84new XElement(Target,
96new(TransUnit,
119new XElement(Source, "soruce text"),
134new XElement(Source, "soruce text"),
135new XElement(Target, "target text"));
146new(TransUnit,
147new XElement(Source, "soruce text"));
Microsoft.Extensions.AI.Evaluation.Safety (3)
Microsoft.Extensions.FileProviders.Embedded.Tests (3)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.Maml (14)
HelpCommand.cs (14)
463var content = new XElement("Components",
468new XElement("Name", c.Info.UserName),
469string.IsNullOrWhiteSpace(c.Info.Summary) ? null : new XElement("Summary", c.Info.Summary),
470new XElement("LoadNames",
472select new XElement("LoadName", l)),
473new XElement("Type", c.Info.Type.ToString()),
474new XElement("SignatureTypes",
476select new XElement("SignatureType", s.ToString())),
479: new XElement("Arguments",
482new XElement("LongName", a.LongName),
485: new XElement("ShortNames",
487select new XElement("ShortName", sn)),
488new XElement("HelpText", a.HelpText),
509return new XElement("DefaultValue", a.DefaultValue);
Microsoft.VisualStudio.LanguageServices (16)
ProjectSystem\Logging\RoslynWorkspaceStructureLogger.cs (9)
141var referenceElement = new XElement("projectReference", new XAttribute("id", SanitizePath(projectReference.ProjectId.ToString())));
149projectElement.Add(new XElement("workspaceDocuments", await CreateElementsForDocumentCollectionAsync(project.Documents, "document", cancellationToken)));
150projectElement.Add(new XElement("workspaceAdditionalDocuments", await CreateElementsForDocumentCollectionAsync(project.AdditionalDocuments, "additionalDocuments", cancellationToken)));
152projectElement.Add(new XElement("workspaceAnalyzerConfigDocuments", await CreateElementsForDocumentCollectionAsync(project.AnalyzerConfigDocuments, "analyzerConfigDocument", cancellationToken)));
262dteReferences.Add(new XElement("projectReference", new XAttribute("projectName", reference.SourceProject.Name)));
314return new XElement("metadataReference", new XAttribute("display", SanitizePath(reference.Display ?? "(none)")));
338typesElement.Add(new XElement("type", new XAttribute("name", type.ToDisplayString())));
359var documentElement = new XElement(elementName, new XAttribute("path", SanitizePath(document.FilePath ?? "(none)")));
368documentElement.Add(new XElement("loadDiagnostic", loadDiagnostic));
Snippets\SnippetExpansionClient.cs (7)
657new XElement(snippetNamespace + "ID", new XText(parameter.Name)),
658new XElement(snippetNamespace + "Default", new XText(parameterValues.GetValueOrDefault(parameter.Name, "")))));
669new XElement(snippetNamespace + "ID", new XText(PlaceholderSnippetField)),
670new XElement(snippetNamespace + "Default", new XText(""))));
685new XElement(
692new XElement(snippetNamespace + "Title", new XText(methodName)),
693new XElement(snippetNamespace + "Description", new XText(s_fullMethodCallDescriptionSentinel))),
Microsoft.VisualStudio.LanguageServices.Implementation (1)
RepoTasks (1)
Roslyn.Diagnostics.Analyzers (8)
Stress.ApiService (1)
System.Private.Xml.Linq (2)
Test.Utilities (8)
Text.Analyzers (8)
XmlFileLogger (1)