3831 references to Combine
aspire (166)
Projects\DotNetBasedAppHostServerProject.cs (16)
104public string BuildPath => Path.Combine(_projectModelPath, BuildFolder);
109public string GetProjectFilePath() => Path.Combine(_projectModelPath, ProjectFileName);
113var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName);
125var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName);
277var objPath = Path.Combine(_projectModelPath, "obj");
294File.WriteAllText(Path.Combine(_projectModelPath, "Program.cs"), programCs);
328File.WriteAllText(Path.Combine(_projectModelPath, "appsettings.json"), appSettingsJson);
336var nugetConfigPath = Path.Combine(_projectModelPath, "nuget.config");
390var repoDirectoryPackagesProps = Path.Combine(_repoRoot, "Directory.Packages.props");
401File.WriteAllText(Path.Combine(_projectModelPath, "Directory.Packages.props"), directoryPackagesProps);
406File.WriteAllText(Path.Combine(_projectModelPath, "Directory.Build.props"), "<Project />");
407File.WriteAllText(Path.Combine(_projectModelPath, "Directory.Build.targets"), "<Project />");
409var projectFileName = Path.Combine(_projectModelPath, ProjectFileName);
425var projectFile = new FileInfo(Path.Combine(_projectModelPath, ProjectFileName));
473var assemblyPath = Path.Combine(BuildPath, ProjectDllName);
576var globalNuGetPath = Path.Combine(userProfile, ".nuget");
Projects\PrebuiltAppHostServer.cs (9)
195var restoreDir = Path.Combine(_workingDirectory, "integration-restore");
198var outputDir = Path.Combine(restoreDir, "libs");
219var projectFilePath = Path.Combine(restoreDir, "IntegrationRestore.csproj");
231Path.Combine(restoreDir, "Directory.Packages.props"), directoryPackagesProps, cancellationToken);
235Path.Combine(restoreDir, "Directory.Build.props"), "<Project />", cancellationToken);
237Path.Combine(restoreDir, "Directory.Build.targets"), "<Project />", cancellationToken);
326new XAttribute("File", Path.Combine(outputDir, "_project-ref-assemblies.txt")),
516var filePath = Path.Combine(libsPath, "_project-ref-assemblies.txt");
573Path.Combine(_workingDirectory, "appsettings.json"),
Aspire.Cli.EndToEnd.Tests (65)
CentralPackageManagementTests.cs (10)
47var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest");
48var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost");
49var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj");
50var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props");
69File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """
142var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest");
143var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost");
144var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj");
145var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props");
160File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """
ConfigMigrationTests.cs (14)
46var aspireHomeDir = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-home");
125var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json");
126var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
191var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
192var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json");
240var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
243Path.Combine(aspireHomeDir, "globalsettings.json"),
299var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
300var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json");
369var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
370var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json");
453var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
454var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json");
576var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
ProjectReferenceTests.cs (10)
50var configPath = Path.Combine(workDir, "aspire.config.json");
56var integrationDir = Path.Combine(workDir, "MyIntegration");
59File.WriteAllText(Path.Combine(integrationDir, "MyIntegration.csproj"), $$"""
75var aspireHome = Path.Combine(
77var hivesDir = Path.Combine(aspireHome, "hives");
84var packagesDir = Path.Combine(hiveDir, "packages");
100File.WriteAllText(Path.Combine(workDir, "nuget.config"), nugetConfig);
103File.WriteAllText(Path.Combine(integrationDir, "MyIntegrationExtensions.cs"), """
129var modulesDir = Path.Combine(workDir, ".modules");
136File.WriteAllText(Path.Combine(workDir, "apphost.ts"), """
Aspire.Cli.Tests (592)
Agents\PlaywrightCliInstallerTests.cs (28)
19var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}");
69var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}");
152var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}");
154var tarballPath = Path.Combine(tempDir, "package.tgz");
182var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}");
184var tarballPath = Path.Combine(tempDir, "package.tgz");
222var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}");
224var tarballPath = Path.Combine(tempDir, "package.tgz");
257var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}");
259var tarballPath = Path.Combine(tempDir, "package.tgz");
369var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}");
371var tarballPath = Path.Combine(tempDir, "package.tgz");
446var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-mirror-test-{Guid.NewGuid():N}");
454await File.WriteAllTextAsync(Path.Combine(primarySkillDir, "SKILL.md"), "# Playwright CLI Skill");
455Directory.CreateDirectory(Path.Combine(primarySkillDir, "subdir"));
479context.AddSkillBaseDirectory(Path.Combine(".claude", "skills"));
480context.AddSkillBaseDirectory(Path.Combine(".github", "skills"));
481context.AddSkillBaseDirectory(Path.Combine(".opencode", "skill"));
506var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-sync-test-{Guid.NewGuid():N}");
507var sourceDir = Path.Combine(tempDir, "source");
508var targetDir = Path.Combine(tempDir, "target");
514File.WriteAllText(Path.Combine(sourceDir, "keep.md"), "keep");
518File.WriteAllText(Path.Combine(targetDir, "keep.md"), "old content");
519File.WriteAllText(Path.Combine(targetDir, "stale.md"), "should be removed");
520Directory.CreateDirectory(Path.Combine(targetDir, "stale-dir"));
526Assert.Equal("keep", File.ReadAllText(Path.Combine(targetDir, "keep.md")));
529Assert.False(File.Exists(Path.Combine(targetDir, "stale.md")));
530Assert.False(Directory.Exists(Path.Combine(targetDir, "stale-dir")));
Commands\ExportCommandTests.cs (12)
27var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
117var outputPath = Path.Combine(customDir, "my-export.zip");
150var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
153var appHostDir = Path.Combine(workspace.WorkspaceRoot.FullName, "MyAppHost");
155var appHostProjectPath = Path.Combine(appHostDir, "MyAppHost.csproj");
183var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
303var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
430var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
489var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
544var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
610var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
639var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
Commands\InitCommandTests.cs (11)
27var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"));
30var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectFileName));
66var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"));
84var appHostDir = Path.Combine(outputPath, "Test.AppHost");
85var serviceDefaultsDir = Path.Combine(outputPath, "Test.ServiceDefaults");
88File.WriteAllText(Path.Combine(appHostDir, "Test.AppHost.csproj"), "<Project />");
89File.WriteAllText(Path.Combine(serviceDefaultsDir, "Test.ServiceDefaults.csproj"), "<Project />");
164var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"));
219var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"));
348var appHostFile = Path.Combine(outputPath, "apphost.cs");
503var appHostFile = Path.Combine(outputPath, "apphost.cs");
Commands\NewCommandTests.cs (9)
896File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost");
912Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")));
1018Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")));
1081var runProfilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json");
1193var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestApp");
1255await File.WriteAllTextAsync(Path.Combine(context.TargetDirectory.FullName, "aspire.config.json"), """
1285var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json");
1347var modulesDir = Directory.CreateDirectory(Path.Combine(directory.FullName, ".modules"));
1348File.WriteAllText(Path.Combine(modulesDir.FullName, "aspire.ts"), "// generated sdk");
Commands\RunCommandTests.cs (24)
152var logsDirectory = Path.Combine(Path.GetTempPath(), "aspire-cli-tests");
477var appHostProjectPath = Path.Combine(appHostDirectory.FullName, "MyApp.AppHost.csproj");
938var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
948workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
988var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
998workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
1034var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1044workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
1084var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1094workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
1129var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1139workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
1175var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1185workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
1221var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1231workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log"
1505var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log");
Commands\UpdateCommandTests.cs (21)
86var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe");
87var oldBackup1 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890");
88var oldBackup2 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.9876543210");
89var otherFile = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.something");
112var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe");
113var oldBackup = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890");
153var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe");
223return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
296return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
382var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
429var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
470var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
504return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
571return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
637return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
695return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
773return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
818return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")));
930var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
975var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
1008var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
Configuration\AspireConfigFileTests.cs (9)
27var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
47var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
70var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
89var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
103var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
116var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
139var filePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
157Assert.True(File.Exists(Path.Combine(subDir, AspireConfigFile.FileName)));
173File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), "{}");
DotNet\DotNetCliRunnerTests.cs (36)
25return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
32var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
72var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
101var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
129var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
168var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
197var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
226var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
264var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
305var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
383var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
423var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
465var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
512var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
560var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
613var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
680var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
746var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
819var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"));
824var project1File = new FileInfo(Path.Combine(project1Dir.FullName, "Project1.csproj"));
828var project2File = new FileInfo(Path.Combine(project2Dir.FullName, "Project2.csproj"));
866var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
869var referencedProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Service.csproj"));
899var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
945var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
990var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1035var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
1086var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1135var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1183var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
1219var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1398var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1436var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1474var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1514var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Interaction\ConsoleInteractionServiceTests.cs (60)
27var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
40var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
61var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
86var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
111var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
142var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
169var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
194var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
221var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
240var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
254var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
269var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
284var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
306var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
339var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
372var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
399var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
426var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
456var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
485var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
512var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
539var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
565var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
592var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
620var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
647var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
675var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
702var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
731var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true);
760var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Packaging\NuGetConfigMergerSnapshotTests.cs (21)
47var path = Path.Combine(dir.FullName, "nuget.config");
66var executionContext = new CliExecutionContext(root, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
87var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
94var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
116var executionContext = new CliExecutionContext(root, hivesDir, cacheDir2, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
150var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
157var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
179var executionContext = new CliExecutionContext(root, hivesDir, cacheDir3, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
212var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
219var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
241var executionContext = new CliExecutionContext(root, hivesDir, cacheDir4, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
272var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
279var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
301var executionContext = new CliExecutionContext(root, hivesDir, cacheDir5, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
337var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
344var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
Packaging\NuGetConfigMergerTests.cs (16)
24var path = Path.Combine(dir.FullName, "nuget.config");
66var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
90var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
134var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
173var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
213var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
323var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
373var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
442var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
508var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
581var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
611var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
661var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
683var originalContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "nuget.config")).DefaultTimeout();
704var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
726var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
Packaging\PackagingServiceTests.cs (49)
48var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
83var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
127var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
160var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
193var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
225var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
256var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
287var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
318var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
358new CliExecutionContext(tempDir, tempDir, tempDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"),
370var nugetConfigPath = Path.Combine(tempDir.FullName, "nuget.config");
399Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-10167"));
400Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-11832"));
402var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
456Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-12345"));
458var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
494var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
530var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
566var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
616new CliExecutionContext(tempDir, tempDir, tempDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"),
628var nugetConfigPath = Path.Combine(tempDir.FullName, "nuget.config");
647var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
680var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
711var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
756var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
809var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
861var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Projects\FallbackProjectParserTests.cs (14)
25var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
47var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
72var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
97var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
122var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
148var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
187var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj");
209var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs");
233var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs");
263var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs");
286var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs");
310var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs");
333var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs");
355var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.txt");
Projects\ProjectLocatorTests.cs (54)
29return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
37var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
55var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj"));
59var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj"));
63var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"));
89var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj"));
93var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj"));
97var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"));
120var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj"));
125var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"));
161var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj"));
165var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"));
191var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj"));
194var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj"));
209var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
212var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj"));
255var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectFileExtension}"));
270var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
287var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj"));
307var settingsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName));
326var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "MyAppHost.csproj"));
331var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj"));
338var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"));
339var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json"));
361var aspireConfigFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
375var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
400var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs"));
426var appHostFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "apphost.cs"));
436var csprojFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "RegularProject.csproj"));
441var validAppHostFile = new FileInfo(Path.Combine(dirWithOnlyAppHost.FullName, "apphost.cs"));
481var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
501var csprojFile = new FileInfo(Path.Combine(subDir1.FullName, "AppHost.csproj"));
506var appHostFile = new FileInfo(Path.Combine(subDir2.FullName, "apphost.cs"));
542var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
566var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
587var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"));
598var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SomeProject.csproj"));
613var txtFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "readme.txt"));
633var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
638var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs"));
706: Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName);
743var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj"));
797var projectFile1 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project1.csproj"));
799var projectFile2 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project2.csproj"));
834var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "apphost.cs"));
862var projectFile = new FileInfo(Path.Combine(subDirectory.FullName, "Mongo.AppHost.csproj"));
901var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj"));
906var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.cs"));
944var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj"));
948var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs"));
986var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs"));
1009var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
1030var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Projects\ProjectUpdaterTests.cs (51)
30var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj"));
33var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj"));
36var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
140var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj"));
143var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj"));
146var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
271var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj"));
274var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj"));
277var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
421var sharedProjectFile = new FileInfo(Path.Combine(sharedProjectFolder.FullName, "SharedProject.csproj"));
424var projectAFile = new FileInfo(Path.Combine(projectAFolder.FullName, "ProjectA.csproj"));
427var projectBFile = new FileInfo(Path.Combine(projectBFolder.FullName, "ProjectB.csproj"));
430var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "DiamondTest.AppHost.csproj"));
554var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj"));
557var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
559var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
690var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
692var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
792var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
794var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
896return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
925var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
927var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
1038var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1040var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
1162var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1164var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
1276var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1278var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
1387var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1481var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1483var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
1583var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1662var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1744var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs"));
1827var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs"));
1909var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
1995var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
2073var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
2151var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
2258var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
2260var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"));
2382var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2410var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2437var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2469var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2500var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2528var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2559var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
2577var directoryPackagesPropsFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props");
Templating\DotNetTemplateFactoryTests.cs (19)
59var path = Path.Combine(dir.FullName, "nuget.config");
84var nugetConfigPath = Path.Combine(workingDir.FullName, "nuget.config");
116var nugetConfigPath = Path.Combine(workingDir.FullName, "nuget.config");
129var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject"));
154var parentConfigPath = Path.Combine(workingDir.FullName, "nuget.config");
160var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config");
173var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject"));
196var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config");
210var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject"));
223var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config");
227var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config");
240var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject"));
249var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config");
250var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config");
261var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject"));
270var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config");
271var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config");
373var executionContext = new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Utils\AppHostHelperTests.cs (11)
15var homeDirectory = Path.Combine(Path.GetTempPath(), "testuser");
219var socket1 = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.12345");
220var socket2 = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.67890");
225var otherSocket = Path.Combine(backchannelsDir, "auxi.sock.differenthash123.99999");
250var oldFormatSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}");
254var newFormatSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.12345");
279var similarSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}xyz.12345");
298var otherSocket = Path.Combine(backchannelsDir, "auxi.sock.differenthash123.99999");
320var oldFormatSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}");
325var orphanedSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.{deadPid}");
330var liveSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.{currentPid}");
Utils\FileSystemHelperTests.cs (44)
16var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
19File.WriteAllText(Path.Combine(sourceDir.FullName, "file1.txt"), "content1");
20File.WriteAllText(Path.Combine(sourceDir.FullName, "file2.txt"), "content2");
21File.WriteAllText(Path.Combine(sourceDir.FullName, "file3.cs"), "using System;");
28Assert.True(File.Exists(Path.Combine(destDir, "file1.txt")));
29Assert.True(File.Exists(Path.Combine(destDir, "file2.txt")));
30Assert.True(File.Exists(Path.Combine(destDir, "file3.cs")));
32Assert.Equal("content1", File.ReadAllText(Path.Combine(destDir, "file1.txt")));
33Assert.Equal("content2", File.ReadAllText(Path.Combine(destDir, "file2.txt")));
34Assert.Equal("using System;", File.ReadAllText(Path.Combine(destDir, "file3.cs")));
43var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
49File.WriteAllText(Path.Combine(sourceDir.FullName, "root.txt"), "root content");
50File.WriteAllText(Path.Combine(subDir1.FullName, "level1.txt"), "level 1 content");
51File.WriteAllText(Path.Combine(subDir2.FullName, "level2.txt"), "level 2 content");
58Assert.True(File.Exists(Path.Combine(destDir, "root.txt")));
59Assert.True(Directory.Exists(Path.Combine(destDir, "subdir1")));
64Assert.Equal("root content", File.ReadAllText(Path.Combine(destDir, "root.txt")));
75var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "empty_destination");
91var nonExistentSource = Path.Combine(workspace.WorkspaceRoot.FullName, "nonexistent");
92var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
104var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
128var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
153var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
156var binaryFilePath = Path.Combine(sourceDir.FullName, "binary.dat");
165var copiedFilePath = Path.Combine(destDir, "binary.dat");
178var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
185File.WriteAllText(Path.Combine(current.FullName, $"file{i}.txt"), $"content at level {i}");
195currentDest = Path.Combine(currentDest, $"level{i}");
197var filePath = Path.Combine(currentDest, $"file{i}.txt");
209var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
212File.WriteAllText(Path.Combine(sourceDir.FullName, "file1.txt"), "new content 1");
213File.WriteAllText(Path.Combine(sourceDir.FullName, "file2.txt"), "new content 2");
216File.WriteAllText(Path.Combine(subDir.FullName, "project.assets.json"), "new assets");
217File.WriteAllText(Path.Combine(subDir.FullName, "project.csproj.nuget.dgspec.json"), "new dgspec");
221File.WriteAllText(Path.Combine(destDir, "file1.txt"), "old content 1");
222File.WriteAllText(Path.Combine(destDir, "file2.txt"), "old content 2");
224var destSubDir = Directory.CreateDirectory(Path.Combine(destDir, "obj"));
225File.WriteAllText(Path.Combine(destSubDir.FullName, "project.assets.json"), "old assets");
226File.WriteAllText(Path.Combine(destSubDir.FullName, "project.csproj.nuget.dgspec.json"), "old dgspec");
232Assert.Equal("new content 1", File.ReadAllText(Path.Combine(destDir, "file1.txt")));
233Assert.Equal("new content 2", File.ReadAllText(Path.Combine(destDir, "file2.txt")));
244var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination");
247File.WriteAllText(Path.Combine(sourceDir.FullName, "file1.txt"), "new content");
251File.WriteAllText(Path.Combine(destDir, "file1.txt"), "old content");
Aspire.Components.Common.TestUtilities (1)
Aspire.Dashboard.Tests (9)
Aspire.Deployment.EndToEnd.Tests (62)
Aspire.EndToEnd.Tests (35)
tests\Shared\TemplatesTesting\AspireProject.cs (19)
23Path.Combine(BuildEnvironment.TestAssetsPath, "nuget8.config");
32public string ServiceDefaultsProjectPath => Path.Combine(RootDir, $"{Id}.ServiceDefaults");
33public string TestsProjectDirectory => Path.Combine(RootDir, $"{Id}.Tests");
48LogPath = Path.Combine(_buildEnv.LogRootPath, Id);
50AppHostProjectDirectory = Path.Combine(RootDir, $"{Id}.AppHost");
65File.WriteAllText(Path.Combine(dir, "Directory.Build.props"), "<Project />");
66File.WriteAllText(Path.Combine(dir, "Directory.Build.targets"), "<Project />");
72string targetNuGetConfigPath = Path.Combine(dir, "nuget.config");
93projectDir = Path.Combine(rootDir, id);
97rootDir = projectDir = Path.Combine(BuildEnvironment.TestRootPath, id);
100string logPath = Path.Combine(BuildEnvironment.ForDefaultFramework.LogRootPath, id);
107File.WriteAllText(Path.Combine(rootDir, "Directory.Build.props"), "<Project />");
108File.WriteAllText(Path.Combine(rootDir, "Directory.Build.targets"), "<Project />");
153File.Copy(Path.Combine(BuildEnvironment.TestAssetsPath, "EndPointWriterHook_cs"), Path.Combine(project.AppHostProjectDirectory, "EndPointWriterHook.cs"));
154string programCsPath = Path.Combine(project.AppHostProjectDirectory, "AppHost.cs");
332workingDirectory ??= Path.Combine(RootDir, $"{Id}.AppHost");
336var res = await restoreCmd.ExecuteAsync($"restore \"-bl:{Path.Combine(LogPath!, $"{Id}-restore.binlog")}\" /p:TreatWarningsAsErrors=true");
339var buildArgs = $"build \"-bl:{Path.Combine(LogPath!, $"{Id}-build.binlog")}\" /p:TreatWarningsAsErrors=true";
Aspire.Hosting (46)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure (12)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.Kusto.Tests (2)
Aspire.Hosting.Azure.Tests (33)
Aspire.Hosting.CodeGeneration.Go (2)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.Java (1)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python (3)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
Aspire.Hosting.CodeGeneration.Rust (2)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript (2)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Containers.Tests (11)
Aspire.Hosting.Docker (8)
Aspire.Hosting.Docker.Tests (49)
DockerComposePublisherTests.cs (37)
97var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
98var envPath = Path.Combine(tempDir.Path, ".env");
134var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
135var envPath = Path.Combine(tempDir.Path, ".env");
162var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
191var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
240var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
242var envPath = Path.Combine(tempDir.Path, ".env");
253var envFilePath = Path.Combine(tempDir.Path, ".env");
284var envFilePath = Path.Combine(tempDir.Path, ".env");
339var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
365var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
397var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
426var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
452var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
480var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
512var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
537var dockerfilePath = Path.Combine(tempDir.Path, "testcontainer.Dockerfile");
561var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
588var envFileContent = await File.ReadAllTextAsync(Path.Combine(tempDir.Path, ".env.Production"));
617var envFilePath = Path.Combine(tempDir.Path, ".env.Staging");
651var envFileContent = await File.ReadAllTextAsync(Path.Combine(tempDir.Path, ".env.Production"));
673var envFilePath = Path.Combine(tempDir.Path, ".env.Production");
707var envFilePath = Path.Combine(tempDir.Path, ".env.Staging");
738var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
739var envPath = Path.Combine(tempDir.Path, ".env");
765var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
796var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
797var envPath = Path.Combine(tempDir.Path, ".env");
835var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
836var envPath = Path.Combine(tempDir.Path, ".env");
883var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
884var envPath = Path.Combine(tempDir.Path, ".env");
917var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
918var envPath = Path.Combine(tempDir.Path, ".env");
961var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
995var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.JavaScript (18)
JavaScriptHostingExtensions.cs (18)
155if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile")))
259if (File.Exists(Path.Combine(appDirectory, "package.json")))
338appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory));
392if (File.Exists(Path.Combine(appDirectory, "Dockerfile")))
515appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory));
739var hasBunLock = File.Exists(Path.Combine(workingDirectory, "bun.lock")) ||
740File.Exists(Path.Combine(workingDirectory, "bun.lockb"));
745if (File.Exists(Path.Combine(workingDirectory, "bun.lock")))
749if (File.Exists(Path.Combine(workingDirectory, "bun.lockb")))
786File.Exists(Path.Combine(resource.Resource.WorkingDirectory, "package-lock.json"))
803var hasYarnLock = File.Exists(Path.Combine(workingDirectory, "yarn.lock"));
804var hasYarnrc = File.Exists(Path.Combine(workingDirectory, ".yarnrc.yml"));
805var hasYarnBerryDir = Directory.Exists(Path.Combine(workingDirectory, ".yarn"));
878var hasPnpmLock = File.Exists(Path.Combine(workingDirectory, "pnpm-lock.yaml"));
1192var nvmrcPath = Path.Combine(workingDirectory, ".nvmrc");
1204var nodeVersionPath = Path.Combine(workingDirectory, ".node-version");
1216var packageJsonPath = Path.Combine(workingDirectory, "package.json");
1241var toolVersionsPath = Path.Combine(workingDirectory, ".tool-versions");
Aspire.Hosting.JavaScript.Tests (58)
AddJavaScriptAppTests.cs (9)
20var appDir = Path.Combine(tempDir.Path, "js");
29var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile");
58var appDir = Path.Combine(tempDir.Path, "js");
63File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty);
72var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile");
87var appDir = Path.Combine(tempDir.Path, "pnpm-app");
100await File.WriteAllTextAsync(Path.Combine(appDir, "package.json"), packageJson);
108var dockerfilePath = Path.Combine(tempDir.Path, "pnpm-app.Dockerfile");
120var dockerfileInContext = Path.Combine(appDir, "Dockerfile");
AddNodeAppTests.cs (19)
101var appDir = Path.Combine(tempDir.Path, "js");
106File.WriteAllText(Path.Combine(appDir, "package.json"), "{}");
107File.WriteAllText(Path.Combine(appDir, "package-lock.json"), "{}");
114var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile");
169var appDir = Path.Combine(tempDir.Path, "js");
171File.WriteAllText(Path.Combine(appDir, "package.json"), "{}");
183var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile");
216var appDir = Path.Combine(tempDir.Path, "js");
218File.WriteAllText(Path.Combine(appDir, "package.json"), "{}");
229var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "js.Dockerfile"));
238File.WriteAllText(Path.Combine(tempDir.Path, "app.js"), "{}");
265File.WriteAllText(Path.Combine(tempDir.Path, "package.json"), "{}");
338File.WriteAllText(Path.Combine(appDirectory, "package.json"), packageJsonContent);
339File.WriteAllText(Path.Combine(appDirectory, "app.js"), appContent);
364var nodeDockerfilePath = Path.Combine(outputDir.Path, "nodeapp.Dockerfile");
394File.WriteAllText(Path.Combine(appDirectory, "package.json"), packageJsonContent);
395File.WriteAllText(Path.Combine(appDirectory, "app.js"), appContent);
420var nodeDockerfilePath = Path.Combine(outputDir.Path, "nodeapp.Dockerfile");
559File.WriteAllText(Path.Combine(tempDir.Path, "app.js"), "console.log('hello');");
AddViteAppTests.cs (20)
22var viteDir = Path.Combine(tempDir.Path, "vite");
26File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty");
57var dockerfilePath = Path.Combine(tempDir.Path, "vite.Dockerfile");
91File.WriteAllText(Path.Combine(tempDir.Path, "package.json"), packageJson);
99var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
111File.WriteAllText(Path.Combine(tempDir.Path, ".nvmrc"), "18.20.0");
119var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
131File.WriteAllText(Path.Combine(tempDir.Path, ".node-version"), "v21.5.0");
139var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
156File.WriteAllText(Path.Combine(tempDir.Path, ".tool-versions"), toolVersions);
164var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
182var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
198File.WriteAllText(Path.Combine(tempDir.Path, ".nvmrc"), versionString);
206var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
228var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile"));
290var viteConfigPath = Path.Combine(tempDir.Path, "vite.config.js");
351var viteConfigPath = Path.Combine(tempDir.Path, "vite.config.js");
455var viteConfigPath = Path.Combine(tempDir.Path, "vite.config.js");
514var viteConfigPath = Path.Combine(subDir, "vite.config.js");
589var viteConfigPath = Path.Combine(tempDir.Path, configFileName);
PackageInstallationTests.cs (7)
458File.WriteAllText(Path.Combine(tempDir.Path, "package-lock.json"), "empty");
485File.WriteAllText(Path.Combine(tempDir.Path, "yarn.lock"), "empty");
506File.WriteAllText(Path.Combine(tempDir.Path, "yarn.lock"), "empty");
507File.WriteAllText(Path.Combine(tempDir.Path, ".yarnrc.yml"), "empty");
522File.WriteAllText(Path.Combine(tempDir.Path, "yarn.lock"), "empty");
538File.WriteAllText(Path.Combine(tempDir.Path, "pnpm-lock.yaml"), "empty");
553File.WriteAllText(Path.Combine(tempDir.Path, "bun.lock"), "empty");
Aspire.Hosting.Kafka.Tests (2)
Aspire.Hosting.Keycloak.Tests (4)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Kubernetes.Tests (14)
KubernetesPublisherTests.cs (11)
63var filePath = Path.Combine(tempDir.Path, expectedFile);
102var deploymentPath = Path.Combine(tempDir.Path, "templates/service/deployment.yaml");
158var filePath = Path.Combine(tempDir.Path, expectedFile);
212var filePath = Path.Combine(tempDir.Path, expectedFile);
267var filePath = Path.Combine(tempDir.Path, expectedFile);
299var dockerfilePath = Path.Combine(tempDir.Path, "testcontainer.Dockerfile");
394var filePath = Path.Combine(tempDir.Path, expectedFile);
438var filePath = Path.Combine(tempDir.Path, expectedFile);
495var filePath = Path.Combine(tempDir.Path, expectedFile);
549var filePath = Path.Combine(tempDir.Path, expectedFile);
606var filePath = Path.Combine(tempDir.Path, expectedFile);
Aspire.Hosting.Maui (3)
Aspire.Hosting.Maui.Tests (2)
Aspire.Hosting.Milvus.Tests (1)
Aspire.Hosting.MongoDB.Tests (5)
Aspire.Hosting.MySql.Tests (4)
Aspire.Hosting.Oracle.Tests (2)
Aspire.Hosting.PostgreSQL.Tests (7)
Aspire.Hosting.Python (15)
PythonAppResourceBuilderExtensions.cs (13)
428if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile")))
506if (File.Exists(Path.Combine(appDirectoryFullPath, "pyproject.toml")) ||
507File.Exists(Path.Combine(appDirectoryFullPath, "requirements.txt")))
526var uvLockPath = Path.Combine(resource.WorkingDirectory, "uv.lock");
635var requirementsTxtPath = Path.Combine(resource.WorkingDirectory, "requirements.txt");
675var pyprojectTomlPath = Path.Combine(resource.WorkingDirectory, "pyproject.toml");
770return Path.Combine(appDirectoryFullPath, virtualEnvironmentPath);
778var venvPath = Path.Combine(currentDirectory, virtualEnvironmentPath);
808return Path.Combine(appDirectoryFullPath, virtualEnvironmentPath);
1163if (File.Exists(Path.Combine(workingDirectory, "pyproject.toml")))
1168else if (File.Exists(Path.Combine(workingDirectory, "requirements.txt")))
1275var fullPath = Path.Combine(directory, commandWithExt);
1288var fullPath = Path.Combine(directory, command);
Aspire.Hosting.Python.Tests (102)
AddPythonAppTests.cs (95)
28var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json");
66var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json");
266var projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
289var scriptPath = Path.Combine(projectDirectory, "main.py");
292var requirementsPath = Path.Combine(projectDirectory, "requirements.txt");
296var dockerFilePath = Path.Combine(projectDirectory, "Dockerfile");
419var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path));
531var appVenvPath = Path.Combine(tempAppDir.Path, ".venv");
544var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempAppDir.Path));
545var expectedVenvPath = Path.Combine(expectedProjectDirectory, ".venv");
561var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName);
565var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv");
607var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName);
611var appVenvPath = Path.Combine(appDirPath, ".venv");
614var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv");
663var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempAppDir.Path));
664var expectedVenvPath = Path.Combine(expectedProjectDirectory, ".venv");
680var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName);
684var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv");
688var customVenvPath = Path.Combine(appDirPath, "custom-venv");
740var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path));
990var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path));
1024var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path));
1058var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path));
1270File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent);
1271File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent);
1272File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1274var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json");
1293var scriptDockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile");
1296var moduleDockerfilePath = Path.Combine(outputDir.Path, "module-app.Dockerfile");
1299var executableDockerfilePath = Path.Combine(outputDir.Path, "executable-app.Dockerfile");
1335File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent);
1337File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1339var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json");
1358var scriptDockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile");
1361var moduleDockerfilePath = Path.Combine(outputDir.Path, "module-app.Dockerfile");
1364var executableDockerfilePath = Path.Combine(outputDir.Path, "executable-app.Dockerfile");
1397var appDirectory = Path.Combine(tempDir.Path, "myapp");
1399var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv");
1435var appDirectory = Path.Combine(tempDir.Path, "myapp");
1437var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv");
1475var appDirectory = Path.Combine(tempDir.Path, "myapp");
1477var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv");
1512var appDirectory = Path.Combine(tempDir.Path, "myapp");
1514var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv");
1545var appDirectory = Path.Combine(tempDir.Path, "myapp");
1547var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv");
1653File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent);
1654File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent);
1655File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1670var dockerfilePath = Path.Combine(outputDir.Path, "custom-images-app.Dockerfile");
1699File.WriteAllText(Path.Combine(projectDirectory, "requirements.txt"), requirementsContent);
1700File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1711var dockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile");
1748File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1749File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent);
1760var dockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile");
1780File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1791var dockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile");
1813File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent);
1814File.WriteAllText(Path.Combine(projectDirectory, ".python-version"), pythonVersionContent);
1827var scriptDockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile");
1830var moduleDockerfilePath = Path.Combine(outputDir.Path, "module-app.Dockerfile");
1833var executableDockerfilePath = Path.Combine(outputDir.Path, "executable-app.Dockerfile");
1862var scriptPath = Path.Combine(tempDir.Path, scriptName);
1866var pyprojectPath = Path.Combine(tempDir.Path, "pyproject.toml");
1896var scriptPath = Path.Combine(tempDir.Path, scriptName);
1900var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
1931var scriptPath = Path.Combine(tempDir.Path, scriptName);
1935var pyprojectPath = Path.Combine(tempDir.Path, "pyproject.toml");
1937var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
1961var scriptPath = Path.Combine(tempDir.Path, scriptName);
1985var scriptPath = Path.Combine(tempDir.Path, scriptName);
2008var scriptPath = Path.Combine(tempDir.Path, scriptName);
2012var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2036var scriptPath = Path.Combine(tempDir.Path, scriptName);
2040var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2065var scriptPath = Path.Combine(tempDir.Path, "main.py");
2093var scriptPath = Path.Combine(tempDir.Path, "main.py");
2097var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2136var scriptPath = Path.Combine(tempDir.Path, "main.py");
2139var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2166var scriptPath = Path.Combine(tempDir.Path, "main.py");
2169var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2200var scriptPath = Path.Combine(tempDir.Path, "main.py");
2203var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2236var scriptPath = Path.Combine(tempDir.Path, "main.py");
2239var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2266var scriptPath = Path.Combine(tempDir.Path, "main.py");
2269var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2298var scriptPath = Path.Combine(tempDir.Path, "main.py");
2301var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2330var scriptPath = Path.Combine(tempDir.Path, "main.py");
2333var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt");
2366var scriptPath = Path.Combine(tempDir.Path, "main.py");
Aspire.Hosting.Qdrant.Tests (1)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (3)
Aspire.Hosting.Seq.Tests (2)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (121)
Dashboard\DashboardLifecycleHookTests.cs (10)
283var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll");
284var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json");
372var dashboardExe = Path.Combine(tempDir, "Aspire.Dashboard.exe");
373var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll");
374var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json");
441var dashboardExe = Path.Combine(tempDir, "Aspire.Dashboard");
442var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll");
443var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json");
510var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll");
511var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json");
MSBuildTests.cs (33)
23var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost");
26File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"),
55File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
80var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost");
83File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"),
111File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
122var appHostMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "_AppHost.ProjectMetadata.g.cs"));
123var appMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "App.ProjectMetadata.g.cs"));
150File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"),
160File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"),
175var libraryDirectory = Path.Combine(basePath, name);
178File.WriteAllText(Path.Combine(libraryDirectory, $"{name}.csproj"),
190File.WriteAllText(Path.Combine(libraryDirectory, "Class1.cs"),
202var appDirectory = Path.Combine(basePath, name);
205File.WriteAllText(Path.Combine(appDirectory, $"{name}.csproj"),
216File.WriteAllText(Path.Combine(appDirectory, "Program.cs"),
269var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost");
272File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"),
301File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
328var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost");
331File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"),
360File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
381var projectDirectory = Path.Combine(tempDirectory.Path, "MyHostingExtension");
384File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"),
401File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"),
430var projectDirectory = Path.Combine(tempDirectory.Path, "MyHostingExtension");
433File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"),
450File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"),
478File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"),
486File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"),
511var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost");
514File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"),
542File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
PathLookupHelperTests.cs (32)
15Path.Combine("/usr/bin", "mycommand")
22Assert.Equal(Path.Combine("/usr/bin", "mycommand"), result);
70Path.Combine("/first/path", "mycommand"),
71Path.Combine("/second/path", "mycommand")
78Assert.Equal(Path.Combine("/first/path", "mycommand"), result);
85var dir = Path.Combine("testdir", "bin");
86var expectedPath = Path.Combine(dir, "mycommand");
103var dir = Path.Combine("testdir", "bin");
104var expectedPath = Path.Combine(dir, "code.CMD");
122var dir = Path.Combine("testdir", "bin");
123var exePath = Path.Combine(dir, "code.EXE");
124var cmdPath = Path.Combine(dir, "code.CMD");
146var dir = Path.Combine("testdir", "bin");
147var exactPath = Path.Combine(dir, "code");
148var cmdPath = Path.Combine(dir, "code.CMD");
167var dir = Path.Combine("testdir", "bin");
168var exactPath = Path.Combine(dir, "mytool");
186var dir = Path.Combine("testdir", "bin");
187var expectedPath = Path.Combine(dir, "code.CMD");
205var dir = Path.Combine("testdir", "bin");
220var dir = Path.Combine("testdir", "bin");
221var cmdPath = Path.Combine(dir, "code.CMD");
243Path.Combine(dir, "code.cmd")
260Path.Combine(dir, "code.cmd")
277var dir1 = Path.Combine("first", "bin");
278var dir2 = Path.Combine("second", "bin");
279var dir1CmdPath = Path.Combine(dir1, "code.CMD");
280var dir2ExePath = Path.Combine(dir2, "code.EXE");
299var dir1 = Path.Combine("first", "bin");
300var dir2 = Path.Combine("second", "bin");
301var dir1ExactPath = Path.Combine(dir1, "mytool");
302var dir2ExePath = Path.Combine(dir2, "mytool.EXE");
Schema\SchemaTests.cs (9)
60var tempContextPath = Path.Combine(tempPath, Path.GetRandomFileName());
62var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile");
72var tempContextPath = Path.Combine(tempPath, Path.GetRandomFileName());
74var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile");
90var tempContextPath = Path.Combine(tempPath, Path.GetRandomFileName());
92var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile");
123var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile");
219var relativePath = Path.Combine("Schema", "aspire-8.0.json");
232var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: Path.Combine(manifestDir, "not-used.json"), step: "publish-json-manifest");
Aspire.Hosting.Valkey.Tests (2)
Aspire.Hosting.Yarp.Tests (2)
Aspire.Playground.Tests (2)
Aspire.Templates.Tests (44)
tests\Shared\TemplatesTesting\AspireProject.cs (19)
23Path.Combine(BuildEnvironment.TestAssetsPath, "nuget8.config");
32public string ServiceDefaultsProjectPath => Path.Combine(RootDir, $"{Id}.ServiceDefaults");
33public string TestsProjectDirectory => Path.Combine(RootDir, $"{Id}.Tests");
48LogPath = Path.Combine(_buildEnv.LogRootPath, Id);
50AppHostProjectDirectory = Path.Combine(RootDir, $"{Id}.AppHost");
65File.WriteAllText(Path.Combine(dir, "Directory.Build.props"), "<Project />");
66File.WriteAllText(Path.Combine(dir, "Directory.Build.targets"), "<Project />");
72string targetNuGetConfigPath = Path.Combine(dir, "nuget.config");
93projectDir = Path.Combine(rootDir, id);
97rootDir = projectDir = Path.Combine(BuildEnvironment.TestRootPath, id);
100string logPath = Path.Combine(BuildEnvironment.ForDefaultFramework.LogRootPath, id);
107File.WriteAllText(Path.Combine(rootDir, "Directory.Build.props"), "<Project />");
108File.WriteAllText(Path.Combine(rootDir, "Directory.Build.targets"), "<Project />");
153File.Copy(Path.Combine(BuildEnvironment.TestAssetsPath, "EndPointWriterHook_cs"), Path.Combine(project.AppHostProjectDirectory, "EndPointWriterHook.cs"));
154string programCsPath = Path.Combine(project.AppHostProjectDirectory, "AppHost.cs");
332workingDirectory ??= Path.Combine(RootDir, $"{Id}.AppHost");
336var res = await restoreCmd.ExecuteAsync($"restore \"-bl:{Path.Combine(LogPath!, $"{Id}-restore.binlog")}\" /p:TreatWarningsAsErrors=true");
339var buildArgs = $"build \"-bl:{Path.Combine(LogPath!, $"{Id}-build.binlog")}\" /p:TreatWarningsAsErrors=true";
Aspire.TestUtilities (2)
aspire-managed (6)
Binding.UDS.IntegrationTests (2)
CodeStyleConfigFileGenerator (3)
ConfigurationSchemaGenerator.Tests (2)
crossgen2 (2)
Crossgen2Tasks (3)
csc (8)
CSharpSyntaxGenerator (4)
csi (1)
datacollector (3)
datacollector.arm64 (3)
dotnet (102)
Commands\Project\Convert\ProjectConvertCommand.cs (10)
65string entryPointOutputDir = hasRefs ? Path.Combine(targetDirectory, entryPointName) : targetDirectory;
240string targetItemFullPath = Path.Combine(outputDirectory, item.RelativePath);
280var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/')));
289var refTargetDirectory = Path.Combine(targetDirectory, refName);
309var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/')));
318var refTargetDirectory = Path.Combine(targetDirectory, refName);
418.Select(item => (item.ItemType, item.RelativePath, OutputFullPath: Path.GetFullPath(Path.Combine(outputDirectory, item.RelativePath))))
515if (Directory.Exists(Path.Combine(sourceDirectory, project.ExpandedName)))
521project = project.WithName(Path.GetRelativePath(relativeTo: outputDirectory, path: Path.Combine(sourceDirectory, project.Name)), CSharpDirective.Project.NameKind.Final);
530var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/')));
Commands\Workload\Install\FileBasedInstaller.cs (8)
136var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{WorkloadManifestUpdater.WorkloadSetManifestId}-{workloadSetPackageVersion}-extracted");
178var packagePath = Path.Combine(offlineCache.Value.Value, $"{packInfo.ResolvedPackageId}.{packInfo.Version}.nupkg");
206var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{packInfo.ResolvedPackageId}-{packInfo.Version}-extracted");
320packagePath = Path.Combine(offlineCache.Value.Value, $"{packageId}.{packageVersion}.nupkg");
330tempBackupDir = Path.Combine(_tempPackagesDir.Value, $"{packageId} - {packageVersion}-backup");
592string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, _workloadRootDir), "default.json");
636string logFile = Path.Combine(historyDirectory, $"{workloadHistoryRecord.TimeStarted:yyyy'-'MM'-'dd'T'HHmmss}_{workloadHistoryRecord.CommandName}.json");
681FileAccessRetrier.RetryOnMoveAccessFailure(() => DirectoryPath.MoveDirectory(Path.Combine(extractionPath, "data"), targetPath));
Commands\Workload\Install\WorkloadManifestUpdater.cs (8)
141string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, dotnetDir), "default.json");
194var workloadSetVersionFilePath = Path.Combine(advertisedPath, Constants.workloadSetVersionFileName);
355File.WriteAllText(Path.Combine(adManifestPath, "AdvertisedManifestFeatureBand.txt"), band.ToString());
368File.WriteAllText(Path.Combine(adManifestPath, Constants.workloadSetVersionFileName), workloadSetVersion);
424var manifestPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "WorkloadManifest.json");
434var adManifestFeatureBandPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "AdvertisedManifestFeatureBand.txt");
532private string GetAdvertisingManifestSentinelPath(SdkFeatureBand featureBand) => Path.Combine(_userProfileDir, $".workloadAdvertisingManifestSentinel{featureBand}");
536private static string GetAdvertisingWorkloadsFilePath(string userProfileDir, SdkFeatureBand featureBand) => Path.Combine(userProfileDir, $".workloadAdvertisingUpdates{featureBand}");
ToolPackage\ToolPackageDownloaderBase.cs (5)
60_runtimeJsonPath = runtimeJsonPathForTests ?? Path.Combine(AppContext.BaseDirectory!, "RuntimeIdentifierGraph.json");
284CreateAssetFile(packageId, packageVersion, packageDownloadDir, Path.Combine(assetFileDirectory.Value, ToolPackageInstance.AssetsFileName), _runtimeJsonPath, verbosity, targetFramework);
294CreateAssetFile(ridSpecificPackage, packageVersion, packageDownloadDir, Path.Combine(assetFileDirectory.Value, ToolPackageInstance.RidSpecificPackageAssetsFileName), _runtimeJsonPath, verbosity, targetFramework);
311CreateAssetFile(packageId, packageVersion, _localToolDownloadDir, Path.Combine(_localToolAssetDir.Value, ToolPackageInstance.AssetsFileName), _runtimeJsonPath, verbosity, targetFramework);
321Path.Combine(_localToolAssetDir.Value, ToolPackageInstance.RidSpecificPackageAssetsFileName), _runtimeJsonPath, verbosity, targetFramework);
dotnet-dev-certs (8)
dotnet-format (5)
dotnet-Microsoft.XmlSerializer.Generator (1)
dotnet-suggest (9)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (38)
Shared\MSBuildProj.cs (9)
67public string FullPath { get { return Path.Combine(DirectoryPath, FileName); } }
316fullPath = new FileInfo(Path.Combine(msbuildProj.DirectoryPath, binReference)).FullName;
338fullPath = Path.Combine(fullPath, binReference);
340else if (Directory.Exists(Path.Combine(msbuildProj.DirectoryPath, fullPath)))
427string filePath = Path.Combine(dirPath, DirBuildProps);
563new XAttribute("Include", Path.Combine(basePath, $"{framework}\\**")),
881outputPath = Path.Combine(this.DirectoryPath, outputPath.Trim(new char[] { '\"' }));
885Path.Combine(outputPath, $"{Path.GetFileNameWithoutExtension(this.FileName)}.deps.json") :
919dependency = ProjectDependency.FromAssembly(Path.Combine(outputPath, assetPath));
dotnet-svcutil-lib.Tests (68)
E2ETests.cs (9)
20this_TestGroupBaselinesDir = Path.Combine(g_BaselinesDir, this_TestCaseName);
21this_TestGroupOutputDir = Path.Combine(g_TestResultsDir, this_TestCaseName);
22this_TestGroupBootstrapDir = Path.Combine(g_TestBootstrapDir, this_TestCaseName);
92Directory.CreateDirectory(Path.Combine(this_TestCaseOutputDir, "SvcutilBootstrapper"));
214var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference");
228var typeReuseProjectsPath = Path.Combine(g_TestCasesDir, "TypeReuse");
250Directory.CreateDirectory(Path.Combine(this_TestCaseBootstrapDir, "SvcutilBootstrapper"));
252var uri = PathHelper.GetRelativePath(Path.Combine(this_TestGroupOutputDir, "TypeReuseSvc.wsdl"), new DirectoryInfo(this_TestCaseOutputDir));
374File.Copy(f, Path.Combine(this_TestCaseProject.DirectoryPath, Path.GetFileName(f)));
GlobalToolTests.cs (20)
90Directory.CreateDirectory(Path.Combine(this_TestCaseOutputDir, "SvcutilBootstrapper"));
113File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.cs"), Path.Combine(this_TestCaseOutputDir, "FullFramework.cs"), true);
114File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.csproj"), Path.Combine(this_TestCaseOutputDir, "FullFramework.csproj"), true);
117var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference");
134this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testCaseName);
136this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName);
137this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{testCaseName}.log");
138this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testCaseName);
141File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, "Program.cs"), Path.Combine(this_TestCaseOutputDir, "Program.cs"), true);
142File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, $"{testCaseName}.csproj"), Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), true);
143this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), null, CancellationToken.None);
149var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference");
162this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testClientFolder);
165this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName);
166this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{this_TestCaseName}.log");
167this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testClientFolder);
170FileUtil.CopyDirectory(Path.Combine(g_TestCasesDir, this_TestCaseName), this_TestGroupOutputDir, true);
171this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None);
179var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference");
201var paramsFilePath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.params.json");
TestInit.cs (26)
60File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.props"), "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" />");
61File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.targets"), "<Project></Project>");
93var filePath = Path.Combine(this_TestGroupProjDir, this_TestGroupProjectName);
111var projectPath = Path.Combine(outputDir, $"{projectName}.csproj");
112var programPath = Path.Combine(outputDir, $"{projectName}.cs");
144g_TestResultsDir = Path.Combine(g_TestOutputDir, "TestResults");
145g_TestBootstrapDir = Path.Combine(g_TestOutputDir, "TestBootstrap");
146g_TestCasesDir = Path.Combine(vsTestsRoot, "TestCases");
147g_BaselinesDir = Path.Combine(vsTestsRoot, "Baselines");
173File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.props"), "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" />");
174File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.targets"), "<Project></Project>");
210var projectPath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj");
234var projectPath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj");
242this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testCaseName);
247this_TestCaseBootstrapDir = Path.Combine(this_TestGroupBootstrapDir, testCaseName);
250this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{testCaseName}.log");
266this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testCaseName);
267var linuxBaselinePath = Path.Combine(this_TestCaseBaselinesDir, "Linux");
268if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile))))
353var linuxBaselinePath = Path.Combine(this_TestCaseBaselinesDir, "Linux");
354if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile))))
428var expected = Path.Combine(baselineDir, relativePath);
446var globalScriptPath = Path.Combine(g_TestOutputDir, @"TestScripts\deleteAll.cmd");
537if (!Directory.Exists(Path.Combine(vstestDir, "TestCases")))
606File.WriteAllText(Path.Combine(directory, "global.json"), globalConfig);
624File.WriteAllText(Path.Combine(g_TestOutputDir, "nuget.config"), nugetConfigText.Replace("$svcutilTestFeed$", g_SvcutilNugetFeed));
DotnetTool.AppHost (1)
dotnet-user-jwts (11)
dotnet-user-secrets (5)
dotnet-watch (7)
GenerateAnalyzerNuspec (17)
Program.cs (17)
147string assemblyPathForNuspec = Path.Combine(assemblyFolder, assembly);
158var resourceAssemblyFullPath = Path.Combine(directory, resourceAssemblyName);
163string targetForNuspec = Path.Combine(target, directoryName);
174var fileWithPath = Path.IsPathRooted(file) ? file : Path.Combine(projectDir, file);
180readmeFile = Path.IsPathRooted(readmeFile) ? readmeFile : Path.GetFullPath(Path.Combine(projectDir, readmeFile));
194result.AppendLine(FileElement(fileWithPath, Path.Combine("lib", tfm)));
216var fileWithPath = Path.Combine(folderPath, file);
217var targetPath = tfms.Length > 1 ? Path.Combine(folder, tfm) : folder;
224result.AppendLine(FileElement(Path.Combine(assetsDir, "Install.ps1"), "tools"));
225result.AppendLine(FileElement(Path.Combine(assetsDir, "Uninstall.ps1"), "tools"));
234result.AppendLine(FileElement(Path.Combine(rulesetsDir, ruleset), "rulesets"));
246result.AppendLine(FileElement(Path.Combine(directory, editorconfig), $"editorconfig\\{directoryName}"));
257result.AppendLine(FileElement(Path.Combine(globalAnalyzerConfigsDir, globalconfig), $"buildTransitive\\config"));
268var fileWithPath = Path.Combine(analyzerDocumentationFileDir, analyzerDocumentationFileName);
277var fileWithPath = Path.Combine(analyzerSarifFileDir, analyzerSarifFileName);
286var fileWithPath = Path.Combine(analyzerConfigurationFileDir, analyzerConfigurationFileName);
293result.AppendLine(FileElement(Path.Combine(assetsDir, "ThirdPartyNotices.txt"), ""));
GenerateDocumentationAndConfigFiles (17)
Program.cs (12)
433var fileWithPath = Path.Combine(directory.FullName, args.PropsFileName);
442fileWithPath = Path.Combine(directory.FullName, args.PropsFileToDisableNetAnalyzersInNuGetPackageName);
544var fileWithPath = Path.Combine(directory.FullName, args.AnalyzerDocumentationFileName);
640var fileWithPath = Path.Combine(directory.FullName, args.AnalyzerSarifFileName);
734Validate(Path.Combine(directory.FullName, args.AnalyzerSarifFileName), stringWriter.ToString(), fileNamesWithValidationFailures);
776var fileWithPath = Path.Combine(directory.FullName, "RulesMissingDocumentation.md");
1081return Path.Combine(assemblyDir, assembly);
1112var rulesetFilePath = Path.Combine(directory.FullName, rulesetFileName);
1176var directory = Directory.CreateDirectory(Path.Combine(analyzerEditorconfigsDir, editorconfigFolder));
1177var editorconfigFilePath = Path.Combine(directory.FullName, ".editorconfig");
1400var configFilePath = Path.Combine(directory.FullName, fileName.ToLowerInvariant());
1612var fileWithPath = Path.Combine(directory.FullName, targetsFileName);
ilasm (3)
ilc (2)
ILCompiler.Compiler (1)
ILCompiler.Diagnostics (3)
ILCompiler.ReadyToRun (4)
illink (11)
Infrastructure.Common (1)
Infrastructure.Tests (147)
ExtractTestPartitions\ExtractTestPartitionsTests.cs (21)
30var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
36var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
55var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
61var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
76var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
82var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
100var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
103var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
118var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
125var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
143var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
150var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
166var nonExistentPath = Path.Combine(_tempDir.Path, "DoesNotExist.dll");
167var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
192var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
212var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
217var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
234var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
241var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
259var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
266var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
PowerShellScripts\BuildTestMatrixTests.cs (60)
32var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
36Path.Combine(artifactsDir, "MyProject.tests-metadata.json"),
41var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
62var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
66Path.Combine(artifactsDir, "ProjectA.tests-metadata.json"),
71Path.Combine(artifactsDir, "ProjectB.tests-metadata.json"),
75var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
94var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
98Path.Combine(artifactsDir, "SplitProject.tests-metadata.json"),
104Path.Combine(artifactsDir, "SplitProject.tests-partitions.json"),
107var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
135var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
139Path.Combine(artifactsDir, "ClassSplitProject.tests-metadata.json"),
145Path.Combine(artifactsDir, "ClassSplitProject.tests-partitions.json"),
148var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
171var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
176Path.Combine(artifactsDir, "NoTimeouts.tests-metadata.json"),
180var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
199var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
203Path.Combine(artifactsDir, "CustomTimeouts.tests-metadata.json"),
209var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
228var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
232Path.Combine(artifactsDir, "NeedsNugets.tests-metadata.json"),
238Path.Combine(artifactsDir, "NoNugets.tests-metadata.json"),
243var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
262var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
266Path.Combine(artifactsDir, "FilterTest.tests-metadata.json"),
271Path.Combine(artifactsDir, "FilterTest.tests-partitions.json"),
274var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
292var emptyArtifactsDir = Path.Combine(_tempDir.Path, "empty-artifacts");
295var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
312var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
316Path.Combine(artifactsDir, "SplitProject.tests-metadata.json"),
326Path.Combine(artifactsDir, "SplitProject.tests-partitions.json"),
329var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
357var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
361Path.Combine(artifactsDir, "SdkProject.tests-metadata.json"),
366var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
384var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
388Path.Combine(artifactsDir, "LinuxOnly.tests-metadata.json"),
393var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
412var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
416Path.Combine(artifactsDir, "OsRestrictedSplit.tests-metadata.json"),
423Path.Combine(artifactsDir, "OsRestrictedSplit.tests-partitions.json"),
426var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
449var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
453Path.Combine(artifactsDir, "CustomRunner.tests-metadata.json"),
458var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
478var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
482Path.Combine(artifactsDir, "NoRunner.tests-metadata.json"),
486var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
504var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
508Path.Combine(artifactsDir, "SplitRunner.tests-metadata.json"),
515Path.Combine(artifactsDir, "SplitRunner.tests-partitions.json"),
518var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
540var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
544Path.Combine(artifactsDir, "ClassRunner.tests-metadata.json"),
555Path.Combine(artifactsDir, "ClassRunner.tests-partitions.json"),
558var outputFile = Path.Combine(_tempDir.Path, "matrix.json");
596if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (44)
38var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
41var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
65var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
68var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
91var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
94var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
115var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
118var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
141var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
144var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
168var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
171var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
199var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
202var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
238var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
241var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
266var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
269var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
283var nonExistentFile = Path.Combine(_tempDir.Path, "does-not-exist.json");
284var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
302var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
305var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
328var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
331var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
354var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
357var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
387var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
390var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
414var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
417var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
453var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
456var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
487var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json");
490var outputFile = Path.Combine(_tempDir.Path, "expanded.json");
510var artifactsDir = Path.Combine(_tempDir.Path, "artifacts");
514Path.Combine(artifactsDir, "RegularProject.tests-metadata.json"),
520Path.Combine(artifactsDir, "SplitMultiOS.tests-metadata.json"),
527Path.Combine(artifactsDir, "SplitMultiOS.tests-partitions.json"),
531Path.Combine(artifactsDir, "LinuxE2E.tests-metadata.json"),
539Path.Combine(artifactsDir, "CliE2E.tests-metadata.json"),
549var canonicalFile = Path.Combine(_tempDir.Path, "canonical.json");
559var expandedFile = Path.Combine(_tempDir.Path, "expanded.json");
565var githubOutputFile = Path.Combine(_tempDir.Path, "github_output.txt");
699if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
PowerShellScripts\SplitTestProjectsTests.cs (11)
41var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
47var outputFile = Path.Combine(_tempDir.Path, "partitions.json");
71var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
76var outputFile = Path.Combine(_tempDir.Path, "partitions.json");
99var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
105var outputFile = Path.Combine(_tempDir.Path, "partitions.json");
130var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll");
137var outputFile = Path.Combine(_tempDir.Path, "partitions.json");
165var nonExistentPath = Path.Combine(_tempDir.Path, "DoesNotExist.dll");
166var outputFile = Path.Combine(_tempDir.Path, "partitions.json");
215if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
installer.tasks (1)
Microsoft.Agents.AI.ProjectTemplates.Tests (11)
Microsoft.Analyzers.Extra.Tests (3)
Microsoft.Analyzers.Local.Tests (3)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Microsoft.AspNetCore.StaticAssets (3)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Build (82)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (8)
488? Path.Combine(GetOrInitializeX64Clr2Path(toolName, basePath64), toolName)
489: Path.Combine(GetOrInitializeX32Clr2Path(toolName, basePath), toolName);
494return Path.Combine(s_pathToX64Clr4 ??= basePath64, toolName);
499return Path.Combine(s_pathToArm64Clr4 ??= basePathArm64, toolName);
502return Path.Combine(s_pathToX32Clr4 ??= basePath, toolName);
614string fullPath = Path.Combine(envPath, toolName);
855string appHostPath = Path.Combine(msbuildAssemblyPath, Constants.MSBuildExecutableName);
858: (Path.Combine(msbuildAssemblyPath, Constants.MSBuildAssemblyName), false);
Evaluation\Evaluator.cs (5)
1190string projectFullPath = Path.Combine(projectDirectory, projectFile);
1854ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project),
1867ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project),
1904string dotnetExe = Path.Combine(FileUtilities.GetFolderAbove(sdkResult.Path, 5), Constants.DotnetProcessName);
2120importFileUnescaped = Path.Combine(directoryOfImportingFile, importFileUnescaped);
Microsoft.Build.Framework (51)
FileUtilities.cs (9)
87string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
152cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id));
452string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
675return NormalizePath(Path.Combine(directory, file));
894return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString())))
994string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec));
1072var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1513return paths.Aggregate(root, Path.Combine);
1686string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
Utilities\FrameworkLocationHelper.cs (17)
445? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11)
455? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20)
465? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV30)
475? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV35)
485? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV40)
495? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV45)
505? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11)
515? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20)
596Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin");
836var frameworkPath = Path.Combine(NativeMethods.FrameworkBasePath, prefix ?? string.Empty);
846return Path.Combine(complusInstallRoot, complusVersion);
987? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework")
988: Path.Combine(NativeMethods.FrameworkBasePath, "xbuild-frameworks");
1145string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix);
1453(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, Constants.MSBuildExecutableName)) &&
1454!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
1486frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Microsoft.Build.NuGetSdkResolver (5)
Microsoft.Build.Tasks.CodeAnalysis (14)
Microsoft.Build.Tasks.Core (107)
AssemblyDependency\ReferenceTable.cs (7)
966companionFile = Path.Combine(Path.GetDirectoryName(baseName), implementationFile);
1009string satelliteAssembly = Path.Combine(subDirectory, satelliteFilename);
1013reference.AddSatelliteFile(Path.Combine(cultureName, satelliteFilename));
1032string serializationAssemblyPath = Path.Combine(reference.DirectoryName, serializationAssemblyFilename);
2770AddRelatedItem(serializationAssemblyItems, relatedItemBase, Path.Combine(reference.DirectoryName, serializationAssemblyFile));
2776AddRelatedItem(scatterItems, relatedItemBase, Path.Combine(reference.DirectoryName, scatterFile));
2789AddRelatedItem(satelliteItems, relatedItemBase, Path.Combine(reference.DirectoryName, satelliteFile));
BootstrapperUtil\BootstrapperBuilder.cs (21)
174string strOutputExe = System.IO.Path.Combine(settings.OutputPath, SETUP_EXE);
361string setupSourceFile = System.IO.Path.Combine(bootstrapperPath, SETUP_BIN);
503private string BootstrapperPath => System.IO.Path.Combine(Path, ENGINE_PATH);
505private string PackagePath => System.IO.Path.Combine(Path, PACKAGE_PATH);
507private string SchemaPath => System.IO.Path.Combine(Path, SCHEMA_PATH);
528string startDirectory = System.IO.Path.Combine(BootstrapperPath, RESOURCES_PATH);
535string resourceDirectory = System.IO.Path.Combine(startDirectory, subDirectory);
536string resourceFilePath = System.IO.Path.Combine(resourceDirectory, SETUP_RESOURCES_FILE);
880string strSubDirectoryFullPath = System.IO.Path.Combine(packagePath, strSubDirectory);
883string strBaseManifestFilename = System.IO.Path.Combine(strSubDirectoryFullPath, ROOT_MANIFEST_FILE);
884string strBaseManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA);
922UpdatePackageFileNodes(packageFilesNode, System.IO.Path.Combine(packagePath, strSubDirectory), strSubDirectory);
935string strLangManifestFilename = System.IO.Path.Combine(strLanguageDirectory, CHILD_MANIFEST_FILE);
936string strLangManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA);
1172string strSourceFile = System.IO.Path.Combine(strSourcePath, relativePath);
1176targetPathAttribute.Value = System.IO.Path.Combine(strTargetPath, relativePath);
1179string newNameValue = System.IO.Path.Combine(strTargetPath, relativePath);
1468string strDestinationFileName = System.IO.Path.Combine(settings.OutputPath, packageFileDestination.Value);
2001using (var xmlwriter = new XmlTextWriter(System.IO.Path.Combine(s_logPath, fileName), Encoding.UTF8))
2043using (var fileWriter = new StreamWriter(System.IO.Path.Combine(s_logPath, fileName), append))
2204string logPath = System.IO.Path.Combine(
GetSDKReferenceFiles.cs (6)
514string xmlFile = Path.Combine(directory, fileNameNoExtension + ".xml");
630string targetPath = Path.Combine(targetPathRoot, relativeToBase);
960referencesCacheFile = Path.Combine(_cacheFileDirectory, GetCacheFileName(saveContext.SdkIdentity, saveContext.SdkRoot, cacheFileInfo.Hash.ToString("X", CultureInfo.InvariantCulture)));
1085string referencesCacheFile = Path.Combine(cacheFileFolder, GetCacheFileName(sdkIdentity, sdkRoot, hash.ToString("X", CultureInfo.InvariantCulture)));
1165string redistPath = Path.Combine(sdkRoot, "Redist");
1179string referencesPath = Path.Combine(sdkRoot, "References");
Microsoft.Build.Tasks.Git (23)
Microsoft.Build.Utilities.Core (47)
ToolLocationHelper.cs (37)
664string legacyWindowsMetadataLocation = Path.Combine(sdkRoot, "Windows Metadata");
1224return Path.Combine(sdkLocation, folderName);
1238: Path.Combine(matchingSdk.Path, folderName);
1436var folders = string.IsNullOrEmpty(subFolder) ? vsInstallFolders : vsInstallFolders.Select(i => Path.Combine(i, subFolder));
1501string fullPath = Path.Combine(root, file);
1766if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
1840if (legacyMsCorlib20Path != null && FileSystems.Default.FileExists(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
1857if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
2553string pathToSDKManifest = Path.Combine(sdkVersionDirectory.FullName, "SDKManifest.xml");
2628string platformSDKDirectory = Path.Combine(rootPathWithIdentifier.FullName, version);
2629string platformSDKManifest = Path.Combine(platformSDKDirectory, "SDKManifest.xml");
2652string sdkFolderPath = Path.Combine(platformSDKDirectory, "ExtensionSDKs");
2747string platformSDKManifest = Path.Combine(platformSDKDirectory, "SDKManifest.xml");
2825string sdkManifestFileLocation = Path.Combine(directoryName, "SDKManifest.xml");
2903string localAppdataFolder = Path.Combine(userLocalAppData, "Microsoft SDKs");
2910string defaultProgramFilesLocation = Path.Combine(
3028string platformsRoot = Path.Combine(sdk.Path, platformsFolderName);
3056string pathToPlatformManifest = Path.Combine(platformVersion.FullName, "Platform.xml");
3115string redistListFolder = Path.Combine(path, "RedistList");
3116string redistFilePath = Path.Combine(redistListFolder, "FrameworkList.xml");
3200pathToReturn = Path.Combine(pathToReturn, includeFramework);
3349pathToSdk = Path.Combine(pathToSdk, "x64");
3352pathToSdk = Path.Combine(pathToSdk, "ia64");
3360string filePath = Path.Combine(pathToSdk, fileName);
3469pathToSdk = Path.Combine(pathToSdk, "bin");
3510pathToSdk = Path.Combine(pathToSdk, "x86");
3513pathToSdk = Path.Combine(pathToSdk, "x64");
3521string filePath = Path.Combine(pathToSdk, fileName);
3584toolPath = Path.Combine(toolPath, fileName);
3614return pathToFx == null ? null : Path.Combine(pathToFx, fileName);
3622public static string GetPathToSystemFile(string fileName) => Path.Combine(PathToSystem, fileName);
3840string frameworkIdentifierPath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier);
3898string frameworkProfilePath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier);
3899frameworkProfilePath = Path.Combine(frameworkProfilePath, frameworkVersion);
3900frameworkProfilePath = Path.Combine(frameworkProfilePath, "Profiles");
3945string dotNextFx30RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV30);
3952string dotNextFx35RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV35);
Microsoft.CodeAnalysis (22)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Features (13)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.Scripting (12)
Microsoft.CodeAnalysis.Workspaces (16)
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (3)
Microsoft.Data.Analysis.Tests (2)
Microsoft.Diagnostics.NETCore.Client (2)
Microsoft.DiaSymReader (1)
Microsoft.DotNet.ApiCompat.Task (3)
Microsoft.DotNet.ApiSymbolExtensions (3)
Microsoft.DotNet.Arcade.Sdk (6)
Microsoft.DotNet.Build.Tasks.Installers (30)
src\CreateWixBuildWixpack.cs (20)
114string destPath = Path.Combine(WixpackWorkingDir, Path.GetFileName(projectPath));
147OutputFile = Path.Combine(OutputFolder, $"{_installerFilename}{_packageExtension}");
182CopyDirectoryRecursive(fullSourceDir, Path.Combine(WixpackWorkingDir, randomDirName));
201var tempFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
280_defineConstantsDictionary["TargetPath"] = Path.Combine("%outputfolder%", Path.GetFileName(targetPath));
284InstallerFile = Path.Combine("%outputfolder%", Path.GetFileName(InstallerFile));
292PdbFile.ItemSpec = Path.Combine("%outputfolder%", Path.GetFileName(PdbFile.ItemSpec));
298BindTrackingFile.ItemSpec = Path.Combine("%outputfolder%", Path.GetFileName(BindTrackingFile.ItemSpec));
432File.WriteAllText(Path.Combine(WixpackWorkingDir, "create.rsp"), string.Join(System.Environment.NewLine, commandLineArgs));
446File.WriteAllText(Path.Combine(WixpackWorkingDir, "create.cmd"), createCmdFileContents.ToString());
518var copiedXmlPath = Path.Combine(WixpackWorkingDir, Path.GetFileName(xmlPath));
597var filePath = Path.Combine(dir, Path.GetFileName(source));
1016var destDir = Path.Combine(WixpackWorkingDir, fileId);
1023var destPath = Path.Combine(destDir, Path.GetFileName(source));
1042Extensions[i] = new TaskItem(Path.Combine(filename, filename));
1085LocalizationFiles[i] = new TaskItem(Path.Combine(filename, filename));
1095Path.Combine(_wixprojDir, source) :
1096Path.Combine(relativeRoot, source);
1108File.Copy(file, Path.Combine(destDir, Path.GetFileName(file)), overwrite: true);
1113CopyDirectoryRecursive(dir, Path.Combine(destDir, Path.GetFileName(dir)));
src\CreateWixCommandPackageDropBase.cs (8)
67OutputFile = Path.Combine(OutputFolder, $"{Path.GetFileName(InstallerFile)}{_packageExtension}");
81string commandFilename = Path.Combine(packageDropOutputFolder, $"create.cmd");
144string newWixSrcFilePath = Path.Combine(packageDropOutputFolder, Path.GetFileName(wixSrcFile.ItemSpec));
176var destinationPath = Path.Combine(packageDropOutputFolder, Path.GetFileName(locItem.ItemSpec));
292var possiblePath = Path.Combine(additionalBasePath.ItemSpec, oldPath);
310newRelativePath = Path.Combine(id, Path.GetFileName(oldPath));
325string newFolder = Path.Combine(outputPath, id);
331File.Copy(oldPath, Path.Combine(outputPath, newRelativePath), true);
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.Build.Tasks.VisualStudio (6)
Microsoft.DotNet.Build.Tasks.Workloads (11)
Microsoft.DotNet.Cli.CoreUtils (1)
Microsoft.DotNet.Cli.Definitions (5)
Microsoft.DotNet.Cli.Utils (10)
Microsoft.DotNet.CMake.Sdk (5)
Microsoft.DotNet.Configurer (10)
Microsoft.DotNet.GenFacades (3)
Microsoft.DotNet.HotReload.Watch (9)
Microsoft.DotNet.InternalAbstractions (3)
Microsoft.DotNet.MacOsPkg.Core (4)
Microsoft.DotNet.NativeWrapper (1)
Microsoft.DotNet.NuGetRepack.Tasks (6)
Microsoft.DotNet.ProjectTools (3)
Microsoft.DotNet.SdkResolver (1)
Microsoft.DotNet.SharedFramework.Sdk (3)
Microsoft.DotNet.SourceBuild.Tasks (3)
Microsoft.DotNet.TemplateLocator (18)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (14)
92string? userManifestsRoot = userProfileDir is null ? null : Path.Combine(userProfileDir, "sdk-manifests");
93string dotnetManifestRoot = Path.Combine(_sdkRootPath, "sdk-manifests");
205_installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json");
302var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json");
344var workloadManifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json");
372var manifestVersionBandDirectory = Path.Combine(_manifestRoots[0], versionBandString);
387var manifestVersionBandDirectory = Path.Combine(manifestRoot, versionBandString);
488.Where(dir => File.Exists(Path.Combine(dir, "WorkloadManifest.json")))
500else if (File.Exists(Path.Combine(manifestDirectory, "WorkloadManifest.json")))
502var manifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json");
559if (File.Exists(Path.Combine(specifiedManifestDirectory, "WorkloadManifest.json")))
607var featureBandDirectory = Path.Combine(manifestRoot, workloadSetFeatureBand.Value.ToString());
634var workloadSetsRoot = Path.Combine(featureBandDirectory, WorkloadSetsFolderName);
668string globalJsonPath = Path.Combine(directory, "global.json");
Microsoft.DotNet.XliffTasks (15)
Tasks\TransformTemplates.cs (8)
70? Path.Combine(TranslatedOutputDirectory, $"{templateName}.default.1033")
71: Path.Combine(TranslatedOutputDirectory, $"{templateName}.{language}");
73string cultureSpecificTemplateFile = Path.Combine(localizedTemplateDirectory, Path.GetFileName(template.ItemSpec));
79string projectFileFullPath = Path.Combine(templateDirectory, projectNode.Attribute("File").Value);
80File.Copy(projectFileFullPath, Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value)), overwrite: true);
86string templateItemFullPath = Path.Combine(templateDirectory, templateItem.Value);
87string templateItemDestinationPath = Path.Combine(localizedTemplateDirectory, templateItem.Value);
108File.Copy(Path.Combine(TranslatedOutputDirectory, localizedFileName), templateItemDestinationPath, overwrite: true);
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (23)
Contents\DataContentTests.cs (23)
316string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.json");
343string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.bin");
370string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.unknownextension");
396string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.png");
459string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.bin");
486string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}");
516string tempDir = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}");
518string expectedPath = Path.Combine(tempDir, "myfile.json");
545string tempDir = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}");
574string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.txt");
706string tempDir = Path.Combine(Path.GetTempPath(), $"test_subdir_{Guid.NewGuid()}");
707string subDir = Path.Combine(tempDir, "subdir");
712string filePath = Path.Combine(subDir, "nested.html");
739string tempDir = Path.Combine(Path.GetTempPath(), $"test_dir_noname_{Guid.NewGuid()}");
766string tempPath = Path.Combine(Path.GetTempPath(), $"test_cancel_{Guid.NewGuid()}.txt");
797string tempPath = Path.Combine(Path.GetTempPath(), $"test_save_cancel_{Guid.NewGuid()}.bin");
837string tempDir = Path.Combine(Path.GetTempPath(), $"test_dir_name_{Guid.NewGuid()}");
839string expectedPath = Path.Combine(tempDir, content.Name);
865string tempDir = Path.Combine(Path.GetTempPath(), $"test_nonexist_{Guid.NewGuid()}");
867string filePath = Path.Combine(tempDir, "newfile");
894string tempPath = Path.Combine(Path.GetTempPath(), $"test_large_{Guid.NewGuid()}.bin");
923string tempPath = Path.Combine(Path.GetTempPath(), $"test_save_large_{Guid.NewGuid()}.bin");
946string tempPath = Path.Combine(Path.GetTempPath(), $"test_existing_{Guid.NewGuid()}.bin");
Microsoft.Extensions.AI.Evaluation.Console (3)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.Reporting (10)
Microsoft.Extensions.AI.Templates.Tests (11)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DataIngestion.Tests (5)
Microsoft.Extensions.DependencyModel (7)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.DotNetDeltaApplier (1)
Microsoft.Extensions.FileProviders.Physical (6)
Microsoft.Extensions.FileSystemGlobbing (6)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.ML.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Gen.BuildMetadata (1)
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (6)
Microsoft.Gen.MetadataExtractor (4)
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports (2)
Microsoft.Gen.MetricsReports.Unit.Tests (7)
Microsoft.Maui (1)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Resizetizer (32)
Microsoft.McpServer.ProjectTemplates.Tests (11)
Microsoft.ML.AutoML (3)
Microsoft.ML.AutoML.Samples (2)
Microsoft.ML.AutoML.Tests (16)
ColumnInferenceTests.cs (8)
81var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "DatasetWithEmptyColumn.txt"), DefaultColumnNames.Label, groupColumns: false);
89var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "BinaryDatasetWithBoolColumn.txt"), DefaultColumnNames.Label);
108var filePath = Path.Combine("TestData", "DatasetWithoutHeader.txt");
136var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "NameColumnIsOnlyFeatureDataset.txt"), DefaultColumnNames.Label);
153.InferColumns(Path.Combine("TestData", "DatasetWithDefaultColumnNames.txt"),
173var result = new MLContext(1).Auto().InferColumns(Path.Combine("TestData", "DatasetWithDefaultColumnNames.txt"),
204var dataset = Path.Combine("TestData", "DatasetWithNewlineBetweenQuotes.txt");
245var wiki = Path.Combine("TestData", "wiki-column-inference.json");
Microsoft.ML.CodeGenerator (9)
Microsoft.ML.Core (17)
Microsoft.ML.Core.Tests (16)
UnitTests\TestEntryPoints.cs (3)
4560TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS1.csv")), "sep=, col=Features:R4:1 header=+",
4589TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "real_1.csv")), "sep=, col=Features:R4:1 header=+",
4613TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS2.csv")), "sep=, col=Features:R4:1 header=+",
Microsoft.ML.Data (4)
Microsoft.ML.DnnImageFeaturizer.AlexNet (1)
Microsoft.ML.DnnImageFeaturizer.ResNet101 (1)
Microsoft.ML.DnnImageFeaturizer.ResNet18 (1)
Microsoft.ML.DnnImageFeaturizer.ResNet50 (1)
Microsoft.ML.Ensemble (2)
Microsoft.ML.GenAI.Core.Tests (1)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.GenAI.Samples (8)
Microsoft.ML.ImageAnalytics (2)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.Maml (2)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.PerformanceTests (12)
Microsoft.ML.Predictor.Tests (8)
CompareBaselines.cs (8)
66string dir1 = Path.Combine(root1, rel);
67string dir2 = Path.Combine(root2, rel);
74string relCur = Path.Combine(rel, name);
89log.WriteLine("*** Missing left file: '{0}'", Path.Combine(rel, kvp.Key));
97string relCur = Path.Combine(rel, name);
112log.WriteLine("*** Missing left directory: '{0}'", Path.Combine(rel, kvp.Key));
167using (var rdr1 = OpenReader(Path.Combine(root1, rel)))
168using (var rdr2 = OpenReader(Path.Combine(root2, rel)))
Microsoft.ML.Samples (30)
Microsoft.ML.Samples.GPU (26)
Microsoft.ML.SamplesUtils (8)
SamplesDatasetUtils.cs (8)
27while (!Directory.Exists(Path.Combine(directory, ".git")) && directory != null)
179string varPath = Path.Combine(path, "variables");
183Download(Path.Combine(remotePath, "saved_model.pb"), Path.Combine(path, "saved_model.pb")).Wait();
184Download(Path.Combine(remotePath, "imdb_word_index.csv"), Path.Combine(path, "imdb_word_index.csv")).Wait();
185Download(Path.Combine(remotePath, "variables", "variables.data-00000-of-00001"), Path.Combine(varPath, "variables.data-00000-of-00001")).Wait();
186Download(Path.Combine(remotePath, "variables", "variables.index"), Path.Combine(varPath, "variables.index")).Wait();
Microsoft.ML.SearchSpace.Tests (2)
Microsoft.ML.Sweeper (2)
Microsoft.ML.TensorFlow (5)
Microsoft.ML.TensorFlow.Tests (20)
TensorflowTests.cs (20)
36tempFolder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
37assetsPath = Path.Combine(tempFolder, "assets");
38parentWorkspacePath = Path.Combine(assetsPath, "cached");
76_fullImagesetFolderPath = Path.Combine(
766var varDir = Path.Combine(modelLocation, "variables");
1449if (Directory.Exists(workspacePath) && File.Exists(Path.Combine(workspacePath, trainSetBottleneckCachedValuesFileName))
1450&& File.Exists(Path.Combine(workspacePath, validationSetBottleneckCachedValuesFileName)))
1465string workspacePath = Path.Combine(TensorFlowScenariosTestsFixture.parentWorkspacePath, finalImagesFolderName + "_" + (int)arch);
1750Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.TrainSetBottleneckCachedValuesFileName)));
1751Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.ValidationSetBottleneckCachedValuesFileName)));
1850string fullImagesetFolderPath = Path.Combine(
1958UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder);
1960if (!Directory.Exists(Path.Combine(imagesDownloadFolder, filenameAlias)))
1961Directory.Move(Path.Combine(imagesDownloadFolder, Path.GetFileNameWithoutExtension(fileName)), Path.Combine(imagesDownloadFolder, "FPTSUT"));
1971UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder);
1983string relativeFilePath = Path.Combine(destDir, destFileName);
2012if (File.Exists(Path.Combine(destFolder, flag)))
2016File.Create(Path.Combine(destFolder, flag));
2039string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.ML.TestFramework (9)
Microsoft.ML.TestFrameworkCommon (6)
Microsoft.ML.Tests (11)
Microsoft.ML.TimeSeries.Tests (4)
Microsoft.ML.Tokenizers.Data.Tests (1)
Microsoft.ML.Tokenizers.Tests (32)
BpeTests.cs (9)
366using Stream vocabStream = File.OpenRead(Path.Combine(@"Gpt-2", "vocab.json"));
367using Stream mergesStream = File.OpenRead(Path.Combine(@"Gpt-2", "merges.txt"));
380string vocabFile = Path.Combine(@"Gpt-2", "vocab.json");
381string mergesFile = Path.Combine(@"Gpt-2", "merges.txt");
546using Stream vocabStream = File.OpenRead(Path.Combine(@"Gpt-2", "vocab.json"));
547using Stream mergesStream = File.OpenRead(Path.Combine(@"Gpt-2", "merges.txt"));
894BpeOptions options = new BpeOptions(Path.Combine(@"Gpt-2", "vocab.json"), Path.Combine(@"Gpt-2", "merges.txt"))
951using Stream jsonModelStream = File.OpenRead(Path.Combine(@"DeepSeek", "tokenizer-DeepSeek-R1.json"));
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (2)
Microsoft.ML.Vision (18)
DnnRetrainTransform.cs (9)
118var tempDirPath = Path.GetFullPath(Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, nameof(DnnRetrainTransformer) + "_" + Guid.NewGuid()));
130string fullFilePath = Path.Combine(tempDirPath, relativeFile);
409var path = Path.Combine(modelDir, DefaultModelFileNames.TmpMlnetModel);
416var variablesPath = Path.Combine(modelDir, DefaultModelFileNames.VariablesFolder);
420File.Copy(f, Path.Combine(archivePath, Path.GetFileName(f)));
439var destination = Path.Combine(variablesPath, DefaultModelFileNames.Data);
446var destination = Path.Combine(variablesPath, DefaultModelFileNames.Index);
533_modelLocation = Path.IsPathRooted(modelLocation) ? modelLocation : Path.Combine(Directory.GetCurrentDirectory(), modelLocation);
705Path.Combine(_modelLocation, DefaultModelFileNames.Graph),
ImageClassificationTrainer.cs (9)
537_resourcePath = Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, "MLNET");
570_checkpointPath = Path.Combine(_options.WorkspacePath, _options.FinalModelPrefix +
572_sizeFile = Path.Combine(_options.WorkspacePath, "TrainingSetSize.txt");
668string trainSetBottleneckCachedValuesFilePath = Path.Combine(_options.WorkspacePath,
671string validationSetBottleneckCachedValuesFilePath = Path.Combine(_options.WorkspacePath,
856Path.Combine(_options.WorkspacePath, _options.ValidationSetBottleneckCachedValuesFileName),
954trainWriter = tf.summary.FileWriter(Path.Combine(_options.WorkspacePath, "train"),
1149var evalGraph = LoadMetaGraph(Path.Combine(_resourcePath, ModelFileName[_options.Arch]));
1313var modelFilePath = Path.Combine(_resourcePath, modelFileName);
Microsoft.NET.Build.Containers (4)
Microsoft.NET.Build.Tasks (54)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (14)
92string? userManifestsRoot = userProfileDir is null ? null : Path.Combine(userProfileDir, "sdk-manifests");
93string dotnetManifestRoot = Path.Combine(_sdkRootPath, "sdk-manifests");
205_installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json");
302var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json");
344var workloadManifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json");
372var manifestVersionBandDirectory = Path.Combine(_manifestRoots[0], versionBandString);
387var manifestVersionBandDirectory = Path.Combine(manifestRoot, versionBandString);
488.Where(dir => File.Exists(Path.Combine(dir, "WorkloadManifest.json")))
500else if (File.Exists(Path.Combine(manifestDirectory, "WorkloadManifest.json")))
502var manifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json");
559if (File.Exists(Path.Combine(specifiedManifestDirectory, "WorkloadManifest.json")))
607var featureBandDirectory = Path.Combine(manifestRoot, workloadSetFeatureBand.Value.ToString());
634var workloadSetsRoot = Path.Combine(featureBandDirectory, WorkloadSetsFolderName);
668string globalJsonPath = Path.Combine(directory, "global.json");
Microsoft.NET.HostModel (1)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
Microsoft.NET.Sdk.Publish.Tasks (24)
Microsoft.NET.Sdk.Razor.Tasks (6)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (15)
Microsoft.NET.Sdk.WorkloadManifestReader (18)
SdkDirectoryWorkloadManifestProvider.cs (14)
92string? userManifestsRoot = userProfileDir is null ? null : Path.Combine(userProfileDir, "sdk-manifests");
93string dotnetManifestRoot = Path.Combine(_sdkRootPath, "sdk-manifests");
205_installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json");
302var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json");
344var workloadManifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json");
372var manifestVersionBandDirectory = Path.Combine(_manifestRoots[0], versionBandString);
387var manifestVersionBandDirectory = Path.Combine(manifestRoot, versionBandString);
488.Where(dir => File.Exists(Path.Combine(dir, "WorkloadManifest.json")))
500else if (File.Exists(Path.Combine(manifestDirectory, "WorkloadManifest.json")))
502var manifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json");
559if (File.Exists(Path.Combine(specifiedManifestDirectory, "WorkloadManifest.json")))
607var featureBandDirectory = Path.Combine(manifestRoot, workloadSetFeatureBand.Value.ToString());
634var workloadSetsRoot = Path.Combine(featureBandDirectory, WorkloadSetsFolderName);
668string globalJsonPath = Path.Combine(directory, "global.json");
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (8)
Microsoft.TemplateEngine.Cli (11)
Microsoft.TemplateEngine.Core (3)
Microsoft.TemplateEngine.Edge (16)
Microsoft.TemplateEngine.IDE (1)
Microsoft.TemplateEngine.Utils (14)
InMemoryFileSystem.cs (10)
53dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
77dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
86targetFile = new FileSystemFile(parts[parts.Length - 1], Path.Combine(currentDir.FullPath, parts[parts.Length - 1]));
451dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
507dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
565dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
597dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
628dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
659dir = new FileSystemDirectory(parts[i], Path.Combine(currentDir.FullPath, parts[i]));
701path = Path.Combine(GetCurrentDirectory(), path);
Microsoft.TemplateSearch.Common (2)
Microsoft.TestPlatform.CoreUtilities (7)
Microsoft.TestPlatform.CrossPlatEngine (13)
Microsoft.TestPlatform.Extensions.BlameDataCollector (10)
Microsoft.TestPlatform.PlatformAbstractions (5)
Microsoft.TestPlatform.TestHostRuntimeProvider (15)
Microsoft.TestPlatform.Utilities (2)
Microsoft.VisualBasic.Core (4)
Microsoft.VisualStudio.TestPlatform.Client (1)
Microsoft.VisualStudio.TestPlatform.Common (9)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (3)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (16)
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Microsoft.Web.XmlTransform (1)
Mono.Cecil (2)
MSBuild (13)
NuGet.Build.Tasks (11)
NuGet.Build.Tasks.Console (5)
NuGet.Build.Tasks.Pack (15)
NuGet.CommandLine.XPlat (3)
NuGet.Commands (29)
NuGet.Common (27)
NuGet.Configuration (15)
Settings\Settings.cs (10)
556var defaultSettingsFilePath = Path.Combine(userSettingsDir, DefaultSettingsFileName);
588Path.Combine(rootDirectory, configFileName));
602? Path.Combine(rootDirectory, "TestingGlobalPath")
608return Path.Combine(userSettingsDirectory, ConfigurationConstants.Config);
692var fullPath = Path.Combine(root ?? string.Empty, settingsPath);
748var rawPath = Path.Combine(originDirectoryPath, ResolvePath(Path.GetDirectoryName(originFilePath)!, path));
782return Path.Combine(Path.GetPathRoot(configDirectory)!, value.Substring(1));
784return Path.Combine(configDirectory, value);
795settingsPath = Path.Combine(settingsRoot, settingsPath);
844var file = Path.Combine(directory, nugetConfigCasing);
NuGet.PackageManagement (27)
NuGet.Packaging (32)
NuGet.ProjectModel (6)
NuGet.Protocol (22)
Pipelines.Library (2)
PresentationBuildTasks (4)
PresentationCore (4)
PresentationFramework (2)
PresentationUI (2)
RepoTasks (8)
Roslyn.Diagnostics.Analyzers (5)
rzc (16)
sdk-tasks (17)
Stress.ApiService (2)
SuperFileCheck (3)
System.CodeDom (1)
System.ComponentModel.Composition (1)
System.Configuration.ConfigurationManager (12)
System.Diagnostics.EventLog (4)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (4)
System.Diagnostics.TextWriterTraceListener (1)
System.Formats.Tar (1)
System.IO.Compression.ZipFile (1)
System.IO.IsolatedStorage (2)
System.IO.MemoryMappedFiles (1)
System.IO.Packaging (1)
System.IO.Pipes (1)
System.Net.Mail (1)
System.Net.Ping (2)
System.Net.Quic (1)
System.Private.CoreLib (22)
System.Private.Xml (3)
System.Reflection.MetadataLoadContext (1)
System.Text.RegularExpressions (1)
testhost (3)
testhost.arm64 (3)
testhost.x86 (3)
TestProject.AppHost (1)
tlens (1)
vbc (8)
VBCSCompiler (25)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (16)
152var cachedAssemblyPath = Path.Combine(entryDir, AssemblyFileName);
205return !File.Exists(Path.Combine(entryDir, cachedFileName));
215copyAndUpdateTimestamp(Path.Combine(entryDir, cachedFileName), targetPath, outputTimestampUtc);
242var dllCacheDir = Path.Combine(_cachePath, dllName);
268var keyPath = Path.Combine(entryPath, dllName + ".key");
302var dllCacheDir = Path.Combine(_cachePath, dllName);
322stagingDir = Path.Combine(dllCacheDir, hashKey + "." + Guid.NewGuid().ToString("N") + ".tmp");
325File.Copy(outputFiles.AssemblyPath, Path.Combine(stagingDir, AssemblyFileName), overwrite: false);
327tryCopyOptional(outputFiles.PdbPath, Path.Combine(stagingDir, PdbFileName));
328tryCopyOptional(outputFiles.RefAssemblyPath, Path.Combine(stagingDir, RefAssemblyFileName));
329tryCopyOptional(outputFiles.XmlDocPath, Path.Combine(stagingDir, XmlDocFileName));
331File.WriteAllText(Path.Combine(stagingDir, dllName + ".key"), deterministicKey, Encoding.UTF8);
332File.WriteAllText(Path.Combine(stagingDir, CreatedFileName), DateTimeOffset.UtcNow.ToString("O", CultureInfo.InvariantCulture));
457var path = Path.Combine(entryDir, LastUsedFileName);
553var lastUsedPath = Path.Combine(entryDir, LastUsedFileName);
581var createdPath = Path.Combine(entryDir, CreatedFileName);
vbi (1)
vstest.console (8)
vstest.console.arm64 (8)
Yarp.AppHost (1)