51 instantiations of XDocument
illink (1)
ILLink.Tasks (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.Build.Tasks.UnitTests (7)
Microsoft.NET.Build.Tests (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks.Tests (5)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Microsoft.NET.TestFramework (2)
Microsoft.VisualStudio.LanguageServices (1)
System.Private.Xml.Linq (2)
XmlFileLogger (1)
810 references to XDocument
aspire (10)
Aspire.Cli.Tests (28)
Aspire.Dashboard (2)
BuildBoss (4)
ConfigurationSchemaGenerator (2)
dotnet.Tests (5)
dotnet-svcutil-lib (6)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
EndToEnd.Tests (20)
IIS.FunctionalTests (7)
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IIS.ShadowCopy.Tests (4)
IIS.Tests (2)
IISExpress.FunctionalTests (5)
illink (2)
ILLink.Tasks (3)
Metrics (2)
Metrics.Legacy (2)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore.App.UnitTests (10)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
Microsoft.AspNetCore.Mvc.FunctionalTests (12)
Microsoft.AspNetCore.OpenApi.SourceGenerators (9)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (8)
Microsoft.Build.BuildCheck.UnitTests (2)
Microsoft.Build.CommandLine.UnitTests (2)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (2)
Microsoft.Build.Framework.UnitTests (2)
Microsoft.Build.Tasks.Core (11)
Microsoft.Build.Tasks.UnitTests (2)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.SemanticSearch.Extensions (2)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Microsoft.DotNet.Build.Tasks.Installers (12)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (8)
Microsoft.DotNet.Build.Tasks.Workloads (8)
Microsoft.DotNet.NuGetRepack.Tasks (6)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.PackageInstall.Tests (2)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SetupNugetSources.Tests (17)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.XliffTasks (7)
Microsoft.Extensions.FileProviders.Embedded (2)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.SecretManager.Tools.Tests (6)
Microsoft.Maui.Resizetizer (6)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (15)
Microsoft.NET.Build.Tasks.UnitTests (10)
Microsoft.NET.Build.Tests (32)
GivenThatWeWantToBuildACppCliProject.cs (4)
191private void ChangeTargetFramework(string projectPath, XDocument project, string targetFramework)
203private void ConfigureProject(string projectPath, XDocument project, string targetFramework, string[] properties)
210private void AddBuildProperty(string projectPath, XDocument project, string property, string value)
219private void RecordProperties(string projectPath, XDocument project, string[] properties)
Microsoft.NET.Pack.Tests (14)
Microsoft.NET.Publish.Tests (22)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
Microsoft.NET.Sdk.Publish.Tasks (16)
WebConfigTransform.cs (5)
10public static XDocument Transform(XDocument? webConfig, string appName, bool configureForAzure, bool useAppHost, string? extension, string? aspNetCoreModuleName, string? aspNetCoreHostingModel, string? environmentName, string? projectFullPath)
18webConfig = XDocument.Parse(WebConfigTemplate.Template);
246public static XDocument? AddProjectGuidToWebConfig(XDocument? document, string? projectGuid, bool ignoreProjectGuid)
Microsoft.NET.Sdk.Publish.Tasks.Tests (96)
WebConfigTelemetryTests.cs (2)
18XDocument transformedWebConfig = WebConfigTransform.Transform(null, "test.exe", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
22XDocument output = WebConfigTelemetry.AddTelemetry(transformedWebConfig, projectGuid, true, null, null);
WebConfigTransformTests.cs (43)
39WebConfigTransform.Transform(XDocument.Parse("<unexpected />"), "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null)));
52var input = WebConfigTransformTemplates.WebConfigTemplate;
73var input = WebConfigTransformTemplates.WebConfigTemplate;
76var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
88var input = WebConfigTransformTemplates.WebConfigTemplate;
101var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: "foo", environmentName: null, projectFullPath: projectPath);
110var output = WebConfigTransform.Transform(null, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: attributeValue, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
120var output = WebConfigTransform.Transform(WebConfigTransformTemplates.WebConfigTemplate, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: attributeValue, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
130var input = WebConfigTransformTemplates.WebConfigTemplate;
132var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: attributeValue, environmentName: null, projectFullPath: null);
142var input = WebConfigTransformTemplates.WebConfigTemplate;
156var output = WebConfigTransform.Transform(null, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: aspNetCoreModuleName, aspNetCoreHostingModel: attributeValue, environmentName: null, projectFullPath: null);
164var input = WebConfigTransformTemplates.WebConfigTemplate;
173var input = WebConfigTransformTemplates.WebConfigTemplate;
175var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: attributeValue, environmentName: null, projectFullPath: null);
182var input = WebConfigTransformTemplates.WebConfigTemplate;
184var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: "Production", projectFullPath: null);
191var input = WebConfigTransformTemplates.WebConfigTemplateWithEnvironmentVariable;
193var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: "Staging", projectFullPath: null);
214public void WebConfigTransform_HandlesLocations_Correctly(XDocument template)
216var input = template;
218var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
236var input = WebConfigTransformTemplates.WebConfigTemplate;
249var input = WebConfigTransformTemplates.WebConfigTemplate;
256var output = WebConfigTransform.Transform(input, "app.exe", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: "Test", projectFullPath: null);
264var input = WebConfigTransformTemplates.WebConfigTemplate;
279var input = WebConfigTransformTemplates.WebConfigTemplate;
300var input = WebConfigTransformTemplates.WebConfigTemplate;
319var input = WebConfigTransformTemplates.WebConfigTemplate;
327XDocument.Parse(@"<aspNetCore processPath="".\test.exe"" stdoutLogEnabled=""false""
335var input = WebConfigTransformTemplates.WebConfigTemplate;
336var output = WebConfigTransform.Transform(input, "test.dll", configureForAzure: true, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
351XDocument.Parse(@"<aspNetCore processPath=""dotnet"" arguments="".\test.dll"" stdoutLogEnabled=""false""
364XDocument.Parse(@"<aspNetCore processPath="".\test.exe"" stdoutLogEnabled=""false""
390var input = WebConfigTransformTemplates.WebConfigTemplate;
416var input = WebConfigTransformTemplates.WebConfigTemplate;
429var input = WebConfigTransformTemplates.WebConfigTemplate;
450XDocument transformedWebConfig = WebConfigTransform.Transform(null, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
454XDocument transformedWebConfigWithGuid = WebConfigTransform.AddProjectGuidToWebConfig(transformedWebConfig, projectGuid, false);
471XDocument transformedWebConfig = WebConfigTransform.Transform(null, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
473XDocument transformedWebConfigWithGuid = WebConfigTransform.AddProjectGuidToWebConfig(transformedWebConfig, projectGuid, false);
488XDocument transformedWebConfig = WebConfigTransform.Transform(null, "test.dll", configureForAzure: false, useAppHost: true, extension: ".exe", aspNetCoreModuleName: null, aspNetCoreHostingModel: null, environmentName: null, projectFullPath: null);
492XDocument transformedWebConfigWithGuid = WebConfigTransform.AddProjectGuidToWebConfig(transformedWebConfig, null, false);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
Microsoft.NET.Sdk.StaticWebAssets.Tests (31)
Microsoft.NET.TestFramework (26)
Microsoft.NET.ToolPack.Tests (4)
Microsoft.VisualStudio.LanguageServices (3)
Snippets\SnippetExpansionClient.cs (3)
553var snippet = CreateMethodCallSnippet(methodName, includeMethod: true, [], ImmutableDictionary<string, string>.Empty);
631private static XDocument CreateMethodCallSnippet(string methodName, bool includeMethod, ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string> parameterValues)
922var snippet = CreateMethodCallSnippet(method.Name, includeMethod: false, method.Parameters, newArguments);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.Implementation (4)
netstandard (1)
Roslyn.Diagnostics.Analyzers (2)
RulesetToEditorconfigConverter (2)
sdk-tasks (6)
System.Private.CoreLib.Generators (2)
System.Private.Xml.Linq (137)
System\Xml\Linq\XDocument.cs (99)
17/// An <see cref="XDocument"/> can contain:
32/// Initializes a new instance of the <see cref="XDocument"/> class.
34/// <see cref="XDocument"/>, creating an <see cref="XDocument"/> with
36/// <see cref="XDocument"/> object.
39/// Initializes a new instance of the <see cref="XDocument"/> class.
46/// Initializes a new instance of the <see cref="XDocument"/> class with the specified content.
69/// Initializes a new instance of the <see cref="XDocument"/> class
97/// Initializes a new instance of the <see cref="XDocument"/> class from an
101/// The <see cref="XDocument"/> object that will be copied.
103public XDocument(XDocument other)
159/// <see cref="XDocument"/> and initializing it from a data source containing
162/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/>
163/// to create an <see cref="XDocument"/> from a string containing XML.
164/// <seealso cref="XDocument.Parse(string)"/>
167/// Create a new <see cref="XDocument"/> based on the contents of the file
169/// <see cref="XDocument.Parse(string)"/> to create an <see cref="XDocument"/> from
172/// <seealso cref="XDocument.Parse(string)"/>
180/// A URI string referencing the file to load into a new <see cref="XDocument"/>.
183/// An <see cref="XDocument"/> initialized with the contents of the file referenced
186public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri)
192/// Create a new <see cref="XDocument"/> based on the contents of the file
204/// A string representing the URI of the file to be loaded into a new <see cref="XDocument"/>.
210/// An <see cref="XDocument"/> initialized with the contents of the file referenced
214public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri, LoadOptions options)
224/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
229/// created <see cref="XDocument"/>.
232/// A new <see cref="XDocument"/> containing the contents of the passed in
235public static XDocument Load(Stream stream)
241/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
252/// created <see cref="XDocument"/>.
258/// A new <see cref="XDocument"/> containing the contents of the passed in
261public static XDocument Load(Stream stream, LoadOptions options)
271/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
282/// created <see cref="XDocument"/>.
291/// A new <see cref="XDocument"/> containing the contents of the passed in
294public static async Task<XDocument> LoadAsync(Stream stream, LoadOptions options, CancellationToken cancellationToken)
307/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
312/// created <see cref="XDocument"/>.
315/// A new <see cref="XDocument"/> containing the contents of the passed in
318public static XDocument Load(TextReader textReader)
324/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
335/// created <see cref="XDocument"/>.
341/// A new <see cref="XDocument"/> containing the contents of the passed in
344public static XDocument Load(TextReader textReader, LoadOptions options)
354/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
365/// created <see cref="XDocument"/>.
374/// A new <see cref="XDocument"/> containing the contents of the passed in
377public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
390/// Create a new <see cref="XDocument"/> containing the contents of the
395/// <see cref="XDocument"/>.
398/// A new <see cref="XDocument"/> containing the contents of the passed
401public static XDocument Load(XmlReader reader)
407/// Create a new <see cref="XDocument"/> containing the contents of the
412/// <see cref="XDocument"/>.
418/// A new <see cref="XDocument"/> containing the contents of the passed
421public static XDocument Load(XmlReader reader, LoadOptions options)
427XDocument d = InitLoad(reader, options);
436/// Create a new <see cref="XDocument"/> containing the contents of the
441/// <see cref="XDocument"/>.
450/// A new <see cref="XDocument"/> containing the contents of the passed
453public static Task<XDocument> LoadAsync(XmlReader reader, LoadOptions options, CancellationToken cancellationToken)
458return Task.FromCanceled<XDocument>(cancellationToken);
462private static async Task<XDocument> LoadAsyncInternal(XmlReader reader, LoadOptions options, CancellationToken cancellationToken)
469XDocument d = InitLoad(reader, options);
480private static XDocument InitLoad(XmlReader reader, LoadOptions options)
482XDocument d = new XDocument();
507/// Create a new <see cref="XDocument"/> from a string containing
511/// Create a new <see cref="XDocument"/> from a string containing
518/// An <see cref="XDocument"/> containing an XML tree initialized from the
521public static XDocument Parse(string text)
527/// Create a new <see cref="XDocument"/> from a string containing
545/// An <see cref="XDocument"/> containing an XML tree initialized from the
548public static XDocument Parse(string text, LoadOptions options)
561/// Output this <see cref="XDocument"/> to the passed in <see cref="Stream"/>.
566/// <see cref="XDocument.Save(Stream, SaveOptions)"/>) enabling
572/// The <see cref="Stream"/> to output this <see cref="XDocument"/> to.
580/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>.
609/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>.
645/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>.
650/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling
656/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to.
664/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>.
683/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>.
694/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>.
719/// Outputs this <see cref="XDocument"/>'s underlying XML tree. The output can
724/// Output this <see cref="XDocument"/> to a file.
729/// <see cref="XDocument.Save(string, SaveOptions)"/>) enabling
743/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>.
757/// Output this <see cref="XDocument"/> to a file.
787/// Output this <see cref="XDocument"/>'s underlying XML tree to the
789/// <seealso cref="XDocument.Save(XmlWriter)"/>
793/// <see cref="XDocument"/>.
816/// Output this <see cref="XDocument"/>'s underlying XML tree to the
818/// <seealso cref="XDocument.Save(XmlWriter)"/>
822/// <see cref="XDocument"/>.
872XDocument? other = node as XDocument;
System.Xml.Linq (1)
System.Xml.XDocument (1)
Test.Utilities (2)
Text.Analyzers (5)
XmlFileLogger (1)