190 references to Load
aspire (7)
Commands\Sdk\IntegrationAssemblyNameResolver.cs (1)
25var document = XDocument.Load(projectFile.FullName);
Projects\DotNetAppHostProject.cs (1)
255root = XDocument.Load(path).Root;
Projects\DotNetBasedAppHostServerProject.cs (1)
755var doc = XDocument.Load(versionsPropsPath);
Projects\FallbackProjectParser.cs (1)
132var doc = XDocument.Load(projectFile.FullName);
Projects\JavaAppHostToolchainResolver.cs (1)
610var document = XDocument.Load(Path.Combine(aggregatorDirectory.FullName, MavenPomFileName));
Projects\ProjectUpdater.cs (2)
747sourceXml = XDocument.Load(context.AppHostProjectFile.FullName); 860.Select(path => (Path: path, Document: XDocument.Load(path))).ToArray();
Aspire.Cli.EndToEnd.Tests (14)
CentralPackageManagementTests.cs (2)
319var appHostProject = XDocument.Load(appHostCsprojPath); 320var directoryPackagesProps = XDocument.Load(directoryPackagesPropsPath);
CSharpProjectModeInitTests.cs (1)
99var nuGetConfigDoc = XDocument.Load(workspaceNuGetConfig);
EmulatedStagingBuildTests.cs (2)
114var redisReference = Assert.Single(XDocument.Load(appHostCsproj).Descendants("PackageReference"), 276var doc = XDocument.Load(configPath);
Helpers\CliE2EAutomatorHelpers.cs (1)
745var document = XDocument.Load(versionsPropsPath);
Helpers\CliE2ETestHelpers.cs (2)
980var doc = XDocument.Load(versionsPropsPath); 1007var doc = XDocument.Load(versionsPropsPath);
IntegrationSourceTests.cs (2)
117var originalConfig = File.Exists(nugetConfigPath) ? XDocument.Load(nugetConfigPath) : null; 150var updatedConfig = XDocument.Load(nugetConfigPath);
NewChannelNuGetConfigTests.cs (1)
74var packageSources = XDocument.Load(nugetConfigPath)
UpdateChannelNuGetConfigOrderingTests.cs (3)
207var updatedProject = XDocument.Load(projectPath); 213Assert.Single(XDocument.Load(nugetPath).Descendants("packageSources").Elements("add"), 515var nugetConfig = XDocument.Load(nugetConfigPath);
Aspire.Cli.Tests (123)
AssemblyMetadataChannelTests.cs (1)
44var doc = XDocument.Load(csprojPath);
Commands\AddCommandTests.cs (8)
84var source = Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")) 91Assert.Equal(selectedSource, Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")) 322var sources = XDocument.Load(config?.FullName ?? configPath).Root!.Element("packageSources")!.Elements("add") 837configurations.Add(new XElement(id, XDocument.Load(Path.Combine(workspace.Path, "nuget.config")).Root)); 1213Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")).Attribute("value")!.Value); 1221Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")).Attribute("value")!.Value); 4342var config = XDocument.Load(Path.Combine(projectDirectory.FullName, "nuget.config")); 4377var configWithoutInheritedMapping = XDocument.Load(
Commands\NewCommandLocalTemplateTests.cs (1)
1124var config = XDocument.Load(Path.Combine(workspace.Path, "out", "nuget.config"));
Commands\NewCommandTests.cs (4)
187Assert.Null(XDocument.Load(nugetConfigPath).Root!.Element("packageSourceMapping")); 769var doc = XDocument.Load(Path.Combine(outputPath, "nuget.config")); 1280var document = XDocument.Load(nugetConfig.FullName); 2326var document = XDocument.Load(nugetConfigFile.FullName);
Commands\UpdateCommandRepositoryToolsTests.cs (2)
622Assert.Equal("Aspire.AppHost.Sdk/" + targetVersion, XDocument.Load(appHost.FullName).Root!.Attribute("Sdk")!.Value); 623var packages = XDocument.Load(packagesPath).Descendants("PackageVersion").ToArray();
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (5)
71var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 144var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 211var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 276var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 351var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (29)
112configurations.Add(new XElement("selection", new XAttribute("feed", name), XDocument.Load(config.FullName).Root)); 332Assert.Empty(XDocument.Load(candidate.TargetFile.FullName).Descendants("packageSource")); 414Assert.Single(XDocument.Load(target.FullName).Root!.Element("packageSources")!.Elements("add")); 415Assert.Single(XDocument.Load(target.FullName).Root!.Element("packageSourceMapping")!.Elements("clear")); 452var originalDisabled = XDocument.Load(target.FullName).Root!.Element("disabledPackageSources")!.ToString(); 562await Verify(XDocument.Load(targetConfigPath).ToString(), "xml"); 583var xml = XDocument.Load(targetConfigPath); 623var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 662var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 702var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 742var xml = XDocument.Load(target); 779var document = XDocument.Load(target.FullName); 900var document = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 943await Verify(XDocument.Load(Path.Combine(output.FullName, "nuget.config")).ToString(), "xml"); 1013var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1054var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1106var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1172var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1229var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1312var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1362var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 1596Assert.Equal(XDocument.Parse(update.GetProposedDocument().OuterXml).ToString(), XDocument.Load(update.TargetFile.FullName).ToString()); 1720var document = XDocument.Load(target.FullName); 1781var originalDisabled = XDocument.Load(target.FullName).Root!.Element("disabledPackageSources")!.ToString(); 1996var originalDisabled = XDocument.Load(target.FullName).Root!.Element("disabledPackageSources")?.ToString(); 2005var proposed = XDocument.Load(target.FullName); 2069await Verify(XDocument.Load(target.FullName).ToString(), "xml") 2105await Verify(XDocument.Load(target.FullName).ToString(), "xml"); 2247XDocument.Load(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")).ToString());
Mcp\ListIntegrationsToolTests.cs (1)
68var source = Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")).Attribute("value")!.Value;
NuGet\BundleNuGetServiceTests.cs (2)
107new XElement("preview", XDocument.Load(preview.ConfigurationFile!.FullName).Root), 108new XElement("persisted", XDocument.Load(candidate.TargetFile.FullName).Root)).ToString(), "xml")
NuGet\NuGetClientTests.cs (2)
1855var document = XDocument.Load(outputPath); 1900await Verify(XDocument.Load(overlayPath).ToString(), "xml");
NuGet\NuGetPackageOperationConfigurationTests.cs (6)
59var document = XDocument.Load(configuration.ConfigurationFile.FullName); 163var overlay = XDocument.Load(configuration.ConfigurationFile!.FullName); 222Assert.Equal(XDocument.Load(persistentPath).ToString(), XDocument.Load(temporary.ConfigFile.FullName).ToString()); 226Assert.Equal(XDocument.Load(persistentPath).ToString(), XDocument.Load(temporary.ConfigFile.FullName).ToString());
NuGet\TemporaryNuGetConfigFileTests.cs (5)
61var document = XDocument.Load(config.ConfigFile.FullName); 89var document = XDocument.Load(config.ConfigFile.FullName); 108var document = XDocument.Load(config.ConfigFile.FullName); 148var document = XDocument.Load(config.ConfigFile.FullName); 173XDocument.Load(config.ConfigFile.FullName)
Packaging\IntegrationSourceTests.cs (2)
279var source = Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")).Attribute("value")!.Value; 435Assert.Single(XDocument.Load(config!.FullName).Root!.Element("packageSources")!.Elements("add")).Attribute("value")!.Value);
Packaging\PackagingServiceTests.cs (1)
1195var doc = XDocument.Load(nugetConfigPath);
Projects\AppHostServerProjectTests.cs (9)
117Assert.Equal(repoRoot.FullName, XDocument.Load(projectFilePath).Descendants("RestoreRootConfigDirectory").Single().Value); 271var doc = XDocument.Load(projectPath); 291var doc = XDocument.Load(projectPath); 318var document = XDocument.Load(projectPath); 349var document = XDocument.Load(projectPath); 374var document = XDocument.Load(projectPath); 612var projectDoc = XDocument.Load(projectFilePath); 652var projectDoc = XDocument.Load(projectFilePath); 702var projectDoc = XDocument.Load(projectFilePath);
Projects\DotNetBasedAppHostServerScaffoldCacheTests.cs (1)
30var document = System.Xml.Linq.XDocument.Load(project.GetProjectFilePath());
Projects\PrebuiltAppHostServerTests.cs (25)
316var overlay = XDocument.Load(overlayFile.FullName); 803var restoreConfig = XDocument.Load(Path.Combine( 849var projectNuGetConfig = XDocument.Load(projectNuGetConfigPath); 1414var doc = XDocument.Load(overlayFile.FullName); 1474var doc = XDocument.Load(overlayFile.FullName); 1899var doc = XDocument.Load(overlayFile.FullName); 1932var doc = XDocument.Load(overlayFile.FullName); 1961var doc = XDocument.Load(overlayFile.FullName); 2017var doc = XDocument.Load(overlayFile.FullName); 2055var doc = XDocument.Load(overlayFile.FullName); 2091var doc = XDocument.Load(overlayFile.FullName); 2141var doc = XDocument.Load(overlayFile.FullName); 2164var doc = XDocument.Load(overlayFile.FullName); 3037policyOverlay = XDocument.Load(configPaths[0]); 3169generatedProject = XDocument.Load(projectFilePath.FullName); 3271generatedProject = XDocument.Load(projectFilePath.FullName); 3373var directoryBuildProps = XDocument.Load(Path.Combine( 3392Assert.NotNull(XDocument.Load(ambientConfigPath).Descendants("packageSourceCredentials").ElementAtOrDefault(0)); 3730restoreOverlay = XDocument.Load(policyOverlayPath); 3749var ambientConfig = XDocument.Load(ambientConfigPath); 4271generatedProject = XDocument.Load(projectFilePath.FullName); 4538var generatedProject = XDocument.Load(Path.Combine(workingDirectory, "integration-restore", PrebuiltAppHostServer.IntegrationProjectFileName)); 5168var document = XDocument.Load(Path.Combine(restoreDirectory.FullName, "Directory.Build.props")); 5407var props = XDocument.Load(Path.Combine(projectFilePath.DirectoryName!, "Directory.Build.props")); 5412return XDocument.Load(Path.Combine(policyDirectory, "NuGet.Config"));
Projects\ProjectUpdaterNuGetConfigurationTests.cs (4)
292var project = System.Xml.Linq.XDocument.Load(projectFile.FullName); 346var declaration = System.Xml.Linq.XDocument.Load(propsPath); 1652var props = System.Xml.Linq.XDocument.Load(propsFile.FullName); 2003var document = System.Xml.Linq.XDocument.Load(configPath);
Projects\ProjectUpdaterTests.cs (4)
148var importedDocument = System.Xml.Linq.XDocument.Load(importedFile); 317var cpm = System.Xml.Linq.XDocument.Load(cpmFile); 323var props = System.Xml.Linq.XDocument.Load(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Build.props")); 4519var document = System.Xml.Linq.XDocument.Load(createdConfig.FullName);
Secrets\SecretStoreResolverTests.cs (4)
33Assert.Null(XDocument.Load(appHostFile.FullName).Descendants("UserSecretsId").SingleOrDefault()); 76Assert.Null(XDocument.Load(appHostFile.FullName).Descendants("UserSecretsId").SingleOrDefault()); 87Assert.Equal(userSecretsId, XDocument.Load(appHostFile.FullName).Descendants("UserSecretsId").Single().Value); 522var document = XDocument.Load(projectPath);
Templating\TemplateNuGetConfigServiceTests.cs (6)
326var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 563var doc = XDocument.Load(nugetConfigFile.FullName); 622var doc = XDocument.Load(nugetConfigFile.FullName); 743var doc = XDocument.Load(nugetConfigFile.FullName); 1363var doc = XDocument.Load(configPath); 1500var doc = XDocument.Load(configPath);
TestServices\FakeNuGetClient.cs (1)
82.SelectMany(static path => XDocument.Load(path)
Aspire.Hosting.Java (2)
JavaHostingExtensions.cs (1)
2058var document = XDocument.Load(pomPath);
JavaVersionDetector.cs (1)
88document = XDocument.Load(pomPath);
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
3519return XDocument.Load(xmlPath);
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3519return XDocument.Load(xmlPath);
Aspire.Templates.Tests (2)
NewUpAndBuildStandaloneTemplateTests.cs (1)
56var project = XDocument.Load(projectPath);
NewUpAndBuildSupportProjectTemplatesTests.cs (1)
66var project = XDocument.Load(projectPath);
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
428XDocument doc = XDocument.Load(filePath);
GenerateTemplateManifest (2)
Program.cs (1)
126var config = XDocument.Load(nugetConfigPath);
TemplateRestorePlan.cs (1)
138documents.Add(Path.GetFullPath(path), XDocument.Load(path).Root!);
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
33XDocument subFile = XDocument.Load(linkerXmlFile.ItemSpec);
Infrastructure.Tests (5)
MicrosoftTestingPlatformTests.cs (1)
80var target = XDocument.Load(Path.Combine(RepoRoot.Path, "eng", "Xunit3", "Microsoft.Testing.Platform.targets"));
ResourceGeneratorMetadataTests.cs (2)
47var source = XDocument.Load(Path.Combine(RepoRoot.Path, "Directory.Build.targets")); 48var configuration = XDocument.Load(Path.Combine(projectDirectory, $"{projectName}.csproj"));
TemplateManifest\TemplateManifestBuildTargetTests.cs (1)
31var templateProject = XDocument.Load(Path.Combine(RepoRoot.Path, "src", "Aspire.ProjectTemplates", "Aspire.ProjectTemplates.csproj"));
TemplateManifest\TemplateManifestCacheTests.cs (1)
72var solution = XDocument.Load(Path.Combine(restoreDirectory, "TemplateDependencies.slnx"));
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
154var webConfig = XDocument.Load(webConfigFilePath);
xunit\IISExpressAncmSchema.cs (1)
35ancmConfig = XDocument.Load(ancmConfigPath);
Microsoft.DotNet.Arcade.Sdk (2)
src\ExtractNgenMethodList.cs (1)
57var document = XDocument.Load(TaskEnvironment.GetAbsolutePath(IbcXmlFilePath));
src\GenerateResxSource.cs (1)
110foreach (var node in XDocument.Load(TaskEnvironment.GetAbsolutePath(ResourceFile)).Descendants("data"))
Microsoft.DotNet.Build.Tasks.Installers (6)
src\CreateWixBuildWixpack.cs (3)
239IngestDefineVariablesFromString(XDocument.Load(filePath).ToString()); 263XDocument xmlDocument = XDocument.Load(filePath); 558var doc = XDocument.Load(copiedXmlFilePath);
src\CreateWixCommandPackageDropBase.cs (1)
201XDocument doc = XDocument.Load(wixObjFilePath);
src\GenerateMacOSDistributionFile.cs (1)
42XDocument document = XDocument.Load(TaskEnvironment.GetAbsolutePath(TemplatePath));
src\StabilizeWixFileId.cs (1)
57XDocument content = XDocument.Load(TaskEnvironment.GetAbsolutePath(SourceFile));
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageIndex.cs (1)
216XDocument frameworkList = XDocument.Load(frameworkListPath);
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\WixDocument.cs (1)
33_doc = XDocument.Load(path);
Microsoft.DotNet.XliffTasks (1)
Tasks\TransformTemplates.cs (1)
73XDocument templateXml = XDocument.Load(templatePath);
Microsoft.Maui.Resizetizer (2)
GeneratePackageAppxManifest.cs (1)
53 var appx = XDocument.Load(AppxManifest.ItemSpec);
GenerateTizenManifest.cs (1)
65 var manifest = XDocument.Load(_tizenManifestFilePath);
Microsoft.NET.Build.Extensions.Tasks (1)
parent\Common\ConflictResolution\FrameworkListReader.cs (1)
64var frameworkList = XDocument.Load(frameworkListPath);
Microsoft.NET.Build.Tasks (5)
parent\Common\ConflictResolution\FrameworkListReader.cs (1)
64var frameworkList = XDocument.Load(frameworkListPath);
ResolveRuntimePackAssets.cs (1)
174XDocument frameworkListDoc = XDocument.Load(absoluteRuntimeListPath);
ResolveTargetingPackAssets.cs (1)
366XDocument frameworkListDoc = XDocument.Load(definition.FrameworkListPath);
StoreArtifactParser.cs (1)
19var doc = XDocument.Load(filterFile);
WriteAppConfigWithSupportedRuntime.cs (1)
165document = XDocument.Load(appConfigPath.Value);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
BlazorReadSatelliteAssemblyFile.cs (1)
21var document = XDocument.Load(ReadFile.ItemSpec);
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\TransformWebConfig.cs (1)
110webConfigXml = XDocument.Load(publishWebConfigPath);
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
277document = XDocument.Load(settingsFile);
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\AppxManifestFile.cs (1)
21var doc = XDocument.Load(filePath);
Hosting\DefaultTestHostManager.cs (1)
588var doc = XDocument.Load(uwpSource);
sdk-tasks (4)
GetDependencyInfo.cs (1)
30XDocument document = XDocument.Load(VersionDetailsXmlFile);
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (3)
46var stage0Doc = XDocument.Load(Stage0BundledVersionsPath); 47var stage2Doc = XDocument.Load(Stage2BundledVersionsPath); 160var stage0Versions = LoadDownlevelRuntimePackVersions(XDocument.Load(stage0Path))
System.Private.Xml.Linq (1)
System\Xml\Linq\XElement.cs (1)
549/// <seealso cref="XDocument.Load(string)" />