9474 references to Combine
aspire (425)
Acquisition\InstallationCandidateSources.cs (5)
59var releaseDir = Path.Combine(context.AspireHome, "bin"); 60var releaseBinary = Path.Combine(releaseDir, context.AspireBinaryName); 85var dogfoodRoot = Path.Combine(context.AspireHome, InstallationDiscoveryLayout.DogfoodDirectoryName); 92var binDir = Path.Combine(prDir, "bin"); 93var binary = Path.Combine(binDir, context.AspireBinaryName);
Acquisition\InstallSidecarReader.cs (1)
51var sidecarPath = Path.Combine(binaryDir, SidecarFileName);
Acquisition\InstallSidecarWriter.cs (1)
29var sidecarPath = Path.Combine(binaryDirectory, InstallSidecarReader.SidecarFileName);
Acquisition\WingetFirstRunProbe.cs (2)
41var sidecarPath = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName); 63var tempPath = Path.Combine(binaryDir, $"{InstallSidecarReader.SidecarFileName}.{Guid.NewGuid():N}.tmp");
Agents\AspireSkills\AspireSkillsBundleProvider.cs (7)
116var manifestPath = Path.Combine(bundleDirectory.FullName, AspireSkillsBundleLayout.ManifestFileName); 562var destinationPath = Path.GetFullPath(Path.Combine(destinationRoot, normalizedEntryName.Replace('/', Path.DirectorySeparatorChar))); 574var rootManifestPath = Path.Combine(extractionDirectory, AspireSkillsBundleLayout.ManifestFileName); 580var packageDirectory = Path.Combine(extractionDirectory, "package"); 581var packageManifestPath = Path.Combine(packageDirectory, AspireSkillsBundleLayout.ManifestFileName); 589.Where(directory => File.Exists(Path.Combine(directory, AspireSkillsBundleLayout.ManifestFileName))) 612var targetFile = Path.Combine(targetDirectory, relativePath);
Agents\AspireSkills\AspireSkillsInstaller.cs (29)
209var archivePath = Path.Combine(tempDirectory.FullName, GetSafeFileName(asset.Name)); 670!File.Exists(Path.Combine(cacheDirectory, GitHubAttestationVerifiedFileName))) 680var cachedArchiveSha512Path = Path.Combine(cacheDirectory, ArchiveSha512FileName); 693var cachedGitHubArchiveSha256Path = Path.Combine(cacheDirectory, GitHubArchiveSha256FileName); 766Path.Combine(stageDirectory.FullName, ArchiveSha512FileName), 775Path.Combine(stageDirectory.FullName, GitHubArchiveSha256FileName), 783Path.Combine(stageDirectory.FullName, GitHubAttestationVerifiedFileName), 827File.Delete(Path.Combine(bundleDirectory, ArchiveSha512FileName)); 828File.Delete(Path.Combine(bundleDirectory, GitHubArchiveSha256FileName)); 829File.Delete(Path.Combine(bundleDirectory, GitHubAttestationVerifiedFileName)); 830File.Delete(Path.Combine(bundleDirectory, LastUsedFileName)); 858var lockPath = Path.Combine(cacheRoot, $".{GetSafeFileName(version)}.lock"); 946return Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 951return Path.Combine(cacheRoot, version); 956return Path.Combine( 1067return Directory.Exists(Path.Combine(versionCacheDirectory, AspireSkillsBundleLayout.SkillsDirectoryName)) || 1068File.Exists(Path.Combine(versionCacheDirectory, AspireSkillsBundleLayout.ManifestFileName)) || 1069File.Exists(Path.Combine(versionCacheDirectory, ArchiveSha512FileName)) || 1070File.Exists(Path.Combine(versionCacheDirectory, GitHubArchiveSha256FileName)) || 1071File.Exists(Path.Combine(versionCacheDirectory, GitHubAttestationVerifiedFileName)) || 1072File.Exists(Path.Combine(versionCacheDirectory, LastUsedFileName)); 1079TryDeleteDirectory(Path.Combine(versionCacheDirectory, AspireSkillsBundleLayout.SkillsDirectoryName)); 1080TryDeleteFile(Path.Combine(versionCacheDirectory, AspireSkillsBundleLayout.ManifestFileName)); 1081TryDeleteFile(Path.Combine(versionCacheDirectory, ArchiveSha512FileName)); 1082TryDeleteFile(Path.Combine(versionCacheDirectory, GitHubArchiveSha256FileName)); 1083TryDeleteFile(Path.Combine(versionCacheDirectory, GitHubAttestationVerifiedFileName)); 1084TryDeleteFile(Path.Combine(versionCacheDirectory, LastUsedFileName)); 1109File.WriteAllText(Path.Combine(directory, LastUsedFileName), DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture)); 1119var markerPath = Path.Combine(directory, LastUsedFileName);
Agents\AspireSkills\EmbeddedAspireSkillsBundleProvider.cs (1)
79var archivePath = Path.Combine(temporaryDirectory.FullName, "bundle.tgz");
Agents\AspireSkills\TemporaryCacheDirectory.cs (1)
40var fullName = Path.Combine(parentDirectory, $".{prefix}-{Guid.NewGuid():N}");
Agents\ClaudeCode\ClaudeCodeAgentEnvironmentScanner.cs (4)
20private static readonly string s_skillBaseDirectory = Path.Combine(".claude", "skills"); 129var claudeCodePath = Path.Combine(currentDirectory.FullName, ClaudeCodeFolderName); 155var configFilePath = Path.Combine(repoRoot.FullName, McpConfigFileName); 203var configFilePath = Path.Combine(repoRoot.FullName, McpConfigFileName);
Agents\Copilot\CopilotAgentEnvironmentScanner.cs (2)
19private static readonly string s_skillBaseDirectory = Path.Combine(".github", "skills"); 130return Path.Combine(configDirectory, McpConfigFileName);
Agents\Copilot\CopilotAppInstallationDetector.cs (2)
101applicationsDirectories.Add(Path.Combine(dataHome, LinuxApplicationsDirectoryName)); 116applicationsDirectories.Add(Path.Combine(dataDirectory, LinuxApplicationsDirectoryName));
Agents\Copilot\CopilotPaths.cs (1)
25: Path.Combine(homeDirectory.FullName, DefaultCopilotDirectoryName);
Agents\DeprecatedMcpCommandScanner.cs (2)
45var debugPath = Path.Combine(Path.GetTempPath(), "aspire-deprecated-scan.log"); 50var configPath = Path.Combine(context.RepositoryRoot.FullName, location.RelativePath);
Agents\Hooks\AgentTelemetryHook.cs (1)
30args = [Path.Combine(AppContext.BaseDirectory, "aspire.dll"), .. args];
Agents\Hooks\TelemetryHookConfigurator.cs (4)
133var filePath = Path.Combine(hooksDirectory, CopilotHookFileName); 166var claudeDirectory = Path.Combine(_executionContext.HomeDirectory.FullName, ClaudeFolderName); 167var settingsPath = Path.Combine(claudeDirectory, ClaudeSettingsFileName); 288return Path.Combine(configDirectory, CopilotHooksDirectoryName);
Agents\Hooks\TelemetryHookInstaller.cs (3)
39var hooksDirectory = Path.Combine(_executionContext.AspireHomeDirectory.FullName, HooksDirectoryName); 42var shellPath = Path.Combine(hooksDirectory, ShellResourceName); 43var powerShellPath = Path.Combine(hooksDirectory, PowerShellResourceName);
Agents\OpenCode\OpenCodeAgentEnvironmentScanner.cs (3)
19private static readonly string s_skillBaseDirectory = Path.Combine(".opencode", "skill"); 49var configFilePath = Path.Combine(configDirectory.FullName, OpenCodeConfigFileName); 188var configFilePath = Path.Combine(configDirectory.FullName, OpenCodeConfigFileName);
Agents\Playwright\PlaywrightCliInstaller.cs (3)
88internal static readonly string s_primarySkillBaseDirectory = Path.Combine(".claude", "skills"); 427var targetFile = Path.Combine(targetDir, relativePath); 444var sourceFile = Path.Combine(sourceDir, relativePath);
Agents\Playwright\PlaywrightCliRunner.cs (1)
140var playwrightDir = Path.Combine(workingDirectory, ".playwright");
Agents\SkillLocation.cs (4)
22Path.Combine(".agents", "skills"), 33Path.Combine(".claude", "skills"), 44Path.Combine(".github", "skills"), 55Path.Combine(".opencode", "skill"),
Agents\VsCode\VsCodeAgentEnvironmentScanner.cs (5)
20private static readonly string s_skillBaseDirectory = Path.Combine(".github", "skills"); 88var targetVsCodeFolder = new DirectoryInfo(Path.Combine(context.RepositoryRoot.FullName, VsCodeFolderName)); 156var vsCodePath = Path.Combine(currentDirectory.FullName, VsCodeFolderName); 194var mcpConfigPath = Path.Combine(vsCodeFolder.FullName, McpConfigFileName); 248var mcpConfigPath = Path.Combine(vsCodeFolder.FullName, McpConfigFileName);
Bundles\BundleService.cs (22)
112var lockPath = Path.Combine(extractDir, ".aspire-bundle-lock"); 157var lockPath = Path.Combine(destinationPath, ".aspire-bundle-lock"); 236var versionsRoot = Path.Combine(destinationPath, VersionsDirectoryName); 241var activeVersionDir = Path.Combine(versionsRoot, versionId); 320var tempDir = Path.Combine(versionsRoot, $"{versionId}{TempSuffixPrefix}{Guid.NewGuid():N}"); 472var sidecarPath = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName); 501var linkPath = Path.Combine(layoutPath, dir); 516var linkPath = Path.Combine(layoutPath, dir); 567var linkPath = Path.Combine(layoutPath, dir); 599var managedDir = Path.Combine(versionDir, BundleDiscovery.ManagedDirectoryName); 600var managedExe = Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)); 607var dashboardDir = Path.Combine(versionDir, BundleDiscovery.DashboardDirectoryName); 608var dashboardExe = Path.Combine(dashboardDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)); 611var sqliteLibrary = Path.Combine(dashboardDir, sqliteLibraryName); 617var dcpDir = Path.Combine(versionDir, BundleDiscovery.DcpDirectoryName); 680var bundlePath = Path.Combine(extractDir, BundleDiscovery.BundleDirectoryName); 716: Path.Combine(layoutPath, target)); 750var legacyPath = Path.Combine(layoutPath, dir); 847var markerPath = Path.Combine(extractDir, VersionMarkerFileName); 857var markerPath = Path.Combine(extractDir, VersionMarkerFileName); 902var fullPath = Path.GetFullPath(Path.Combine(destinationPath, relativePath)); 939var linkTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(fullPath)!, entry.LinkName));
Caching\AppHostInfoDiskCache.cs (7)
116_cacheDirectory = new DirectoryInfo(Path.Combine(executionContext.CacheDirectory.FullName, SubDirectoryName)); 139var path = Path.Combine(_cacheDirectory.FullName, $"{key}.json"); 212var path = Path.Combine(_cacheDirectory.FullName, $"{key}.json"); 218tempPath = Path.Combine(_cacheDirectory.FullName, $"{Path.GetRandomFileName()}.tmp"); 359AppendMtime(sb, Path.Combine(dir.FullName, siblingName), siblingName); 361AppendMtime(sb, Path.Combine(dir.FullName, "global.json"), "globaljson"); 366AppendMtime(sb, Path.Combine(dir.FullName, customName), customName);
Caching\DiskCache.cs (2)
24_cacheDirectory = new DirectoryInfo(Path.Combine(executionContext.CacheDirectory.FullName, "nuget-search")); 97var fullPath = Path.Combine(_cacheDirectory.FullName, fileName);
Certificates\CertificateCacheWriter.cs (1)
20var temporaryPath = Path.Combine(
Certificates\CertificateGeneration\MacOSCertificateManager.cs (4)
331ExportCertificate(certificate, Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 378Path.Combine(s_macOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx"); 406ExportCertificate(diskCert, Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 416var keyPath = Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.key");
Certificates\CertificateGeneration\UnixCertificateManager.cs (7)
133var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 270var certPath = Path.Combine(certDir, nickname) + ".pem"; 389? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 433Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 499var certPath = Path.Combine(certDir, nickname) + ".pem"; 937var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}"); 1205: System.IO.Path.Combine(homeDirectory, ".config");
Certificates\CertificateHelpers.cs (1)
69var openSslCertsDir = Path.Combine(openSslDir, "certs");
Certificates\CertificateService.cs (1)
60internal string DevCertDirectory => Path.Combine(
Certificates\NativeCertificateToolRunner.cs (1)
247var outputPath = Path.Combine(outputDirectory, $"aspire-dev-cert-{hash}.pem");
CliExecutionContext.cs (1)
184? Path.Combine(homeDirectory.FullName, ".aspire")
Commands\AddCommand.cs (1)
340var nugetConfigPath = Path.Combine(projectDir.FullName, "nuget.config");
Commands\AgentInitCommand.cs (2)
666var relativeSkillPath = Path.Combine(relativeSkillDirectory, skill.Name); 667var fullSkillDirectoryPath = Path.Combine(rootDirectory.FullName, relativeSkillPath);
Commands\AppHostLauncher.cs (1)
1015return Path.Combine(logsDirectory, fileName);
Commands\InitCommand.cs (5)
282var appHostPath = Path.Combine(workingDirectory.FullName, "apphost.cs"); 355var appHostDirPath = Path.Combine(solutionDir.FullName, appHostDirName); 495.FirstOrDefault(pattern => File.Exists(Path.Combine(workingDirectory.FullName, pattern))); 541var configPath = Path.Combine(directory.FullName, AspireConfigFile.FileName); 800var path = Path.Combine(directory.FullName, fileName);
Commands\RenderCommand.cs (1)
445var filePath = Path.Combine(tempDirectory.FullName, "safe file link sample.txt");
Commands\Sdk\SdkDumpCommand.cs (1)
367var outputPath = Path.Combine(outputDirectory.FullName, $"{integration.Name}.ats.txt");
Commands\Sdk\SdkGenerateCommand.cs (1)
173var filePath = Path.GetFullPath(Path.Combine(outputDir.FullName, fileName));
Commands\UpdateCommand.cs (3)
150var sidecarPath = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName); 819var targetExePath = Path.Combine(installDir, exeName); 837var newExePath = Path.Combine(tempExtractDir, exeName);
Configuration\AspireConfigFile.cs (7)
140var filePath = Path.Combine(directory, FileName); 167var filePath = Path.Combine(directory, FileName); 196var profiles = ReadApphostRunProfiles(Path.Combine(directory, "apphost.run.json")); 206var legacySettingsDir = Path.Combine(directory, AspireJsonConfiguration.SettingsFolder); 208Path.Combine(legacySettingsDir, migratedPath)); 385var absolutePath = Path.GetFullPath(Path.Combine(configDirectory, trimmedValue)); 401return File.Exists(Path.Combine(directory, FileName));
Configuration\AspireJsonConfiguration.cs (3)
136var folderPath = Path.Combine(directory, SettingsFolder); 139var filePath = Path.Combine(folderPath, FileName); 217var absolutePath = Path.GetFullPath(Path.Combine(settingsDirectory, trimmedValue));
Configuration\ConfigurationService.cs (4)
114var newSettingsPath = Path.Combine(searchDirectory.FullName, AspireConfigFile.FileName); 135var defaultPath = Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName); 149var aspireConfigPath = Path.Combine(legacySettingsRootDirectory.FullName, AspireConfigFile.FileName); 382var configFilePath = Path.Combine(searchDirectory.FullName, AspireConfigFile.FileName);
Diagnostics\FileLoggerProvider.cs (1)
54return Path.Combine(logsDirectory, name);
Documentation\FileBackedDocumentContentCache.cs (4)
22private readonly DirectoryInfo _diskCacheDirectory = new(Path.Combine(executionContext.CacheDirectory.FullName, subdirectory)); 252private string GetTextFilePath(string key) => Path.Combine(_diskCacheDirectory.FullName, $"{SanitizeFileName(key)}.txt"); 254private string GetETagFilePath(string key) => Path.Combine(_diskCacheDirectory.FullName, $"{SanitizeFileName(key)}.etag.txt"); 256private string GetJsonFilePath(string key) => Path.Combine(_diskCacheDirectory.FullName, $"{SanitizeFileName(key)}.json");
DotNet\DotNetCliRunner.cs (8)
345: Path.GetFullPath(Path.Combine(workingDirectory.FullName, binlogDirectory)); 349var binlogPath = Path.Combine(fullBinlogDirectory, CreateBinlogFileName(dotnetCommand, projectFile, workingDirectory)); 481var dotnetExecutablePath = Path.Combine( 664var cliAssemblyPath = Path.Combine(cliDirectory, "aspire.dll"); 679return File.Exists(Path.Combine(cliDirectory, ".aspire-install.json")); 684return HasBundleRoot(cliDirectory) || HasBundleRoot(Path.Combine(cliDirectory, "bundle")); 1437: Path.Combine(workingDirectory.FullName, configPath); 1746: Path.Combine(solutionFile.Directory!.FullName, line);
Git\GitRepository.cs (1)
165var absolutePath = Path.GetFullPath(Path.Combine(rootFullName, relativePath));
Git\GitWorktree.cs (6)
61var gitPath = Path.Combine(current, GitDirectoryName); 146var gitPath = Path.Combine(current, GitDirectoryName); 221Path.Combine(canonicalAdminDirectory, GitDirFileName), 238Path.Combine(current.FullName, GitDirFileName), 331: Path.GetFullPath(Path.Combine(relativeTo, value)); 373var candidate = Path.Combine(current, segment);
Layout\LayoutConfiguration.cs (3)
74return relativePath is not null ? Path.Combine(LayoutPath, relativePath) : null; 94return Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)); 109return Path.Combine(dashboardDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName));
Layout\LayoutDiscovery.cs (14)
250var bundlePath = Path.Combine(layoutPath, BundleDiscovery.BundleDirectoryName); 251var bundleManagedPath = Path.Combine(bundlePath, BundleDiscovery.ManagedDirectoryName); 252var bundleDashboardPath = Path.Combine(bundlePath, BundleDiscovery.DashboardDirectoryName); 253var bundleDcpPath = Path.Combine(bundlePath, BundleDiscovery.DcpDirectoryName); 265var bundleManagedExe = Path.Combine(bundleManagedPath, managedExeName); 266var bundleDashboardExe = Path.Combine(bundleDashboardPath, dashboardExeName); 279Dcp = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName), 280Dashboard = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.DashboardDirectoryName), 281Managed = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName), 288var managedPath = Path.Combine(layoutPath, BundleDiscovery.ManagedDirectoryName); 289var dashboardPath = Path.Combine(layoutPath, BundleDiscovery.DashboardDirectoryName); 290var dcpPath = Path.Combine(layoutPath, BundleDiscovery.DcpDirectoryName); 304var managedExePath = Path.Combine(managedPath, managedExeName); 305var dashboardExePath = Path.Combine(dashboardPath, dashboardExeName);
Mcp\Tools\SelectAppHostTool.cs (1)
63: Path.Combine(executionContext.WorkingDirectory.FullName, appHostPath));
Migrations\TypeScriptAppHostMigration.cs (6)
101var modernAppHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, LegacyTypeScriptAppHost.ModernAppHostFileName)); 182var legacyModulesDir = Path.Combine(appHostDirectory.FullName, LanguageInfo.LegacyGeneratedFolderName); 192var configPath = Path.Combine(configDirectory.FullName, AspireConfigFile.FileName); 231var tsConfigPath = Path.Combine(appHostDirectory.FullName, TsConfigFileName); 279var packageJsonPath = Path.Combine(appHostDirectory.FullName, PackageJsonFileName); 324var configPath = Path.Combine(appHostDirectory.FullName, configFileName);
Npm\NpmRunner.cs (1)
119var tarballPath = Path.Combine(outputDirectory, filename);
NuGet\BundleNuGetService.cs (7)
86var restoreDirectory = Path.Combine(restoreCacheDirectory, packageHash); 87var objectDirectory = Path.Combine(restoreDirectory, "obj"); 88var manifestPath = Path.Combine(restoreDirectory, IntegrationPackageProbeManifest.FileName); 89var lockPath = Path.Combine(restoreDirectory, "restore.lock"); 130Path.Combine(objectDirectory, LockFileFormat.AssetsFileName), 178var assemblyPath = Path.Combine(AppContext.BaseDirectory, $"{typeof(BundleNuGetService).Assembly.GetName().Name}.dll"); 228return Path.Combine(integrationCacheDirectory.FullName, "package-restore");
NuGet\NuGetClient.cs (4)
195var projectPath = Path.Combine(outputPath, "project.json"); 260var graphPath = Path.Combine(outputPath, "RuntimeIdentifierGraph.json"); 737Path.Combine(rootDirectory.FullName, "trustedroots")); 767using var fileStream = File.Create(Path.Combine(destinationDirectory, resourceName));
NuGet\NuGetPackageAssetResolver.cs (5)
200var sourcePath = Path.Combine(packagePath, relativePath.Replace('/', Path.DirectorySeparatorChar)); 332var sourcePath = Path.Combine(packagePath, runtimeTarget.Path.Replace('/', Path.DirectorySeparatorChar)); 363var sourcePath = Path.Combine(packagePath, resourceAssembly.Path.Replace('/', Path.DirectorySeparatorChar)); 383Path.Combine(locale, Path.GetFileName(sourcePath)), 404var sourcePath = Path.Combine(packagePath, nativeLib.Path.Replace('/', Path.DirectorySeparatorChar));
Packaging\NuGetConfigMerger.cs (1)
88var targetPath = Path.Combine(targetDirectory.FullName, "nuget.config");
Packaging\PackagingService.cs (1)
164prPackageChannels.Add(CreateLocalHiveChannel(prHive.Name, new DirectoryInfo(Path.Combine(prHive.FullName, "packages"))));
Packaging\TemporaryNuGetConfig.cs (1)
26var tempFilePath = Path.Combine(tempDirectory, "nuget.config");
Profiling\ProfileCaptureOptions.cs (3)
71outputPath = Path.Combine(workingDirectory.FullName, CreateDefaultOutputFileName(timeProvider, sessionId)); 77outputPath = Path.Combine(workingDirectory.FullName, outputPath); 85outputPath = Path.Combine(outputPath, CreateDefaultOutputFileName(timeProvider, sessionId));
Profiling\ProfileCaptureService.cs (1)
190var managedExecutable = Path.Combine(managedPath, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName));
Program.cs (7)
135var logsDirectory = Path.Combine(GetUsersAspirePath(processPath), "logs"); 171var newPath = Path.Combine(usersAspirePath, Configuration.AspireConfigFile.FileName); 176var legacyPath = Path.Combine(usersAspirePath, "globalsettings.json"); 730var hivesDirectory = Path.Combine(homeDirectory, "hives"); 737var sdksPath = Path.Combine(homeDirectory, "sdks"); 804var cacheDirectoryPath = Path.Combine(homeDirectory, "cache"); 811var packagesDirectoryPath = Path.Combine(homeDirectory, "packages");
Projects\AppHostCandidateFinder.cs (5)
76".agents", ".claude", Path.Combine(".github", "skills"), Path.Combine(".opencode", "skill"), 413.Select(path => new FileInfo(Path.Combine(searchDirectory.FullName, path.Replace('/', Path.DirectorySeparatorChar)))) 569return new MatcherDirectoryInfo(new DirectoryInfo(Path.Combine(_directory.FullName, path)), _options, _excludePath, _applyDirectoryExclusions, _pathComparison, _counters, _onDirectoryEnumerated, _depth + 1, _maxDepth, _cancellationToken); 574return new MatcherFileInfo(new FileInfo(Path.Combine(_directory.FullName, path)), _options, _excludePath, _applyDirectoryExclusions, _pathComparison, _counters, _onDirectoryEnumerated, _depth, _maxDepth, _cancellationToken);
Projects\AppHostServerClosureSnapshots.cs (12)
20public string IntegrationLibsPath => Path.Combine(LayoutPath, "libs"); 336var layoutsDirectory = Path.Combine(Path.GetFullPath(rootPath), LayoutRootFolderName); 337_itemsDirectory = Path.Combine(layoutsDirectory, LayoutItemsFolderName); 338_stagingDirectory = Path.Combine(layoutsDirectory, LayoutStagingFolderName); 379var libsPath = Path.Combine(layoutPath, "libs"); 380var manifestPath = Path.Combine(layoutPath, LayoutManifestFileName); 420var stagingPath = Path.Combine(_stagingDirectory, Guid.NewGuid().ToString("n")); 421var libsPath = Path.Combine(stagingPath, "libs"); 431var destinationPath = Path.Combine(libsPath, entry.RelativePath.Replace('/', Path.DirectorySeparatorChar)); 441await WriteManifestFileAsync(Path.Combine(stagingPath, LayoutManifestFileName), manifest, cancellationToken).ConfigureAwait(false); 477return Path.Combine(_itemsDirectory, fingerprint); 495var copiedPath = Path.Combine(libsPath, entry.RelativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\DotNetAppHostProject.cs (6)
302var filePath = Path.Combine(current.FullName, fileName); 730var filePath = Path.Combine(current.FullName, fileName); 909fullPath = Path.GetFullPath(Path.Combine(containingDirectory, normalized)); 1989=> Path.IsPathFullyQualified(path) ? path : Path.GetFullPath(Path.Combine(baseDirectory.FullName, path)); 2116var runJsonPath = Path.Combine(directory, $"{Path.GetFileNameWithoutExtension(projectFile.Name)}.run.json"); 2328Path.GetFullPath(Path.Combine(directoryName, config.AppHost.Path)));
Projects\DotNetBasedAppHostServerProject.cs (15)
103public string BuildPath => Path.Combine(_projectModelPath, BuildFolder); 110public string GetProjectFilePath() => Path.Combine(_projectModelPath, ProjectFileName); 114var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName); 126var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName); 278File.WriteAllText(Path.Combine(_projectModelPath, "Program.cs"), programCs); 389var repoDirectoryPackagesProps = Path.Combine(_repoRoot, "Directory.Packages.props"); 401var projectFileName = Path.Combine(_projectModelPath, ProjectFileName); 468if (!File.Exists(Path.Combine(_projectModelPath, fileName))) 488var objPath = Path.Combine(_projectModelPath, "obj"); 510File.WriteAllText(Path.Combine(_projectModelPath, fileName), content); 513projectDocument.Save(Path.Combine(_projectModelPath, ProjectFileName)); 519var staleNugetConfig = Path.Combine(_projectModelPath, "nuget.config"); 550var projectFile = new FileInfo(Path.Combine(_projectModelPath, ProjectFileName)); 601var assemblyPath = Path.Combine(BuildPath, ProjectDllName); 756var globalNuGetPath = Path.Combine(userProfile, ".nuget");
Projects\FallbackProjectParser.cs (1)
268: Path.GetFullPath(Path.Combine(projectFile.DirectoryName!, include));
Projects\GuestAppHostProject.cs (8)
944var apphostRunPath = Path.Combine(directory.FullName, "apphost.run.json"); 1693var outputPath = Path.Combine(appPath, LanguageInfo.GeneratedFolderName); 1701outputPath = Path.Combine(appPath, LanguageInfo.LegacyGeneratedFolderName); 1717var filePath = Path.Combine(outputPath, fileName); 1976var manifestPath = Path.Combine(outputPath, GeneratedManifestFileName); 2024var fullPath = Path.GetFullPath(Path.Combine(outputPath, recordedRelativePath)); 2049var hashPath = Path.Combine(generatedPath, ".codegen-hash"); 2318var bundlePath = Path.Combine(bundleDirectory, $"{cacheFilePrefix}-{bundleHash}.pem");
Projects\GuestRuntime.cs (4)
327return new FileInfo(Path.Combine(directory.FullName, resolved)); 349var path = Path.IsPathRooted(output) ? output : Path.Combine(directory.FullName, output); 366var path = Path.IsPathRooted(trimmed) ? trimmed : Path.Combine(directory.FullName, trimmed); 634var filePath = Path.Combine(directory.FullName, fileName);
Projects\ILanguageDiscovery.cs (1)
66internal static string GeneratedFolderName { get; } = Path.Combine(".aspire", "modules");
Projects\JavaAppHostToolchainResolver.cs (23)
133if (File.Exists(Path.Combine(candidate.FullName, MavenPomFileName))) 140if (File.Exists(Path.Combine(candidate.FullName, gradleBuildFileName))) 191var candidate = Path.Combine(directory.FullName, wrapperName); 206var gitPath = Path.Combine(directory.FullName, ".git"); 223JavaAppHostToolchain.Gradle => File.Exists(Path.Combine(directory, GradleSettingsFileName)) 224|| File.Exists(Path.Combine(directory, GradleKotlinSettingsFileName)), 227JavaAppHostToolchain.Maven => File.Exists(Path.Combine(directory, MavenPomFileName)), 436var scriptPath = Path.Combine(resolution.ProjectDirectory.FullName, GradleInitScriptPath); 495var dependencyDirectory = Path.Combine( 534return projectPath is null ? path : Path.Combine(projectPath, path); 551JavaAppHostToolchain.Maven => ["-f", Path.Combine(projectPath, MavenPomFileName)], 576"-f", Path.Combine(reactorPath, MavenPomFileName), 602var document = XDocument.Load(Path.Combine(aggregatorDirectory.FullName, MavenPomFileName)); 618var moduleDirectory = new DirectoryInfo(Path.GetFullPath(Path.Combine(aggregatorDirectory.FullName, modulePath))); 620|| (File.Exists(Path.Combine(moduleDirectory.FullName, MavenPomFileName)) 642JavaAppHostToolchain.Maven => Path.Combine("target", "classes"), 652JavaAppHostToolchain.Maven => Path.Combine("target", DependencyDirectoryName), 653JavaAppHostToolchain.Gradle => Path.Combine("build", DependencyDirectoryName), 784Path.Combine("gradle", "libs.versions.toml") 808"-classpath", Path.Combine(dependencyDirectory, "*"), 856.Select(output => Path.Combine(classesDirectory, Path.GetFileName(output))) 859StampFile = Path.Combine(classesDirectory, Path.GetFileName(baseCompile.UpToDateCheck.StampFile)) 869var classPath = string.Join(Path.PathSeparator, [classesDirectory, Path.Combine(dependencyDirectory, "*")]);
Projects\LegacyTypeScriptAppHost.cs (2)
41return File.Exists(Path.Combine(appPath, LegacyAppHostFileName)) && 42!File.Exists(Path.Combine(appPath, ModernAppHostFileName));
Projects\PrebuiltAppHostServer.cs (22)
158var assemblyPath = hostingAssembly?.Path ?? (_integrationLibsPath is not null ? Path.Combine(_integrationLibsPath, "Aspire.Hosting.dll") : null); 235_integrationProbeManifestPath = Path.Combine(_workingDirectory, IntegrationPackageProbeManifest.FileName); 555references.Add(Path.Combine(projectDirectory, include.Replace('\\', Path.DirectorySeparatorChar))); 587var candidate = Path.Combine(directory, fileName); 688var objDir = Path.Combine(restoreDir, "obj"); 690await File.WriteAllTextAsync(Path.Combine(objDir, RestoreStampFileName), fingerprint, cancellationToken).ConfigureAwait(false); 781var restoreDir = Path.Combine(_workingDirectory, "integration-restore"); 803var projectFilePath = Path.Combine(restoreDir, IntegrationProjectFileName); 815Path.Combine(restoreDir, "Directory.Packages.props"), directoryPackagesProps, cancellationToken); 819Path.Combine(restoreDir, "Directory.Build.props"), "<Project />", cancellationToken); 821Path.Combine(restoreDir, "Directory.Build.targets"), "<Project />", cancellationToken); 859var closureSourcesPath = Path.Combine(restoreDir, ClosureSourcesFileName); 860var closureMetadataPath = Path.Combine(restoreDir, ClosureMetadataFileName); 861var closureTargetsPath = Path.Combine(restoreDir, ClosureTargetsFileName); 873Path.Combine(restoreDir, ProjectRefAssemblyNamesFileName), 898Path.Combine(restoreDir, ClosureManifestFileName), 923new XElement("AspireClosureMetadataFile", Path.Combine(restoreDir, ClosureMetadataFileName)), 924new XElement("AspireClosureSourcesFile", Path.Combine(restoreDir, ClosureSourcesFileName)), 925new XElement("AspireClosureTargetsFile", Path.Combine(restoreDir, ClosureTargetsFileName)), 926new XElement("AspireProjectRefAssemblyNamesFile", Path.Combine(restoreDir, ProjectRefAssemblyNamesFileName))); 1274return Path.Combine( 1769Path.Combine(contentRootPath, "appsettings.json"),
Projects\ProjectLocator.cs (6)
701var configFilePath = Path.Combine(searchDirectory.FullName, AspireConfigFile.FileName); 715: Path.Combine(searchDirectory.FullName, configAppHostPath); 770var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath); 1258Path.IsPathRooted(existingPath) ? existingPath : Path.Combine(settingsFile.Directory!.FullName, existingPath)); 1329targetSettingsFilePath = Path.Combine(parentDirectory.FullName, AspireConfigFile.FileName); 1345var newConfigPath = Path.Combine(configRoot.FullName, AspireConfigFile.FileName);
Projects\ProjectUpdater.cs (2)
223var globalNuGetFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget"); 1043var directoryPackagesPropsPath = Path.Combine(current.FullName, "Directory.Packages.props");
Projects\RepositoryToolUpdater.cs (2)
46foreach (var path in new[] { Path.Combine(current.FullName, ".config", "dotnet-tools.json"), Path.Combine(current.FullName, "dotnet-tools.json") }) 69var manifest = await ReadManifestAsync(Path.Combine(current.FullName, "package.json"), isNpm: true, cancellationToken);
Projects\TypeScriptAppHostToolchainResolver.cs (10)
63if (File.Exists(Path.Combine(candidateDirectory.FullName, BunLockFileName))) 68if (File.Exists(Path.Combine(candidateDirectory.FullName, BunBinaryLockFileName))) 73if (File.Exists(Path.Combine(candidateDirectory.FullName, PnpmLockFileName))) 78var yarnLockFilePath = Path.Combine(candidateDirectory.FullName, YarnLockFileName); 89if (File.Exists(Path.Combine(candidateDirectory.FullName, YarnConfigFileName))) 94if (File.Exists(Path.Combine(candidateDirectory.FullName, DenoLockFileName))) 99if (File.Exists(Path.Combine(candidateDirectory.FullName, DenoJsonFileName))) 104if (File.Exists(Path.Combine(candidateDirectory.FullName, DenoJsoncFileName))) 109if (File.Exists(Path.Combine(candidateDirectory.FullName, PackageLockFileName))) 355var packageJsonPath = Path.Combine(appHostDirectory.FullName, PackageJsonFileName);
Scaffolding\ScaffoldingService.cs (11)
184var filePath = Path.Combine(scaffoldDirectory.FullName, fileName); 242var appHostRunPath = Path.Combine(scaffoldDirectory.FullName, "apphost.run.json"); 268if (IsTypeScriptLanguage(language) && File.Exists(Path.Combine(directory.FullName, PackageJsonFileName))) 272return new DirectoryInfo(Path.Combine(directory.FullName, BrownfieldTypeScriptAppHostDirectoryName)); 282return Path.Combine(scaffoldDirectory.FullName, appHostFileName); 294var packageJsonPath = Path.Combine(rootDirectory.FullName, PackageJsonFileName); 369Path.GetRelativePath(rootDirectory.FullName, Path.Combine(scaffoldDirectory.FullName, appHostFileName))); 491var outputPath = Path.Combine(directoryPath, LanguageInfo.GeneratedFolderName); 496var filePath = Path.Combine(outputPath, fileName); 515!File.Exists(Path.Combine(directory.FullName, PackageJsonFileName)) || 555var filePath = Path.Combine(rootDirectory, fileName);
src\Shared\AspireHomeDirectory.cs (1)
32? Path.Combine(userProfileDirectory, ".aspire")
src\Shared\BackchannelConstants.cs (3)
259var socketPath = Path.Combine(dir, $"{appHostId}{instanceId}.{processId.ToString(CultureInfo.InvariantCulture)}"); 277var socketPath = Path.Combine(dir, socketName); 315return Path.Combine(dir, appHostId);
src\Shared\BundleDiscovery.cs (6)
145var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 151dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 152dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 176var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 177var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 305return Path.Combine(dcpDirectory, exeName);
src\Shared\BundleVersionLease.cs (2)
104var leasesDirectory = Path.Combine(fullVersionDirectory, LeasesDirectoryName); 172var leasesDirectory = Path.Combine(versionDirectory, LeasesDirectoryName);
src\Shared\HeldFileLease.cs (2)
65var verifiedLeasePath = Path.Combine( 70: Path.Combine(
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
Telemetry\AgentTelemetryUploader.cs (1)
21internal static string LockPath => Path.Combine(Path.GetDirectoryName(TelemetryManager.GetTelemetryStoragePath())!, LockFileName);
Telemetry\InternalMicrosoftDetector.cs (4)
555var tempPath = Path.Combine(directory, $"{Path.GetRandomFileName()}.tmp"); 894var copilotHome = Path.Combine(_executionContext.HomeDirectory.FullName, ".copilot"); 1564var path = Path.Combine(directory, fileName); 1621var candidate = Path.Combine(directory, command + extension);
Telemetry\LinuxMachineInformationProvider.cs (1)
38userDir = Path.Combine(rootPath, SecondaryPathSubDirectory);
Telemetry\UnixMachineInformationProvider.cs (2)
80var fullPath = Path.Combine(directoryPath, fileName); 104var path = Path.Combine(directoryPath, fileName);
Templating\CliTemplateFactory.cs (1)
326var filePath = Path.Combine(outputPath, relativePath);
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
152var aspireConfigPath = Path.Combine(outputPath, Configuration.AspireConfigFile.FileName);
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
77var appHostProject = _projectFactory.TryGetProject(new FileInfo(Path.Combine(outputPath, "apphost.go")));
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
77var appHostProject = _projectFactory.TryGetProject(new FileInfo(Path.Combine(outputPath, "AppHost.java")));
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
91var appHostProject = _projectFactory.TryGetProject(new FileInfo(Path.Combine(outputPath, "apphost.mts")));
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
75var appHostProject = _projectFactory.TryGetProject(new FileInfo(Path.Combine(outputPath, "apphost.mts")));
Templating\DotNetTemplateFactory.cs (1)
117if (File.Exists(Path.Combine(directory, dotnetFileName)))
Templating\OutputPathHelper.cs (1)
149: Path.Combine(normalizedOutputPath, projectName);
Utils\ArchiveHelper.cs (3)
48var fullPath = Path.GetFullPath(Path.Combine(destinationPath, entry.FullName)); 86var fullPath = Path.GetFullPath(Path.Combine(destinationPath, entry.Name)); 122var linkTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(fullPath)!, entry.LinkName));
Utils\AspireRepositoryDetector.cs (1)
97if (File.Exists(Path.Combine(currentDirectory, AspireSolutionFileName)))
Utils\CliDownloader.cs (2)
63var archivePath = Path.Combine(tempDir, archiveFilename); 64var checksumPath = Path.Combine(tempDir, checksumFilename);
Utils\CliPathHelper.cs (2)
70return Path.Combine(aspireHomeDirectory.FullName, StagingNuGetPackagesFolderName); 121var sidecarPath = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName);
Utils\ConfigurationHelper.cs (4)
39var newSettingsPath = Path.Combine(currentDirectory.FullName, AspireConfigFile.FileName); 138return new DirectoryInfo(Path.Combine(configRoot.FullName, AspireJsonConfiguration.SettingsFolder)); 144return new DirectoryInfo(Path.Combine(workspaceAspireDirectory.FullName, IntegrationCacheFolderName)); 157var configPath = Path.Combine(searchDir.FullName, AspireConfigFile.FileName);
Utils\DotNetToolDetection.cs (1)
155var storeDirectory = Path.Combine(processDirectory, ".store");
Utils\EnvironmentChecker\DcpConnectionChecker.cs (2)
229var kubeconfigPath = Path.Combine(sessionDirectory, "kubeconfig"); 250var extensionsPath = Path.Combine(dcpDirectory, "ext");
Utils\EnvironmentChecker\DcpDeveloperCertificateCache.cs (1)
28var certificatePath = Path.Combine(cacheDirectory, $"{lookup}.crt");
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
46var configPath = Path.Combine(workingDirectory.FullName, location.RelativePath);
Utils\EnvironmentChecker\DevCertsCheck.cs (2)
293var certificateFile = Path.Combine(trustPath, certificateFileName); 379var hashEntryPath = Path.Combine(trustPath, $"{hash}.{i}");
Utils\EnvironmentChecker\LegacySettingsFileCheck.cs (1)
40var modernConfigPath = Path.Combine(searchDir.FullName, AspireConfigFile.FileName);
Utils\FileSystemHelper.cs (3)
74var targetFilePath = Path.Combine(currentDestination, file.Name); 81var targetSubDir = Path.Combine(currentDestination, subDir.Name); 179? Path.Combine(segments[^2], segments[^1])
Utils\ReparsePoint.cs (2)
301return Path.Combine(parent, $"{name}.new.{suffix}"); 313return Path.GetFullPath(Path.Combine(linkParent, normalizedTarget));
aspire-managed (11)
Program.cs (1)
79FileName = Path.Combine(dashboardDirectory, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)),
src\Shared\BundleDiscovery.cs (6)
145var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 151dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 152dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 176var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 177var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 305return Path.Combine(dcpDirectory, exeName);
src\Shared\BundleVersionLease.cs (2)
104var leasesDirectory = Path.Combine(fullVersionDirectory, LeasesDirectoryName); 172var leasesDirectory = Path.Combine(versionDirectory, LeasesDirectoryName);
src\Shared\HeldFileLease.cs (2)
65var verifiedLeasePath = Path.Combine( 70: Path.Combine(
Aspire.Acquisition.Tests (337)
Scripts\Common\FakeArchiveHelper.cs (9)
22var archivePath = Path.Combine(outputDir, $"aspire-cli-{platform}.{extension}"); 25var contentDir = Path.Combine(outputDir, $"archive-content-{Guid.NewGuid():N}"); 31var binaryPath = Path.Combine(contentDir, binaryName); 66var path = Path.Combine(outputDir, filename); 101var archivePath = Path.Combine(outputDir, $"aspire-cli-{platform}.{extension}"); 104var contentDir = Path.Combine(outputDir, $"verify-content-{Guid.NewGuid():N}"); 112? Path.Combine(contentDir, "payload") 116var binaryPath = Path.Combine(binaryDir, "aspire"); 125var sidecarPath = Path.Combine(contentDir, ".aspire-install.json");
Scripts\Common\ScriptFunctionCommand.cs (4)
47WithEnvironmentVariable("XDG_CONFIG_HOME", Path.Combine(_testEnvironment.MockHome, ".config")); 63var fullScriptPath = Path.Combine(repoRoot, _scriptPath); 89var tempScript = Path.Combine(_testEnvironment.TempDirectory, $"test-func-{Guid.NewGuid():N}.sh"); 133var tempScript = Path.Combine(_testEnvironment.TempDirectory, $"test-func-{Guid.NewGuid():N}.ps1");
Scripts\Common\ScriptHostFixture.cs (1)
183var filePath = Path.Combine(_scriptsDirectory, safeName);
Scripts\Common\ScriptPaths.cs (6)
8private static readonly string s_scriptsDirectory = Path.Combine("eng", "scripts"); 10public static readonly string ReleaseShell = Path.Combine(s_scriptsDirectory, "get-aspire-cli.sh"); 11public static readonly string ReleasePowerShell = Path.Combine(s_scriptsDirectory, "get-aspire-cli.ps1"); 12public static readonly string PRShell = Path.Combine(s_scriptsDirectory, "get-aspire-cli-pr.sh"); 13public static readonly string PRPowerShell = Path.Combine(s_scriptsDirectory, "get-aspire-cli-pr.ps1"); 14public static readonly string VerifyCliArchivePowerShell = Path.Combine(s_scriptsDirectory, "verify-cli-archive.ps1");
Scripts\Common\ScriptToolCommand.cs (2)
39WithEnvironmentVariable("XDG_CONFIG_HOME", Path.Combine(_testEnvironment.MockHome, ".config")); 69var fullScriptPath = Path.Combine(repoRoot, _scriptPath);
Scripts\Common\TestEnvironment.cs (4)
31MockHome = Path.Combine(TempDirectory, "home"); 42var mockBinDir = Path.Combine(TempDirectory, "mock-bin"); 46var ghScriptPath = Path.Combine(mockBinDir, isWindows ? "gh.cmd" : "gh"); 276var tempGhScriptPath = Path.Combine(mockBinDir, isWindows ? "gh.tmp.cmd" : "gh.tmp");
Scripts\CompletionScriptTests.cs (74)
21var profile = Path.Combine(env.MockHome, "profile.ps1"); 41Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 74var target = Path.Combine(env.TempDirectory, "actual"); 75var selected = Path.Combine(env.TempDirectory, "selected"); 76var outside = Path.Combine(env.TempDirectory, "outside"); 88New-Item -ItemType $linkType -Path '{{Quote(Path.Combine(target, "completions"))}}' -Target '{{Quote(outside)}}' -ErrorAction Stop | Out-Null 110var home = Path.Combine(env.MockHome, "it's $home ` [test]"); 166var cli = CreateFakeCli(outsideHome ? Path.Combine(env.TempDirectory, "custom install") : env.MockHome); 167var profile = Path.Combine(env.MockHome, "profile.ps1"); 192Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 204var cli = CreateFakeCli(Path.Combine(env.TempDirectory, "custom install")); 205var profile = Path.Combine(Path.GetDirectoryName(cli)!, "outside-profile.ps1"); 222Assert.False(Directory.Exists(Path.Combine(Path.GetDirectoryName(cli)!, "completions"))); 233var cli = CreateFakeCli(Path.Combine(env.TempDirectory, "it's $install ` [test]")); 234var profile = Path.Combine(env.MockHome, "profile.ps1"); 257Assert.False(Directory.Exists(Path.Combine(env.MockHome, ".aspire"))); 272var installRoot = Path.Combine(env.TempDirectory, "custom install"); 274var profile = Path.Combine(env.MockHome, "profile.ps1"); 277var outside = Path.Combine(env.TempDirectory, "custom install-other"); 279var sentinel = Path.Combine(outside, "aspire.ps1"); 311Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 323var cli = Path.Combine(installRoot, "aspire.ps1"); 324var profile = Path.Combine(env.MockHome, "profile.ps1"); 355var profile = Path.Combine(env.MockHome, "profile.ps1"); 377Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 390var profile = Path.Combine(env.MockHome, "profile.ps1"); 417var profile = Path.Combine(env.MockHome, "profile.ps1"); 445var profile = Path.Combine(env.MockHome, "profile.ps1"); 465Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 473var cli = Path.Combine(home, "fake aspire.ps1"); 487Path.Combine(dogfood ? Path.GetDirectoryName(cli)! : Path.Combine(home, ".aspire"), "completions", "aspire.ps1"); 500var bashrc = Path.Combine(env.MockHome, ".bashrc"); 501var outside = Path.Combine(env.TempDirectory, "outside-profile"); 504File.CreateSymbolicLink(Path.Combine(env.MockHome, ".bash_profile"), outside); 529var profiles = new[] { Path.Combine(env.MockHome, ".bashrc"), Path.Combine(env.MockHome, ".bash_profile") }; 569var target = Path.Combine(env.TempDirectory, "actual"); 570var selected = Path.Combine(env.TempDirectory, "selected"); 571var outside = Path.Combine(env.TempDirectory, "outside"); 580ln -s '{{Quote(outside)}}' '{{Quote(Path.Combine(target, "completions"))}}' 629var home = Path.Combine(env.MockHome, "it's $home ` [test]"); 636_ => Path.Combine(home, ".bashrc") 640var completion = Path.Combine(dogfood ? home : Path.Combine(home, ".aspire"), "completions", $"aspire.{shell}"); 697var cli = CreateFakeCli(outsideHome ? Path.Combine(env.TempDirectory, "custom install") : env.MockHome); 698var completion = Path.Combine(dogfood || outsideHome ? Path.GetDirectoryName(cli)! : Path.Combine(env.MockHome, ".aspire"), "completions", "aspire.bash"); 701var profile = Path.Combine(env.MockHome, ".bashrc"); 724Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 734var installRoot = Path.Combine(env.TempDirectory, "custom install"); 736var outside = Path.Combine(installRoot, ".zshrc"); 740File.CreateSymbolicLink(Path.Combine(env.MockHome, ".zshrc"), outside); 757Assert.False(Directory.Exists(Path.Combine(installRoot, "completions"))); 772var installRoot = Path.Combine(env.TempDirectory, "it's $install ` [test]"); 776"zsh" => Path.Combine(env.MockHome, ".zshrc"), 778_ => Path.Combine(env.MockHome, ".bashrc") 803Assert.False(Directory.Exists(Path.Combine(env.MockHome, ".aspire"))); 804Assert.False(File.Exists(Path.Combine(env.MockHome, ".bash_profile"))); 821var installRoot = Path.Combine(env.TempDirectory, "custom install"); 823var profile = Path.Combine(env.MockHome, ".bashrc"); 826var outside = Path.Combine(env.TempDirectory, "custom install-other"); 828var sentinel = Path.Combine(outside, "aspire.bash"); 830var completionDirectory = Path.Combine(installRoot, "completions"); 831var completion = Path.Combine(completionDirectory, "aspire.bash"); 845File.CreateSymbolicLink(completion, destination == "file-link" ? sentinel : Path.Combine(outside, "missing")); 866Assert.False(File.Exists(Path.Combine(env.MockHome, "called"))); 877var cli = Path.Combine(installRoot, "aspire"); 878var profile = Path.Combine(env.MockHome, ".bashrc"); 907var profile = Path.Combine(env.MockHome, loginProfile); 927Assert.True(File.Exists(Path.Combine(env.MockHome, ".bashrc"))); 935File.WriteAllText(Path.Combine(env.MockHome, ".bashrc"), "export ASPIRE_TEST_BASHRC_LOADED=true\n"); 960var profile = Path.Combine(env.MockHome, ".bashrc"); 977Assert.False(File.Exists(Path.Combine(env.MockHome, ".bash_profile"))); 986var profile = Path.Combine(env.MockHome, ".bashrc"); 1003Assert.False(File.Exists(Path.Combine(env.MockHome, ".bash_profile"))); 1011var cli = Path.Combine(home, "fake aspire");
Scripts\HomebrewCompletionTests.cs (2)
27var loaderPath = Path.Combine(environment.TempDirectory, "loader.ps1"); 29var testPath = Path.Combine(environment.TempDirectory, "test.ps1");
Scripts\LocalHiveScriptFunctionTests.cs (1)
110return Path.Combine(repoRoot, relativePath);
Scripts\PipedInstallTests.cs (2)
127var scriptPath = Path.Combine(repoRoot, ScriptPaths.ReleaseShell); 149var scriptPath = Path.Combine(repoRoot, ScriptPaths.PRShell);
Scripts\PRScriptFunctionTests.cs (14)
89var pkgDir = Path.Combine(env.TempDirectory, "packages"); 112var emptyDir = Path.Combine(env.TempDirectory, "empty-packages"); 131var pkgDir = Path.Combine(env.TempDirectory, "packages"); 153var pkgDir = Path.Combine(env.TempDirectory, "packages"); 229var tempDir = Path.Combine(env.TempDirectory, "download-temp"); 231File.WriteAllText(Path.Combine(tempDir, "artifact.tar.gz"), "fake"); 249var tempDir = Path.Combine(env.TempDirectory, "download-temp"); 251File.WriteAllText(Path.Combine(tempDir, "artifact.tar.gz"), "fake"); 269var tempDir = Path.Combine(env.TempDirectory, "download-temp"); 271File.WriteAllText(Path.Combine(tempDir, "artifact.tar.gz"), "fake"); 294var tempDir = Path.Combine(env.TempDirectory, "work"); 318var tempDir = Path.Combine(env.TempDirectory, "work"); 341var tempDir = Path.Combine(env.TempDirectory, "work"); 372var configFile = Path.Combine(env.MockHome, ".zshrc");
Scripts\PRScriptInstallE2ETests.cs (4)
28var stageDir = Path.Combine(env.TempDirectory, "stage"); 35var installPrefix = Path.Combine(env.TempDirectory, "install"); 57Assert.True(File.Exists(Path.Combine(binDir, "aspire")), $"CLI binary missing under {binDir}"); 59var sidecarPath = Path.Combine(binDir, ".aspire-install.json");
Scripts\PRScriptInstallerModeTests.cs (67)
37await File.WriteAllTextAsync(Path.Combine(root, "aspire.rb"), "cask \"aspire\" do\n version \"13.3.0\"\nend\n"); 38await File.WriteAllTextAsync(Path.Combine(root, "dogfood.sh"), "#!/usr/bin/env bash\nexit 0\n"); 47await File.WriteAllTextAsync(Path.Combine(root, "Microsoft.Aspire.installer.yaml"), "PackageIdentifier: Microsoft.Aspire\nPackageVersion: 13.3.0\nInstallers: []\n"); 48await File.WriteAllTextAsync(Path.Combine(root, "dogfood.ps1"), "exit 0\n"); 66var manifestDir = Path.Combine(root, "installer-winget"); 67var archiveRoot = Path.Combine(root, "installer-native-archives"); 94await File.WriteAllTextAsync(Path.Combine(manifestDir, "Microsoft.Aspire.installer.yaml"), installerYaml); 95await File.WriteAllTextAsync(Path.Combine(manifestDir, "Microsoft.Aspire.yaml"), $"PackageIdentifier: Microsoft.Aspire\nPackageVersion: {version}\nManifestType: version\nManifestVersion: 1.10.0\n"); 96await File.WriteAllTextAsync(Path.Combine(manifestDir, "Microsoft.Aspire.locale.en-US.yaml"), $"PackageIdentifier: Microsoft.Aspire\nPackageVersion: {version}\nPackageLocale: en-US\nManifestType: defaultLocale\nManifestVersion: 1.10.0\n"); 97await File.WriteAllTextAsync(Path.Combine(manifestDir, "dogfood.ps1"), "exit 0\n"); 103await WriteRealAspireWinGetZipAsync(Path.Combine(archiveDir, $"aspire-cli-win-x64-{version}.zip"), $"stub-x64-{version}"); 104await WriteRealAspireWinGetZipAsync(Path.Combine(archiveDir, $"aspire-cli-win-arm64-{version}.zip"), $"stub-arm64-{version}"); 111var mockBinDir = Path.Combine(env.TempDirectory, "mock-homebrew-bin"); 112var brewRepository = Path.Combine(env.TempDirectory, "brew-repository"); 113var brewPrefix = Path.Combine(env.TempDirectory, "brew-prefix"); 114var brewLog = Path.Combine(env.TempDirectory, "brew.log"); 115var codesignLog = Path.Combine(env.TempDirectory, "codesign.log"); 121var brewPath = Path.Combine(mockBinDir, "brew"); 198var curlPath = Path.Combine(mockBinDir, "curl"); 206var codesignPath = Path.Combine(mockBinDir, "codesign"); 239var mockBinDir = Path.Combine(env.TempDirectory, "mock-winget-bin"); 240var wingetLog = Path.Combine(env.TempDirectory, "winget.log"); 246var implPath = Path.Combine(mockBinDir, "winget-impl.ps1"); 381var wingetCmd = Path.Combine(mockBinDir, "winget.cmd"); 387var aspireCmd = Path.Combine(mockBinDir, "aspire.cmd"); 400await File.WriteAllTextAsync(Path.Combine(root, "aspire-cli-osx-arm64-13.3.0.tar.gz"), "fake arm64 archive"); 401await File.WriteAllTextAsync(Path.Combine(root, "aspire-cli-osx-x64-13.3.0.tar.gz"), "fake x64 archive"); 411await WriteRealAspireWinGetZipAsync(Path.Combine(archiveDir, "aspire-cli-win-x64-13.3.0.zip"), "stub-x64-13.3.0"); 412await WriteRealAspireWinGetZipAsync(Path.Combine(archiveDir, "aspire-cli-win-arm64-13.3.0.zip"), "stub-arm64-13.3.0"); 536var localDir = await CreateHomebrewInstallerArtifactAsync(Path.Combine(env.TempDirectory, "homebrew-artifact")); 575var localDir = await CreateHomebrewInstallerArtifactAsync(Path.Combine(env.TempDirectory, "homebrew-artifact")); 580var result = await cmd.ExecuteAsync(Path.Combine(localDir, "aspire.rb")); 592var caskPath = Path.Combine(env.TempDirectory, "aspire.rb"); 611var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 621"--output-dir", Path.Combine(env.TempDirectory, "homebrew-output"), 628var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 633var codesignLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "codesign.log")); 644var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 654"--output-dir", Path.Combine(env.TempDirectory, "homebrew-output"), 658var codesignLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "codesign.log")); 660var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 670var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 673var outputDir = Path.Combine(env.TempDirectory, "homebrew-output"); 686var cask = await File.ReadAllTextAsync(Path.Combine(outputDir, "aspire.rb")); 692Assert.Contains((await GetSha256HexAsync(Path.Combine(archiveRoot, "aspire-cli-osx-arm64-13.3.0.tar.gz"))).ToLowerInvariant(), cask); 693Assert.Contains((await GetSha256HexAsync(Path.Combine(archiveRoot, "aspire-cli-osx-x64-13.3.0.tar.gz"))).ToLowerInvariant(), cask); 695Assert.True(File.Exists(Path.Combine(outputDir, "dogfood.sh"))); 704var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 768var localDir = await CreateWinGetInstallerArtifactAsync(Path.Combine(env.TempDirectory, "winget-artifact")); 807var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 809var outputDir = Path.Combine(env.TempDirectory, "winget-output"); 820var installerManifest = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.installer.yaml")); 829var localeManifest = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.locale.en-US.yaml")); 831Assert.True(File.Exists(Path.Combine(outputDir, "Microsoft.Aspire.yaml"))); 832Assert.True(File.Exists(Path.Combine(outputDir, "dogfood.ps1"))); 841var localDir = await CreateWinGetInstallerArtifactAsync(Path.Combine(env.TempDirectory, "winget-artifact")); 849var wingetLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "winget.log")); 860var localDir = await CreateWinGetInstallerArtifactAsync(Path.Combine(env.TempDirectory, "winget-artifact")); 896var wingetLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "winget.log")); 901var originalInstaller = await File.ReadAllTextAsync(Path.Combine(manifestDir, "Microsoft.Aspire.installer.yaml")); 950var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 953var x64Zip = Path.Combine(archiveDir, "aspire-cli-win-x64-13.3.0.zip"); 954var arm64Zip = Path.Combine(archiveDir, "aspire-cli-win-arm64-13.3.0.zip"); 958var outputDir = Path.Combine(env.TempDirectory, "winget-output"); 969var installerYaml = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.installer.yaml")); 975var extractDir = Path.Combine(env.TempDirectory, $"extract-{Path.GetFileNameWithoutExtension(archive)}"); 979var expected = Path.Combine(extractDir, rel.Replace('/', Path.DirectorySeparatorChar));
Scripts\PRScriptPowerShellTests.cs (13)
83Assert.False(Directory.Exists(Path.Combine(env.MockHome, ".aspire"))); 115var mockGhPath = Path.Combine(mockBinPath, OperatingSystem.IsWindows() ? "gh.cmd" : "gh"); 129var mockGhPath = Path.Combine(mockBinPath, OperatingSystem.IsWindows() ? "gh.cmd" : "gh"); 143var mockGhPath = Path.Combine(mockBinPath, OperatingSystem.IsWindows() ? "gh.cmd" : "gh"); 156var customPath = Path.Combine(env.TempDirectory, "custom"); 201var localDir = Path.Combine(env.TempDirectory, "local artifacts"); 226var localDir = Path.Combine(env.TempDirectory, "raw-build"); 229await File.WriteAllTextAsync(Path.Combine(localDir, "aspire"), "#!/bin/sh\necho fake\n"); 309var customPath = Path.Combine(env.TempDirectory, "custom"); 434var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 530var customPath = Path.Combine(env.TempDirectory, "custom-prefix"); 615var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 638var aspireRoot = Path.Combine(env.MockHome, ".aspire");
Scripts\PRScriptPSFunctionTests.cs (20)
84var cliBinDir = Path.Combine(env.TempDirectory, "cli-bin"); 85var existingPath = $"{cliBinDir}{Path.PathSeparator}{Path.Combine(env.TempDirectory, "other-bin")}"; 86var githubPath = Path.Combine(env.TempDirectory, "github-path.txt"); 116var pkgDir = Path.Combine(env.TempDirectory, "packages"); 139var emptyDir = Path.Combine(env.TempDirectory, "empty-packages"); 158var pkgDir = Path.Combine(env.TempDirectory, "packages"); 180var pkgDir = Path.Combine(env.TempDirectory, "packages"); 260var tempDir = Path.Combine(env.TempDirectory, "download-temp"); 262File.WriteAllText(Path.Combine(tempDir, "artifact.tar.gz"), "fake"); 280var tempDir = Path.Combine(env.TempDirectory, "download-temp"); 282File.WriteAllText(Path.Combine(tempDir, "artifact.tar.gz"), "fake"); 300var tempDir = Path.Combine(env.TempDirectory, "download-temp"); 302File.WriteAllText(Path.Combine(tempDir, "artifact.tar.gz"), "fake"); 324var downloadDir = Path.Combine(env.TempDirectory, "cli-download"); 326await File.WriteAllTextAsync(Path.Combine(downloadDir, "README.txt"), "no archive here"); 328var binDir = Path.Combine(env.TempDirectory, "bin"); 346var downloadDir = Path.Combine(env.TempDirectory, "cli-download"); 348await File.WriteAllTextAsync(Path.Combine(downloadDir, "aspire-cli-linux-x64.tar.gz"), "fake1"); 349await File.WriteAllTextAsync(Path.Combine(downloadDir, "aspire-cli-osx-arm64.tar.gz"), "fake2"); 351var binDir = Path.Combine(env.TempDirectory, "bin");
Scripts\PRScriptShellTests.cs (11)
108var mockGhPath = Path.Combine(mockBinPath, "gh"); 122var mockGhPath = Path.Combine(mockBinPath, "gh"); 135var customPath = Path.Combine(env.TempDirectory, "custom"); 161var localDir = Path.Combine(env.TempDirectory, "local artifacts"); 186var localDir = Path.Combine(env.TempDirectory, "raw-build"); 189await File.WriteAllTextAsync(Path.Combine(localDir, "aspire"), "#!/bin/sh\necho fake\n"); 365var customPath = Path.Combine(env.TempDirectory, "custom"); 512var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 597var customPath = Path.Combine(env.TempDirectory, "custom-prefix"); 680var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 705var aspireRoot = Path.Combine(env.MockHome, ".aspire");
Scripts\PRScriptToolModeTests.cs (62)
49var mockBinDir = Path.Combine(env.TempDirectory, "mock-dotnet-bin"); 53var dotnetScriptPath = Path.Combine(mockBinDir, isWindows ? "dotnet.cmd" : "dotnet"); 170var localDir = Path.Combine(env.TempDirectory, "artifacts"); 196var localDir = Path.Combine(env.TempDirectory, "artifacts"); 216var localDir = Path.Combine(env.TempDirectory, "artifacts"); 219var customPath = Path.Combine(env.TempDirectory, "custom"); 229Assert.Contains($"Would install CLI archive to: {Path.Combine(customPath, "bin")}", result.Output); 325var localDir = Path.Combine(env.TempDirectory, "artifacts"); 327var customPath = Path.Combine(env.TempDirectory, "custom"); 337Assert.Contains($"dotnet tool install --tool-path {Path.Combine(customPath, "bin")} Aspire.Cli", result.Output); 346var localDir = Path.Combine(env.TempDirectory, "artifacts"); 367var localDir = Path.Combine(env.TempDirectory, "artifacts"); 387var localDir = Path.Combine(env.TempDirectory, "artifacts"); 390var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 418var localDir = Path.Combine(env.TempDirectory, "artifacts"); 421var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 446Assert.True(File.Exists(Path.Combine(prHive, "Aspire.Hosting.13.3.0-pr.5678.deadbeef.nupkg")), 455var localDir = Path.Combine(env.TempDirectory, "artifacts"); 458var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 489var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 512Assert.True(File.Exists(Path.Combine(prHive, "Aspire.Hosting.13.3.0-pr.5678.deadbeef.nupkg")), 583var localDir = Path.Combine(env.TempDirectory, "artifacts"); 585var customPath = Path.Combine(env.TempDirectory, "custom"); 586var expectedToolPath = Path.Combine(customPath, "bin"); 609var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 629var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 631await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.13.3.0-pr.5678.deadbeef.symbols.nupkg"), "fake-symbols-nupkg-content"); 632await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.13.3.0-pr.5678.deadbeef.snupkg"), "fake-symbols-package-content"); 634await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.13_3_0.nupkg"), "fake-invalid-version-content"); 653var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 657await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.1_0.nupkg"), "fake-invalid-version-content"); 676var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 698var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 752var localDir = Path.Combine(env.TempDirectory, "artifacts"); 777var localDir = Path.Combine(env.TempDirectory, "artifacts"); 796var localDir = Path.Combine(env.TempDirectory, "artifacts"); 799var customPath = Path.Combine(env.TempDirectory, "custom"); 808Assert.Contains($"Installing Aspire CLI to {Path.Combine(customPath, "bin")}", result.Output); 902var localDir = Path.Combine(env.TempDirectory, "artifacts"); 904var customPath = Path.Combine(env.TempDirectory, "custom"); 914Assert.Contains($"dotnet tool install --tool-path {Path.Combine(customPath, "bin")} Aspire.Cli", result.Output); 923var localDir = Path.Combine(env.TempDirectory, "artifacts"); 944var localDir = Path.Combine(env.TempDirectory, "artifacts"); 964var localDir = Path.Combine(env.TempDirectory, "artifacts"); 967var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 994var localDir = Path.Combine(env.TempDirectory, "artifacts"); 997var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 1022Assert.True(File.Exists(Path.Combine(prHive, "Aspire.Hosting.13.3.0-pr.5678.deadbeef.nupkg")), 1033var dotnetCommandsPath = Path.Combine(env.TempDirectory, "dotnet-commands.txt"); 1056Assert.True(File.Exists(Path.Combine(prHive, "Aspire.Hosting.13.3.0-pr.5678.deadbeef.nupkg")), 1110var localDir = Path.Combine(env.TempDirectory, "artifacts"); 1112var customPath = Path.Combine(env.TempDirectory, "custom"); 1113var expectedToolPath = Path.Combine(customPath, "bin"); 1136var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 1156var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 1158await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.13.3.0-pr.5678.deadbeef.symbols.nupkg"), "fake-symbols-nupkg-content"); 1159await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.13.3.0-pr.5678.deadbeef.snupkg"), "fake-symbols-package-content"); 1161await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.13_3_0.nupkg"), "fake-invalid-version-content"); 1180var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 1183await File.WriteAllTextAsync(Path.Combine(pkgDir, "Aspire.Cli.1_0.nupkg"), "fake-invalid-version-content"); 1202var pkgDir = Path.Combine(env.TempDirectory, "pkgs"); 1224var pkgDir = Path.Combine(env.TempDirectory, "pkgs");
Scripts\ReleaseScriptFunctionTests.cs (16)
305var destPath = Path.Combine(env.TempDirectory, "install-dest"); 316Assert.True(File.Exists(Path.Combine(destPath, "aspire")), 326var destPath = Path.Combine(env.TempDirectory, "install-dest-zip"); 337Assert.True(File.Exists(Path.Combine(destPath, "aspire.exe")), 437var cliPath = Path.Combine(env.TempDirectory, "aspire"); 438var capturePath = Path.Combine(env.TempDirectory, "setup-args.txt"); 513File.WriteAllText(Path.Combine(env.MockHome, ".bashrc"), "# existing config\n"); 525var bashrcContent = File.ReadAllText(Path.Combine(env.MockHome, ".bashrc")); 537File.WriteAllText(Path.Combine(env.MockHome, ".zshrc"), "# existing config\n"); 549var zshrcContent = File.ReadAllText(Path.Combine(env.MockHome, ".zshrc")); 563Path.Combine(env.MockHome, ".bashrc"), 576var bashrcContent = File.ReadAllText(Path.Combine(env.MockHome, ".bashrc")); 609var mockBinDir = Path.Combine(env.TempDirectory, "mock-bin"); 612var mockCurl = Path.Combine(mockBinDir, "curl"); 646var mockBinDir = Path.Combine(env.TempDirectory, "mock-bin"); 649var mockCurl = Path.Combine(mockBinDir, "curl");
Scripts\ReleaseScriptPowerShellTests.cs (9)
46Assert.False(Directory.Exists(Path.Combine(env.MockHome, ".aspire"))); 80var customPath = Path.Combine(env.TempDirectory, "custom"); 127var customPath = Path.Combine(env.TempDirectory, "custom"); 201var installPath = Path.Combine(env.TempDirectory, "install"); 212await File.ReadAllBytesAsync(Path.Combine(installPath, ".aspire-install.json"))); 230var installPath = Path.Combine(env.TempDirectory, "install"); 232var sidecarPath = Path.Combine(installPath, ".aspire-install.json"); 261var installPath = Path.Combine(env.TempDirectory, "install"); 290await File.ReadAllBytesAsync(Path.Combine(installPath, ".aspire-install.json")));
Scripts\ReleaseScriptPSFunctionTests.cs (7)
272var destPath = Path.Combine(env.TempDirectory, "install-dest"); 283Assert.True(File.Exists(Path.Combine(destPath, "aspire")), 293var destPath = Path.Combine(env.TempDirectory, "install-dest-zip"); 304Assert.True(File.Exists(Path.Combine(destPath, "aspire.exe")), 408var cliPath = Path.Combine(env.TempDirectory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 409var capturePath = Path.Combine(env.TempDirectory, "setup-args.txt"); 446var cliPath = Path.Combine(env.TempDirectory, "setup-invoked.txt");
Scripts\ReleaseScriptShellTests.cs (7)
92var customPath = Path.Combine(env.TempDirectory, "custom-bin"); 156var installPath = Path.Combine(env.TempDirectory, "install"); 167await File.ReadAllBytesAsync(Path.Combine(installPath, ".aspire-install.json"))); 183var installPath = Path.Combine(env.TempDirectory, "install"); 196Assert.True(File.Exists(Path.Combine(installPath, ".aspire-install.json"))); 203var installPath = Path.Combine(env.TempDirectory, "install"); 226await File.ReadAllBytesAsync(Path.Combine(installPath, ".aspire-install.json")));
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
Aspire.Cli.EndToEnd.Tests (355)
AgentCommandTests.cs (8)
91var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json"); 146var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json"); 182var vscodePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".vscode"); 229var vscodeMcpConfigPath = Path.Combine(vscodePath, "mcp.json"); 309var vscodePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".vscode"); 348var mcpConfigPath = Path.Combine(vscodePath, "mcp.json"); 383var vscodePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".vscode"); 415var mcpConfigPath = Path.Combine(vscodePath, "mcp.json");
AppHostSyntaxErrorOutputTests.cs (5)
118configureProject(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 256var appHostPath = Path.Combine(projectDirectory, "apphost.cs"); 259File.WriteAllText(Path.Combine(projectDirectory, "BrokenDotNetApp.csproj"), $$""" 282File.WriteAllText(Path.Combine(projectDirectory, "MissingSdkAppHost.csproj"), """ 304File.WriteAllText(Path.Combine(projectDirectory, "apphost.mts"), "const value = ;");
BundleSmokeTests.cs (13)
64var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 65var appHostDirectory = Path.Combine(projectRoot, $"{projectName}.AppHost"); 66var appHostProjectPath = Path.Combine(appHostDirectory, $"{projectName}.AppHost.csproj"); 67var appHostSourcePath = Path.Combine(appHostDirectory, "AppHost.cs"); 68var argsOutputPath = Path.Combine(projectRoot, "apphost-args.txt"); 129var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 130var appHostDirectory = Path.Combine(projectRoot, $"{ProjectName}.AppHost"); 131var appHostProjectPath = Path.Combine(appHostDirectory, $"{ProjectName}.AppHost.csproj"); 132var appHostSourcePath = Path.Combine(appHostDirectory, "AppHost.cs"); 133var argsOutputPath = Path.Combine(projectRoot, "apphost-dnx-args.txt"); 222var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 223var appHostSourcePath = Path.Combine(projectRoot, "apphost.cs"); 224var argsOutputPath = Path.Combine(projectRoot, "apphost-file-args.txt");
CentralPackageManagementTests.cs (15)
44var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest"); 45var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost"); 46var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj"); 47var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props"); 66File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """ 156var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest"); 157var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost"); 158var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj"); 159var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props"); 177File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """ 279var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest"); 280var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost"); 281var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj"); 282var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props"); 297File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """
ChannelUpdateWorkflowTests.cs (9)
83var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 84var aspireConfigPath = Path.Combine(projectPath, "aspire.config.json"); 113var appHostPath = Path.GetFullPath(Path.Combine(projectPath, appHostRelativePath)); 256var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 267await RunStableChannelUpdateAndAssertChannelPreservedAsync(auto, counter, Path.Combine(projectPath, "aspire.config.json")); 297var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 307await RunStableChannelUpdateAndAssertChannelPreservedAsync(auto, counter, Path.Combine(projectPath, "aspire.config.json")); 339var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 353await RunStableChannelUpdateAndAssertChannelPreservedAsync(auto, counter, Path.Combine(projectPath, "aspire.config.json"));
CompletionTests.cs (11)
34await File.WriteAllTextAsync(Path.Combine(home.FullName, "globalsettings.json"), legacyConfig); 42var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 60Assert.Equal(string.Empty, await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "completion.stderr"))); 61Assert.Equal(string.Empty, await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "suggestions.stderr"))); 62Assert.Equal("completions\n", await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "suggestions.txt"))); 63Assert.Equal("complete -o default -F _aspire_complete aspire\n", await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "registration.txt"))); 66Assert.Equal(legacyConfig, await File.ReadAllTextAsync(Path.Combine(home.FullName, "globalsettings.json"))); 89await File.WriteAllTextAsync(Path.Combine(fakeBin.FullName, "aspire"), (""" 110await File.ReadAllBytesAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "completion-arguments.bin"))); 111Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "completion-executed"))); 126await File.ReadAllBytesAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "completion-arguments.bin")));
ConfigDiscoveryTests.cs (2)
57var workspaceConfigPath = Path.Combine(workspaceRoot, "aspire.config.json"); 163var parentConfigPath = Path.Combine(
ConfigMigrationTests.cs (14)
45var aspireHomeDir = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-home"); 125var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 126var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 188var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 189var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 232var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 235Path.Combine(aspireHomeDir, "globalsettings.json"), 288var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 289var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 358var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 359var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 438var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 439var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 561var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
CSharpInitTests.cs (14)
28[Path.Combine(appDirectory.FullName, "package.json")] = """{"name":"existing-web","private":true}""", 29[Path.Combine(appDirectory.FullName, "Incidental.slnx")] = "<Solution />" 33existingFiles[Path.Combine(appDirectory.FullName, "aspire.config.json")] = """{"appHost":{"language":"typescript/nodejs"}}"""; 66var errorOutput = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "init-error.txt")); 82var toolsDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "tools")); 83var projectPath = Path.Combine(toolsDirectory.FullName, "Incidental.csproj"); 86[Path.Combine(workspace.WorkspaceRoot.FullName, "Incidental.sln")] = """ 91[Path.Combine(toolsDirectory.FullName, "Incidental.slnx")] = """ 124Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 125Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json"))); 126var config = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"))); 141var description = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "resources.json"))); 188var appHostCs = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 189var aspireConfigJson = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json");
CSharpProjectModeInitTests.cs (6)
67var solutionPath = Path.Combine(workspace.WorkspaceRoot.FullName, solutionFileName); 85var workspaceNuGetConfig = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 139var solutionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln"); 141var appHostDir = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.AppHost")); 142var leftoverPath = Path.Combine(appHostDir.FullName, "leftover.txt"); 158var workspaceNuGetConfig = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config");
DescribeCommandTests.cs (3)
111var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "AspireReplicaTestApp"); 112var appHostDir = Path.Combine(projectDir, "AspireReplicaTestApp.AppHost"); 113var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
DockerComposeDeployWithVolumeTests.cs (1)
48var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName);
DockerDeploymentTests.cs (6)
54var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 55var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 56var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 150var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 151var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 152var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
DocsCommandE2ETests.cs (1)
19var docsFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "llms-small.txt");
EmulatedLocalReleaseBuildTests.cs (3)
85var projectDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 153var projectDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 154var configPath = Path.Combine(projectDir.FullName, "aspire.config.json");
EmulatedReleasedBuildTests.cs (3)
71var projectDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 129var projectDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 130var configPath = Path.Combine(projectDir.FullName, "aspire.config.json");
EmulatedStagingBuildTests.cs (3)
81var projectDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 142var projectDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectName)); 143var configPath = Path.Combine(projectDir.FullName, "aspire.config.json");
EntityFrameworkCoreDeploymentTests.cs (8)
133var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 134var targetRuntimePath = Path.Combine(projectDirectory, ".aspire-e2e-rid"); 153var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 154var appHostDirectory = Path.Combine(projectDirectory, $"{ProjectName}.AppHost"); 155var apiDirectory = Path.Combine(projectDirectory, $"{ProjectName}.ApiService"); 158Path.Combine(appHostDirectory, "AppHost.cs"), 209Path.Combine(apiDirectory, "Program.cs"), 247var apiProjectPath = Path.Combine(apiDirectory, $"{ProjectName}.ApiService.csproj");
Helpers\CliE2ETestHelpers.cs (9)
608if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx"))) 1114var configPath = Path.Combine(projectRoot, "aspire.config.json"); 1144destDir = Path.Combine(destDir, label); 1147using var logWriter = new StreamWriter(Path.Combine( 1169var destFile = Path.Combine(destDir, captureFileName); 1181? Path.Combine(githubWorkspace, "testresults") 1182: Path.Combine(AppContext.BaseDirectory, "TestResults"); 1195var destFile = Path.Combine(destDir, Path.GetFileName(file)); 1213CopyDirectory(dir, Path.Combine(destDir, destDirName), log);
Helpers\CliInstallStrategyTests.cs (8)
503File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.3.0-preview.1.25175.1.nupkg"), ""); 504File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.linux-x64.13.3.0-preview.1.25175.1.nupkg"), ""); 800File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.3.0-preview.1.12345.1.nupkg"), ""); 822File.WriteAllText(Path.Combine(tempDir.FullName, $"Aspire.Cli.{version}.nupkg"), ""); 840File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.linux-x64.13.3.0.nupkg"), ""); 858File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.3.0.nupkg"), ""); 859File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.4.0.nupkg"), ""); 878File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.linux-x64.13.3.0.nupkg"), "");
Helpers\GitIgnoreAssertions.cs (1)
12var gitIgnorePath = Path.Combine(projectRoot, ".gitignore");
Helpers\KubernetesDeployTestHelpers.cs (7)
345var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 346var apiDir = Path.Combine(projectDir, $"{projectName}.ApiService"); 348Assert.True(File.Exists(Path.Combine(appHostDir, "AppHost.cs"))); 349Assert.True(File.Exists(Path.Combine(apiDir, $"{projectName}.ApiService.csproj"))); 351output.WriteLine($"Writing AppHost.cs to: {Path.Combine(appHostDir, "AppHost.cs")}"); 352File.WriteAllText(Path.Combine(appHostDir, "AppHost.cs"), appHostCode); 353File.WriteAllText(Path.Combine(apiDir, "Program.cs"), apiProgramCode);
Helpers\LocalDeploymentTestHelpers.cs (3)
16var webDirectory = Path.Combine(projectDir, $"{projectName}.Web"); 17Assert.True(File.Exists(Path.Combine(webDirectory, $"{projectName}.Web.csproj"))); 19var programPath = Path.Combine(webDirectory, "Program.cs");
Helpers\TerminalRun.cs (3)
119var diagnosticsSource = Path.Combine(_workspace.WorkspaceRoot.FullName, CliE2EAutomatorHelpers.DiagnosticsDirectoryName); 162File.Copy(file, Path.Combine(destination, Path.GetFileName(file)), overwrite: true); 167CopyDirectoryIfExists(dir, Path.Combine(destination, Path.GetFileName(dir)));
Helpers\TestDirectoryHelpers.cs (2)
23File.Copy(file, Path.Combine(destination, Path.GetFileName(file))); 28CopyDirectory(dir, Path.Combine(destination, Path.GetFileName(dir)));
Helpers\TypeScriptAppHostToolchainTestHelpers.cs (5)
36var packageJsonPath = Path.Combine(projectRoot, "package.json"); 51var lockFilePath = Path.Combine(projectRoot, lockFileName); 58var nodeModulesPath = Path.Combine(projectRoot, "node_modules"); 178var yarnConfigPath = Path.Combine(projectRoot, YarnConfigurationFileName); 185var yarnLockPath = Path.Combine(projectRoot, "yarn.lock");
JavaCodegenValidationTests.cs (3)
52var modulesDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire/modules"); 63var codegenHashPath = Path.Combine(modulesDir, ".codegen-hash"); 96var filePath = Path.Combine(modulesDir, Path.Combine(file.Split('/')));
JavaEmptyAppHostTemplateTests.cs (1)
37Path.Combine(workspace.WorkspaceRoot.FullName, "JavaEmptyApp"),
JavaPolyglotTests.cs (1)
55var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.java");
JavaScriptPublishTests.cs (9)
145var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 178var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 213var appDir = Path.Combine(workspace.WorkspaceRoot.FullName, appName); 220File.WriteAllText(Path.Combine(appDir, "package.json"), $$""" 235File.WriteAllText(Path.Combine(appDir, "yarn.lock"), $$""" 252File.WriteAllText(Path.Combine(appDir, "server.js"), $$""" 277File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "verify-runtime.sh"), $$""" 330File.Copy(file, Path.Combine(workspace.WorkspaceRoot.FullName, Path.GetFileName(file))); 336var targetDir = Path.Combine(workspace.WorkspaceRoot.FullName, Path.GetFileName(fixtureDir));
KubernetesDeployBasicApiServiceTests.cs (1)
109Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployTypeScriptTests.cs (2)
76var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 77var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
KubernetesDeployTypeScriptWithPersistentVolumeTests.cs (2)
91var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 92var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
KubernetesDeployWithGarnetTests.cs (1)
106Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithHelmChartTests.cs (1)
103Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithMongoDBTests.cs (1)
109Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithMySqlTests.cs (1)
103Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithNatsTests.cs (1)
102Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithPersistentVolumeTests.cs (1)
150Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithPostgresTests.cs (1)
103Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithProjectPersistentVolumeTests.cs (1)
131Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithRabbitMQTests.cs (1)
99Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithRedisTests.cs (1)
111Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithSqlServerTests.cs (1)
103Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesDeployWithValkeyTests.cs (1)
106Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
KubernetesPublishRequiresExternalEndpointTests.cs (3)
89var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 90var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 91var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
KubernetesPublishTests.cs (3)
133var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 134var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 135var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
LaunchProfileTests.cs (4)
29File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "LaunchProfile.sln"), "Fake solution file"); 41var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "LaunchProfile.AppHost"); 42var appHostSourcePath = Path.Combine(appHostDirectory, "AppHost.cs"); 44var profileOutputPath = Path.Combine(appHostDirectory, "selected-profile.txt");
LocalConfigMigrationTests.cs (1)
89var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json");
OllamaIntegrationTests.cs (3)
52var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 53var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 54var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
PersistentContainerEndToEndTests.cs (1)
134Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName),
PodmanDeploymentTests.cs (3)
64var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 65var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 66var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
ProjectReferenceTests.cs (9)
48var configPath = Path.Combine(workDir, "aspire.config.json"); 54var integrationDir = Path.Combine(workDir, "MyIntegration"); 57File.WriteAllText(Path.Combine(integrationDir, "MyIntegration.csproj"), $$""" 72var aspireHome = Path.Combine( 74var hivesDir = Path.Combine(aspireHome, "hives"); 81var packagesDir = Path.Combine(hiveDir, "packages"); 97File.WriteAllText(Path.Combine(workDir, "nuget.config"), nugetConfig); 100File.WriteAllText(Path.Combine(integrationDir, "MyIntegrationExtensions.cs"), """ 133File.WriteAllText(Path.Combine(workDir, "apphost.mts"), """
PsCommandTests.cs (1)
96var outputFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "ps-output.json");
PythonReactTemplateTests.cs (1)
36Path.Combine(workspace.WorkspaceRoot.FullName, "AspirePyReactApp"),
RadiusDotnetProjectDeployTests.cs (1)
27var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName);
RadiusPublishTests.cs (2)
118var appBicepPath = Path.Combine(outputDir, "app.bicep"); 130var bicepConfigPath = Path.Combine(outputDir, "bicepconfig.json");
RepositoryToolUpdateTests.cs (11)
42var repositoryPath = Path.Combine(workspace.WorkspaceRoot.FullName, "repository"); 44var npmManifestPath = Path.Combine(repositoryPath, "package.json"); 45var probeDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "package-manager-probes"); 46var invocationLogPath = Path.Combine(workspace.WorkspaceRoot.FullName, "package-manager-invocations.log"); 49Directory.CreateDirectory(Path.Combine(repositoryPath, ".git")); 108await File.WriteAllBytesAsync(Path.Combine(repositoryPath, name), bytes, cancellationToken); 131Path.Combine(probeDirectory, tool), 217Assert.Equal(bytes, await File.ReadAllBytesAsync(Path.Combine(repositoryPath, name), cancellationToken)); 223Assert.False(File.Exists(Path.Combine(repositoryPath, "lifecycle-ran"))); 224Assert.False(Directory.Exists(Path.Combine(repositoryPath, "node_modules"))); 225Assert.False(File.Exists(Path.Combine(repositoryPath, "aspire.config.json")));
SdkExportTests.cs (2)
24var scriptPath = Path.Combine(workspace.WorkspaceRoot.FullName, "run-sdk-export.sh"); 25var exportPath = Path.Combine(workspace.WorkspaceRoot.FullName, "sdk-export.json");
SelfUpdateChannelPersistenceTests.cs (2)
37var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 38var configPath = Path.Combine(projectPath, "aspire.config.json");
SingleFileAppHostInitDotnetRunTests.cs (3)
66var appHostCs = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 67var aspireConfigJson = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 68var appHostRunJson = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json");
SmokeTests.cs (3)
248var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 249var configPath = Path.Combine(projectPath, "aspire.config.json"); 251var appHostPath = Path.Combine(projectPath, appHostFileName);
StartStopTests.cs (4)
205var bothInstancesPath = Path.Combine(workspace.WorkspaceRoot.FullName, "both-instances.json"); 206var remainingInstancePath = Path.Combine(workspace.WorkspaceRoot.FullName, "remaining-instance.json"); 207var stoppedInstancesPath = Path.Combine(workspace.WorkspaceRoot.FullName, "stopped-instances.json"); 343var assertionScript = Path.Combine(workspace.WorkspaceRoot.FullName, "assert-detached-process-group.py");
tests\Aspire.Hosting.TestUtilities\Utils\MSBuildUtils.cs (2)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
tests\Shared\Hex1bTestHelpers.cs (1)
135return Path.Combine(recordingsDir, $"{testName}.cast");
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
TypeScriptBlazorGatewayTests.cs (2)
77var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 90var verificationScriptPath = Path.Combine(workspace.WorkspaceRoot.FullName, "verify-blazor-gateway.sh");
TypeScriptCodegenValidationTests.cs (10)
79var lockFilePath = Path.Combine( 102var filePath = Path.Combine(modulesDir, file); 115var aspireTs = File.ReadAllText(Path.Combine(modulesDir, "aspire.mts")); 170var aspireModulePath = Path.Combine(modulesDir, "aspire.mts"); 187var codegenHashPath = Path.Combine(modulesDir, ".codegen-hash"); 206var filePath = Path.Combine(modulesDir, file); 225var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 238var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 289var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 371var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts");
TypeScriptEmptyAppHostTemplateTests.cs (9)
37var appDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "TsEmptyApp"); 40var appHostPath = Path.Combine(appDirectory, "apphost.mts"); 92var appDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "TsDeadlockRepro"); 106var extensionDirectory = Directory.CreateDirectory(Path.Combine(appDirectory, "DeadlockExtension")); 108File.WriteAllText(Path.Combine(extensionDirectory.FullName, "DeadlockExtension.csproj"), $$""" 123File.WriteAllText(Path.Combine(extensionDirectory.FullName, "DeadlockExtensions.cs"), """ 163File.WriteAllText(Path.Combine(appDirectory, "apphost.mts"), """ 177var configPath = Path.Combine(appDirectory, "aspire.config.json"); 189var configPath = Path.Combine(appDirectory, "aspire.config.json");
TypeScriptLegacyAppHostTests.cs (9)
108var mtsPath = Path.Combine(projectRoot, "apphost.mts"); 123File.WriteAllText(Path.Combine(projectRoot, "apphost.ts"), """ 135var configPath = Path.Combine(projectRoot, "aspire.config.json"); 146File.WriteAllText(Path.Combine(projectRoot, "tsconfig.apphost.json"), """ 172var legacyModulesDir = Path.Combine(projectRoot, ".modules"); 191var filePath = Path.Combine(legacyModulesDir, expectedFile); 218var filePath = Path.Combine(legacyModulesDir, unexpectedFile); 230var aspireTs = File.ReadAllText(Path.Combine(legacyModulesDir, "aspire.ts")); 235$"File path: {Path.Combine(legacyModulesDir, "aspire.ts")}.");
TypeScriptMigrateAppHostTests.cs (11)
98var mtsPath = Path.Combine(projectRoot, "apphost.mts"); 112File.WriteAllText(Path.Combine(projectRoot, "apphost.ts"), """ 122var configPath = Path.Combine(projectRoot, "aspire.config.json"); 130File.WriteAllText(Path.Combine(projectRoot, "tsconfig.apphost.json"), """ 157var legacyAppHost = Path.Combine(projectRoot, "apphost.ts"); 165var modernAppHost = Path.Combine(projectRoot, "apphost.mts"); 181var legacyModulesDir = Path.Combine(projectRoot, ".modules"); 198var filePath = Path.Combine(modernModulesDir, expectedFile); 206var aspireMts = File.ReadAllText(Path.Combine(modernModulesDir, "aspire.mts")); 211$"File path: {Path.Combine(modernModulesDir, "aspire.mts")}."); 215var tsconfig = JsonNode.Parse(File.ReadAllText(Path.Combine(projectRoot, "tsconfig.apphost.json")))!.AsObject();
TypeScriptPolyglotApphostDirectoryTests.cs (2)
59var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "tsapp"); 78var appHostPath = Path.Combine(projectRoot, "apphost.mts");
TypeScriptPolyglotTests.cs (25)
82var viteProjectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "viteapp"); 98var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 121var appHostLockFilePath = Path.Combine( 128var viteLockFilePath = Path.Combine( 197var viteProjectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "viteapp"); 208var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 227var appHostLockFilePath = Path.Combine( 234var guestLockFilePath = Path.Combine( 283var lockFilePath = Path.Combine( 352var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 360var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 361var restartCountPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".deno-watch-restart-count"); 426Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), 448var packageJson = JsonNode.Parse(File.ReadAllText(Path.Combine(projectRoot, "package.json")))!.AsObject(); 454originalTsConfig = File.ReadAllText(Path.Combine(projectRoot, "tsconfig.json")); 456File.WriteAllText(Path.Combine(projectRoot, "package.json"), packageJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true })); 479packageJson = JsonNode.Parse(File.ReadAllText(Path.Combine(projectRoot, "package.json")))!.AsObject(); 496Assert.Equal(originalTsConfig, File.ReadAllText(Path.Combine(projectRoot, "tsconfig.json"))); 497Assert.False(File.Exists(Path.Combine(projectRoot, "tsconfig.apphost.json"))); 498Assert.False(File.Exists(Path.Combine(projectRoot, "apphost.mts"))); 500var appHostDirectory = Path.Combine(projectRoot, "aspire-apphost"); 501var appHostPath = Path.Combine(appHostDirectory, "apphost.mts"); 504var appHostPackageJson = JsonNode.Parse(File.ReadAllText(Path.Combine(appHostDirectory, "package.json")))!.AsObject(); 516Assert.True(File.Exists(Path.Combine(appHostDirectory, "tsconfig.apphost.json"))); 519var configPath = Path.Combine(projectRoot, "aspire.config.json");
TypeScriptPublishTests.cs (9)
62var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 147var artifactsPath = Path.Combine(workspace.WorkspaceRoot.FullName, "artifacts"); 148var composeContent = await File.ReadAllTextAsync(Path.Combine(artifactsPath, "docker-compose.yaml")); 238var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 313var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 354var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 387Path.Combine(s_jsPublishFixturesDir, fixtureName), 388Path.Combine(workspace.WorkspaceRoot.FullName, fixtureName)); 394var dockerfilePath = Path.Combine(artifactsPath, $"{resourceName}.Dockerfile");
TypeScriptReusablePackageTests.cs (11)
31var appDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "app")); 44var appAppHostPath = Path.Combine(appDirectory.FullName, "apphost.mts"); 57var helperAppHostPath = Path.Combine(helperDirectory.FullName, "apphost.mts"); 71Assert.Contains("addRedis", File.ReadAllText(Path.Combine(helperModulesDirectory, "aspire.mts"))); 93var configPath = Path.Combine(appDirectory.FullName, "aspire.config.json"); 101File.WriteAllText(Path.Combine(appDirectory.FullName, "apphost.mts"), """ 113File.WriteAllText(Path.Combine(appDirectory.FullName, "tsconfig.json"), """ 141File.WriteAllText(Path.Combine(helperDirectory.FullName, "aspire.config.json"), $$""" 155File.WriteAllText(Path.Combine(helperDirectory.FullName, "package.json"), """ 171File.WriteAllText(Path.Combine(helperDirectory.FullName, "tsconfig.json"), """ 194File.WriteAllText(Path.Combine(helperSourceDirectory.FullName, "index.ts"), """
TypeScriptSqlServerNativeAssetsBundleTests.cs (1)
54var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts");
TypeScriptStarterSmokeTests.cs (4)
50var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "TsStarterApp"); 52var modulesDir = Path.Combine(projectRoot, ".aspire/modules"); 59var aspireModulePath = Path.Combine(modulesDir, "aspire.mts"); 79AssertAspireConfigChannelConsistentWithSdkVersion(Path.Combine(projectRoot, "aspire.config.json"));
TypeScriptStarterTemplateTests.cs (3)
37var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "TsStarterApp"); 39var modulesDir = Path.Combine(projectRoot, ".aspire/modules"); 46var aspireModulePath = Path.Combine(modulesDir, "aspire.mts");
UpdateChannelNuGetConfigOrderingTests.cs (3)
95var appHostCsPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 96var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 97var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json");
Aspire.Cli.Tests (2639)
Acquisition\IdentityResolverTests.cs (2)
508=> File.WriteAllText(Path.Combine(directory, InstallSidecarReader.SidecarFileName), json); 580logsDirectory: Path.Combine(workspace.WorkspaceRoot.FullName, "logs"),
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (27)
39var pathDir = Path.Combine(workspace.WorkspaceRoot.FullName, "no-sidecar-bin"); 55var expectedSidecarPath = Path.Combine(pathDir, InstallSidecarReader.SidecarFileName); 69var pathDir = Path.Combine(workspace.WorkspaceRoot.FullName, "unreadable-bin"); 72var sidecarPath = Path.Combine(pathDir, InstallSidecarReader.SidecarFileName); 101var pathDir = Path.Combine(workspace.WorkspaceRoot.FullName, "malformed-bin"); 104var sidecarPath = Path.Combine(pathDir, InstallSidecarReader.SidecarFileName); 131File.WriteAllText(Path.Combine(binDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"script\"}"); 163var firstPathDir = Path.Combine(workspace.WorkspaceRoot.FullName, "path-first"); 164var secondPathDir = Path.Combine(workspace.WorkspaceRoot.FullName, "path-second"); 279File.WriteAllText(Path.Combine(prDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"pr\"}"); 303File.WriteAllText(Path.Combine(binDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"script\"}"); 322var binDir = Path.Combine(workspace.WorkspaceRoot.FullName, hasInstallMetadata ? "metadata-bin" : "no-metadata-bin"); 328File.WriteAllText(Path.Combine(binDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"script\"}"); 369File.WriteAllText(Path.Combine(prDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"pr\"}"); 403File.WriteAllText(Path.Combine(prDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"pr\"}"); 438File.WriteAllText(Path.Combine(brewDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"brew\"}"); 474File.WriteAllText(Path.Combine(brewDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"brew\"}"); 574var pathDir = Path.Combine(workspace.WorkspaceRoot.FullName, "no-sidecar-bin"); 765File.WriteAllText(Path.Combine(releaseBinDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"script\"}"); 792var releaseBinDir = Path.Combine(aspireHome.FullName, "bin"); 795File.WriteAllText(Path.Combine(releaseBinDir, InstallSidecarReader.SidecarFileName), "{\"source\":\"localhive\"}"); 815logFilePath: Path.Combine(root.FullName, "test.log"), 847var binDir = Path.Combine(workspace.WorkspaceRoot.FullName, "firmlink-self-bin"); 922var binDir = Path.Combine(workspace.WorkspaceRoot.FullName, "hint-bin"); 996logFilePath: Path.Combine(root.FullName, "test.log"), 1009var path = Path.Combine(dir, name); 1027File.WriteAllText(Path.Combine(dir, InstallSidecarReader.SidecarFileName), $"{{\"source\":\"{source}\"}}");
Acquisition\InstallSidecarReaderTests.cs (8)
45var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 143var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 162var sidecarPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 235var sidecarPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 251var sidecarPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 267var sidecarPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 285var sidecarPath = Path.Combine(workspace.WorkspaceRoot.FullName, InstallSidecarReader.SidecarFileName); 363var path = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName);
Acquisition\InstallSidecarWriterTests.cs (5)
15var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 54var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 63var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 77var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 97var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName);
Acquisition\PeerInstallProbeTests.cs (7)
68var missing = Path.Combine(workspace.WorkspaceRoot.FullName, "does-not-exist"); 392var pidFile = Path.Combine(workspace.WorkspaceRoot.FullName, "peer.pid"); 520var argvFile = Path.Combine(workspace.WorkspaceRoot.FullName, "argv.txt"); 522? Path.Combine(workspace.WorkspaceRoot.FullName, "peer.cmd") 523: Path.Combine(workspace.WorkspaceRoot.FullName, "peer"); 545? Path.Combine(workspace.WorkspaceRoot.FullName, "peer.cmd") 546: Path.Combine(workspace.WorkspaceRoot.FullName, "peer");
Acquisition\WingetRegistryProbeTests.cs (3)
25var sidecarPath = Path.Combine(workspace.Path, SidecarFileName); 44var sidecarPath = Path.Combine(workspace.Path, SidecarFileName); 89var sidecarPath = Path.Combine(workspace.Path, SidecarFileName);
Agents\AspireSkillsBundleTests.cs (15)
47Assert.Contains(files, file => file.RelativePath == Path.Combine("references", "app-commands.md")); 48Assert.DoesNotContain(files, file => file.RelativePath == Path.Combine("evals", "evals.json")); 145var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 189await File.WriteAllTextAsync(Path.Combine(skillDirectory, "SKILL.md"), CreateSkillFileContent()); 232await File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), "{"); 557var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 609var archivePath = Path.Combine(rootDirectory, "bundle.zip"); 620new DirectoryInfo(Path.Combine(rootDirectory, "staged")), 638var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 663await File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), manifestJson); 684var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 842var fullPath = Path.Combine(skillDirectory, AspireSkillsBundleProvider.NormalizeRelativePath(relativePath)); 862Sha512 = hashOverride ?? ComputeSha512(Path.Combine(skillDirectory, AspireSkillsBundleProvider.NormalizeRelativePath(file.Key))) 885await File.WriteAllTextAsync(Path.Combine(skillDirectory, "SKILL.md"), content); 908return File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), manifestJson);
Agents\AspireSkillsInstallerTests.cs (53)
88var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 110var cacheLockPath = Path.Combine(cacheRoot, $".{AspireSkillsInstaller.Version}.lock"); 232Assert.True(File.Exists(Path.Combine( 285Assert.False(File.Exists(Path.Combine( 348await File.ReadAllTextAsync(Path.Combine( 353await File.ReadAllTextAsync(Path.Combine( 410await File.ReadAllTextAsync(Path.Combine( 460Assert.False(File.Exists(Path.Combine(cachedBundleDirectory, "skill-manifest.json"))); 461Assert.False(Directory.Exists(Path.Combine(cachedBundleDirectory, "skills"))); 467await File.ReadAllTextAsync(Path.Combine( 490await File.WriteAllTextAsync(Path.Combine(cachedBundleDirectory, "skill-manifest.json"), "{"); 523Directory.CreateDirectory(Path.Combine(cachedBundleDirectory, ".lastused")); 564Path.Combine(staleCacheDirectory, ".lastused"), 595var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 596var staleVersionDirectory = Path.Combine(cacheRoot, "9.9.9"); 640var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 641var staleVersionDirectory = Path.Combine(cacheRoot, "9.9.9"); 643var staleCacheDirectory = Path.Combine(staleVersionDirectory, staleArchiveSha512); 687var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 720var staleVersionLockPath = Path.Combine(cacheRoot, $".{staleVersion}.lock"); 756var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 764var staleVersionLockPath = Path.Combine(cacheRoot, $".{staleVersion}.lock"); 900var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 903Path.Combine(cacheRoot, $".{AspireSkillsInstaller.Version}.lock"), 947var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 954var staleDirectory = Directory.CreateDirectory(Path.Combine(cacheRoot, $"{prefix}stale")).FullName; 957recentDirectories.Add(Directory.CreateDirectory(Path.Combine(cacheRoot, $"{prefix}recent")).FullName); 1019var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 1426Assert.Equal(Path.Combine("references", "compatibility-and-validation.md"), compatibilityReference.RelativePath); 1431Assert.Equal(Path.Combine("references", "migration-patterns.md"), migrationPatternsReference.RelativePath); 1448var bundleDirectory = new DirectoryInfo(Path.Combine(rootDirectory, "bundle")); 1481var stageDirectory = new DirectoryInfo(Path.Combine(rootDirectory, ".stage-test")); 1482var targetDirectory = Path.Combine(rootDirectory, "cached"); 1493Assert.True(File.Exists(Path.Combine(targetDirectory, "skill-manifest.json"))); 1509var archivePath = Path.Combine(rootDirectory, "bundle.tgz"); 1514var bundleDirectory = new DirectoryInfo(Path.Combine(rootDirectory, "bundle")); 1539var archivePath = Path.Combine(rootDirectory, "bundle.tgz"); 1543var bundleDirectory = Path.Combine(rootDirectory, "bundle"); 1568var bundleDirectory = new DirectoryInfo(Path.Combine(rootDirectory, "bundle")); 1642await File.ReadAllTextAsync(Path.Combine( 1647await File.ReadAllTextAsync(Path.Combine( 1809Assert.False(File.Exists(Path.Combine( 2047var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 2081await File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), manifestJson); 2085await File.WriteAllTextAsync(Path.Combine(bundleDirectory, AspireSkillsInstaller.ArchiveSha512FileName), archiveSha512); 2091Path.Combine(bundleDirectory, AspireSkillsInstaller.GitHubArchiveSha256FileName), 2098Path.Combine(bundleDirectory, AspireSkillsInstaller.GitHubAttestationVerifiedFileName), 2106Path.Combine(cacheDirectory, ".lastused"), 2130var bundleDirectory = Path.Combine(rootDirectory, $"aspire-skills-v{AspireSkillsInstaller.Version}"); 2135Path.Combine(bundleDirectory, AspireSkillsInstaller.GitHubAttestationVerifiedFileName), 2140await File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), "{"); 2187return Path.Combine( 2316var archivePath = Path.Combine(bundleDirectory.FullName, $".test-embedded-{Guid.NewGuid():N}.tgz");
Agents\ClaudeCodeAgentEnvironmentScannerTests.cs (3)
25var mcpJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json"); 53var mcpJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json"); 78var mcpJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json");
Agents\CommonAgentApplicatorsTests.cs (3)
28Assert.Equal(Path.Combine(".agents", "skills"), SkillLocation.Standard.RelativeSkillDirectory); 36Assert.Equal(Path.Combine(".claude", "skills"), SkillLocation.ClaudeCode.RelativeSkillDirectory); 145Assert.False(bundleSkill.ShouldInstallFile(Path.Combine("evals", "evals.json")));
Agents\CopilotAgentEnvironmentScannerTests.cs (9)
59var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 110Assert.True(File.Exists(Path.Combine(copilotHome.FullName, "mcp-config.json"))); 111Assert.False(Directory.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, ".copilot"))); 131var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 171var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 273var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 301var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 326var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 352var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json");
Agents\CopilotAppInstallationDetectorTests.cs (7)
19Path.Combine(appDirectory.FullName, "github.exe"), 26var executablePath = Path.Combine(appDirectory.FullName, "github.exe"); 63Path.Combine(applicationsDirectory.FullName, "github-copilot.desktop"), 70var desktopEntryPath = Path.Combine(applicationsDirectory.FullName, "github-copilot.desktop"); 113Path.Combine(dataHome.FullName, "applications"), 114Path.Combine(firstDataDirectory.FullName, "applications"), 115Path.Combine(secondDataDirectory.FullName, "applications"),
Agents\OpenCodeAgentEnvironmentScannerTests.cs (3)
23var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "opencode.jsonc"); 49var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "opencode.jsonc"); 72var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "opencode.jsonc");
Agents\PlaywrightCliInstallerTests.cs (49)
20var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"); 91var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"); 192var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 194var tarballPath = Path.Combine(tempDir, "package.tgz"); 240var tarballPath = Path.Combine(tempDir, "package.tgz"); 283var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 285var tarballPath = Path.Combine(tempDir, "package.tgz"); 327var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 329var tarballPath = Path.Combine(tempDir, "package.tgz"); 376var tempPath = Path.Combine(tempDir, "package.tgz"); 468var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 470var tarballPath = Path.Combine(tempDir, "package.tgz"); 622var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-mirror-test-{Guid.NewGuid():N}"); 637File.WriteAllText(Path.Combine(skillDir, "SKILL.md"), "# Playwright CLI Skill"); 638Directory.CreateDirectory(Path.Combine(skillDir, "subdir")); 654Path.Combine(".claude", "skills"), 655Path.Combine(".agents", "skills"), 656Path.Combine(".github", "skills") 681var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-sync-test-{Guid.NewGuid():N}"); 682var sourceDir = Path.Combine(tempDir, "source"); 683var targetDir = Path.Combine(tempDir, "target"); 689File.WriteAllText(Path.Combine(sourceDir, "keep.md"), "keep"); 693File.WriteAllText(Path.Combine(targetDir, "keep.md"), "old content"); 694File.WriteAllText(Path.Combine(targetDir, "stale.md"), "should be removed"); 695Directory.CreateDirectory(Path.Combine(targetDir, "stale-dir")); 701Assert.Equal("keep", File.ReadAllText(Path.Combine(targetDir, "keep.md"))); 704Assert.False(File.Exists(Path.Combine(targetDir, "stale.md"))); 705Assert.False(Directory.Exists(Path.Combine(targetDir, "stale-dir"))); 719var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-cleanup-test-{Guid.NewGuid():N}"); 734File.WriteAllText(Path.Combine(skillDir, "SKILL.md"), "# Playwright CLI Skill"); 750Path.Combine(".agents", "skills") 772var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-preexist-test-{Guid.NewGuid():N}"); 780await File.WriteAllTextAsync(Path.Combine(preExistingDir, "SKILL.md"), "# User's existing skill"); 801Path.Combine(".agents", "skills") 820var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-emptydir-test-{Guid.NewGuid():N}"); 835File.WriteAllText(Path.Combine(skillDir, "SKILL.md"), "# Playwright CLI Skill"); 850Path.Combine(".agents", "skills") 857Assert.False(Directory.Exists(Path.Combine(tempDir, ".claude"))); 871var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-rmparent-test-{Guid.NewGuid():N}"); 885Path.Combine(".claude", "skills")); 888Assert.False(Directory.Exists(Path.Combine(tempDir, ".claude"))); 903var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-rmparent-test-{Guid.NewGuid():N}"); 917Path.Combine(".claude", "skills")); 935var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-rmparent-test-{Guid.NewGuid():N}"); 951Assert.False(Directory.Exists(Path.Combine(tempDir, ".agents"))); 967var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-rmparent-test-{Guid.NewGuid():N}"); 983Path.Combine("a", "b")); 990Assert.True(Directory.Exists(Path.Combine(tempDir, "a"))); 1024PackResult = Path.Combine(outputDirectory, "package.tgz");
Agents\TelemetryHookConfiguratorTests.cs (17)
74Assert.False(Directory.Exists(Path.Combine(home.FullName, ".copilot"))); 122var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 123var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 161var claude = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 162await File.WriteAllTextAsync(Path.Combine(claude.FullName, "settings.json"), 182var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 183var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 204var claude = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 209: Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 214["args"] = new JsonArray(Path.Combine(workspace.Path, assemblyName), "agent", "telemetry", "--hook") 227await File.WriteAllTextAsync(Path.Combine(claude.FullName, "settings.json"), settings.ToJsonString()); 247var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 248var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 264var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 265var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 294Assert.False(Directory.Exists(Path.Combine(home.FullName, ".copilot"))); 295Assert.False(Directory.Exists(Path.Combine(home.FullName, ".claude")));
Agents\TelemetryHookInstallerTests.cs (4)
27Assert.Equal(Path.Combine(expectedDirectory, "track-telemetry.sh"), scripts.ShellScriptPath); 28Assert.Equal(Path.Combine(expectedDirectory, "track-telemetry.ps1"), scripts.PowerShellScriptPath); 52await using var manifestStream = File.OpenRead(Path.Combine(bundleDirectory.FullName, "skill-manifest.json")); 125var shellPath = Path.Combine(hooksDirectory, "track-telemetry.sh");
Agents\TelemetryHookScriptTests.cs (4)
512var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "capture.txt"); 526var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "capture.txt"); 565var path = Path.Combine(directory, "recorder.sh"); 579var path = Path.Combine(directory, "recorder.ps1");
Agents\VsCodeAgentEnvironmentScannerTests.cs (9)
107var vsCodePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".vscode"); 126var mcpJsonPath = Path.Combine(parentVsCode.FullName, "mcp.json"); 143var mcpJsonPath = Path.Combine(vsCodeFolder.FullName, "mcp.json"); 188var mcpJsonPath = Path.Combine(vsCodeFolder.FullName, "mcp.json"); 229var mcpJsonPath = Path.Combine(vsCodeFolder.FullName, "mcp.json"); 281var mcpJsonPath = Path.Combine(vsCodeFolder.FullName, "mcp.json"); 309var mcpJsonPath = Path.Combine(vsCodeFolder.FullName, "mcp.json"); 334var mcpJsonPath = Path.Combine(vsCodeFolder.FullName, "mcp.json"); 391homeDirectory ??= new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
AssemblyMetadataChannelTests.cs (1)
61while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "global.json")))
Backchannel\AppHostCliBackchannelTests.cs (2)
34var tempFile = Path.Combine(tempDir.FullName, "large.bin"); 69var tempFile = Path.Combine(tempDir.FullName, "small.bin");
Backchannel\AppHostConnectionResolverTests.cs (11)
56string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("TestAppHost", "TestAppHost.csproj")), 87string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("TestAppHost", "TestAppHost.csproj")), 288var realProjectFile = new FileInfo(Path.Combine(realDirectory.FullName, "TestAppHost.csproj")); 292var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 294var projectFileViaSymlink = new FileInfo(Path.Combine(symlinkDirectory, "TestAppHost.csproj")); 331var projectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "TestAppHost.csproj")); 377Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 488Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 547var commonGitDirectory = Path.Combine(primaryCheckout.FullName, ".git"); 557var projectFile = new FileInfo(Path.Combine(directory.FullName, fileName)); 577var socketPath = Path.Combine(
Backchannel\AuxiliaryBackchannelMonitorTests.cs (17)
30var realDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "real")); 31var symlinkDirectory = Path.Combine(tempRoot.FullName, "link"); 35var appHostPathViaReal = Path.Combine(realDirectory.FullName, "apphost.cs"); 39var appHostPathViaSymlink = Path.Combine(symlinkDirectory, "apphost.cs"); 54var workingDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "wd")).FullName; 79Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 81TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 83var primaryAppHost = Path.Combine(primaryRoot, "AppHost.csproj"); 84var nestedAppHost = Path.Combine(worktreeRoot, "AppHost.csproj"); 104Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 110var submoduleAppHost = Path.Combine(submoduleRoot, "AppHost.csproj"); 126Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 128var adminDirectory = TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 131var submoduleAppHost = Path.Combine(submoduleRoot, "AppHost.csproj"); 289var appHostId = BackchannelConstants.ComputeAppHostId(Path.Combine(homeDirectory.FullName, "MyApp.AppHost.csproj")); 290var socketPath = Path.Combine(backchannelsDirectory, $"{appHostId}a1b2C3d4.{Environment.ProcessId}"); 322logFilePath: Path.Combine(homeDirectory.FullName, "test.log"),
Backchannel\BackchannelConstantsTests.cs (21)
16var homeDirectory = Path.Combine(Path.GetTempPath(), "testuser"); 252var socket1 = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.12345"); 253var socket2 = Path.Combine(backchannelsDir, $"{appHostId}Z9y8X7w6.67890"); 257var otherSocket = Path.Combine(backchannelsDir, "differentId1a1b2C3d4.99999"); 279var oldFormatSocket = Path.Combine(legacyBackchannelsDir, $"auxi.sock.{hash}"); 282var legacyPidSocket = Path.Combine(legacyBackchannelsDir, $"auxi.sock.{hash}.12345"); 306var badSeparator = Path.Combine(backchannelsDir, $"{appHostId}AbCdEfGhX12345"); 310var badPid = Path.Combine(backchannelsDir, $"{appHostId}AbCdEfGh.notapid"); 329var otherSocket = Path.Combine(backchannelsDir, "differentId1a1b2C3d4.99999"); 355var orphanedSocket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.{deadPid}"); 356var liveSocket = Path.Combine(backchannelsDir, $"{appHostId}Z9y8X7w6.{currentPid}"); 357var pidlessSocket = Path.Combine(backchannelsDir, appHostId); 386var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 389var projectFileViaSymlink = Path.Combine(symlinkDirectory, "TestAppHost.csproj"); 409var socketPath = Path.Combine(backchannelsDirectory, $"{appHostId}A{index:D7}.{currentPid}"); 438var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 441var realProjectPath = Path.Combine(realDirectory.FullName, "TestAppHost.csproj"); 443var projectFileViaSymlink = Path.Combine(symlinkDirectory, "TestAppHost.csproj"); 524var socket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.12345"); 555var socket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.12345"); 585var legacySocket = Path.Combine(backchannelsDir, $"auxi.sock.{legacyHash}.a1b2c3d4e5f6.99999");
Backchannel\OrphanedAppHostCollectorTests.cs (1)
369var path = Path.Combine(directory.FullName, name);
BundleNuGetServiceTests.cs (1)
17var managedPath = Path.Combine(tempDir.FullName, "aspire-managed");
Bundles\BundleServiceCrossRouteExtractionTests.cs (3)
72var processPath = Path.Combine(root, ToNativePath(relativeProcessPath)); 79var sidecarPath = Path.Combine(binaryDir, ".aspire-install.json"); 90: Path.Combine(root, ToNativePath(relativeExpectedExtractDir));
BundleServiceComputeDefaultExtractDirTests.cs (17)
32var prefixDir = Path.Combine(workspace.Path, "aspire"); 33var binDir = Path.Combine(prefixDir, "bin"); 36var binaryPath = Path.Combine(binDir, ExeName("aspire")); 38File.WriteAllText(Path.Combine(binDir, SidecarFileName), $"{{\"source\":\"{source}\"}}"); 56var binDir = Path.Combine(prDir, "bin"); 59var binaryPath = Path.Combine(binDir, ExeName("aspire")); 61File.WriteAllText(Path.Combine(binDir, SidecarFileName), "{\"source\":\"pr\"}"); 79var binaryPath = Path.Combine(installDir, "aspire.exe"); 81File.WriteAllText(Path.Combine(installDir, SidecarFileName), "{\"source\":\"winget\"}"); 105var cellarBinary = Path.Combine(cellarDir, "aspire"); 107File.WriteAllText(Path.Combine(cellarDir, SidecarFileName), "{\"source\":\"brew\"}"); 109var brewBinDir = Path.Combine(workspace.Path, "bin"); 111var symlinkPath = Path.Combine(brewBinDir, "aspire"); 144var binaryPath = Path.Combine(ridDir, ExeName("aspire")); 146File.WriteAllText(Path.Combine(ridDir, SidecarFileName), "{\"source\":\"dotnet-tool\"}"); 161var binDir = Path.Combine(prefixDir, "bin"); 164var binaryPath = Path.Combine(binDir, ExeName("aspire"));
BundleServiceIntegrationTests.cs (48)
49var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 55var bundleLink = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 161var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 209var v1BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v1", "cli-v1"); 210var v2BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v2", "cli-v2-longer"); 223var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 264var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 268Directory.CreateDirectory(Path.Combine(versionsDir, "stale-aaaaaaaaaaaaaaaa")); 269Directory.CreateDirectory(Path.Combine(versionsDir, $"stale{BundleService.TempSuffixPrefix}deadbeef")); 270Directory.CreateDirectory(Path.Combine(versionsDir, $"stale{BundleService.BadSuffixPrefix}99999")); 305Assert.False(Directory.Exists(Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName))); 314var destinationPath = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 315var lockedFilePath = Path.Combine(sourcePath, "locked.dll"); 344var binDir = Path.Combine(layoutRoot, ".fake-bins"); 352File.WriteAllText(Path.Combine(binDir, ".aspire-install.json"), "{\"source\":\"script\"}"); 358var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 393var versionsDir = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 394var staleVersionDir = Path.Combine(versionsDir, "stale-version"); 408var versionsDir = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 409var staleVersionDir = Path.Combine(versionsDir, "stale-version"); 410var leasesDir = Path.Combine(staleVersionDir, BundleVersionLease.LeasesDirectoryName); 412File.WriteAllText(Path.Combine(leasesDir, "orphan.lease"), "{}"); 429var versionsDir = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 430var staleVersionDir = Path.Combine(versionsDir, "stale-version"); 431var leasesDir = Path.Combine(staleVersionDir, BundleVersionLease.LeasesDirectoryName); 433File.WriteAllText(Path.Combine(leasesDir, "unknown.lease"), "{}"); 489File.WriteAllText(Path.Combine(ridDir, ".aspire-install.json"), "{\"source\":\"dotnet-tool\"}"); 497var bundleLink = Path.Combine(ridDir, BundleDiscovery.BundleDirectoryName); 563var bundleLink = Path.Combine(aspireHome, BundleDiscovery.BundleDirectoryName); 574Directory.Exists(Path.Combine(binaryDir, BundleDiscovery.BundleDirectoryName)), 577Directory.Exists(Path.Combine(Path.GetDirectoryName(binaryDir)!, BundleDiscovery.BundleDirectoryName)), 583var versionsDir = Path.Combine(aspireHome, BundleService.VersionsDirectoryName); 624Assert.True(Directory.Exists(Path.Combine(dest, BundleDiscovery.DcpDirectoryName))); 639var v1BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v1", "cli-v1"); 640var v2BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v2", "cli-v2-longer"); 648var bundleLink = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 756var linkPath = Path.Combine(layoutRoot, dir); 776var path = Path.Combine(directory, name); 789var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 790var managedDir = Path.Combine(bundleDir, BundleDiscovery.ManagedDirectoryName); 791var dcpDir = Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName); 793var managedExe = Path.Combine(managedDir, managedExeName); 806Managed = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName), 807Dashboard = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.DashboardDirectoryName), 808Dcp = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName), 815var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 820LayoutComponent.Dashboard => Path.Combine(bundleDir, BundleDiscovery.DashboardDirectoryName), 821LayoutComponent.Dcp => Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName),
BundleServiceTests.cs (23)
77var processPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 147var dashboardDir = Path.Combine(dir, BundleDiscovery.DashboardDirectoryName); 148var dashboardExe = Path.Combine(dashboardDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)); 162File.WriteAllText(Path.Combine(frameworkDir, "blazor.web.js"), "blazor"); 164File.WriteAllText(Path.Combine(dashboardDir, sqliteLibraryName), "sqlite"); 205var frameworkDir = Path.Combine(wwwrootDir, "_framework"); 206var blazorScript = Path.Combine(frameworkDir, "blazor.web.js"); 235Directory.Delete(Path.Combine(dir, BundleDiscovery.DcpDirectoryName), recursive: true); 246File.Delete(BundleDiscovery.GetDcpExecutablePath(Path.Combine(dir, BundleDiscovery.DcpDirectoryName))); 283var versionsRoot = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 287Directory.CreateDirectory(Path.Combine(versionsRoot, active)); 288Directory.CreateDirectory(Path.Combine(versionsRoot, "stale-bbbbbbbbbbbbbbbb")); 289Directory.CreateDirectory(Path.Combine(versionsRoot, $"active{BundleService.TempSuffixPrefix}deadbeef")); 290Directory.CreateDirectory(Path.Combine(versionsRoot, $"active{BundleService.BadSuffixPrefix}99999")); 294Assert.True(Directory.Exists(Path.Combine(versionsRoot, active))); 311Directory.CreateDirectory(Path.Combine(dir, BundleDiscovery.BundleDirectoryName)); 318var managedDir = Path.Combine(root, BundleDiscovery.ManagedDirectoryName); 321Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 324var dashboardDir = Path.Combine(root, BundleDiscovery.DashboardDirectoryName); 327Path.Combine(dashboardDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)), 331File.WriteAllText(Path.Combine(frameworkDir, "blazor.web.js"), "blazor"); 334File.WriteAllText(Path.Combine(dashboardDir, sqliteLibraryName), "sqlite"); 336var dcpDir = Path.Combine(root, BundleDiscovery.DcpDirectoryName);
Caching\AppHostInfoDiskCacheTests.cs (30)
36var path = Path.Combine(workspace.WorkspaceRoot.FullName, name); 170var objDir = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "obj")); 171var assetsPath = Path.Combine(objDir.FullName, "project.assets.json"); 189File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"), "<Project />"); 199File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), """ 289var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 296var commonProps = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Common.props"); 353var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 364var sharedDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "shared")); 365var sharedProps = Path.Combine(sharedDirectory.FullName, "Directory.Build.props"); 390var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 398var sharedDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "shared")); 399var sharedProps = Path.Combine(sharedDirectory.FullName, "Directory.Build.props"); 423var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 448var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 477var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 484File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Common"), ""); 485var commonProps = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Common.props"); 557var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 562File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Build.props"), """ 593var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyHost.csproj")); 600File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "Repo.marker"), ""); 601var customProps = Path.Combine(workspace.WorkspaceRoot.FullName, "Custom.props"); 725projectDir = Directory.CreateDirectory(Path.Combine(projectDir, $"level-{i}")).FullName; 728var projectFile = new FileInfo(Path.Combine(projectDir, "Deep.AppHost.csproj")); 732File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Build.props"), "<Project />"); 743var parentImport = Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Build.props"); 746var repoRoot = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "worktree-root")); 748Path.Combine(repoRoot.FullName, ".git"), 752var projectFile = new FileInfo(Path.Combine(projectDir.FullName, "AppHost.csproj"));
Caching\DiskCacheTests.cs (1)
125var oldName = Path.Combine(diskPath, $"{hash}.{oldUnix}.json");
Certificates\CertificateServiceTests.cs (2)
249return Path.Combine(directory, "aspire-dev-cert-test.pem"); 265Assert.Equal(Path.Combine(aspireHomeDirectory.FullName, "dev-certs"), exportDirectory);
Certificates\DeveloperCertificateCacheWriteTests.cs (3)
36var onDiskPfxPath = Path.Combine(userHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx"); 42var cachedPfxPath = Path.Combine(aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"); 43var cachedKeyPath = Path.Combine(aspireDevCertsCacheDirectory, $"{aspireLookup}.key");
Certificates\NativeCertificateToolRunnerTests.cs (2)
95var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "dev-certs"); 99var expectedPath = Path.Combine(outputDirectory, $"aspire-dev-cert-{hash}.pem");
Certificates\UnixCertificateManagerTests.cs (21)
212var missingProfileDirectory = Path.Combine(homeDirectory.FullName, "missing-profile"); 247var missingProfileDirectory = Path.Combine(homeDirectory.FullName, "missing-profile"); 360var certificatePath = Path.Combine(homeDirectory.FullName, "certificate with spaces.pem"); 386var certificatePath = Path.Combine(homeDirectory.FullName, "certificate with spaces.pem"); 407var nssDbDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "nssdb")); 408var parentPidFile = Path.Combine(tempDirectory.FullName, "certutil-parent.pid"); 409var childPidFile = Path.Combine(tempDirectory.FullName, "certutil-child.pid"); 458var nssDbDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "nssdb")); 499["PATH"] = Path.Combine(openSslDirectory.FullName, "missing-tools"), 501["DOTNET_DEV_CERTS_NSSDB_PATHS"] = Path.Combine(openSslDirectory.FullName, "missing-nss-db") 507var certificatePath = Path.Combine(openSslDirectory.FullName, $"aspnetcore-localhost-{certificate.Thumbprint}.pem"); 534["PATH"] = Path.Combine(corruptOpenSslDirectory.FullName, "missing-tools"), 536["DOTNET_DEV_CERTS_NSSDB_PATHS"] = Path.Combine(corruptOpenSslDirectory.FullName, "missing-nss-db") 543File.WriteAllText(Path.Combine(corruptOpenSslDirectory.FullName, certificateFileName), "not a certificate"); 544File.WriteAllText(Path.Combine(validOpenSslDirectory.FullName, certificateFileName), certificate.ExportCertificatePem()); 569["PATH"] = Path.Combine(openSslDirectory.FullName, "missing-tools"), 570["DOTNET_DEV_CERTS_NSSDB_PATHS"] = Path.Combine(openSslDirectory.FullName, "missing-nss-db"), 578var certificatePath = Path.Combine(openSslDirectory.FullName, $"aspnetcore-localhost-{savedCertificate.Thumbprint}.pem"); 604["PATH"] = Path.Combine(nssDbDirectory.FullName, "missing-certutil"), 631var certUtilFile = new FileInfo(Path.Combine(directory.FullName, "certutil")); 655var certUtilFile = new FileInfo(Path.Combine(directory.FullName, "certutil"));
CliBootstrapTests.cs (14)
140File.WriteAllText(Path.Combine(aspireHome.FullName, AspireConfigFile.FileName), globalConfig); 175var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-pr-test"); 180Assert.Equal(Path.Combine(installPrefix, "logs"), loggingOptions.LogsDirectory); 188var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-pr-test"); 191var logsDirectory = Path.Combine(installPrefix, "logs"); 192var logFilePath = Path.Combine(logsDirectory, "aspire.log"); 209Assert.Equal(Path.Combine(installPrefix, "hives"), context.HivesDirectory.FullName); 210Assert.Equal(Path.Combine(installPrefix, "cache"), context.CacheDirectory.FullName); 211Assert.Equal(Path.Combine(installPrefix, "sdks"), context.SdksDirectory.FullName); 212Assert.Equal(Path.Combine(installPrefix, "packages"), context.PackagesDirectory?.FullName); 238logsDirectory: Path.Combine(workspace.WorkspaceRoot.FullName, "logs"), 260logsDirectory: Path.Combine(workspace.WorkspaceRoot.FullName, "logs"), 317var binaryPath = Path.Combine(binaryDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 320File.WriteAllText(Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName), $$"""{"source":"{{source}}"{{channelField}}}""");
CliExecutionContextTests.cs (10)
13var hivesDir = new DirectoryInfo(Path.Combine(AppContext.BaseDirectory, "hives")); 14var cacheDir = new DirectoryInfo(Path.Combine(AppContext.BaseDirectory, "cache")); 15var sdksDir = new DirectoryInfo(Path.Combine(AppContext.BaseDirectory, "sdks")); 16var logsDir = new DirectoryInfo(Path.Combine(AppContext.BaseDirectory, "logs")); 23var cacheDir = new DirectoryInfo(Path.Combine(workingDir.FullName, "cache")); 24var sdksDir = new DirectoryInfo(Path.Combine(workingDir.FullName, "sdks")); 25var logsDir = new DirectoryInfo(Path.Combine(workingDir.FullName, "logs")); 66var nonexistentHives = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "no-hives-here")); 109File.WriteAllText(Path.Combine(hivesDir.FullName, "README.md"), "stray"); 110File.WriteAllText(Path.Combine(hivesDir.FullName, ".DS_Store"), string.Empty);
Commands\AddCommandTests.cs (41)
388var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 390File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), """ 461var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 463File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), """ 542var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 544File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), """ 641var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 645File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), $$""" 724var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 725var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "apphost.ts")); 727File.WriteAllText(Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), """ 769var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 842var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 844File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), """ 2490var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, isTypeScript ? "apphost.ts" : "AppHost.csproj")); 2495File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), $$""" 2599var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 2601File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), """ 2814File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 2815File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 2852File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 2853File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 2855File.WriteAllText(Path.Combine(prPackagesDir.FullName, $"Aspire.Hosting.{staleVersion}.nupkg"), string.Empty); 2856File.WriteAllText(Path.Combine(prPackagesDir.FullName, $"Aspire.Hosting.Redis.{staleVersion}.nupkg"), string.Empty); 2882File.WriteAllText(Path.Combine(identityPackagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 2883File.WriteAllText(Path.Combine(identityPackagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 3010var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3060var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3110var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3164var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3212var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3260var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3308var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3360var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3411var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3469var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 3541var hivesDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "hives")); 3542var cacheDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "cache")); 3543var sdksDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "sdks")); 3544var logsDirectory = new DirectoryInfo(Path.Combine(aspireDirectory.FullName, "logs")); 3552Path.Combine(logsDirectory.FullName, "test.log"),
Commands\AgentInitCommandTests.cs (35)
102var blockedSkillParentPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".agents"); 163Path.Combine(".agents", "skills"), 164Path.Combine(".claude", "skills"), 165Path.Combine(".github", "skills"), 166Path.Combine(".opencode", "skill") 386AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 387AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".claude", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 388AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".github", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 389AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".opencode", "skill"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 417Path.Combine("references", "compatibility-and-validation.md"), 418Path.Combine("references", "migration-patterns.md") 443await File.ReadAllTextAsync(Path.Combine(skillDirectory, file.RelativePath), TestContext.Current.CancellationToken).DefaultTimeout()); 533var agentsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".agents"); 570AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireSkillName); 571AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireDeploymentSkillName); 572AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireInitSkillName); 573AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 574AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireOrchestrationSkillName); 575AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireProjectV2MigrationSkillName); 576AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireifySkillName); 615AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), skillName); 637AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireOrchestrationSkillName); 673AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireSkillName); 674AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireDeploymentSkillName); 675AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireInitSkillName); 676AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 677AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireOrchestrationSkillName); 678AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireProjectV2MigrationSkillName); 679AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireifySkillName); 774AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireifySkillName); 775AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireProjectV2MigrationSkillName); 917AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireSkillName); 932var bundleDirectory = new DirectoryInfo(Path.Combine(workspaceRoot.FullName, $".test-aspire-skills-bundle-{Guid.NewGuid():N}")); 940var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 977var manifestPath = Path.Combine(bundleDirectory.FullName, "skill-manifest.json");
Commands\AppHostLauncherTests.cs (10)
60var logsDirectory = Path.Combine(Path.GetTempPath(), "aspire-cli-tests"); 1061var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1089var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1112var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1174var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1324var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1330var linkPath = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 1332locatedAppHostFile = new FileInfo(Path.Combine(linkPath, "AppHost.csproj")); 1341Path.Combine(logsDirectory.FullName, "parent.log"), 1420var socketPath = Path.Combine(
Commands\BaseCommandTests.cs (3)
301var cliLogPath = Path.Combine(workspace.WorkspaceRoot.FullName, "current-cli.log"); 302var appHostLogPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost-cli.log"); 348var cliLogPath = Path.Combine(workspace.WorkspaceRoot.FullName, "current-cli.log");
Commands\CacheCommandTests.cs (14)
49File.WriteAllText(Path.Combine(restoreDir.FullName, "test.dll"), "fake"); 63Assert.False(File.Exists(Path.Combine(restoreDir.FullName, "test.dll"))); 72var cacheEntry = Path.Combine(appHostInfoCacheDir.FullName, "entry.json"); 105await File.WriteAllTextAsync(Path.Combine(firstBuildCache.FullName, "Aspire.Hosting.dll"), "fake").DefaultTimeout(); 106await File.WriteAllTextAsync(Path.Combine(secondBuildCache.FullName, "Aspire.Hosting.dll"), "fake").DefaultTimeout(); 116Assert.False(Directory.Exists(Path.Combine(stagingCacheRoot.FullName, "deadbeef"))); 117Assert.False(Directory.Exists(Path.Combine(stagingCacheRoot.FullName, "cafef00d"))); 166var tempDir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}")); 171File.WriteAllText(Path.Combine(tempDir.FullName, "root.txt"), "root"); 172File.WriteAllText(Path.Combine(subDir.FullName, "nested.txt"), "nested"); 192var tempDir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}")); 196var keepFile = Path.Combine(tempDir.FullName, "keep.txt"); 197var deleteFile = Path.Combine(tempDir.FullName, "delete.txt"); 221var nonExistent = new DirectoryInfo(Path.Combine(Path.GetTempPath(), $"aspire-test-nonexistent-{Guid.NewGuid():N}"));
Commands\CompletionsCommandTests.cs (4)
255var legacyConfig = Path.Combine(home.FullName, "globalsettings.json"); 261"global" => Path.Combine(home.FullName, AspireConfigFile.FileName), 264_ => Path.Combine(workspace.Path, AspireConfigFile.FileName) 334var settingsPath = Path.Combine(workspace.Path, AspireConfigFile.FileName);
Commands\CompletionScriptTests.cs (17)
24var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "completion.ps1"); 66var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "completion.ps1"); 68await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.ps1"), """ 98var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "completion.bash"); 100var binaryPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 151var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "completion.bash"); 152var capturedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "arguments.bin"); 153var binaryPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 178Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "completion-executed"))); 187var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "completion.bash"); 188var capturedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "arguments.bin"); 189var binaryPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 221var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.fish"); 245var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.zsh"); 269var completionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "_aspire"); 270var binaryPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 271var capturedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "arguments.bin");
Commands\ConfigCommandTests.cs (7)
838var settingsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 840var settingsPath = Path.Combine(settingsDir, "settings.json"); 871var settingsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 873var settingsPath = Path.Combine(settingsDir, "settings.json"); 913var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 943var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1040var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Commands\DashboardRunCommandTests.cs (7)
198File.WriteAllText(Path.Combine(managedDir, Path.GetFileName(dashboardPath)), "fake legacy dashboard"); 656var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [dashboard].log"); 686var layoutDir = Path.Combine(workspace.WorkspaceRoot.FullName, "layout"); 687var managedDir = Path.Combine(layoutDir, "managed"); 689var managedPath = Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName("aspire-managed")); 691var dashboardDir = Path.Combine(layoutDir, BundleDiscovery.DashboardDirectoryName); 692var dashboardPath = Path.Combine(dashboardDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName));
Commands\DeployCommandTests.cs (2)
87var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 398var testOutputPath = Path.Combine(Path.GetTempPath(), "test");
Commands\DestroyCommandTests.cs (1)
225var testOutputPath = Path.Combine(Path.GetTempPath(), "test-destroy");
Commands\DoctorCommandTests.cs (16)
166var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 193var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 196Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), 269var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Normal.csproj")); 297var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Normal.csproj")); 300var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 323await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), "<Project />"); 324await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.fsproj"), "<Project />"); 350var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 407Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), 495var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 498Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), 526var appHostFile = new FileInfo(Path.Combine(nestedAppHostDir.FullName, "AppHost.csproj")); 529Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), 560var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1077return new FileInfo(Path.Combine(directory.FullName, "AppHost.csproj"));
Commands\DotNetSdkCheckTests.cs (2)
103var filePath = Path.Combine(workspace.WorkspaceRoot.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar)); 145? new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, appHostFileName))
Commands\ExportCommandTests.cs (16)
27var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 116var outputPath = Path.Combine(customDir, "my-export.zip"); 149var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 152var appHostDir = Path.Combine(workspace.WorkspaceRoot.FullName, "MyAppHost"); 154var appHostProjectPath = Path.Combine(appHostDir, "MyAppHost.csproj"); 182var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 301var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 427var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 485var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 539var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 604var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 648var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 692var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 734var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 762var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 815var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
Commands\ExtensionInternalCommandTests.cs (4)
61var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "MyApp.AppHost.csproj")); 102var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "MyApp.AppHost.csproj")); 137var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "App1.AppHost.csproj")); 138var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "App2.AppHost.csproj"));
Commands\InitCommandTests.cs (81)
67var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 70var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectFileName)); 110Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"))); 120var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 153Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"))); 175var appHostContent = await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 190var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, solutionPath)); 194var projectPath = Path.Combine(solutionFile.Directory.FullName, "Test.csproj"); 197var otherSolutionPath = Path.Combine(workspace.WorkspaceRoot.FullName, "Other.slnx"); 223Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 224Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json"))); 225var config = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName)))!.AsObject(); 264Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 265Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, ".gitignore"))); 267var config = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")))!.AsObject(); 292var runJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json"); 319var aspireConfig = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")))!.AsObject(); 362File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), existingAspireConfig); 373var runJson = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json")))!.AsObject(); 412var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 437Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json"))); 461Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 478await File.WriteAllTextAsync(Path.Combine(workspace.Path, "apphost.mts"), "console.log('existing AppHost');"); 563Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"))); 565var config = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")))!.AsObject(); 578var existingAppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 581File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), """{ "type": "commonjs" }"""); 596Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"))); 597Assert.Equal("""{ "type": "commonjs" }""", File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"))); 606File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{}"); 615File.WriteAllText(Path.Combine(scaffoldDirectory.FullName, context.Language.AppHostFileName!), string.Empty); 645Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"))); 768Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 790Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 810Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 834var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 852var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 885var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 906var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 926var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 970File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")), 979var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1056var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1122var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1171var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1241Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 1243var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1276Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 1278var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1313var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1337var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1386var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1430var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1545var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1652var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1731var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1819var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1822var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1880var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1909var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1927var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1931var appHostDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.AppHost")); 1933Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1954var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1972var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 1974Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1991var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 2010var solutionFile = new FileInfo(Path.Combine(solutionDir.FullName, "Test.sln")); 2040Assert.True(File.Exists(Path.Combine(solutionDir.FullName, "nuget.config")), 2042Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")), 2044AssertNuGetConfigHasChannelShape(Path.Combine(solutionDir.FullName, "nuget.config"), contextChannel); 2060var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 2072var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 2121var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 2153var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 2176var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 2221File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")), 2237var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.slnx")); 2267var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 2371File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, appHostFileName), string.Empty); 2381File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, AspireConfigFile.FileName), config.ToJsonString());
Commands\IntegrationAssemblyNameResolverTests.cs (1)
60var projectPath = System.IO.Path.Combine(Path, fileName);
Commands\LsCommandTests.cs (2)
174var configuredAppHost = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "ConfiguredAppHost.csproj")); 176await File.WriteAllTextAsync(Path.Combine(workingDirectory.FullName, "aspire.config.json"), JsonSerializer.Serialize(new
Commands\NewCommandChannelResolutionTests.cs (3)
574pathDeriverCallback: (ctx, projectName) => Path.Combine(ctx.WorkingDirectory.FullName, projectName), 581var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "captured"); 681File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{version}.nupkg"), string.Empty);
Commands\NewCommandTemplateConfigPersistenceTests.cs (8)
259File.WriteAllText(Path.Combine(outputPath, $"{name}.generated"), templateName); 298var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, outputDirectoryName); 303var appHostFile = Path.Combine(outputDirectory, "apphost.cs"); 312var csharpNuGetConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, "nuget.config")); 335var dotNetNuGetConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, "nuget.config")); 403var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, outputDirectoryName); 515var installPrefix = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "custom-aspire-prefix")); 521File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{s_prVersion}.nupkg"), string.Empty);
Commands\NewCommandTests.cs (76)
147var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "TemplateOut"); 148var nugetConfigPath = Path.Combine(outputDirectory, "nuget.config"); 553var config = AspireConfigFile.Load(Path.Combine(workspace.WorkspaceRoot.FullName, "output")); 727var doc = XDocument.Load(Path.Combine(outputPath, "nuget.config")); 916File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.mts"), "// test apphost"); 1082File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "AppHost.java"), "package aspire;"); 1107File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), """ 1145File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "AppHost.java"), "package aspire;"); 1173File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.mts"), "// test apphost"); 1250AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), expectedSource); 1260var expectedSource = Path.Combine(workspace.WorkspaceRoot.FullName, "relative-feed"); 1262File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1293AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), expectedSource); 1305var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 1307File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1330File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, scaffoldFileName), "// test apphost"); 1342AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 1353var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 1355File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1366AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 1401Assert.False(Directory.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "output"))); 1433var expectedSource = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.org"); 1436Assert.False(Directory.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "output"))); 1456File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.mts"), "// test apphost"); 1495File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "AppHost.java"), "package aspire;"); 1531File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.py"), "# test apphost"); 1614var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 1615var aspireConfigPath = Path.Combine(outputDir, "aspire.config.json"); 1616var appHostRunJsonPath = Path.Combine(outputDir, "apphost.run.json"); 1648var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 1649var aspireConfigPath = Path.Combine(outputDir, "aspire.config.json"); 1650var appHostRunJsonPath = Path.Combine(outputDir, "apphost.run.json"); 1723var outputRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 1725var aspireConfigPath = Path.Combine(outputRoot, "aspire.config.json"); 1732var appHostRunJsonPath = Path.Combine(outputRoot, "apphost.run.json"); 1857var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestApp"); 1902await File.WriteAllTextAsync(Path.Combine(context.TargetDirectory.FullName, "aspire.config.json"), """ 1996var modulesDir = Directory.CreateDirectory(Path.Combine(directory.FullName, LanguageInfo.GeneratedFolderName)); 1997File.WriteAllText(Path.Combine(modulesDir.FullName, "aspire.mts"), "// generated sdk"); 2082var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 2086File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 2121File.WriteAllText(Path.Combine(modulesDir.FullName, "aspire.ts"), "// generated sdk"); 2134AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 2182AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 2192var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 2196File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 2291var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 2316var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 2413Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-starter"), capturedOutputPath); 2448var result = command.Parse($"new aspire-starter --name MyProject --output {Path.Combine(workspace.WorkspaceRoot.FullName, "my-project")} --use-redis-cache --test-framework None"); 2490var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 2609Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2725Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2756var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2821workspaceRoot => Path.Combine(workspaceRoot, "source") + Path.DirectorySeparatorChar, 2826workspaceRoot => Path.Combine(workspaceRoot, projectName) + Path.DirectorySeparatorChar, 2827workspaceRoot => Path.Combine(workspaceRoot, projectName)); 2853Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2864File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 2880Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 2890File.WriteAllText(Path.Combine(selectedParent.FullName, "existing.txt"), "existing content"); 2927File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 2942var expectedPath = Path.Combine(selectedParent.FullName, projectName); 2944Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 2954var collidingProject = Directory.CreateDirectory(Path.Combine(collidingParent.FullName, projectName)); 2955File.WriteAllText(Path.Combine(collidingProject.FullName, "existing.txt"), "existing content"); 3020Assert.Equal(Path.Combine(validParent.FullName, projectName), capturedOutputPath); 3080File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 3095var expectedPath = Path.Combine(selectedParent.FullName, projectName); 3097Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 3149File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 3165Assert.True(File.Exists(Path.Combine(selectedOutputPath.FullName, "apphost.ts"))); 3203File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 3219Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 3364File.WriteAllText(Path.Combine(existingDir.FullName, "file.txt"), "content"); 3413File.WriteAllText(Path.Combine(existingDir.FullName, "file.txt"), "content");
Commands\ParseResultHelperTests.cs (1)
113var relativePath = Path.Combine("Profile Output", "profile.zip");
Commands\PublishCommandPromptingIntegrationTests.cs (8)
262var selectedFile = Path.Combine(workspace.WorkspaceRoot.FullName, "artifact.zip"); 265var missingFile = Path.Combine(workspace.WorkspaceRoot.FullName, "missing.zip"); 803var oversizedFile = Path.Combine(workspace.WorkspaceRoot.FullName, "large.bin"); 806var validFile = Path.Combine(workspace.WorkspaceRoot.FullName, "small.bin"); 849var wrongExtFile = Path.Combine(workspace.WorkspaceRoot.FullName, "cert.txt"); 852var correctFile = Path.Combine(workspace.WorkspaceRoot.FullName, "cert.pem"); 895var validFile = Path.Combine(workspace.WorkspaceRoot.FullName, "deploy.zip"); 941var validFile = Path.Combine(workspace.WorkspaceRoot.FullName, "archive.tar.gz");
Commands\ResourceCommandHelpParserTests.cs (2)
44Assert.EndsWith(Path.Combine("AppHost", "AppHost.csproj"), appHostProjectFile.FullName); 62Assert.EndsWith(Path.Combine("AppHost", "AppHost.csproj"), appHostProjectFile.FullName);
Commands\ResourceCommandTests.cs (3)
198var appHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 216Path.Combine(workspace.WorkspaceRoot.FullName, "socket1"), 219Path.Combine(workspace.WorkspaceRoot.FullName, "socket2"),
Commands\RestoreCommandTests.cs (2)
19var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 56var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Commands\RunCommandTests.cs (60)
159var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 160File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 208var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 209File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), $$""" 315var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 356var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 403var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 448var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 532var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 628var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 733var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 835var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 923var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1028var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1204await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "fake"); 1207await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "fake"); 1338Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 1504var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1577var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1578File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 1697var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1773var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1837var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1899var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1959var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 2027var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 2110var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2216var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 2279var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 2340var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 2402var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 3079var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [run].log"); 3203var appHostProjectPath = Path.Combine(appHostDirectory.FullName, "MyApp.AppHost.csproj"); 3844var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3892var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3936var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3984var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4027var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4071var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4115var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4409var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4471var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4513var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4571var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4615var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4676Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"), 4714Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"), 4749var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4798var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4842var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4898Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"), 4940var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 4997var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 5046var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 5048var relativeCapturePath = Path.Combine("Profile Output", "profile.zip"); 5113var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 5141var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 5393var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 5434var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 5448var socketPath = Path.Combine(
Commands\SdkDumpCommandTests.cs (3)
277Path.Combine(workspace.Path, "output"), "Aspire.Hosting.Redis@13.2.0"]); 307var outputPath = Path.Combine(tempDirectory, "capabilities.txt"); 448if (File.Exists(Path.Combine(currentDirectory.FullName, "Aspire.slnx")))
Commands\SdkInstallerTests.cs (3)
29await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), projectContent); 116await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), projectContent); 154await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), projectContent);
Commands\SecretCommandTests.cs (2)
21var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 47var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"));
Commands\SetupCommandTests.cs (2)
20Assert.Equal(Path.Combine("home", ".aspire"), result); 42Assert.Equal(Path.Combine("Program Files", "WindowsApps"), result);
Commands\StartCommandTests.cs (11)
217var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 218File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 269await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "fake"); 272await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "fake"); 300await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "fake"); 303await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "fake"); 331var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 384var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 651Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 668var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 682var socketPath = Path.Combine(
Commands\StopCommandTests.cs (33)
112string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("Resolved.AppHost", "Resolved.AppHost.csproj")), 144var expectedPath1 = Path.Combine("App1", "AppHost.cs"); 145var expectedPath2 = Path.Combine("App2", "AppHost.cs"); 225Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 229Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 236var nestedAppHost = Path.Combine(worktreeRoot, "AppHost.csproj"); 268var expectedPath = Path.Combine("AppHost", "AppHost.csproj"); 280var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 304string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "AppHost.csproj")), 312var commonGitDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, ".git"); 476var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 501Assert.Contains(interactionService.DisplayedMessages, message => message.Message == string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "AppHost.csproj"))); 511var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 543var runningAppHostFile = new FileInfo(Path.Combine(runningAppHostDirectory.FullName, "Running.AppHost.csproj")); 546var discoveredAppHostFile = new FileInfo(Path.Combine(discoveredAppHostDirectory.FullName, "Discovered.AppHost.csproj")); 585Path.Combine("RunningAppHost", "Running.AppHost.csproj")); 595var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 627var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 662var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 702var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 742var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 783var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 823var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 862var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "apphost.ts")); 898string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "apphost.ts")), 908var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 945var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 990var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1028var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1066var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1134var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1334var homeDirectory = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".home")); 1342var socketPath = Path.Combine(
Commands\TerminalTapePlayCommandTests.cs (20)
55await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, path), contents); 98await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "probe.tape"), ""); 117await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "probe.tape"), ""); 187await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "probe.tape"), 234await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "probe.tape"), ""); 287await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "wait.tape"), 316await File.WriteAllTextAsync(Path.Combine(directory.FullName, "probe.tape"), "# Inspect the current screen."); 318["terminal", "tape", "play", "shell", "--tape-file", Path.Combine("tape files", "probe.tape"), "--replica", "0"]); 337await File.WriteAllTextAsync(Path.Combine(directory.FullName, "play.tape"), """ 348["terminal", "tape", "play", "shell", "--tape-file", Path.Combine("scripts", "play.tape")]); 368await File.WriteAllTextAsync(Path.Combine(directory.FullName, "play.tape"), 373["terminal", "tape", "play", "shell", "--tape-file", Path.Combine("scripts", "play.tape")]); 377path => Assert.Equal(Path.Combine(directory.FullName, "screen.txt"), path)); 378var capture = await File.ReadAllTextAsync(Path.Combine(directory.FullName, "screen.txt")); 393var file = Path.Combine(workspace.WorkspaceRoot.FullName, "play.tape"); 417await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "wait.tape"), 435await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "wait.tape"), 454await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "wait.tape"), 473await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "wait.tape"), 492await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "probe.tape"), "");
Commands\TypeScriptAppHostToolingCheckTests.cs (4)
158Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), 200File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, markerFile), "{}"); 241var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 243File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), packageJsonContent);
Commands\UpdateCommandRepositoryToolsTests.cs (16)
31var appHost = new FileInfo(Path.Combine(directory.FullName, "AppHost.csproj")); 116var appHost = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 230var appHost = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 292var selectedDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "selected")); 294var appHost = Path.Combine(selectedDirectory.FullName, "AppHost.csproj"); 356var appHost = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 400var appHostDirectory = workspace.CreateDirectory(Path.Combine("src", "AppHost")); 401var appHost = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 409var packagesPath = Path.Combine(directory.FullName, "Directory.Packages.props"); 421var configPath = Path.Combine(directory.FullName, "aspire.config.json"); 429var nugetPath = Path.Combine(directory.FullName, "NuGet.config"); 438var lockPath = Path.Combine(directory.FullName, "package-lock.json"); 583Directory.CreateDirectory(Path.Combine(directory.FullName, ".git")); 584var config = Directory.CreateDirectory(Path.Combine(directory.FullName, ".config")); 585var dotnetManifest = Path.Combine(config.FullName, "dotnet-tools.json"); 595var npmManifest = Path.Combine(directory.FullName, "package.json");
Commands\UpdateCommandTests.cs (91)
89var appHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 190var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe"); 191var oldBackup1 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890"); 192var oldBackup2 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.9876543210"); 193var otherFile = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.something"); 214var oldBackup = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890"); 239FileDeleteHelper.TryCleanupOldItems(Path.Combine("C:", "NonExistent"), "aspire.exe"); 311return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 380var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 443var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 498var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 568return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 631var toolPath = Path.Combine(installDir.FullName, "custom tool path"); 647return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 724return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 797return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 840return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 881return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 965return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1018Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), pendingMigration.DetectedContext.AppHostFile.FullName); 1046Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), pendingMigration.DetectedContext.AppHostFile.FullName); 1048Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), pendingMigration.AppliedContext.AppHostFile.FullName); 1123return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1262var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 1305UseOrFindAppHostProjectFileAsyncCallback = (_, _, _) => Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))) 1387var toolPath = Path.Combine(installDir.FullName, "custom tool path"); 1470var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1496var processPath = Path.Combine(installDirectory.FullName, "aspire"); 1500var sidecarPath = Path.Combine(installDirectory.FullName, InstallSidecarReader.SidecarFileName); 1538var processPath = Path.Combine(installDirectory.FullName, "aspire"); 1543var sidecarPath = Path.Combine(installDirectory.FullName, InstallSidecarReader.SidecarFileName); 1595var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1636var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1670return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1735return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1799return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1857return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1934return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1979return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2035var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2054var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2056var globalSettingsPath = Path.Combine(globalDir, "settings.global.json"); 2074var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2092var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2094File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "daily" }"""); 2096var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2116var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2118File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "staging" }"""); 2137var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2146return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2199Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))) 2252var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2253var projectConfigPath = Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName); 2258updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2272Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2275var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2277File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "staging" }"""); 2279var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2283updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2300Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2303var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2305Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), 2310updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2326Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2329var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2331File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "staging" }"""); 2333var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2335Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), 2340updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2383Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2420return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2506var resolved = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2591return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2633var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2634var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "AppHost.csproj")); 2637Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), 2781Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2833return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(projectDirectory.FullName, "AppHost.csproj"))); 2964var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3009var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3054var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3087var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3120return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 3274var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3296var executablePath = Path.Combine(contentDirectory.FullName, "aspire"); 3314var tarPath = Path.Combine(archiveDirectory.FullName, "aspire.tar"); 3317var archivePath = Path.Combine(archiveDirectory.FullName, "aspire.tar.gz"); 3344var processPath = Path.Combine(toolPath, GetAspireExecutableName()); 3370var processPath = Path.Combine(binaryDir, GetAspireExecutableName()); 3372File.WriteAllText(Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName), """{"source":"nix"}"""); 3440var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
Commands\VsCodeExtensionCheckTests.cs (6)
63Directory.CreateDirectory(Path.Combine(extensions.FullName, "microsoft-aspire.aspire-vscode-1.2.3")); 91Directory.CreateDirectory(Path.Combine(extensions.FullName, "microsoft-aspire.aspire-vscode-1.2.3")); 188Directory.CreateDirectory(Path.Combine(extensions.FullName, "Microsoft-Aspire.Aspire-VSCode-9.9.9")); 207Directory.CreateDirectory(Path.Combine(extensions.FullName, "ms-dotnettools.csharp-2.0.0")); 229Directory.CreateDirectory(Path.Combine(extensions.FullName, "microsoft-aspire.aspire-vscode-extras-1.0.0")); 250var missingExtensionsDirectory = Path.Combine(home.FullName, "does-not-exist");
Configuration\AppHostPathConfigurationPolicyTests.cs (5)
40var path = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 54var path = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 64var path = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 76var path = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 86var path = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Configuration\AspireConfigFileTests.cs (14)
26var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 46var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 70var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 94var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 117var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 136var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 150var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 163var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 186var filePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 204Assert.True(File.Exists(Path.Combine(subDir, AspireConfigFile.FileName))); 220File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), "{}"); 361var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 382var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 531var configPath = Path.Combine(root, AspireConfigFile.FileName);
Configuration\ConfigurationHelperTests.cs (16)
17var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 21var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 121var globalSettingsFile = new FileInfo(Path.Combine(globalDirectory.FullName, AspireConfigFile.FileName)); 132_ => Path.Combine(workspace.Path, AspireConfigFile.FileName) 204var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 237File.WriteAllText(Path.Combine(configRoot.FullName, AspireConfigFile.FileName), "{}"); 256Path.Combine(workspace.WorkspaceRoot.FullName, AspireJsonConfiguration.SettingsFolder), 277var legacySettingsPath = Path.Combine(legacyDir.FullName, AspireJsonConfiguration.FileName); 285var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 289var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 315var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 325var legacySettingsPath = Path.Combine(legacyDir.FullName, AspireJsonConfiguration.FileName); 331var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 349var legacySettingsPath = Path.Combine(legacyDir.FullName, AspireJsonConfiguration.FileName); 353var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 362var migratedPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Configuration\ConfigurationServiceTests.cs (4)
20var globalSettingsFile = new FileInfo(Path.Combine(globalSettingsDir.FullName, AspireConfigFile.FileName)); 22var settingsFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 224Path.Combine(srcDirectory.FullName, AspireConfigFile.FileName), 253Path.Combine(srcDirectory.FullName, AspireConfigFile.FileName),
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (2)
72Assert.False(File.Exists(Path.Combine(appPath, AspireConfigFile.FileName))); 109var projectModelPath = Path.Combine(appPath, ".aspire_server");
Configuration\PrebuiltAppHostServerChannelResolutionTests.cs (1)
64Assert.False(File.Exists(Path.Combine(appHostDirectory.FullName, AspireConfigFile.FileName)));
DotNet\DotNetCliRunnerTests.cs (84)
46return Path.Combine(dotnetRoot, OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 56var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 105var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, appHostFileName)); 144var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 178var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 180var runWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "run-cwd")); 220var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 222var runWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "run-cwd")); 261var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 289var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 321var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 355var cliPath = Path.Combine(cliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 357File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 368var cliPath = Path.Combine(cliDirectory.FullName, "aspire"); 370File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 372var linkDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 373var linkPath = Path.Combine(linkDirectory.FullName, "aspire"); 383var dotnetDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "dotnet")); 384var dotnetPath = Path.Combine(dotnetDirectory.FullName, OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 394var cliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 395var cliPath = Path.Combine(cliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 397File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 398File.WriteAllText(Path.Combine(cliDirectory.FullName, ".aspire-install.json"), """{"source":"script"}"""); 407var cliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 408var cliPath = Path.Combine(cliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 410File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 411Directory.CreateDirectory(Path.Combine(cliDirectory.FullName, "dcp")); 412Directory.CreateDirectory(Path.Combine(cliDirectory.FullName, "managed")); 423var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 451var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 488var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 517var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 546var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 619var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 656var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 697var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 742var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 797var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 894var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 934var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 976var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1023var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1071[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1104var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1138[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1150var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1176[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1192var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1218[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1234var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1287var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1354var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1420var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1493var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1498var project1File = new FileInfo(Path.Combine(project1Dir.FullName, "Project1.csproj")); 1502var project2File = new FileInfo(Path.Combine(project2Dir.FullName, "Project2.csproj")); 1540var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1543var referencedProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Service.csproj")); 1573var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1620var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1666var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1703var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1740var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1780var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1825var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1877var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1926var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1974var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 2011var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2046var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2089var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2131var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2171var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2210var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "RunPropertiesApp")); 2211var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "RunPropertiesApp.csproj")); 2222await File.WriteAllTextAsync(Path.Combine(projectDirectory.FullName, "Program.cs"), "Console.WriteLine(\"Hello\");"); 2248Assert.Equal(Path.Combine(projectDirectory.FullName, "relative-working-directory"), properties.GetProperty("RunWorkingDirectory").GetString()); 2256var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2477var packagePath = Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{packageVersion}.nupkg"); 2547var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2585var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2623var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2663var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2702var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
DotNet\ProcessExecutionDetachedTests.cs (8)
53var dcpPath = Path.Combine(workspace.WorkspaceRoot.FullName, "fake-dcp"); 54var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "capture.txt"); 135var dcpPath = Path.Combine(workspace.WorkspaceRoot.FullName, "fake-dcp"); 136var startedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "dcp-started.txt"); 217var dcpPath = Path.Combine(workspace.WorkspaceRoot.FullName, "fake-dcp"); 255var dcpPath = Path.Combine(workspace.WorkspaceRoot.FullName, "fake-dcp"); 256var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "child-pid.txt"); 310var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "bundle-version-dir.txt");
DotNet\ProcessExecutionTests.cs (8)
40var outputFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "output.json")); 100var outputFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "output.json")); 290var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "emit-output.cmd")); 299var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "emit-output.sh")); 319var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "emit-delayed-output.cmd")); 332var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "emit-delayed-output.sh")); 354var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "long-running.cmd")); 363var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "long-running.sh"));
DotNetSdkInstallerTests.cs (4)
55var parentPidFile = Path.Combine(tempDirectory.FullName, "dotnet-parent.pid"); 56var childPidFile = Path.Combine(tempDirectory.FullName, "dotnet-child.pid"); 329var scriptFile = Path.Combine(directory.FullName, "dotnet-shim.ps1"); 352var shellFile = Path.Combine(directory.FullName, "dotnet");
Git\GitRepositoryTests.cs (6)
41var trackedFile = Path.Combine(appDir.FullName, "AppHost.csproj"); 46var untrackedFile = Path.Combine(samplesDir.FullName, "Sample.csproj"); 50var gitignorePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".gitignore"); 55var ignoredFile = Path.Combine(binDir.FullName, "Stale.csproj"); 82var trackedFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 109var trackedFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj");
Git\GitWorktreeTests.cs (43)
17Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 29var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 48var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 51Path.Combine(fixtureRoot, commonGitDirectoryName)); 120var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 124var caseVariantRoot = Path.Combine(fixtureRoot, "WORKTREE"); 140var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "checkout")).FullName; 163Path.Combine(adminDirectory, "gitdir"), 186Path.Combine(worktreeRoot, ".git"), 200var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 204Path.Combine(adminDirectory, "gitdir"), 223var caseVariantGitFile = Path.Combine(worktreeRoot, ".GIT"); 225Path.Combine(adminDirectory, "gitdir"), 241var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 245var aliasRoot = Path.Combine(fixtureRoot, "worktree-alias"); 263Path.Combine(adminDirectory, "gitdir"), 264Path.Combine(aliasRoot, ".git") + Environment.NewLine); 282var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 291Assert.Null(GitWorktree.TryGetLinkedWorktreeRoot(Path.Combine(submoduleRoot, "AppHost.csproj"))); 299var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 303Path.Combine(adminDirectory, "gitdir"), 315var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 317var otherWorktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "other-worktree")).FullName; 322Path.Combine(adminDirectory, "gitdir"), 333var worktreeRoot = Directory.CreateDirectory(Path.Combine(fixtureRoot, "worktree")).FullName; 345Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 350var appHostPath = Path.Combine(submoduleRoot, "AppHost.csproj"); 370Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 372TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 373var nestedAppHost = Path.Combine(worktreeRoot, "AppHost.csproj"); 374var primaryAppHost = Path.Combine(primaryRoot, "AppHost.csproj"); 387Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 389var adminDirectory = TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 392var submoduleAppHost = Path.Combine(submoduleRoot, "AppHost.csproj"); 404Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 409var submoduleAppHost = Path.Combine(submoduleRoot, "AppHost.csproj"); 446var repoBSubmoduleAppHost = Path.Combine(repoBSubmoduleRoot, "AppHost.csproj"); 458TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 468var workingDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "plain")).FullName; 479var unmanagedDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "outside")).FullName; 480var unmanagedAppHost = Path.Combine(unmanagedDirectory, "App.csproj"); 493var root = Directory.CreateDirectory(Path.Combine(parent.FullName, name)).FullName; 494Directory.CreateDirectory(Path.Combine(root, ".git"));
HeldFileLeaseTests.cs (9)
44var orphanPath = Path.Combine(leaseDirectory, $"orphan{LeaseExtension}"); 57var leaseDirectory = Path.Combine(workspace.Path, "missing"); 67var leasePath = Path.Combine(leaseDirectory, $"orphan.unverified-lock{LeaseExtension}"); 79var readyPath = Path.Combine(workspace.Path, "ready"); 80var releasePath = Path.Combine(workspace.Path, "release"); 119var orphanPath = Path.Combine(leaseDirectory, $"orphan{LeaseExtension}"); 135var readyPath = Path.Combine(workspace.Path, "ready"); 136var releasePath = Path.Combine(workspace.Path, "release"); 178File.WriteAllText(Path.Combine(leaseDirectory, $"orphan{LeaseExtension}"), "{}");
Interaction\ConsoleInteractionServiceTests.cs (2)
754var logFilePath = Path.Combine(s_logsDirectory.FullName, "cli [dev team].log"); 782var logFilePath = Path.Combine(s_logsDirectory.FullName, "cli [dev team].log");
Interaction\ExtensionInteractionServiceTests.cs (10)
35var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [extension].log"); 68var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.cli.log"); 108var cliLogFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.cli.log"); 109var appHostLogFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cli.log"); 158var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.cli.log"); 221Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.cli.log"), 351var invalidPath = Path.Combine(workspace.WorkspaceRoot.FullName, "invalid"); 352var validPath = Path.Combine(workspace.WorkspaceRoot.FullName, "valid"); 393var invalidPath = Path.Combine(workspace.WorkspaceRoot.FullName, "invalid"); 461var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [extension].log");
Layout\LayoutDiscoveryReparsePointTests.cs (37)
43var realBinary = Path.Combine(realLayoutRoot, "aspire"); 48var linkPath = Path.Combine(linksDir, "aspire"); 69var rawLayoutRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "custom-layout"); 72var realBinaryDir = Path.Combine(workspace.WorkspaceRoot.FullName, "real-binary"); 74var realBinary = Path.Combine(realBinaryDir, "aspire"); 77var linkPath = Path.Combine(rawLayoutRoot, "aspire"); 98var versionedManaged = Path.Combine(versionsDir, BundleDiscovery.ManagedDirectoryName); 99var versionedDashboard = Path.Combine(versionsDir, BundleDiscovery.DashboardDirectoryName); 100var versionedDcp = Path.Combine(versionsDir, BundleDiscovery.DcpDirectoryName); 105Path.Combine(versionedManaged, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 107var dashboardPath = Path.Combine(versionedDashboard, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)); 112var bundleLink = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 148var binaryPath = Path.Combine(binaryDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 189var relativeLayoutRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "colocated"); 190var binDir = Path.Combine(relativeLayoutRoot, "bin"); 192var binaryPath = Path.Combine(binDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 230? Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName) 232var managedDir = Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.ManagedDirectoryName)); 233Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.DcpDirectoryName)); 235Path.Combine(managedDir.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 237var dashboardDir = Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.DashboardDirectoryName)); 239Path.Combine(dashboardDir.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)), 241var binaryPath = Path.Combine(layoutRoot, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 264? Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName) 266var managedDir = Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.ManagedDirectoryName)); 267var dcpDir = Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.DcpDirectoryName)); 269Path.Combine(managedDir.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 275Path.Combine(managedDir.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)), 279var binaryPath = Path.Combine(layoutRoot, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 288var dashboardDir = Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.DashboardDirectoryName)); 291var dashboardPath = Path.Combine(dashboardDir.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)); 303var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 304var managedDir = Path.Combine(bundleDir, BundleDiscovery.ManagedDirectoryName); 305var dashboardDir = Path.Combine(bundleDir, BundleDiscovery.DashboardDirectoryName); 306var dcpDir = Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName); 311Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 314Path.Combine(dashboardDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)),
Mcp\ApiDocs\ApiDocsCacheTests.cs (2)
114new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), 115new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")),
Mcp\AppHostConnectionSelectionLogicTests.cs (4)
72var firstDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "AppHost")); 73var secondDirectoryPath = Path.Combine(tempRoot.FullName, "apphost"); 78var firstPath = Path.Combine(firstDirectory.FullName, "AppHost.csproj"); 79var secondPath = Path.Combine(secondDirectory.FullName, "AppHost.csproj");
Mcp\Docs\DocsCacheTests.cs (2)
127new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), 128new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")),
Mcp\E2E\McpDocsE2ETests.cs (1)
289while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
Mcp\ListAppHostsToolTests.cs (2)
47var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost"); 111var inScopeAppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "InScopeAppHost");
Mcp\SelectAppHostToolTests.cs (4)
26var appHostFile = new FileInfo(Path.Combine(realDirectory.FullName, "AppHost.csproj")); 29var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 31var suppliedPath = Path.Combine("link", appHostFile.Name); 32var displayPath = Path.GetFullPath(Path.Combine(workspace.WorkspaceRoot.FullName, suppliedPath));
Migrations\TypeScriptAppHostMigrationTests.cs (28)
54var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 71Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), 83await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"), "// legacy"); 84await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), "// modern"); 95await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), "// csharp"); 106var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "external-apphost")); 108var appHostPath = Path.Combine(appHostDirectory.FullName, "apphost.ts"); 152await File.WriteAllTextAsync(Path.Combine(root.FullName, "apphost.ts"), LegacyAppHostContent); 154Path.Combine(root.FullName, "aspire.config.json"), 163Path.Combine(root.FullName, "tsconfig.apphost.json"), 171Path.Combine(root.FullName, "package.json"), 181await File.WriteAllTextAsync(Path.Combine(root.FullName, "eslint.config.mjs"), LegacyEslintConfigContent); 183var modulesDir = Directory.CreateDirectory(Path.Combine(root.FullName, ".modules")); 184await File.WriteAllTextAsync(Path.Combine(modulesDir.FullName, "aspire.ts"), "// generated"); 189var config = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(root.FullName, "aspire.config.json")))!; 192var tsconfig = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(root.FullName, "tsconfig.apphost.json")))!; 196var packageJson = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(root.FullName, "package.json")))!; 201var eslintConfig = await File.ReadAllTextAsync(Path.Combine(root.FullName, "eslint.config.mjs")); 214Assert.False(File.Exists(Path.Combine(root.FullName, "apphost.ts"))); 215Assert.False(Directory.Exists(Path.Combine(root.FullName, ".modules"))); 217var modernContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "apphost.mts")); 229var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "external-apphost")); 232await CreateMigration(workspace).ApplyAsync(new MigrationContext(new FileInfo(Path.Combine(appHostDirectory.FullName, "apphost.ts"))), CancellationToken.None); 234Assert.False(File.Exists(Path.Combine(appHostDirectory.FullName, "apphost.ts"))); 235Assert.False(Directory.Exists(Path.Combine(appHostDirectory.FullName, ".modules"))); 236Assert.Equal(ExpectedModernAppHostContent, await File.ReadAllTextAsync(Path.Combine(appHostDirectory.FullName, "apphost.mts"))); 278var migratedContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "apphost.mts")); 282Assert.Equal(migratedContent, await File.ReadAllTextAsync(Path.Combine(root.FullName, "apphost.mts")));
Npm\AspireJsLauncherTests.cs (18)
66var monkeyPatchScript = Path.Combine(workspace.Path, "patch-chmod.js"); 95var monkeyPatchScript = Path.Combine(workspace.Path, "patch-copy.js"); 150var probeScript = Path.Combine(workspace.Path, "detect-rids.js"); 169var probeScript = Path.Combine(workspace.Path, "detect-current-rid.js"); 228var pointerDir = Path.Combine(rootPath, "pointer"); 229var pointerBinDir = Path.Combine(pointerDir, "bin"); 230var nodeModulesDir = Path.Combine(rootPath, "node_modules"); 231var ridPackageDir = Path.Combine(nodeModulesDir, ridPackageName.Replace("/", Path.DirectorySeparatorChar.ToString())); 232var ridBinDir = Path.Combine(ridPackageDir, "bin"); 233var cacheDir = Path.Combine(rootPath, "cache"); 246Path.Combine(pointerDir, "package.json"), 251var launcherScript = Path.Combine(pointerBinDir, "aspire.js"); 257Path.Combine(pointerBinDir, "aspire-package-map.json"), 267Path.Combine(ridPackageDir, "package.json"), 271var binaryPath = Path.Combine(ridBinDir, binaryName); 274var probeScript = Path.Combine(rootPath, "probe-native.js"); 285return new FakeNpmLayout(launcherScript, cacheDir, probeScript, Path.Combine(ridPackageDir, "package.json")); 408while (current is not null && !File.Exists(Path.Combine(current, "Aspire.slnx")))
Npm\NpmRunnerTests.cs (4)
159var argumentsPath = Path.Combine(tempDirectory.FullName, "arguments.txt"); 166var tarballPath = Path.Combine(tempDirectory.FullName, "playwright-cli.tgz"); 252Path.Combine(directory.FullName, "npm.cmd"), 265var npmPath = Path.Combine(directory.FullName, "npm");
NuGet\BundleNuGetServiceTests.cs (11)
17var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 47Assert.Equal(Path.Combine(Path.GetDirectoryName(manifestPath)!, "obj"), capturedOutputPath); 99var toolPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.dll"); 122Path.Combine(AppContext.BaseDirectory, $"{typeof(BundleNuGetService).Assembly.GetName().Name}.dll"), 176var manifestPath = Path.Combine(GetRestoreDirectory(workspace, packageList), ManifestFileName); 200var manifestPath = Path.Combine(GetRestoreDirectory(workspace, packageList), ManifestFileName); 220var firstAppHost = workspace.CreateDirectory(Path.Combine("apps", "api")); 221var secondAppHost = workspace.CreateDirectory(Path.Combine("apps", "web")); 260var legacyLibsDirectory = Directory.CreateDirectory(Path.Combine(restoreDirectory, "libs")); 261var lockedFilePath = Path.Combine(legacyLibsDirectory.FullName, "Microsoft.Extensions.DependencyInjection.xml"); 272Assert.Equal(Path.Combine(restoreDirectory, ManifestFileName), result);
NuGet\NuGetClientTests.cs (25)
114Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"), 176var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 380var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 414var manifestPath = Path.Combine(restoreDirectory.FullName, IntegrationPackageProbeManifest.FileName); 416Path.Combine(restoreDirectory.FullName, LockFileFormat.AssetsFileName), 424Assert.False(Directory.Exists(Path.Combine(restoreDirectory.FullName, "libs"))); 474var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 523var assets = new LockFileFormat().Read(Path.Combine(restoreDirectory.FullName, LockFileFormat.AssetsFileName)); 580var assets = new LockFileFormat().Read(Path.Combine(restoreDirectory.FullName, LockFileFormat.AssetsFileName)); 627var manifestPath = Path.Combine(restoreDirectory.FullName, IntegrationPackageProbeManifest.FileName); 629Path.Combine(restoreDirectory.FullName, LockFileFormat.AssetsFileName), 680var manifestPath = Path.Combine(restoreDirectory.FullName, IntegrationPackageProbeManifest.FileName); 682Path.Combine(restoreDirectory.FullName, LockFileFormat.AssetsFileName), 754var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 818var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 879var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 994var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1014File.WriteAllText(Path.Combine(incompleteInstallPath, "partial.txt"), "incomplete"); 1035Assert.True(File.Exists(Path.Combine(package.InstallPath, ".nupkg.metadata"))); 1040Directory.Delete(Path.Combine(globalPackagesFolder, packageId.ToLowerInvariant()), recursive: true); 1051var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1071var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1113var lockFile = new LockFileFormat().Read(Path.Combine(restoreDirectory, LockFileFormat.AssetsFileName)); 1135var packagePath = Path.Combine(feedDirectory, $"{packageId}.{version}.nupkg"); 1197var packageDirectory = Path.Combine(globalPackagesFolder, packageId.ToLowerInvariant());
Packaging\NuGetConfigMergerSnapshotTests.cs (11)
34var path = Path.Combine(dir.FullName, "nuget.config"); 73var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 80var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 135var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 142var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 196var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 203var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 255var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 262var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 319var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 326var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
Packaging\NuGetConfigMergerTests.cs (20)
24var path = Path.Combine(dir.FullName, "nuget.config"); 46var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 70var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 114var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 153var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 197var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 237var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 347var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 397var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 466var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 530var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 586var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 668var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 718var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 759var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 789var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 839var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 861var originalContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "nuget.config")).DefaultTimeout(); 882var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 904var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
Packaging\PackageChannelTests.cs (37)
147Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.6.0.nupkg"), 178File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 182File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 225File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 228File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 266File.WriteAllText(Path.Combine(channelPackagesDirectory.FullName, "Aspire.ProjectTemplates.13.4.0-preview.1.nupkg"), string.Empty); 270File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.5.0-preview.2.nupkg"), string.Empty); 305File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.5.0-preview.2.nupkg"), string.Empty); 332File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Redis.{pinnedVersion}.nupkg"), string.Empty); 333File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.PostgreSQL.{pinnedVersion}.nupkg"), string.Empty); 334File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"CommunityToolkit.Aspire.Hosting.NodeJS.{pinnedVersion}.nupkg"), string.Empty); 337File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.SqlServer.13.3.0.nupkg"), string.Empty); 340File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 347File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.AppHost.{pinnedVersion}.nupkg"), string.Empty); 348File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Sdk.{pinnedVersion}.nupkg"), string.Empty); 349File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Orchestration.linux-arm64.{pinnedVersion}.nupkg"), string.Empty); 350File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Testing.{pinnedVersion}.nupkg"), string.Empty); 351File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Msi.{pinnedVersion}.nupkg"), string.Empty); 352File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Integration.Analyzers.{pinnedVersion}.nupkg"), string.Empty); 355File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Dapr.{pinnedVersion}.nupkg"), string.Empty); 356File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.GitHub.Models.{pinnedVersion}.nupkg"), string.Empty); 357File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.NodeJs.{pinnedVersion}.nupkg"), string.Empty); 640File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.4.0.nupkg"), string.Empty); 641File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.5.0-preview.1.nupkg"), string.Empty); 642File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.PostgreSQL.13.4.0-preview.1.nupkg"), string.Empty); 659File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.4.0.nupkg"), string.Empty); 660File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.5.0-preview.1.nupkg"), string.Empty); 661File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.PostgreSQL.13.4.0.nupkg"), string.Empty); 678File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.5.0.nupkg"), string.Empty); 679File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.6.0-preview.1.nupkg"), string.Empty); 680File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Azure.Kubernetes.13.6.0-pr.19404.gf51e8e1d.nupkg"), string.Empty); 709File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Dapr.13.4.0.nupkg"), string.Empty); 710File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Sql.13.4.0.nupkg"), string.Empty); 729File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Dapr.13.4.0.nupkg"), string.Empty); 730File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Sql.13.4.0.nupkg"), string.Empty); 972var missingDirectory = Path.Combine(Path.GetTempPath(), $"aspire-missing-{Guid.NewGuid():N}"); 1012CreatePackageWithTags(Path.Combine(packagesDirectory.FullName, $"{packageId}.{version}.nupkg"), packageId, version, tags);
Packaging\PackageSourceOverrideMappingsTests.cs (2)
18Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "relative:feed"), result); 31Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, source), result);
Packaging\PackagingServiceTests.cs (46)
1121var nugetConfigPath = Path.Combine(tempDir.FullName, "nuget.config"); 1150Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-10167")); 1151Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-11832")); 1206Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-12345")); 1376var nugetConfigPath = Path.Combine(tempDir.FullName, "nuget.config"); 1492File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{localVersion}.nupkg"), string.Empty); 1493File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{localVersion}.nupkg"), string.Empty); 1513var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1519File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{prVersion}.nupkg"), string.Empty); 1558File.WriteAllText(Path.Combine(defaultPackagesDirectory.FullName, $"Aspire.ProjectTemplates.{defaultHiveVersion}.nupkg"), string.Empty); 1560var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1566File.WriteAllText(Path.Combine(dogfoodPackagesDirectory.FullName, $"Aspire.ProjectTemplates.{dogfoodHiveVersion}.nupkg"), string.Empty); 1596var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1602File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.not-a-semver.nupkg"), string.Empty); 1632var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1662var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1718var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1754var installPrefix = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "custom-aspire-prefix")); 1780File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{localVersion}.nupkg"), string.Empty); 1972File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 2005File.WriteAllText(Path.Combine(runPackagesDir.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 2040File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{localVersion}.nupkg"), string.Empty); 2042File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.Redis.{localVersion}.nupkg"), string.Empty); 2043File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.JavaScript.{localVersion}.nupkg"), string.Empty); 2045File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{localVersion}.nupkg"), string.Empty); 2046File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.AppHost.Sdk.{localVersion}.nupkg"), string.Empty); 2077File.WriteAllText(Path.Combine(localPackagesDir.FullName, "Aspire.Hosting.13.4.0-pr.16820.g1a99aa46.nupkg"), string.Empty); 2116var localHiveDir = new DirectoryInfo(Path.Combine(hivesDir.FullName, PackageChannelNames.Local)); 2131var expectedLocalPackagesPath = Path.Combine(localHiveDir.FullName, "packages").Replace('\\', '/'); 2167var packagesOverrideDir = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "shipping")); 2169File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, $"Aspire.ProjectTemplates.{overrideVersion}.nupkg"), string.Empty); 2170File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, $"Aspire.Hosting.{overrideVersion}.nupkg"), string.Empty); 2197File.WriteAllText(Path.Combine(staleHiveDir.FullName, "Aspire.Hosting.13.4.0.nupkg"), string.Empty); 2199var packagesOverrideDir = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "shipping")); 2201File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, $"Aspire.Hosting.{overrideVersion}.nupkg"), string.Empty); 2226var packagesOverrideDir = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "shipping")); 2227File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.Hosting.13.4.1.nupkg"), string.Empty); 2228File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.Hosting.13.4.2.nupkg"), string.Empty); 2230File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.ProjectTemplates.13.4.2.nupkg"), string.Empty); 2254var packagesOverrideDir = Directory.CreateDirectory(Path.Combine(tempDir.FullName, "shipping")); 2255File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.Hosting.13.4.1.nupkg"), string.Empty); 2256var nestedDir = Directory.CreateDirectory(Path.Combine(packagesOverrideDir.FullName, "nested")); 2257File.WriteAllText(Path.Combine(nestedDir.FullName, "Aspire.Hosting.13.4.2.nupkg"), string.Empty); 2259File.WriteAllText(Path.Combine(nestedDir.FullName, "Aspire.ProjectTemplates.13.4.2.nupkg"), string.Empty); 2260File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.ProjectTemplates.13.4.2.nupkg"), string.Empty); 2281var missingDir = new DirectoryInfo(Path.Combine(tempDir.FullName, "does-not-exist"));
Processes\ProcessTreeGracefulShutdownServiceTests.cs (5)
175AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 220AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 259AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 297AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 330Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"),
ProfileCaptureOptionsTests.cs (4)
74var outputDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "profiles")); 92var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "profiles") + Path.DirectorySeparatorChar; 117var expectedDashboardPath = Path.Combine( 138var expectedDashboardPath = Path.Combine(
ProfileCaptureServiceTests.cs (9)
117var managedPath = Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)); 122Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)), 153Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 156var dashboardPath = Path.Combine(dashboardDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)); 526var dashboardPath = Path.Combine( 541var missingPath = Path.Combine(workspace.WorkspaceRoot.FullName, "missing"); 551var logPath = Path.Combine(workspace.WorkspaceRoot.FullName, "profile-service.log"); 738var path = Path.Combine(workspace.WorkspaceRoot.FullName, fileName); 749outputPath ?? Path.Combine(workspace.WorkspaceRoot.FullName, "profile.zip"),
ProgramTests.cs (3)
93var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 110var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 127var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Projects\AppHostCandidateFinderTests.cs (8)
168var searchRoot = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "obj")); 205var nugetCachePath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget-cache"); 315var nugetCachePath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget-cache"); 339var differentlyCasedNuGetCachePath = Path.Combine(workspace.WorkspaceRoot.FullName, "NUGET-CACHE"); 383var nugetCachePath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget-cache"); 541await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, ".gitignore"), "legacy/\n"); 573var searchDirectory = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "src")); 607var fullPath = Path.Combine(root.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\AppHostInfoResolverTests.cs (1)
206var path = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.AppHost.csproj");
Projects\AppHostServerProjectTests.cs (19)
55var parentConfigPath = Path.Combine(_workspace.Path, "NuGet.Config"); 71var repoConfigPath = Path.Combine(repoRoot.FullName, "NuGet.Config"); 84await File.WriteAllTextAsync(Path.Combine(repoRoot.FullName, "Directory.Packages.props"), "<Project />"); 85await File.WriteAllTextAsync(Path.Combine(appPath.FullName, "NuGet.Config"), """ 171var appSettingsPath = Path.Combine(project.ProjectModelPath, "appsettings.json"); 192var programCsPath = Path.Combine(project.ProjectModelPath, "Program.cs"); 214var programCs = Path.Combine(project.ProjectModelPath, "Program.cs"); 237var appSettingsPath = Path.Combine(project.ProjectModelPath, "appsettings.json"); 319Path.Combine("src", "Aspire.Hosting.Redis")); 320var integrationProjectPath = Path.Combine(integrationDirectory.FullName, "Aspire.Hosting.Redis.csproj"); 367var expectedRoot = Path.Combine(CliPathHelper.GetAspireHomeDirectory(), "hosts"); 368var expectedPath = Path.Combine(expectedRoot, pathDir); 428var aspireConfigPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 476var projectModelPath = Path.Combine(appPath, ".aspire_server"); 507var projectFilePath = Path.Combine(project.ProjectModelPath, DotNetBasedAppHostServerProject.ProjectFileName); 532var aspireConfigPath = Path.Combine(appPath, AspireConfigFile.FileName); 550var projectModelPath = Path.Combine(appPath, ".aspire_server"); 586var aspireConfigPath = Path.Combine(appPath, AspireConfigFile.FileName); 604var projectModelPath = Path.Combine(appPath, ".aspire_server");
Projects\AppHostWorkloadIdTests.cs (7)
14var target = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 17var linkPath = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.Link.csproj"); 31var target = new FileInfo(Path.Combine(nestedDirectory.FullName, "AppHost.csproj")); 34var linkDirectoryPath = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 49var target = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 61var target = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 81var target = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Projects\DefaultLanguageDiscoveryTests.cs (5)
113var file = new FileInfo(Path.Combine(Path.GetTempPath(), fileName)); 128var file = new FileInfo(Path.Combine(Path.GetTempPath(), fileName)); 139var file = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.go")); 152var file = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.go")); 196var appHostPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar));
Projects\DotNetAppHostProjectTests.cs (84)
268File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "apphost.run.json"), """ 478Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 508var customDcpDirectory = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, "custom-dcp")); 510var customDashboardPath = Path.Combine( 561var inheritedDcpDirectory = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, "inherited-dcp")).FullName; 563var inheritedDashboardPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "inherited-dashboard"); 624: Path.Combine(_workspace.WorkspaceRoot.FullName, "missing-dcp"); 627: Path.Combine(_workspace.WorkspaceRoot.FullName, "missing-dashboard"); 897var repoLocalManaged = Path.Combine(_workspace.WorkspaceRoot.FullName, "repo-local-aspire-managed"); 955var customTerminalHost = Path.Combine(_workspace.WorkspaceRoot.FullName, "my-custom-terminal-host"); 1008var runWorkingDirectory = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, "run-cwd")); 1012Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1109Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1151"--log-file", Path.Combine(_workspace.WorkspaceRoot.FullName, "child.log"), 1199Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1265Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1355Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1397Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1441Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1488Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1533Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1653var targetPath = Path.Combine(outputDirectory.FullName, "AppHost.dll"); 1737Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1804Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1908File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "AppHost.run.json"), """ 1973Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "My Project")); 2034Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 2099Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 2156Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 2259Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 2422File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "apphost.run.json"), """ 2654var appHostSymlink = Path.Combine(appHostFile.DirectoryName!, "apphost-link.cs"); 2683var targetAppHostFile = new FileInfo(Path.Combine(realDirectory.FullName, "apphost.cs")); 2687var selectedAppHostPath = Path.Combine(selectedDirectory.FullName, "apphost.cs"); 2717var selectedAppHostFile = new FileInfo(Path.Combine(configuredAppHostFile.DirectoryName!, "AppHost.cs")); 2780File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "apphost.run.json"), """ 2934var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.cs"); 2955var socketPath = Path.Combine( 2965var targetPath = Path.Combine(outputDirectory.FullName, fileName); 2974var commandPath = Path.Combine(outputDirectory.FullName, fileName); 3348WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3440WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3445WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.targets"), """ 3634WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3669WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 3674WriteIsLikelyAppHostProject(Path.Combine("repo", "Custom.props"), """ 3704WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 3739WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3771WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3811WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3854WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3892WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3920WriteIsLikelyAppHostProject(Path.Combine("outer", "directory.build.props"), """ 3944WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.targets"), """ 3975WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.targets"), """ 4037WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4061WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4120var projectFile = WriteIsLikelyAppHostProject(Path.Combine("proj", "MyApp.csproj"), """ 4129WriteIsLikelyAppHostProject(Path.Combine("proj", "Directory.Build.props"), $""" 4134WriteIsLikelyAppHostProject(Path.Combine("external", "Directory.Build.props"), """ 4210WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 4228WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 4246WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 4267WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 4289WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 4340WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4378WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4411WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 4430WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 4462WriteIsLikelyAppHostProject(Path.Combine("outer", "Repo.marker"), "<Project />"); 4463WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4539var projectFile = new FileInfo(Path.Combine(repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar))); 4557while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "Aspire.slnx"))) 4573Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, ".git")); 4575var path = Path.Combine(_workspace.WorkspaceRoot.FullName, fileName); 4610var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, fileName); 4627var projectPath = Path.Combine(_workspace.WorkspaceRoot.FullName, fileName); 4641var bundleRoot = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, Guid.NewGuid().ToString())); 4642var dcpDirectory = Directory.CreateDirectory(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName)); 4643var managedDirectory = Directory.CreateDirectory(Path.Combine(bundleRoot.FullName, BundleDiscovery.ManagedDirectoryName)); 4644var dashboardDirectory = Directory.CreateDirectory(Path.Combine(bundleRoot.FullName, BundleDiscovery.DashboardDirectoryName)); 4647Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 4650Path.Combine(dashboardDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.DashboardExecutableName)), 4706=> File.WriteAllText(Path.Combine(directory, "aspire.config.json"), content);
Projects\DotNetBasedAppHostServerScaffoldCacheTests.cs (8)
64Path.Combine(project.ProjectModelPath, DotNetBasedAppHostServerProject.ProjectFileName)); 82var programPath = Path.Combine(project.ProjectModelPath, "Program.cs"); 103var objPath = Path.Combine(project.ProjectModelPath, "obj"); 105var stalePath = Path.Combine(objPath, "stale.cache"); 131var csprojPath = Path.Combine(project.ProjectModelPath, DotNetBasedAppHostServerProject.ProjectFileName); 149var objPath = Path.Combine(project.ProjectModelPath, "obj"); 151var assetsPath = Path.Combine(objPath, "project.assets.json"); 160var projectModelPath = Path.Combine(appPath, ".aspire_server");
Projects\ExtensionGuestLauncherTests.cs (8)
32var command = Path.Combine(Path.GetTempPath(), "npx"); 64new FileInfo(Path.Combine(root.FullName, "AppHost.java")), 100await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), ["tsx"], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 115await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 136await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), ["tsx"], new DirectoryInfo("/tmp"), envVars, afterLaunchAsync: null, options: null, CancellationToken.None); 150var (exitCode, output) = await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "cmd"), [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 166var command = Path.Combine(Path.GetTempPath(), "python"); 180var executable = Path.Combine(binDirectory.FullName, OperatingSystem.IsWindows() ? $"{command}.exe" : command);
Projects\FallbackProjectParserTests.cs (14)
24var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 46var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 71var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 96var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 121var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 147var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 186var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 208var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 232var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 262var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 285var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 309var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 332var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 354var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.txt");
Projects\GuestAppHostProjectTests.cs (62)
58Directory.CreateDirectory(Path.Combine(outputPath, "aspire")); 67[Path.Combine("aspire", "Kept.java"), Path.Combine("aspire", "RemovedResource.java")], 75[Path.Combine("aspire", "Kept.java")], 87var handWritten = Path.Combine(outputPath, "HandWritten.java"); 101var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "Generated.java"); 117var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "Generated.java"); 131var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "New.java"); 142var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire_app.py"); 184var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 204var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 390var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 450var launchSettingsPath = Path.Combine(propertiesDir.FullName, "launchSettings.json"); 539var aspireConfigPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 731var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 739var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 794var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 802var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 804var installScriptPath = Path.Combine(_workspace.WorkspaceRoot.FullName, OperatingSystem.IsWindows() ? "install.cmd" : "install.sh"); 808var installMarkerPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "install.marker"); 818Command = OperatingSystem.IsWindows() ? Path.Combine(Environment.SystemDirectory, "cmd.exe") : "/bin/sh", 833var manifestPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "package.json"); 837await File.WriteAllTextAsync(Path.Combine(_workspace.WorkspaceRoot.FullName, "package.after-install.json"), installedManifest); 907var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 915var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 953var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 961var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 998var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1006var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1049var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1057var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1090var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1114var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1123var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1170var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1178var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1225var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1234var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1295var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1312var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1409var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1451var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1519var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1568var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1583new FileInfo(Path.Combine(_workspace.WorkspaceRoot.FullName, "package.json"))); 1621var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1629var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1710var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1718var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1805var socketPath = Path.Combine( 1833var logFilePath = Path.Combine(_workspace.WorkspaceRoot.FullName, $"test-guest-{Guid.NewGuid()}.log"); 1898var devCertificatePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire-dev-cert.pem"); 1914Assert.False(Directory.Exists(Path.Combine(_workspace.WorkspaceRoot.FullName, "bundles"))); 1920var devCertificatePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire-dev-cert.pem"); 1941var lowerCaseDirectory = Path.Combine(_workspace.WorkspaceRoot.FullName, "certificates"); 1942var upperCaseDirectory = Path.Combine(_workspace.WorkspaceRoot.FullName, "CERTIFICATES"); 1945var devCertificatePath = Path.Combine(lowerCaseDirectory, "aspire.pem"); 1946var existingBundlePath = Path.Combine(upperCaseDirectory, "ASPIRE.PEM"); 1995var existingBundlePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "existing-ca-certs.pem"); 1996var inheritedBundlePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "inherited-ca-certs.pem"); 1998var devCertificatePath = Path.Combine(devCertificateDirectory, "aspire-dev-cert.pem"); 2070var devCertificatePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire-dev-cert.pem");
Projects\GuestRuntimeTests.cs (29)
283var appHostFile = new FileInfo(Path.Combine(directory.FullName, "apphost.ts")); 603var appHostFile = new FileInfo(Path.Combine(root.FullName, "AppHost.java")); 775var scriptPath = Path.Combine( 891var appHostFile = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.ts")); 914var logFilePath = Path.Combine(Path.GetTempPath(), $"guest-output-test-{Guid.NewGuid()}.log"); 1161var appHostFile = new FileInfo(Path.Combine(tempDir, "apphost.ts")); 1165var migrationFilePath = Path.Combine(tempDir, migrationFileName); 1187var migrationFilePath = Path.Combine(tempDir, migrationFileName); 1209var appHostFile = new FileInfo(Path.Combine(tempDir, "apphost.ts")); 1275var runtime = CreateRuntime(CreateUpToDateSpec(requiredOutputs: [Path.Combine("classes", "AppHost.class")])); 1294var input = Path.Combine(workspace.WorkspaceRoot.FullName, relativeInput.Replace('/', Path.DirectorySeparatorChar)); 1315var classFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.class"); 1343File.Delete(Path.Combine(workspace.WorkspaceRoot.FullName, relativeInput.Replace('/', Path.DirectorySeparatorChar))); 1358var pom = Path.Combine(workspace.WorkspaceRoot.FullName, "pom.xml"); 1382File.WriteAllText(Path.Combine(dependencies, "guava-32.0.0.jar"), ""); 1393File.Delete(Path.Combine(dependencies, "guava-32.0.0.jar")); 1394File.WriteAllText(Path.Combine(dependencies, "guava-33.0.0.jar"), ""); 1396var runtime = CreateRuntime(CreateUpToDateSpec(extraInputs: [Path.Combine("target", "dependency")])); 1411var jar = Path.Combine(dependencies, "guava-32.0.0.jar"); 1420var runtime = CreateRuntime(CreateUpToDateSpec(extraInputs: [Path.Combine("target", "dependency")])); 1456StampFile = Path.Combine("classes", ".aspire-compile-stamp") 1553File.WriteAllText(Path.Combine(unreadable, "Hidden.java"), "class Hidden { }"); 1612StampFile = Path.Combine("classes", ".aspire-compile-stamp") 1620var appHostFile = new FileInfo(Path.Combine(root.FullName, "AppHost.java")); 1622File.WriteAllText(Path.Combine(root.FullName, "Helper.java"), "class Helper { }"); 1626File.WriteAllText(Path.Combine(generated, "Generated.java"), "class Generated { }"); 1630File.WriteAllText(Path.Combine(sources, "Service.java"), "class Service { }"); 1632Directory.CreateDirectory(Path.Combine(root.FullName, "classes")); 1668var executable = Path.Combine(binDirectory.FullName, OperatingSystem.IsWindows() ? $"{command}.exe" : command);
Projects\JavaAppHostToolchainResolverTests.cs (72)
16var path = Path.Combine(directory, wrapperName); 84File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 95File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 104File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 105File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 114File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 138File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 148["-B", "-q", "dependency:copy-dependencies", $"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", "-DincludeScope=runtime"], 161"-d", Path.Combine("target", "classes"), 171["-cp", $"{Path.Combine("target", "classes")}{Path.PathSeparator}{Path.Combine("target", "aspire-deps", "*")}", "AppHost"], 186File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 210Outputs = [Path.Combine(".java-build", "AppHost.class")], 212StampFile = Path.Combine(".java-build", ".aspire-compile-stamp") 231Assert.Contains(Path.Combine(outputDirectoryName, "aspire-deps"), inputs); 233? Path.Combine("target", "classes") 235Assert.Equal([Path.Combine(expectedClassesDirectory, "AppHost.class")], check.Outputs!); 243File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 281File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 315var wrapperPath = Path.Combine(workspace.Path, expectedWrapper); 352var rootWrapperPath = Path.Combine(workspace.Path, expectedWrapper); 355var moduleDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "apphost")); 356File.WriteAllText(Path.Combine(moduleDirectory.FullName, useMaven ? "pom.xml" : "build.gradle"), ""); 362Assert.Equal(["/c", "call", Path.Combine("..", expectedWrapper)], invocation.PrefixArgs); 376var localRepository = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-maven-repository")); 386Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 410Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 417$"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", 442var localRepository = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-maven-repository")); 452Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 480Path.Combine(workspace.Path, "pom.xml"), 484var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "standalone")); 485File.WriteAllText(Path.Combine(appHostDirectory.FullName, "pom.xml"), "<project />"); 496$"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", 504File.WriteAllText(Path.Combine(root, "pom.xml"), """ 521var libraryDirectory = Directory.CreateDirectory(Path.Combine(root, "library")); 522File.WriteAllText(Path.Combine(libraryDirectory.FullName, "pom.xml"), """ 536Path.Combine(librarySources.FullName, "Library.java"), 539var appHostProjectDirectory = Directory.CreateDirectory(Path.Combine(root, "apphost")); 540File.WriteAllText(Path.Combine(appHostProjectDirectory.FullName, "pom.xml"), """ 562Path.Combine(appHostDirectory.FullName, "AppHost.java"), 571Path.Combine(wrapperSource, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 572Path.Combine(root, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw")); 576Path.Combine(wrapperDirectory.FullName, "maven-wrapper.properties")); 583File.WriteAllText(Path.Combine(root, "pom.xml"), """ 596var appHostProjectDirectory = Directory.CreateDirectory(Path.Combine(root, "apphost")); 597File.WriteAllText(Path.Combine(appHostProjectDirectory.FullName, "pom.xml"), """ 608Path.Combine(appHostDirectory.FullName, "AppHost.java"), 617Path.Combine(wrapperSource, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 618Path.Combine(root, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw")); 622Path.Combine(wrapperDirectory.FullName, "maven-wrapper.properties")); 693File.WriteAllText(Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? windowsWrapperName : wrapperName), ""); 695var innerCheckout = Directory.CreateDirectory(Path.Combine(workspace.Path, "inner")); 696Directory.CreateDirectory(Path.Combine(innerCheckout.FullName, ".git")); 697File.WriteAllText(Path.Combine(innerCheckout.FullName, useMaven ? "pom.xml" : "build.gradle"), ""); 709File.WriteAllText(Path.Combine(directory, "pom.xml"), ""); 713File.WriteAllText(Path.Combine(directory, "settings.gradle"), ""); 721File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 740File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 756File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 760await File.WriteAllTextAsync(Path.Combine(dependencyDirectory, "library-1.0.jar"), ""); 773File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 777Assert.False(Directory.Exists(Path.Combine(workspace.Path, "target"))); 784File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 789await File.WriteAllTextAsync(Path.Combine(dependencyDirectory, "library-1.0.jar"), ""); 806File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 823File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 838File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 848File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 859Assert.Contains(Path.Combine(toProjectRoot, "pom.xml"), spec.InstallDependencies.Args); 864Assert.Contains($"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", spec.InstallDependencies.Args); 890File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 904Assert.Equal(scriptPath, Path.GetFullPath(Path.Combine(appHostDirectory.FullName, initScriptArgument)));
Projects\LanguageInfoTests.cs (4)
65File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"), ""); 76File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "MyApp.csproj"), ""); 89File.WriteAllText(Path.Combine(nested, "apphost.cs"), ""); 103File.WriteAllText(Path.Combine(deep, "apphost.cs"), "");
Projects\LegacyTypeScriptAppHostHelperTests.cs (3)
14File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"), "// legacy"); 23File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"), "// legacy"); 24File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), "// modern");
Projects\PrebuiltAppHostServerTests.cs (62)
31var path = Path.Combine(workspace.WorkspaceRoot.FullName, "IntegrationRestore.csproj"); 48var path = Path.Combine(workspace.WorkspaceRoot.FullName, "IntegrationRestore.csproj"); 61var path = Path.Combine(workspace.WorkspaceRoot.FullName, "IntegrationRestore.csproj"); 121var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 139var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 144var packagesProps = Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"); 160var leaf = Path.Combine(workspace.WorkspaceRoot.FullName, "Leaf.csproj"); 162var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 180var leaf = Path.Combine(workspace.WorkspaceRoot.FullName, "Leaf.csproj"); 182var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 195var first = Path.Combine(workspace.WorkspaceRoot.FullName, "First.csproj"); 196var second = Path.Combine(workspace.WorkspaceRoot.FullName, "Second.csproj"); 212var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 226var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 241var referencedProject = Path.Combine(workspace.WorkspaceRoot.FullName, "Aspire.Hosting.Java.csproj"); 352var objDir = Path.Combine(restoreDir, "obj"); 356File.WriteAllText(Path.Combine(objDir, "project.assets.json"), "{}"); 359File.WriteAllText(Path.Combine(objDir, "aspire-restore.stamp"), fingerprint); 445Assert.Equal(Path.Combine("/tmp/work", PrebuiltAppHostServer.ClosureMetadataFileName), doc.Descendants(ns + "AspireClosureMetadataFile").FirstOrDefault()?.Value); 446Assert.Equal(Path.Combine("/tmp/work", PrebuiltAppHostServer.ClosureSourcesFileName), doc.Descendants(ns + "AspireClosureSourcesFile").FirstOrDefault()?.Value); 447Assert.Equal(Path.Combine("/tmp/work", PrebuiltAppHostServer.ClosureTargetsFileName), doc.Descendants(ns + "AspireClosureTargetsFile").FirstOrDefault()?.Value); 448Assert.Equal(Path.Combine("/tmp/work", PrebuiltAppHostServer.ProjectRefAssemblyNamesFileName), doc.Descendants(ns + "AspireProjectRefAssemblyNamesFile").FirstOrDefault()?.Value); 602var firstAppHost = workspace.CreateDirectory(Path.Combine("apps", "api")); 603var secondAppHost = workspace.CreateDirectory(Path.Combine("apps", "web")); 778var expectedCachePath = Path.Combine( 835var expectedCachePath = Path.Combine( 958var expectedCachePath = Path.Combine( 1257new DirectoryInfo(Path.Combine(Path.GetTempPath(), "hives")), 1258new DirectoryInfo(Path.Combine(Path.GetTempPath(), "cache")), 1259new DirectoryInfo(Path.Combine(Path.GetTempPath(), "sdks")), 1260new DirectoryInfo(Path.Combine(Path.GetTempPath(), "logs")), 1369var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1399var appSettingsPath = Path.Combine(workingDirectory, "appsettings.json"); 1539var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1588var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1638var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1687var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1737var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1781var missingPackageSource = Path.Combine(workspace.WorkspaceRoot.FullName, "this-hive-was-deleted"); 1783var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1841var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1908var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1997var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2079var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2302Assert.Equal(Path.Combine(layoutPath, "libs"), startInfo.Environment[KnownConfigNames.IntegrationLibsPath]); 2365var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories) 2366.Select(path => Path.GetRelativePath(Path.Combine(layoutPath, "libs"), path).Replace('\\', '/')) 2419var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories) 2420.Select(path => Path.GetRelativePath(Path.Combine(layoutPath, "libs"), path).Replace('\\', '/')) 2575var firstSourcePath = Path.Combine(firstPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2576var secondSourcePath = Path.Combine(secondPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2620var firstPackagePath = Path.Combine(firstPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2621var secondPackagePath = Path.Combine(secondPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2622var projectPath = Path.Combine(projectRoot.FullName, "MyIntegration.dll"); 2757Path.Combine( 2778var sourcePath = Path.Combine(sourceRoot.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar)); 2798File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ClosureMetadataFileName), metadataLines); 2799File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ClosureSourcesFileName), sourcePaths); 2800File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ClosureTargetsFileName), targetPaths); 2801File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ProjectRefAssemblyNamesFileName), projectReferenceAssemblyNames); 2844File.WriteAllText(Path.Combine(objDirectory.FullName, "project.assets.json"), projectAssetsContent); 2940var dashboardPath = Path.Combine(
Projects\ProcessGuestLauncherTests.cs (3)
206var descendantPidFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "descendant.pid")); 333var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "spawn-descendant.ps1")); 347var shellFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "spawn-descendant.sh"));
Projects\ProjectLocatorTests.cs (220)
39var appHostFile = new FileInfo(Path.Combine(directory.FullName, "apphost.cs")); 71var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 75var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 78var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 102var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 106var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 109var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 131var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 135var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 138var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 164var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 168var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 171var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 197var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 201var firstAlternative = new FileInfo(Path.Combine(alternativesDirectory.FullName, "FirstAlternative.csproj")); 203var secondAlternative = new FileInfo(Path.Combine(alternativesDirectory.FullName, "SecondAlternative.csproj")); 206var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 230var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 234var alternativeAppHost = new FileInfo(Path.Combine(alternativeDirectory.FullName, "Alternative.csproj")); 237var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 259var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 262var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 283var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 286var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 308var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, $"AppHost{index}.csproj")); 313var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 363var configuredPath = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 365var differentlyCasedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.csproj"); 380var configuredPath = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 382var differentlyCasedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.csproj"); 398var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 402var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 405var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 429var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 433var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 436var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 465var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 469var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 472var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 514var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 535var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 556Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 567var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 571var decoyAppHost = new FileInfo(Path.Combine(decoyDirectory.FullName, "HealthyAppHost.csproj")); 574var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 576var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 606Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 617var outsideAppHost = new FileInfo(Path.Combine(outsideDirectory.FullName, "OutsideAppHost.csproj")); 621var configPath = Path.Combine(workingDirectory.FullName, AspireConfigFile.FileName); 655var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 687var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Missing.csproj")); 718var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebApp.csproj")); 747var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 751var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 755var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 780var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 784var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 811var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 815var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 838var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 843var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 879var staleProjectFile = new FileInfo(Path.Combine(staleProjectDirectory.FullName, "StaleProject.csproj")); 882var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 886var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 932var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 955var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 990var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 994var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj")); 997var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1028var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 1032var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj")); 1035var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1065var guestAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 1068var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1102var configuredAppHostProjectFile = new FileInfo(Path.Combine(configuredAppHostDirectory.FullName, "ConfiguredAppHost.csproj")); 1105var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 1108var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1155var configuredAppHostProjectFile = new FileInfo(Path.Combine(configuredAppHostDirectory.FullName, "ConfiguredAppHost.csproj")); 1158var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 1161var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1207var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 1211var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 1214var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1244var settingsAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SettingsAppHost.csproj")); 1250var configPath = Path.Combine(workingDirectory.FullName, AspireConfigFile.FileName); 1283var settingsAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.custom")); 1286var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1318var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 1322var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 1348var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 1351var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 1366var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1369var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj")); 1412var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectFileExtension}")); 1430var onDiskProjectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj")); 1463var onDiskProjectFile = new FileInfo(Path.Combine(realDirectory.FullName, "RealAppHost.csproj")); 1466var linkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "LinkedAppHost"); 1469var linkedProjectFile = new FileInfo(Path.Combine(linkDirectory, onDiskProjectFile.Name)); 1494var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1509var legacyAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 1510var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts")); 1513await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), JsonSerializer.Serialize(new 1548var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1568var settingsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName)); 1585var appHostFile = new FileInfo(Path.Combine(srcDirectory.FullName, "apphost.ts")); 1588var adjacentConfigPath = Path.Combine(srcDirectory.FullName, AspireConfigFile.FileName); 1633Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 1652var appHost1File = new FileInfo(Path.Combine(appHost1Directory.FullName, "apphost.ts")); 1654var appHost1ConfigPath = Path.Combine(appHost1Directory.FullName, AspireConfigFile.FileName); 1664var appHost2File = new FileInfo(Path.Combine(appHost2Directory.FullName, "apphost.ts")); 1666var appHost2ConfigPath = Path.Combine(appHost2Directory.FullName, AspireConfigFile.FileName); 1703Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 1722var appHostFile = new FileInfo(Path.Combine(srcDirectory.FullName, "apphost.ts")); 1757Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 1771var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "MyAppHost.csproj")); 1778var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 1779var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 1801var aspireConfigFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1815var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1840var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 1866var appHostFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "apphost.cs")); 1876var csprojFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "RegularProject.csproj")); 1881var validAppHostFile = new FileInfo(Path.Combine(dirWithOnlyAppHost.FullName, "apphost.cs")); 1921var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1941var csprojFile = new FileInfo(Path.Combine(subDir1.FullName, "AppHost.csproj")); 1946var appHostFile = new FileInfo(Path.Combine(subDir2.FullName, "apphost.cs")); 1982var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2009var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 2033var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 2054var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 2057var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2080var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 2091var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SomeProject.csproj")); 2106var txtFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "readme.txt")); 2126var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2131var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 2204: Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName); 2318var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj")); 2373var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "UnbuildableAppHost.csproj")); 2391Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 2403var first = new FileInfo(Path.Combine(firstProjectDirectory.FullName, "FirstAppHost.csproj")); 2406var second = new FileInfo(Path.Combine(secondProjectDirectory.FullName, "SecondAppHost.csproj")); 2443var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 2448var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2485var healthyAppHost = new FileInfo(Path.Combine(healthyDirectory.FullName, "HealthyAppHost.csproj")); 2490var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 2493var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2526var configuredAppHost = new FileInfo(Path.Combine(configuredDirectory.FullName, "ConfiguredAppHost.csproj")); 2531var firstAppHost = new FileInfo(Path.Combine(firstDirectory.FullName, "FirstAppHost.csproj")); 2534var secondAppHost = new FileInfo(Path.Combine(secondDirectory.FullName, "SecondAppHost.csproj")); 2537var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2571var unsupportedAppHost = new FileInfo(Path.Combine(unsupportedDirectory.FullName, "UnsupportedAppHost.csproj")); 2576var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2627var appHostFile = new FileInfo(Path.Combine(realDirectory.FullName, "AppHost.csproj")); 2630var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 2645var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 2649var firstHealthy = new FileInfo(Path.Combine(firstHealthyDirectory.FullName, "FirstHealthyAppHost.csproj")); 2653var secondHealthy = new FileInfo(Path.Combine(secondHealthyDirectory.FullName, "SecondHealthyAppHost.csproj")); 2656var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2695var projectFile1 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project1.csproj")); 2697var projectFile2 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project2.csproj")); 2732var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "apphost.cs")); 2760var projectFile = new FileInfo(Path.Combine(subDirectory.FullName, "Mongo.AppHost.csproj")); 2799var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 2804var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.cs")); 2842var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 2846var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 2884var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 2907var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2928var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2950var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3010var cachedProject = new FileInfo(Path.Combine(nugetCacheDir, "Aspire.AppHost1.csproj")); 3075var customCacheDir = Path.Combine(workspace.WorkspaceRoot.FullName, "custom-nuget-cache"); 3078var cachedProject = new FileInfo(Path.Combine(cachedProjectDir, "Aspire.AppHost1.csproj")); 3107var customCacheDir = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget-cache"); 3112var siblingProject = new FileInfo(Path.Combine(siblingDir, "AppHost.csproj")); 3118var cachedProject = new FileInfo(Path.Combine(cachedProjectDir, "Aspire.AppHost1.csproj")); 3148var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyAppHost.csproj")); 3171var appHost1File = new FileInfo(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj")); 3177var appHost2File = new FileInfo(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj")); 3201var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "RealAppHost.csproj")); 3225await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "Not a real apphost"); 3228await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "Not a real apphost"); 3246var appHost1File = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 3249var appHost2File = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 3252var slowValidationFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SlowValidation.csproj")); 3305var appHost1File = new FileInfo(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj")); 3309var appHost2File = new FileInfo(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj")); 3313var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 3315var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 3338var appHost1File = new FileInfo(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj")); 3342var appHost2File = new FileInfo(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj")); 3346var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 3348var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 3537var configuredAppHost = new FileInfo(Path.Combine(configuredDirectory.FullName, "ConfiguredAppHost.csproj")); 3541var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3701var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 3705var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3739var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3768var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.unknown")); 3772var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3801var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 3805var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3849var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3884var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3915var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3942var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3967var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3992var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 4022var settingsPath = Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"); 4049var settingsPath = Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"); 4076var settingsPath = Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"); 4114var realAppHost = new FileInfo(Path.Combine(realAppDirectory.FullName, "AppHost.csproj")); 4121var linkDirectory = Path.Combine(nodeModulesDir.FullName, "link"); 4135var pathThroughLink = Path.Combine(linkDirectory, "AppHost.csproj"); 4143var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 4186var appHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4189var differentlyCasedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "APPHOST.csproj"); 4197var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 4224var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Projects\ProjectUpdaterTests.cs (79)
31var appHostProject = new FileInfo(Path.Combine(realDirectory.FullName, "AppHost.csproj")); 34var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 36var appHostProjectViaSymlink = new FileInfo(Path.Combine(symlinkDirectory, appHostProject.Name)); 48var lowerCaseProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.csproj")); 50var upperCaseProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 66var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 69var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 72var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 176var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 179var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 182var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 195var aspireConfigFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")); 340var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 343var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 346var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 358var aspireConfigFile = new FileInfo(Path.Combine(appHostFolder.FullName, "aspire.config.json")); 447var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 450var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 453var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 463var aspireConfigFile = new FileInfo(Path.Combine(appHostFolder.FullName, "aspire.config.json")); 617var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 737var sharedProjectFile = new FileInfo(Path.Combine(sharedProjectFolder.FullName, "SharedProject.csproj")); 740var projectAFile = new FileInfo(Path.Combine(projectAFolder.FullName, "ProjectA.csproj")); 743var projectBFile = new FileInfo(Path.Combine(projectBFolder.FullName, "ProjectB.csproj")); 746var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "DiamondTest.AppHost.csproj")); 870var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 873var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 875var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1006var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1008var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1108var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1110var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1230var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1232var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1341var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1420var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1497var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1498var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1597Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1598Assert.False(File.Exists(Path.Combine(appHostProjectFile.DirectoryName!, "nuget.config"))); 1612var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1666Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1672var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1809var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1811var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1922var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1924var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2046var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2048var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2160var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2162var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2271var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2365var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2367var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2467var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2546var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2628var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2721var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2815var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2891var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2973var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3059var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3137var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3215var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3339var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3341var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 3466var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3499var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3531var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3568var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3604var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3637var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3674var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3692var directoryPackagesPropsFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"); 3745var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "Issue15891.AppHost.csproj")); 3859var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3936var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3990var existingConfigFile = new FileInfo(Path.Combine(executionContext.WorkingDirectory.FullName, "nuget.config")); 4026var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
Projects\RepositoryToolUpdaterTests.cs (23)
26var workingDirectory = root.CreateSubdirectory(Path.Combine("src", "app")); 60var unrelatedPath = Path.Combine(child.CreateSubdirectory(".config").FullName, "dotnet-tools.json"); 80var rootManifestPath = Path.Combine(child.CreateSubdirectory(".config").FullName, "dotnet-tools.json"); 105var gitPath = Path.Combine(root.FullName, ".git"); 142var unrelatedPath = Path.Combine(child.FullName, "package.json"); 167var link = Path.Combine(root.FullName, directoryLink ? ".config" : "package.json"); 169var alias = Path.Combine(workspace.WorkspaceRoot.FullName, "alias"); 193var manifestPath = Path.Combine(configDirectory.FullName, "dotnet-tools.json"); 212var unrelatedPath = Path.Combine(root.FullName, "package.json"); 215var workingDirectory = root.CreateSubdirectory(Path.Combine("src", "app")); 216var localManifestPath = Path.Combine(workingDirectory.CreateSubdirectory(".config").FullName, "dotnet-tools.json"); 253var manifestPath = Path.Combine(root.FullName, "package.json"); 317var lockPath = Path.Combine(root.FullName, "package-lock.json"); 385Assert.False(File.Exists(Path.Combine(root.FullName, "package-lock.json"))); 386Assert.False(File.Exists(Path.Combine(root.FullName, "npm-shrinkwrap.json"))); 461var lockPath = Path.Combine(root.FullName, "package-lock.json"); 552var path = Path.Combine(root.FullName, isNpm ? "package.json" : "dotnet-tools.json"); 576var lockPath = Path.Combine(root.FullName, "package-lock.json"); 609var dotNetPath = Path.Combine(root.FullName, "dotnet-tools.json"); 610var npmPath = Path.Combine(root.FullName, "package.json"); 731var path = Path.Combine(directory.FullName, isNpm ? "package.json" : "dotnet-tools.json"); 762var packageLockPath = Path.Combine(directory.FullName, "package-lock.json"); 763var shrinkwrapPath = Path.Combine(directory.FullName, "npm-shrinkwrap.json");
Projects\RunningInstanceManagerTests.cs (1)
42var socketPath = Path.Combine(socketDirectory.FullName, "a.sock");
Projects\TypeScriptAppHostToolchainResolverTests.cs (39)
18File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }"); 29File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"deno@2.9.0\" }"); 42var packageJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"); 57File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 58File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "deno.lock"), "{ \"version\": \"5\" }"); 70File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 71File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "deno.json"), "{}"); 83File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 84File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "deno.jsonc"), "{ /* Deno configuration */ }"); 96File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 97File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "pnpm-lock.yaml"), "lockfileVersion: '9.0'"); 108var packageJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"); 120File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"yarn@4.14.1\" }"); 131File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 132var yarnLockPath = Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"); 146File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 147File.WriteAllText(Path.Combine(parentDirectory.FullName, "package.json"), "{ \"name\": \"workspace\" }"); 148var yarnLockPath = Path.Combine(parentDirectory.FullName, "yarn.lock"); 162File.WriteAllText(Path.Combine(parentDirectory.FullName, "package.json"), "{ \"name\": \"workspace\" }"); 163File.WriteAllText(Path.Combine(parentDirectory.FullName, "yarn.lock"), string.Empty); 164File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 165File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package-lock.json"), "{}"); 177File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 178File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package-lock.json"), "{}"); 179File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), string.Empty); 191File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 192Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".yarn")); 203File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 214File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 215File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), string.Empty); 234File.WriteAllText(Path.Combine(appHostDirectory.Parent!.FullName, "package.json"), "{ \"packageManager\": \"pnpm@10.12.1\" }"); 235File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 248File.WriteAllText(Path.Combine(appHostDirectory.Parent!.FullName, "package.json"), "{ \"packageManager\": \"pnpm@10.12.1\" }"); 249File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }"); 254Assert.Equal($"packageManager 'bun@1.2.0' found in {Path.Combine(appHostDirectory.FullName, "package.json")}", resolution.Reason); 263File.WriteAllText(Path.Combine(appHostDirectory.Parent!.FullName, "package.json"), "{ \"packageManager\": \"yarn@4.14.1\" }"); 264File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 265File.WriteAllText(Path.Combine(appHostDirectory.FullName, "pnpm-lock.yaml"), "lockfileVersion: '9.0'"); 277File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }");
Scaffolding\ScaffoldingServiceTests.cs (11)
36File.WriteAllText(Path.Combine(rootDirectory.FullName, "package.json"), "{}"); 41Path.Combine(rootDirectory.FullName, ScaffoldingService.BrownfieldTypeScriptAppHostDirectoryName), 74File.WriteAllText(Path.Combine(rootDirectory.FullName, "package.json"), "{}"); 156var appHostDirectory = Directory.CreateDirectory(Path.Combine(rootDirectory.FullName, ScaffoldingService.BrownfieldTypeScriptAppHostDirectoryName)); 157File.WriteAllText(Path.Combine(rootDirectory.FullName, "package.json"), "{ \"packageManager\": \"npm@10.0.0\" }"); 158File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"packageManager\": \"pnpm@10.0.0\" }"); 228var scaffoldDirectory = Directory.CreateDirectory(Path.Combine(rootDirectory.FullName, ScaffoldingService.BrownfieldTypeScriptAppHostDirectoryName)); 251File.WriteAllText(Path.Combine(rootDirectory.FullName, ".gitignore"), "node_modules/\n"); 252File.WriteAllText(Path.Combine(rootDirectory.FullName, "package.json"), "{}"); 253File.WriteAllText(Path.Combine(rootDirectory.FullName, "apphost.mts"), string.Empty); 290Directory.CreateDirectory(Path.Combine(rootDirectory.FullName, ".vscode"));
Secrets\SecretsStoreTests.cs (2)
14_tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"); 26private string GetSecretsPath() => Path.Combine(_tempDir, "secrets.json");
Telemetry\AgentTelemetryPersistenceTests.cs (1)
116var lockPath = Path.Combine(workspace.Path, "uploader.lock");
Telemetry\AgentTelemetryUploaderTests.cs (5)
17var pending = Path.Combine(storage, "pending"); 18var lockPath = Path.Combine(workspace.Path, "uploader.lock"); 42var lockPath = Path.Combine(workspace.Path, "uploader.lock"); 53var pending = Path.Combine(storage, "pending"); 54var lockPath = Path.Combine(workspace.Path, "uploader.lock");
Telemetry\InternalMicrosoftDetectorTests.cs (12)
630await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 631await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 668await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 669await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 702await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 703await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 893macPlatformSsoPath: Path.Combine(workspace.Path, "missing-app-sso")); 906var appSsoPath = Path.Combine(workspace.Path, "app-sso"); 1044await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 1045await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 1075await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1106await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty);
Telemetry\ProfilingTelemetryTests.cs (4)
55var aspirePath = Path.Combine("tools", "aspire"); 56var npmPath = Path.Combine("node", "npm"); 125var aspirePath = Path.Combine("tools", "aspire"); 171var appHostProjectFile = new FileInfo(Path.Combine("AppHost", "AppHost.csproj"));
Templating\DotNetTemplateFactoryTests.cs (17)
39var path = Path.Combine(dir.FullName, "nuget.config"); 64var nugetConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 96var nugetConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 109var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 134var parentConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 140var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 153var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 176var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 190var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 203var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 207var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 220var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 229var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 230var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 241var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 250var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 251var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config");
Templating\JavaAppHostTemplateTests.cs (8)
81var apiDirectory = Path.Combine(GetJavaStarterDirectory(), "api"); 83var buildPath = Path.Combine(apiDirectory, "build.gradle"); 90var settingsPath = Path.Combine(apiDirectory, "settings.gradle"); 111var path = Path.Combine(GetJavaStarterDirectory(), "aspire.config.json"); 132var apiDirectory = Path.Combine(GetJavaStarterDirectory(), "api"); 136var path = Path.Combine(apiDirectory, relativePath); 149var path = Path.Combine(apiDirectory, relativePath); 173var path = Path.Combine(GetJavaStarterDirectory(), "AppHost.java");
Templating\JavaStarterScaffoldTests.cs (7)
62.EnumerateFiles(Path.Combine(outputDirectory, "api"), "*", SearchOption.AllDirectories) 96Assert.True(File.Exists(Path.Combine(outputDirectory, "AppHost.java"))); 105Assert.True(File.Exists(Path.Combine(outputDirectory, ".project"))); 106Assert.True(File.Exists(Path.Combine(outputDirectory, ".classpath"))); 108Assert.Contains("<name>JavaStarterOut</name>", File.ReadAllText(Path.Combine(outputDirectory, ".project"))); 110using var config = JsonDocument.Parse(File.ReadAllText(Path.Combine(outputDirectory, "aspire.config.json"))); 151return new ScaffoldedTemplate(workspace, Path.Combine(workspace.WorkspaceRoot.FullName, outputDirectoryName));
Templating\OutputPathHelperTests.cs (6)
36File.WriteAllText(Path.Combine(dir.FullName, "file.txt"), "content"); 52File.WriteAllText(Path.Combine(dir.FullName, "file.txt"), "content"); 67File.WriteAllText(Path.Combine(dir.FullName, "file.txt"), "content"); 99var path = Path.Combine(workspace.WorkspaceRoot.FullName, "new-dir"); 122File.WriteAllText(Path.Combine(dir.FullName, "file.txt"), "content"); 159File.WriteAllText(Path.Combine(dir.FullName, "file.txt"), "content");
Templating\TemplateGitIgnoreTests.cs (1)
37var gitIgnorePath = Path.Combine(starterDirectory, ".gitignore");
Templating\TemplateNuGetConfigServiceTests.cs (25)
31Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"), 60var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 101var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 115Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"), 125Path.Combine(outputDirectory.FullName, "nuget.config"), 145var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 179Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 449Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), 647File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 648File.WriteAllText(Path.Combine(prPackagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0-dev.nupkg"), string.Empty); 721File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 722File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0.nupkg"), string.Empty); 763Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.6.0.nupkg"), 800File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0-dev.nupkg"), string.Empty); 801File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.99.0.0.nupkg"), string.Empty); 836File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.99.0.0.nupkg"), string.Empty); 877File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0-dev.nupkg"), string.Empty); 878File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.7.0-dev.nupkg"), string.Empty); 978File.WriteAllText(Path.Combine(packagesDir.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 1123var configPath = Path.Combine(outputDir.FullName, "nuget.config"); 1161Assert.False(File.Exists(Path.Combine(outputDir.FullName, "nuget.config"))); 1172Path.Combine(outputDir.FullName, "nuget.config"), 1206var configPath = Path.Combine(outputDir.FullName, "nuget.config"); 1233Path.Combine(outputDir.FullName, "nuget.config"), 1262var configPath = Path.Combine(outputDir.FullName, "nuget.config");
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
TestServices\FakePlaywrightServices.cs (8)
66_bundleDirectory = new DirectoryInfo(Path.Combine(executionContext.WorkingDirectory.FullName, ".fake-aspire-skills-bundle")); 100[(CommonAgentApplicators.AspireSkillName, Path.Combine("references", "app-commands.md"))] = "# App commands", 101[(CommonAgentApplicators.AspireSkillName, Path.Combine("evals", "evals.json"))] = "{}", 120[(CommonAgentApplicators.AspireDeploymentSkillName, Path.Combine("references", "preflight.md"))] = "# Preflight", 157[(AspireProjectV2MigrationSkillName, Path.Combine("references", "migration-patterns.md"))] = "# Migration patterns", 158[(AspireProjectV2MigrationSkillName, Path.Combine("references", "compatibility-and-validation.md"))] = "# Compatibility and validation", 159[(AspireProjectV2MigrationSkillName, Path.Combine("evals", "eval.yaml"))] = "stimuli: []" 190await File.WriteAllTextAsync(Path.Combine(_bundleDirectory.FullName, "skill-manifest.json"), manifestJson, cancellationToken);
TestServices\TerminalTapeTestHost.cs (1)
34SocketPath = Path.Combine(_directory.FullName, "h.sock");
TestServices\TestCliDownloader.cs (1)
37var path = Path.Combine(_tempDirectory.FullName, filename);
TestServices\TestGitWorktree.cs (2)
21File.WriteAllText(Path.Combine(adminDirectory, "gitdir"), backPointer + Environment.NewLine); 33var gitFilePath = Path.Combine(fullCheckoutRoot, ".git");
Utils\AppHostHelperTests.cs (1)
28var projectFile = new FileInfo(Path.Combine(Path.GetTempPath(), "test.csproj"));
Utils\AspireRepositoryDetectorTests.cs (3)
41File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty); 67File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty); 88File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty);
Utils\CliPathHelperTests.cs (12)
156var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 157var binDir = Path.Combine(installPrefix, "bin"); 169var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-pr-test"); 198var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "portable"); 223Assert.Equal(Path.Combine("/home/user", ".aspire"), result); 259var target = Path.Combine(workspace.WorkspaceRoot.FullName, "target-aspire"); 262var link = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 334var realPath = Path.Combine(workspace.WorkspaceRoot.FullName, "binary-under-test"); 350var realPath = Path.Combine(workspace.WorkspaceRoot.FullName, "binary-under-test"); 370var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "portable"); 389var binaryPath = Path.Combine(binaryDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 391File.WriteAllText(Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName), $$"""{"source":"{{source}}"}""");
Utils\CliTestHelper.cs (1)
670var tmpDirectory = new DirectoryInfo(Path.Combine(executionContext.WorkingDirectory.FullName, "tmp"));
Utils\CliUpdateNotificationServiceTests.cs (2)
219var toolPath = Path.Combine(workspace.CreateDirectory("install").FullName, "custom tool path"); 409var processPath = Path.Combine(toolPath, GetAspireExecutableName());
Utils\DcpConnectionHealthCheckTests.cs (3)
258var kubeconfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "kubeconfig"); 303var certificatePath = Path.Combine(cacheDirectory, $"{lookup}.crt"); 304var keyPath = Path.Combine(cacheDirectory, $"{lookup}.key");
Utils\DevCertsCheckTests.cs (28)
68var certUtilPath = Path.Combine(directory.FullName, CertificateHelpers.CertUtilCommand); 81? Path.Combine(directory.FullName, "openssl.cmd") 82: Path.Combine(directory.FullName, "openssl"); 116File.WriteAllText(Path.Combine(trustDirectory.FullName, GetOpenSslCertificateFileName(certificate)), certificatePem); 117File.WriteAllText(Path.Combine(trustDirectory.FullName, hashEntryName), certificatePem); 343["PATH"] = Path.Combine(AppContext.BaseDirectory, Guid.NewGuid().ToString("N")) 406var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 450var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 501var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 556var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 557File.WriteAllText(Path.Combine(trustDirectory.FullName, GetOpenSslCertificateFileName(certificate)), certificate.ExportCertificatePem()); 606var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 607File.WriteAllText(Path.Combine(trustDirectory.FullName, GetOpenSslCertificateFileName(certificate)), certificate.ExportCertificatePem()); 665var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 666File.WriteAllText(Path.Combine(trustDirectory.FullName, GetOpenSslCertificateFileName(certificate)), certificate.ExportCertificatePem()); 722var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 723File.WriteAllText(Path.Combine(trustDirectory.FullName, GetOpenSslCertificateFileName(certificate)), certificate.ExportCertificatePem()); 764var trustDirectory = Path.Combine(tempDirectory.FullName, "missing-trust"); 808var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 852var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 854File.WriteAllText(Path.Combine(trustDirectory.FullName, corruptCertificateFileName), "not a certificate"); 898var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 900File.WriteAllText(Path.Combine(trustDirectory.FullName, corruptCertificateFileName), "not a certificate"); 944var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 946File.WriteAllText(Path.Combine(trustDirectory.FullName, "unrelated.pem"), "not a certificate"); 988var trustDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "trust")); 989File.WriteAllText(Path.Combine(trustDirectory.FullName, GetOpenSslCertificateFileName(certificate)), staleCertificate.ExportCertificatePem()); 1042["PATH"] = Path.Combine(AppContext.BaseDirectory, Guid.NewGuid().ToString("N"))
Utils\DotNetToolDetectionTests.cs (4)
27var toolPath = Path.Combine(workspace.Path, "custom tool path"); 28var processPath = Path.Combine(toolPath, GetAspireExecutableName()); 54var toolPath = Path.Combine(workspace.Path, "custom tool path"); 82var processPath = Path.Combine(workspace.Path, GetAspireExecutableName());
Utils\FileSystemHelperTests.cs (57)
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"); 284Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]); 285Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]); 299Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]); 300Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]); 325Assert.Equal(Path.Combine("MyApp", "AppHost.cs"), result[paths[0]]); 348Assert.Equal(Path.Combine("App1", "AppHost.cs"), result[paths[0]]); 362Assert.Equal(Path.Combine("App1", "AppHost.cs"), result[paths[0]]); 363Assert.Equal(Path.Combine("App2", "AppHost.cs"), result[paths[1]]); 393Assert.Equal(Path.Combine("App2", "AppHost.cs"), result[paths[1]]); 416Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]); 417Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]); 449Assert.Equal(Path.Combine("Folder", "Project.csproj"), result[paths[0]]); 450Assert.Equal(Path.Combine("folder", "Project.csproj"), result[paths[1]]);
Utils\FirstTimeUseNoticeSentinelTests.cs (7)
29var cliDir = Path.Combine(workspace.WorkspaceRoot.FullName, "cli"); 31var sentinelFilePath = Path.Combine(cliDir, "cli.firstUseSentinel"); 62var cliDir = Path.Combine(workspace.WorkspaceRoot.FullName, "cli"); 64var sentinelFilePath = Path.Combine(cliDir, "cli.firstUseSentinel"); 81var nonExistentDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "non-existent-dir"); 88var cliDir = Path.Combine(nonExistentDirectory, "cli"); 89var sentinelFilePath = Path.Combine(cliDir, "cli.firstUseSentinel");
Utils\LegacySettingsFileCheckTests.cs (16)
15var legacyDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 17await File.WriteAllTextAsync(Path.Combine(legacyDir, "settings.json"), "{}"); 21var subDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "src")); 43Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 60var legacyDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 62await File.WriteAllTextAsync(Path.Combine(legacyDir, "settings.json"), "{}"); 64Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 83Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 88var subDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "src")); 105var legacyDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 107await File.WriteAllTextAsync(Path.Combine(legacyDir, "settings.json"), "{}"); 131var legacyDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 133await File.WriteAllTextAsync(Path.Combine(legacyDir, "settings.json"), "{}"); 136var childDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "project")); 139Path.Combine(childDir.FullName, AspireConfigFile.FileName), 143var workingDir = new DirectoryInfo(Path.Combine(childDir.FullName, "src"));
Utils\MissingJavaScriptToolWarningTests.cs (1)
52File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }");
Utils\PathNormalizerTests.cs (14)
20var file = new FileInfo(Path.Combine(subdir.FullName, "app.csproj")); 41var file = new FileInfo(Path.Combine(directory.FullName, "App.csproj")); 60var file = new FileInfo(Path.Combine(directory.FullName, "App.csproj")); 91var target = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "target.csproj")); 94var linkPath = Path.Combine(workspace.WorkspaceRoot.FullName, "link.csproj"); 116var file = new FileInfo(Path.Combine(nested.FullName, "app.csproj")); 119var linkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 137var missingTarget = Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"); 138var linkPath = Path.Combine(workspace.WorkspaceRoot.FullName, "broken-link.csproj"); 156var projectFile = new FileInfo(Path.Combine(realDirectory.FullName, "AppHost.csproj")); 159var linkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 162var linkPath = Path.Combine(linkDirectory, projectFile.Name); 176var file = new FileInfo(Path.Combine(tempDirectory.FullName, "AppHost.csproj")); 204Assert.EndsWith(Path.Combine("Missing.AppHost", "Missing.AppHost.csproj"), resolved, StringComparison.Ordinal);
Utils\ReparsePointTests.cs (59)
16var target = Path.Combine(root, "real"); 18File.WriteAllText(Path.Combine(target, "marker"), "hello"); 20var link = Path.Combine(root, "link"); 27Assert.Equal("hello", File.ReadAllText(Path.Combine(link, "marker"))); 43var target1 = Path.Combine(root, "t1"); 44var target2 = Path.Combine(root, "t2"); 47File.WriteAllText(Path.Combine(target1, "id"), "one"); 48File.WriteAllText(Path.Combine(target2, "id"), "two"); 50var link = Path.Combine(root, "link"); 52Assert.Equal("one", File.ReadAllText(Path.Combine(link, "id"))); 58Assert.Equal("two", File.ReadAllText(Path.Combine(link, "id"))); 77var real = Path.Combine(root, "link"); 79File.WriteAllText(Path.Combine(real, "legacy"), "legacy"); 81var target = Path.Combine(root, "target"); 90Assert.True(File.Exists(Path.Combine(real, "legacy"))); 97var dir = Path.Combine(workspace.WorkspaceRoot.FullName, "plain"); 107Assert.False(ReparsePoint.IsReparsePoint(Path.Combine(workspace.WorkspaceRoot.FullName, "nope"))); 116var target = Path.Combine(root, "target"); 118var markerPath = Path.Combine(target, "keep"); 121var link = Path.Combine(root, "link"); 134var dir = Path.Combine(workspace.WorkspaceRoot.FullName, "plain"); 135Directory.CreateDirectory(Path.Combine(dir, "nested")); 147ReparsePoint.RemoveIfExists(Path.Combine(workspace.WorkspaceRoot.FullName, "missing")); 156var link = Path.Combine(root, "bundle"); 159var resolvedTarget = ReparsePoint.ResolveTargetPath(link, Path.Combine("versions", "v1")); 170var link = Path.Combine(root, "bundle"); 173Directory.CreateSymbolicLink(link, Path.Combine("versions", "missing")); 210var target = Path.Combine(root, "real"); 212File.WriteAllText(Path.Combine(target, "marker"), "hello"); 214var link = Path.Combine(root, "junction"); 223Assert.Equal("hello", File.ReadAllText(Path.Combine(link, "marker"))); 241var target = Path.Combine(root, "real"); 242var nestedDir = Path.Combine(target, "nested"); 244File.WriteAllText(Path.Combine(nestedDir, "data.txt"), "payload"); 246var link = Path.Combine(root, "junction"); 254var nestedThroughLink = Path.Combine(link, "nested"); 256Assert.Equal("payload", File.ReadAllText(Path.Combine(nestedThroughLink, "data.txt"))); 280var target = Path.Combine(root, "real"); 282var markerPath = Path.Combine(target, "keep"); 285var link = Path.Combine(root, "junction"); 304var target = Path.Combine(root, "real"); 307var link = Path.Combine(root, "junction"); 348var targetV1 = Path.Combine(root, "v1"); 349var targetV2 = Path.Combine(root, "v2"); 352File.WriteAllText(Path.Combine(targetV1, "id"), "one"); 353File.WriteAllText(Path.Combine(targetV2, "id"), "two"); 355var link = Path.Combine(root, "link"); 362Assert.Equal("one", File.ReadAllText(Path.Combine(link, "id"))); 372Assert.Equal("two", File.ReadAllText(Path.Combine(link, "id"))); 382Assert.True(File.Exists(Path.Combine(targetV1, "id"))); 404var probe = Path.Combine(root, "symlink-probe"); 405var probeTarget = Path.Combine(root, "probe-target"); 428var targetV1 = Path.Combine(root, "v1"); 429var targetV2 = Path.Combine(root, "v2"); 432File.WriteAllText(Path.Combine(targetV1, "id"), "one"); 433File.WriteAllText(Path.Combine(targetV2, "id"), "two"); 435var link = Path.Combine(root, "link"); 453Assert.Equal("two", File.ReadAllText(Path.Combine(link, "id"))); 456Assert.True(File.Exists(Path.Combine(targetV1, "id")));
Utils\TestExecutionContextHelper.cs (2)
62homeDirectory ??= new DirectoryInfo(Path.Combine(root, ".home")); 66logFilePath ??= Path.Combine(logsDirectory.FullName, "test.log");
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
56protected string JsonSchemaPath => Path.Combine(AppContext.BaseDirectory, "ConfigurationSchema.json");
Aspire.Dashboard (28)
ServiceClient\DashboardRunStore.cs (17)
133DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 140CurrentWorkingDirectory = Path.Combine(_runsDirectory, runId); 141DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 149File.WriteAllText(Path.Combine(CurrentWorkingDirectory, _applicationMarkerFileName), string.Empty); 157_metadataPath = Path.Combine(CurrentWorkingDirectory, "run.json"); 162CurrentWorkingDirectory = Path.Combine(resumesDirectory, _applicationMarkerFileName); 163DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 222!File.Exists(Path.Combine(directory, DatabaseFileName))) 326var metadataPath = Path.Combine(runDirectory, "run.json"); 414if (!File.Exists(Path.Combine(directory, _applicationMarkerFileName))) 419var metadataPath = Path.Combine(directory, "run.json"); 547var metadataPath = Path.Combine(runDirectory, "run.json"); 607Path.Combine(runDirectory, metadata.DatabaseFileName), 616return Path.Combine(GetResumesDirectory(dataRoot), GetApplicationDirectoryName(applicationName)); 619internal static string GetRunsDirectory(string? dataRoot) => Path.Combine(GetDataRoot(dataRoot), "runs"); 621internal static string GetResumesDirectory(string? dataRoot) => Path.Combine(GetDataRoot(dataRoot), "resumes"); 625? Path.Combine(AspireHomeDirectory.GetDefault(), "dashboard")
src\Shared\AspireHomeDirectory.cs (1)
32? Path.Combine(userProfileDirectory, ".aspire")
src\Shared\BundleDiscovery.cs (6)
145var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 151dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 152dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 176var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 177var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 305return Path.Combine(dcpDirectory, exeName);
src\Shared\BundleVersionLease.cs (2)
104var leasesDirectory = Path.Combine(fullVersionDirectory, LeasesDirectoryName); 172var leasesDirectory = Path.Combine(versionDirectory, LeasesDirectoryName);
src\Shared\HeldFileLease.cs (2)
65var verifiedLeasePath = Path.Combine( 70: Path.Combine(
Aspire.Dashboard.Components.Tests (5)
Shared\FluentUISetupHelpers.cs (3)
161var databasePath = Path.Combine(context.Services.GetRequiredService<TemporaryWorkspace>().Path, "dashboard.db"); 199var databasePath = Path.Combine(services.GetRequiredService<TemporaryWorkspace>().Path, "dashboard.db"); 231databasePath: Path.Combine(services.GetRequiredService<TemporaryWorkspace>().Path, "dashboard.db")));
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
Aspire.Dashboard.Tests (65)
BlazorAssetsTests.cs (1)
63while (directory is not null && !File.Exists(Path.Combine(directory.FullName, "Aspire.slnx")))
Integration\OtlpHttpServiceTests.cs (1)
144var configFilePath = Path.Combine(tempDirectory.FullName, "appsettings.json");
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
82WebRootPath = Path.Combine(aspireAssemblyDirectory, "wwwroot"),
Integration\Playwright\NativeAotDashboardTests.cs (2)
64var leasesDirectory = Path.Combine(workingDirectory.FullName, ".leases"); 122var leasesDirectory = Path.Combine(workingDirectory.FullName, ".leases");
Integration\StartupTests.cs (3)
230var configFilePath = Path.Combine(tempDirectory.FullName, Path.GetRandomFileName()); 652var configFilePath = Path.Combine(tempDirectory.FullName, Path.GetRandomFileName()); 1160var browserTokenConfigFile = Path.Combine(fileConfigDirectory.FullName, DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName);
Model\DashboardClientTests.cs (3)
253var path = Path.Combine(workspace.Path, "client.pfx"); 296var path = Path.Combine(workspace.Path, "client.pfx"); 323var path = Path.Combine(workspace.Path, "missing.pfx");
Model\DashboardDataSourceTests.cs (29)
40var expectedRunsDirectory = Path.Combine(workspace.Path, "runs"); 42Assert.True(File.Exists(Path.Combine(runStore.CurrentWorkingDirectory, applicationDirectoryName))); 43Assert.False(Directory.Exists(Path.Combine(workspace.Path, applicationDirectoryName))); 55var expectedResumesDirectory = Path.Combine(workspace.Path, "resumes"); 56Assert.Equal(Path.Combine(expectedResumesDirectory, applicationDirectoryName), runStore.CurrentWorkingDirectory); 57Assert.True(File.Exists(Path.Combine(expectedResumesDirectory, $"{applicationDirectoryName}.lock"))); 142var metadataPath = Path.Combine(runStore.CurrentWorkingDirectory, "run.json"); 176using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(runStore.CurrentWorkingDirectory, "run.json"))); 199metadataPath = Path.Combine(historicalRunStore.CurrentWorkingDirectory, "run.json"); 256using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(currentRunStore.CurrentWorkingDirectory, "run.json"))); 284Assert.False(File.Exists(Path.Combine(runStore.CurrentWorkingDirectory, "run.json"))); 403File.WriteAllText(Path.Combine(abandonedDirectory, "dashboard.db"), string.Empty); 426var abandonedLockPath = Path.Combine(temporaryRoot, $"aspire-dashboard-{Guid.NewGuid():N}.lock"); 427var activeLockPath = Path.Combine(temporaryRoot, $"aspire-dashboard-{Guid.NewGuid():N}.lock"); 428var unrelatedLockPath = Path.Combine(temporaryRoot, $"unrelated-{Guid.NewGuid():N}.lock"); 507File.WriteAllText(Path.Combine(otherDirectory, "dashboard.db"), string.Empty); 648var databasePath = Path.Combine(workspace.Path, $"malformed-{Guid.NewGuid():N}.db"); 755var metadataPath = Path.Combine(incompatibleRunDirectory, "run.json"); 796var metadataPath = Path.Combine(futureRunDirectory, "run.json"); 840var metadataPath = Path.Combine(incompatibleRunDirectory, "run.json"); 951var abandonedLockPath = Path.Combine(runsDirectory, "abandoned.lock"); 952var activeLockPath = Path.Combine(runsDirectory, "active.lock"); 1038using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(pinnedRunDirectories[^1], "run.json"))); 1213using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(Path.GetDirectoryName(historicalRun.DatabasePath)!, "run.json"))); 1307var historicalDirectory = Path.Combine(workspace.Path, "historical"); 1308var historicalDatabasePath = Path.Combine(historicalDirectory, DashboardRunStore.DatabaseFileName); 1313var malformedDirectory = Path.Combine(workspace.Path, "malformed"); 1314var malformedDatabasePath = Path.Combine(malformedDirectory, DashboardRunStore.DatabaseFileName); 1373var database = new DashboardSqliteDatabase(Path.Combine(workspace.Path, "connection.db"));
Model\DashboardSqliteDatabaseTests.cs (11)
27using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 38var databasePath = Path.Combine(_workspace.Path, "dashboard.db"); 56using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 74using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 106using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 129using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 146using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 165using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 185using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 206using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "observed.db"), pooling: false); 207using var otherDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "other.db"), pooling: false);
Model\ResourceMenuBuilderTests.cs (1)
49var runStore = new TestDashboardRunStore(databasePath: Path.Combine(temporaryDirectory.FullName, "dashboard.db"));
Model\SqliteResourceRepositoryTests.cs (1)
917private static string GetDatabasePath(string workspacePath) => Path.Combine(workspacePath, "dashboard.db");
Model\TelemetryExportServiceTests.cs (2)
1269var runStore = new TestDashboardRunStore(databasePath: Path.Combine(temporaryDirectory.FullName, "dashboard.db")); 1349Path.Combine(workspacePath, "dashboard.db"),
Shared\SqliteRepositoryTestHelpers.cs (1)
42Path.Combine(temporaryDirectory.FullName, "dashboard.db"),
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
966private static string GetDatabasePath(string workspacePath) => Path.Combine(workspacePath, "dashboard.db");
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
47Path.Combine(temporaryDirectory, "dashboard.db"),
Terminal\DefaultTerminalConnectionResolverTests.cs (1)
107udsPath: Path.Combine(Path.GetTempPath(), "nonexistent-aspire-term-" + Guid.NewGuid().ToString("N") + ".sock"));
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestCertificateLoader.cs (2)
17public static string TestCertificatePath { get; } = Path.Combine(s_baseDir, "testCert.pfx"); 18public static string GetCertPath(string name) => Path.Combine(s_baseDir, name);
Aspire.Deployment.EndToEnd.Tests (166)
AcaCompactNamingDeploymentTests.cs (2)
105var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 253var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AcaCompactNamingUpgradeDeploymentTests.cs (1)
221var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AcaCustomRegistryDeploymentTests.cs (3)
104var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 105var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 106var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AcaDeploymentErrorOutputTests.cs (2)
60var deployOutputFile = Path.Combine(workspace.WorkspaceRoot.FullName, "deploy-output.txt"); 94var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AcaExistingRegistryDeploymentTests.cs (3)
132var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 133var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 134var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AcaExpressDeploymentTests.cs (3)
58var projectDirectory = Path.Combine(workspace.Path, ProjectName); 182var appHostPath = Path.Combine(projectDirectory, "apphost.cs"); 331var summary = File.ReadAllText(Path.Combine(projectDirectory, DeploymentLogFile));
AcaManagedRedisDeploymentTests.cs (5)
71var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 72var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 73var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 74var serverDir = Path.Combine(projectDir, $"{projectName}.Server"); 75var programFilePath = Path.Combine(serverDir, "Program.cs");
AcaStarterDeploymentTests.cs (4)
105var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 106var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 107var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 175var frontendUrlFile = Path.Combine(projectDir, "frontend-url.txt");
AcrPurgeTaskDeploymentTests.cs (3)
107var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 108var appHostFilePath = Path.Combine(projectDir, "apphost.mts"); 159var projectDir2 = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (3)
109var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 110var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 111var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (2)
130var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 133var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (3)
108var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 109var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 110var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksBlazorRedisDeploymentTests.cs (3)
98var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 99var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 100var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksMultipleNodePoolsDeploymentTests.cs (3)
98var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 99var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 100var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksPersistentVolumeDeploymentTests.cs (3)
75var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 76var appHostDirectory = Path.Combine(projectDirectory, $"{projectName}.AppHost"); 77var appHostPath = Path.Combine(appHostDirectory, "AppHost.cs");
AksStarterDeploymentTests.cs (3)
188var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 189var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 190var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksStarterWithRedisHelmDeploymentTests.cs (3)
179var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 180var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 181var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksVnetInfraDeploymentTests.cs (1)
93var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AksVnetWithAzureResourcesDeploymentTests.cs (4)
123var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 124var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 125var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 178var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
AksWithAzureResourcesDeploymentTests.cs (4)
121var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 122var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 123var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 164var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
AksWithHelmChartDeploymentTests.cs (3)
102var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 103var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 104var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AppServiceDotnetProjectDeploymentTests.cs (3)
37var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 54File.WriteAllText(Path.Combine(publicDir.FullName, "deployment-marker.txt"), $"static:{marker}"); 64var urlFile = Path.Combine(projectDir, "server-url.txt");
AppServicePythonDeploymentTests.cs (2)
111var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 112var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
AppServiceReactDeploymentTests.cs (3)
117var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 118var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 119var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AppServiceStoragePrivateEndpointDeploymentTests.cs (1)
99var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
AzureAppConfigDeploymentTests.cs (1)
101var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureConnectorNamespaceDeploymentTests.cs (1)
194var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureContainerRegistryDeploymentTests.cs (1)
87var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureEventHubsDeploymentTests.cs (1)
101var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureKeyVaultDeploymentTests.cs (1)
101var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureLogAnalyticsDeploymentTests.cs (1)
87var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureResourceScopeDeploymentTests.cs (1)
86var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureRoleAssignmentRunModeTests.cs (2)
93var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 112var validateScriptPath = Path.Combine(workspace.WorkspaceRoot.FullName, "validate-role-assignment.py");
AzureSandboxesDeploymentTests.cs (19)
59var defaultUrlFile = Path.Combine(workspace.WorkspaceRoot.FullName, "dotnet-default-url.txt"); 60var anonymousUrlFile = Path.Combine(workspace.WorkspaceRoot.FullName, "dotnet-anonymous-url.txt"); 61var deployOutputFile = Path.Combine(workspace.WorkspaceRoot.FullName, "dotnet-deploy-output.txt"); 62var stateMarkerFile = Path.Combine(workspace.WorkspaceRoot.FullName, "dotnet-state-marker"); 248var firstDeployOutputFile = Path.Combine(workspace.WorkspaceRoot.FullName, "first-deploy-output.txt"); 249var secondDeployOutputFile = Path.Combine(workspace.WorkspaceRoot.FullName, "second-deploy-output.txt"); 250var firstUrlFile = Path.Combine(workspace.WorkspaceRoot.FullName, "first-url.txt"); 251var secondUrlFile = Path.Combine(workspace.WorkspaceRoot.FullName, "second-url.txt"); 252var stateMarkerFile = Path.Combine(workspace.WorkspaceRoot.FullName, "state-marker"); 419var siteDir = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "site")); 420File.WriteAllText(Path.Combine(siteDir.FullName, "Dockerfile"), """ 425File.WriteAllText(Path.Combine(siteDir.FullName, "index.html"), $$""" 433File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), """ 465var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 466var appHostFilePath = Path.Combine(projectDir, "apphost.cs"); 513var serviceDir = Path.Combine(projectDir, serviceName); 514var propertiesDir = Directory.CreateDirectory(Path.Combine(serviceDir, "Properties")); 560File.WriteAllText(Path.Combine(serviceDir, "Program.cs"), program); 561File.WriteAllText(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """
AzureServiceBusDeploymentTests.cs (1)
102var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureStorageDeploymentTests.cs (4)
113var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 258var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 259var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 260var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AzureStorageRunModeTests.cs (2)
82var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 96var validateScriptPath = Path.Combine(workspace.WorkspaceRoot.FullName, "validate-get-resource.py");
FoundryDotnetProjectDeploymentTests.cs (3)
48var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 49var appHostFile = Path.Combine(projectDir, "apphost.cs"); 63FoundryEchoTestApp.Write(Path.Combine(projectDir, "EchoAgent"), marker);
FoundryHostedAgentDeploymentTests.cs (7)
756var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 757var hostedAgentDir = Path.Combine(projectDir, "DotNetHostedAgent"); 758var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 768File.WriteAllText(Path.Combine(hostedAgentDir, "DotNetHostedAgent.csproj"), """ 792File.WriteAllText(Path.Combine(hostedAgentDir, "Program.cs"), """ 864File.WriteAllText(Path.Combine(hostedAgentDir, ".dockerignore"), """ 883var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
FrontDoorDeploymentTests.cs (3)
110var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 111var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 112var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
Helpers\FoundryEchoTestApp.cs (3)
13File.WriteAllText(Path.Combine(directory, "EchoAgent.csproj"), """ 26File.WriteAllText(Path.Combine(directory, "Program.cs"), """ 39File.WriteAllText(Path.Combine(directory, "EchoAIAgent.cs"), $$"""
KubernetesGatewayTlsDeploymentTests.cs (3)
261var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 262var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 263var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
KubernetesHelmChartDeploymentTests.cs (3)
149var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 150var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 151var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
NspStorageKeyVaultDeploymentTests.cs (4)
129var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 130var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 131var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 191var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
PythonFastApiDeploymentTests.cs (2)
113var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 114var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
RadiusStarterDeploymentTests.cs (3)
337var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 338var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 339var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
tests\Shared\Hex1bTestHelpers.cs (1)
135return Path.Combine(recordingsDir, $"{testName}.cast");
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
127File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), """
TypeScriptAzureProvisioningDeploymentTests.cs (1)
140File.WriteAllText(Path.Combine(workspace.Path, "apphost.mts"), appHostSource);
TypeScriptExpressDeploymentTests.cs (2)
107var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 108var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
TypeScriptJavaScriptHostingDeploymentTests.cs (7)
123var apiDir = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "api")); 124File.WriteAllText(Path.Combine(apiDir.FullName, "package.json"), """ 134File.WriteAllText(Path.Combine(apiDir.FullName, "server.js"), """ 144var staticSiteDir = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "staticsite")); 145File.WriteAllText(Path.Combine(staticSiteDir.FullName, "package.json"), """ 155File.WriteAllText(Path.Combine(staticSiteDir.FullName, "index.html"), """ 168File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), """
TypeScriptVnetSqlServerInfraDeploymentTests.cs (1)
178var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts");
VnetKeyVaultConnectivityDeploymentTests.cs (4)
113var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 114var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 115var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 155var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
VnetKeyVaultInfraDeploymentTests.cs (1)
99var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
VnetSqlServerConnectivityDeploymentTests.cs (4)
118var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 119var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 120var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 161var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
VnetSqlServerInfraDeploymentTests.cs (1)
99var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
VnetStorageBlobConnectivityDeploymentTests.cs (4)
115var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 116var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 117var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 160var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
VnetStorageBlobInfraDeploymentTests.cs (1)
100var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
Aspire.EndToEnd.Tests (35)
IntegrationServicesFixture.cs (1)
47_testProjectPath = Path.Combine(BuildEnvironment.TestAssetsPath, "testproject");
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
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";
tests\Shared\TemplatesTesting\BuildEnvironment.cs (9)
31public static readonly string TestAssetsPath = Path.Combine(AppContext.BaseDirectory, "testassets"); 32public static readonly string TestRootPath = Path.Combine(TempDir, "templates-testroot"); 90string workloadsProjString = Path.Combine("tests", "workloads.proj"); 102.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 125.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 147sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 168NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 200DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 213LogRootPath = Path.Combine(AppContext.BaseDirectory, "logs");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (4)
29? Path.Combine(Path.GetTempPath(), $"templates-${s_tmpDirSuffix}") 30: Path.Combine(AppContext.BaseDirectory, "templates"); 31_customHiveDirectory = Path.Combine(customHiveBaseDirectory, customHiveDirName); 32_stampFilePath = Path.Combine(_customHiveDirectory, ".stamp-installed");
Aspire.Hosting (61)
ApplicationModel\AspireStore.cs (1)
66var finalFilePath = Path.Combine(_basePath, $"{name}.{Convert.ToHexString(hash.GetCurrentHash())[..12].ToLowerInvariant()}{ext}");
ApplicationModel\DockerfileBuildAnnotation.cs (1)
172var contextRootIgnore = Path.Combine(ContextPath, ".dockerignore");
ApplicationModel\DotnetProgramPublishing.cs (2)
247var normalizedArchivePath = Path.Combine(stagedArchiveDirectory.Path, "normalized.tar"); 331var tempPath = Path.Combine(
ApplicationModel\ResourceExtensions.cs (1)
1444return Path.Combine(outputPath, fileName);
Dashboard\DashboardEventHandlers.cs (2)
100originalRuntimeConfig = Path.Combine(directory, $"{baseName}.runtimeconfig.json"); 182var assemblyPath = Path.Combine(directory, $"{baseName}.dll");
Dcp\DcpHost.cs (1)
452if (File.Exists(Path.Combine(candidate, "conpty.dll")) &&
Dcp\DcpOptions.cs (2)
210options.ExtensionsPath = Path.Combine(dcpDir, "ext"); 217options.ExtensionsPath = Path.Combine(configDcpPath, "ext");
Dcp\Locations.cs (2)
22public string DcpKubeconfigPath => Path.Combine(DcpSessionDir, "kubeconfig"); 24public string DcpLogSocket => Path.Combine(DcpSessionDir, "output.sock");
Devcontainers\DevcontainerSettingsWriter.cs (5)
220yield return Path.Combine(userHomeDir, VscodeRemotePathSegment); 224var vscodeServerPath = Path.Combine(userHomeDir, VscodeServerPathSegment); 225var vscodeInsidersServerPath = Path.Combine(userHomeDir, VscodeInsidersServerPathSegment); 229yield return Path.Combine(vscodeServerPath, LocalDevcontainerSettingsPath); 234yield return Path.Combine(vscodeInsidersServerPath, LocalDevcontainerSettingsPath);
DistributedApplicationBuilder.cs (1)
449return new AspireStore(Path.Combine(aspireDir, ".aspire"), directoryService);
DistributedApplicationOptions.cs (2)
187var csprojPath = Path.Combine(fullPath, $"{name}.csproj"); 208var csprojPath = Path.Combine(projectDirectory, $"{projectName}.csproj");
ExecutableResourceBuilderExtensions.cs (2)
61workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 233workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.ApplicationBuilder.AppHostDirectory, workingDirectory));
Pipelines\Internal\FileDeploymentStateManager.cs (3)
215aspireHome = Path.Combine( 226return Path.Combine(aspireDir, $"{environment}.json"); 462var temporaryStatePath = Path.Combine(
Pipelines\PipelineOutputService.cs (4)
43: Path.Combine(Environment.CurrentDirectory, "aspire-output"); 65return Path.Combine(baseDirectory, "aspire-output"); 80return Path.Combine(baseOutputDir, resource.Name); 95return Path.Combine(baseTempDir, resource.Name);
ProjectResourceBuilderExtensions.cs (6)
319projectPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath)); 416path = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, path)); 1070var appSettingsPath = Path.Combine(projectDirectoryPath, "appsettings.json"); 1071var appSettingsEnvironmentPath = Path.Combine(projectDirectoryPath, $"appsettings.{env}.json"); 1074var appNameSettingsPath = Path.Combine(projectDirectoryPath, $"{appFileName}.settings.json"); 1075var appNameSettingsEnvironmentPath = Path.Combine(projectDirectoryPath, $"{appFileName}.settings.{env}.json");
Publishing\ManifestPublisher.cs (1)
45_options.Value.OutputPath = Path.Combine(_options.Value.OutputPath, "aspire-manifest.json");
Publishing\ManifestPublishingContext.cs (1)
386var resourceDockerfilePath = Path.Combine(manifestDirectory, $"{container.Name}.Dockerfile");
Publishing\ManifestPublishingExtensions.cs (1)
54outputPath = Path.Combine(outputPath, "aspire-manifest.json");
src\Shared\BackchannelConstants.cs (3)
259var socketPath = Path.Combine(dir, $"{appHostId}{instanceId}.{processId.ToString(CultureInfo.InvariantCulture)}"); 277var socketPath = Path.Combine(dir, socketName); 315return Path.Combine(dir, appHostId);
src\Shared\BundleDiscovery.cs (6)
145var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 151dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 152dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 176var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 177var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 305return Path.Combine(dcpDirectory, exeName);
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
85null => Path.Combine("Properties", "launchSettings.json"),
src\Shared\LaunchProfiles\LaunchSettingsReader.cs (1)
21? Path.Combine("Properties", "launchSettings.json")
src\Shared\MsBuildResponseFile.cs (1)
29var responseFilePath = Path.Combine(directory.FullName, "build-properties.rsp");
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
src\Shared\TerminalHost\TerminalHostPaths.cs (2)
112return Path.Combine(trmnlDirectory, $"{replicaId}.{sockPurpose}.sock"); 123return Path.Combine(trmnlDirectory, $"{replicaId}.{MetadataSuffix}");
Utils\DotnetSdkUtils.cs (1)
35var globalJsonPath = Path.Combine(directory.FullName, "global.json");
Utils\FileSystemService.cs (1)
161var filePath = Path.Combine(tempDir, fileName);
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
58Path.Combine("ref", $"net{s_targetFrameworkVersion}"));
Aspire.Hosting.Azure (11)
AzureBicepResource.cs (3)
169? Path.Combine(directory ?? Directory.CreateTempSubdirectory("aspire").FullName, $"{Name.ToLowerInvariant()}.module.bicep") 170: Path.Combine(TempDirectory, $"{Name.ToLowerInvariant()}.module.bicep"); 181: Path.Combine(directory, $"{TemplateResourceName.ToLowerInvariant()}");
AzureBicepResourceExtensions.cs (1)
29var path = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, bicepFile));
AzureProvisioningResource.cs (2)
88var moduleSourcePath = Path.Combine(generationPath, "main.bicep"); 96var moduleDestinationPath = Path.Combine(directory ?? generationPath, $"{Name}.module.bicep");
AzurePublishingContext.cs (4)
189var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 429var resourceDockerfilePath = Path.Combine(outputPath, $"{resource.Name}.Dockerfile"); 441var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 576var bicepPath = Path.Combine(outputDirectoryPath, $"{MainInfrastructure.BicepName}.bicep");
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
Aspire.Hosting.Azure.Functions (3)
AzureFunctionsProjectResourceExtensions.cs (1)
128projectPath = NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath));
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
85null => Path.Combine("Properties", "launchSettings.json"),
src\Shared\LaunchProfiles\LaunchSettingsReader.cs (1)
21? Path.Combine("Properties", "launchSettings.json")
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
306var kubeConfigPath = Path.Combine(kubeConfigDir.Path, "kubeconfig");
Aspire.Hosting.Azure.Kubernetes.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Azure.Kusto.Tests (2)
AddAzureKustoTests.cs (1)
242Assert.Equal(Path.Combine(builder.AppHostDirectory, "custom-data"), mountAnnotation.Source);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Azure.Tests (46)
AzureAppServiceTests.cs (3)
486File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 609var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 810Path.Combine(workspace.Path, "aspire-manifest.json"),
AzureBicepResourceTests.cs (4)
260var bicepFilePath = Path.Combine(workspace.Path, bicepFileName); 267var outputDir = Path.Combine(workspace.Path, "output"); 285var bicepFilePath = Path.Combine(workspace.Path, bicepFileName); 309var outputDir = Path.Combine(workspace.Path, "output");
AzureContainerAppEnvironmentExtensionsTests.cs (1)
565var mainBicepPath = Path.Combine(workspace.Path, "main.bicep");
AzureContainerAppExpressEndpointTests.cs (1)
237Assert.True(File.Exists(Path.Combine(workspace.Path, "main.bicep")));
AzureContainerAppsTests.cs (3)
70File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 1982await VerifyFile(Path.Combine(workspace.Path, "aspire-manifest.json")); 2776File.WriteAllText(Path.Combine(workspace.Path, "Dockerfile"), "FROM alpine");
AzureEnvironmentResourceTests.cs (15)
38var mainBicepPath = Path.Combine(workspace.FullName, "main.bicep"); 75var mainBicepPath = Path.Combine(workspace.FullName, "main.bicep"); 126var mainBicepPath = Path.Combine(workspace.FullName, "main.bicep"); 174var mainBicep = File.ReadAllText(Path.Combine(workspace.FullName, "main.bicep")); 203var mainBicep = File.ReadAllText(Path.Combine(workspace.Path, "main.bicep")); 248var mainBicep = File.ReadAllText(Path.Combine(workspace.Path, "main.bicep")); 264var outputPath = Path.Combine(workspace.Path, "exclude-main"); 273Assert.False(File.Exists(Path.Combine(outputPath, "main.bicep"))); 293var outputPath = Path.Combine(workspace.Path, "write-main"); 309var mainBicep = await File.ReadAllTextAsync(Path.Combine(outputPath, "main.bicep")); 367var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 398var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 425var bicepFilePath = Path.Combine(workspace, bicepFileName); 444var outputDir = Path.Combine(workspace, "output"); 461var mainBicepPath = Path.Combine(outputDir, "main.bicep");
AzureEventHubsExtensionsTests.cs (1)
188Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
AzureFunctionsTests.cs (7)
650var projectPath = Path.Combine(workspace.Path, "TestFunctions.csproj"); 675var projectPath = Path.Combine(workspace.Path, "MyFunctions.csproj"); 697var projectPath = Path.Combine(workspace.Path, "TestFunctions.csproj"); 727var projectPath1 = Path.Combine(workspace.Path, "Functions1.csproj"); 728var projectPath2 = Path.Combine(workspace.Path, "Functions2.csproj"); 750var projectPath = Path.Combine(workspace.Path, "Functions.csproj"); 782var projectPath = Path.Combine(workspace.Path, "Functions.csproj");
AzureManifestUtils.cs (2)
39if (pathNode?.ToString() is not { } path || !File.Exists(Path.Combine(manifestDir, path))) 44var bicepText = await File.ReadAllTextAsync(Path.Combine(manifestDir, path));
AzureResourceOptionsTests.cs (3)
25var outputPath = Path.Combine(tempDir.FullName, "aspire-manifest.json"); 45var sbBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 47var sqlBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sql-server.module.bicep"));
AzureSandboxesTests.cs (1)
189var mainBicep = File.ReadAllText(Path.Combine(workspace.Path, "main.bicep"));
AzureStorageExtensionsTests.cs (1)
63Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
FoundryExtensionsTests.cs (3)
175var daemonPidPath = Path.Combine(temporaryDirectory.FullName, "daemon.pid"); 311var commandLogPath = Path.Combine(temporaryDirectory.FullName, "commands.log"); 312var executablePath = Path.Combine(temporaryDirectory.FullName, "foundry");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Blazor (7)
BlazorGatewayExtensions.cs (5)
137var resolvedPath = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, projectPath)); 334var outputDir = Path.Combine(gatewayOutputRoot, "output"); 353var mergedRuntimePath = Path.Combine(outputDir, "merged.staticwebassets.runtime.json"); 374var solutionRoot = Path.GetFullPath(Path.Combine(appHostDirectory, "..")); 493var destEndpoints = Path.Combine(outputDir, $"{reg.Resource.Name}.endpoints.json");
BlazorWasmAppBuilder.cs (2)
106var endpoints = Path.GetFullPath(Path.Combine(projectDir, props.StaticWebAssetEndpointsBuildManifestPath)); 107var runtime = Path.GetFullPath(Path.Combine(projectDir, props.StaticWebAssetDevelopmentManifestPath));
Aspire.Hosting.Blazor.Tests (18)
BlazorHostedExtensionsTests.cs (6)
286var serverProjectPath = Path.Combine(tempDirectory.Path, "Server.csproj"); 602var serverDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.Path, "Server")); 603var clientDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.Path, "Client")); 604var serverProjectPath = Path.Combine(serverDirectory.FullName, "Server.csproj"); 605var clientProjectPath = Path.Combine(clientDirectory.FullName, "Client.csproj"); 626var serverProjectPath = Path.Combine(tempDirectory.Path, "Server.csproj");
EndpointsManifestTransformerTests.cs (10)
38var manifestPath = Path.Combine(_tempDir, "endpoints.json"); 63var manifestPath = Path.Combine(_tempDir, "endpoints.json"); 94var manifestPath = Path.Combine(_tempDir, "endpoints.json"); 118var manifestPath = Path.Combine(_tempDir, "endpoints.json"); 175var app1Path = Path.Combine(_tempDir, "app1.runtime.json"); 176var app2Path = Path.Combine(_tempDir, "app2.runtime.json"); 190var outputPath = Path.Combine(_tempDir, "merged.json"); 239var app1Path = Path.Combine(_tempDir, "app1.runtime.json"); 240var app2Path = Path.Combine(_tempDir, "app2.runtime.json"); 254var outputPath = Path.Combine(_tempDir, "merged.json");
tests\Shared\TestFileSystemService.cs (1)
36var filePath = System.IO.Path.Combine(tempDir.FullName, resolvedName);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Browsers (9)
BrowserEndpointDiscovery.cs (1)
50Path.Combine(userDataDirectory, "aspire-debug-endpoint.json");
BrowserHost.cs (1)
151var devToolsActivePortFilePath = Path.Combine(userDataDirectory.Path, "DevToolsActivePort");
BrowserHostRegistry.cs (1)
336var localStatePath = Path.Combine(userDataDirectory, "Local State");
BrowserLogsArtifacts.cs (1)
73var filePath = Path.Combine(directory, fileName);
ChromiumBrowserResolver.cs (4)
80var localStatePath = Path.Combine(userDataDirectory, "Local State"); 136if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name)) || 166var localStatePath = Path.Combine(userDataDirectory, "Local State"); 292if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name)))
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
Aspire.Hosting.Browsers.Tests (43)
BrowserHostTests.cs (2)
23var browserExecutable = Path.Combine(userDataDirectory.FullName, "browser"); 25var devToolsActivePortPath = Path.Combine(userDataDirectory.FullName, "DevToolsActivePort");
BrowserLogsBuilderExtensionsTests.cs (3)
1021var tempBrowserPath = Path.Combine(tempDirectory.FullName, OperatingSystem.IsWindows() ? "tracked-browser.exe" : "tracked-browser"); 1786Path.Combine(AppContext.BaseDirectory, "screenshot.png"), 1947public string FilePath => Path.Combine(AppContext.BaseDirectory, "test-secrets.json");
BrowserLogsRunningSessionTests.cs (1)
23var browserExecutable = Path.Combine(userDataDirectory.FullName, "browser");
BrowserLogsSessionManagerTests.cs (26)
25var executablePath = Path.Combine(userDataDirectory, "browser"); 64var browserExecutable = Path.Combine(userDataDirectory.FullName, "browser"); 104var browserExecutable = Path.Combine(userDataDirectory.FullName, "browser"); 139var browserExecutable = Path.Combine(userDataDirectory.FullName, "browser"); 173var browserExecutable = Path.Combine(userDataDirectory.FullName, "browser"); 259Path.Combine(userDataDirectory.FullName, "browser"), 289Path.Combine(userDataDirectory.FullName, "bröwser"), 319Path.Combine(userDataDirectory.FullName, "browser"), 352Path.Combine(userDataDirectory.FullName, "browser"), 382Directory.CreateDirectory(Path.Combine(userDataDirectory, "Profile 1")); 395Directory.CreateDirectory(Path.Combine(userDataDirectory, "Default")); 396Directory.CreateDirectory(Path.Combine(userDataDirectory, "Profile 1")); 398Path.Combine(userDataDirectory, "Local State"), 425Directory.CreateDirectory(Path.Combine(userDataDirectory, "Default")); 426Directory.CreateDirectory(Path.Combine(userDataDirectory, "Profile 1")); 427Directory.CreateDirectory(Path.Combine(userDataDirectory, "Profile 2")); 428Directory.CreateDirectory(Path.Combine(userDataDirectory, "System Profile")); 430Path.Combine(userDataDirectory, "Local State"), 480Directory.CreateDirectory(Path.Combine(userDataDirectory, "Default")); 481Directory.CreateDirectory(Path.Combine(userDataDirectory, "Profile 1")); 482File.WriteAllText(Path.Combine(userDataDirectory, "Local State"), "{"); 508Directory.CreateDirectory(Path.Combine(userDataDirectory, "Default")); 509Directory.CreateDirectory(Path.Combine(userDataDirectory, "Profile 1")); 511Path.Combine(userDataDirectory, "Local State"), 631Path.Combine(AppContext.BaseDirectory, "browser"), 632Path.Combine(AppContext.BaseDirectory, "user-data")),
BrowserPageSessionTests.cs (2)
350Path.Combine(AppContext.BaseDirectory, "browser"), 351Path.Combine(AppContext.BaseDirectory, "user-data"));
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
50Path.Combine(userDataDirectory, "aspire-debug-endpoint.json");
src\Aspire.Hosting.Browsers\BrowserHost.cs (1)
151var devToolsActivePortFilePath = Path.Combine(userDataDirectory.Path, "DevToolsActivePort");
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
336var localStatePath = Path.Combine(userDataDirectory, "Local State");
src\Aspire.Hosting.Browsers\BrowserLogsArtifacts.cs (1)
73var filePath = Path.Combine(directory, fileName);
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (4)
80var localStatePath = Path.Combine(userDataDirectory, "Local State"); 136if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name)) || 166var localStatePath = Path.Combine(userDataDirectory, "Local State"); 292if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name)))
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
Aspire.Hosting.CodeGeneration.Go (2)
GoLanguageSupport.cs (2)
112var appHostPath = Path.Combine(directoryPath, "apphost.go"); 118var goModPath = Path.Combine(directoryPath, "go.mod");
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.Java (3)
JavaLanguageSupport.cs (3)
126if (File.Exists(Path.Combine(directoryPath, relativePath))) 277Path.Combine(classOutputDirectory, $"{AppHostClassName}.class") 282stampFileProperty.SetValue(upToDateCheck, Path.Combine(classOutputDirectory, CompileStampFileName));
Aspire.Hosting.CodeGeneration.Java.Tests (11)
AtsJavaCodeGeneratorTests.cs (3)
3767_classes = Directory.CreateDirectory(Path.Combine(_root.FullName, "classes")); 3772var path = Path.Combine(_root.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar)); 3785var sourcesFile = Path.Combine(_root.FullName, "sources.txt");
JavaLanguageSupportDetectionTests.cs (5)
26var appHostPath = Path.Combine(workspace.Path, expected); 46File.WriteAllText(Path.Combine(workspace.Path, "AppHost.java"), "void main(String[] args) { }"); 48File.WriteAllText(Path.Combine(nested.FullName, "AppHost.java"), "void main(String[] args) { }"); 57File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 75var path = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar));
JavaLanguageSupportTests.cs (2)
112Assert.Equal([Path.Combine(".java-build", "AppHost.class")], check.Outputs!); 114Assert.Equal(Path.Combine(".java-build", ".aspire-compile-stamp"), check.StampFile);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.Python (3)
PythonLanguageSupport.cs (3)
142var appHostPath = Path.Combine(directoryPath, "apphost.py"); 148var hasPylock = File.Exists(Path.Combine(directoryPath, "pylock.apphost.toml")); 149var hasRequirements = File.Exists(Path.Combine(directoryPath, "apphost_requirements.txt"));
Aspire.Hosting.CodeGeneration.Python.Tests (3)
AtsPythonCodeGeneratorTests.cs (2)
375var modulePath = Path.Combine(tempDirectory.FullName, "aspire_app.py"); 376var testPath = Path.Combine(tempDirectory.FullName, "test_callback.py");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.Rust (2)
RustLanguageSupport.cs (2)
116var appHostPath = Path.Combine(directoryPath, AppHostFileName); 122var cargoPath = Path.Combine(directoryPath, "Cargo.toml");
Aspire.Hosting.CodeGeneration.Rust.Tests (8)
RustLanguageSupportTests.cs (5)
42File.WriteAllText(Path.Combine(workspace.Path, "apphost.rs"), "// marker"); 43File.WriteAllText(Path.Combine(workspace.Path, "Cargo.toml"), "[package]"); 57File.WriteAllText(Path.Combine(workspace.Path, "apphost.ts"), "// typescript"); 58File.WriteAllText(Path.Combine(workspace.Path, "Cargo.toml"), "[package]"); 70File.WriteAllText(Path.Combine(workspace.Path, "apphost.rs"), "// marker");
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.TypeScript (5)
TypeScriptLanguageSupport.cs (5)
180File.Exists(Path.Combine(parent.FullName, PackageJsonFileName)); 185var packageJsonPath = Path.Combine(request.TargetPath, PackageJsonFileName); 226var appHostFileName = File.Exists(Path.Combine(directoryPath, AppHostFileName)) 229var appHostPath = Path.Combine(directoryPath, appHostFileName); 236var packageJsonPath = Path.Combine(directoryPath, PackageJsonFileName);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
TypeScriptLanguageSupportTests.cs (5)
69File.WriteAllText(Path.Combine(workspace.Path, "package.json"), """ 134File.WriteAllText(Path.Combine(workspace.Path, "package.json"), """{ "name": "existing-app" }"""); 135var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "aspire-apphost")); 156File.WriteAllText(Path.Combine(workspace.Path, "package.json"), """ 193var existingTsConfigPath = Path.Combine(workspace.Path, "tsconfig.json");
Aspire.Hosting.Containers.Tests (11)
ContainerResourceTests.cs (1)
240Assert.Equal(Path.Combine(basePath, "source"), mountAnnotation.Source);
DockerSocketBindMountTests.cs (2)
24var dockerFilePath = Path.Combine(contextDir.FullName, "Dockerfile"); 48var infoFile = Path.Combine(outDir.FullName, "docker-info.txt");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
WithDockerfileTests.cs (7)
265var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 315var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 364var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 412var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 870var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 915var manifestPath = Path.Combine(tempDir.FullName, "manifest.json"); 930var dockerfilePath = Path.Combine(tempDir.FullName, "testcontainer.Dockerfile");
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Docker (9)
DockerComposeEnvironmentResource.cs (4)
432var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"); 476var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"); 600var envFilePath = Path.Combine(outputPath, $".env.{environmentName}"); 609ComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"),
DockerComposePublishingContext.cs (4)
97var resourceDockerfilePath = Path.Combine(OutputPath, $"{serviceResource.TargetResource.Name}.Dockerfile"); 147var outputFile = Path.Combine(OutputPath, "docker-compose.yaml"); 153var envFilePath = Path.Combine(OutputPath, ".env"); 197Directory.CreateDirectory(Path.Combine(OutputPath, composeService.Name));
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
Aspire.Hosting.Docker.Tests (64)
DockerComposePublisherTests.cs (49)
101var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 102var envPath = Path.Combine(workspace.Path, ".env"); 124var compose = File.ReadAllText(Path.Combine(workspace.Path, "docker-compose.yaml")); 162var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 163var envPath = Path.Combine(workspace.Path, ".env"); 185var compose = File.ReadAllText(Path.Combine(workspace.Path, "docker-compose.yaml")); 186var environment = File.ReadAllText(Path.Combine(workspace.Path, ".env")); 210var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 239var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 290var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 292var envPath = Path.Combine(workspace.Path, ".env"); 303var envFilePath = Path.Combine(workspace.Path, ".env"); 334var envFilePath = Path.Combine(workspace.Path, ".env"); 389var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 415var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 447var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 478var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 506var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 540var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 564var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 592var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 622var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 651var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 683var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 708var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 732var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 759var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 788var envFilePath = Path.Combine(workspace.Path, ".env.Staging"); 822var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 844var envFilePath = Path.Combine(workspace.Path, ".env.Production"); 878var envFilePath = Path.Combine(workspace.Path, ".env.Staging"); 911var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "docker-compose.yaml")); 912var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 944var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 970var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 995var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 996var envPath = Path.Combine(workspace.Path, ".env"); 1022var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1053var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1054var envPath = Path.Combine(workspace.Path, ".env"); 1081var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1117var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1118var envPath = Path.Combine(workspace.Path, ".env"); 1165var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1166var envPath = Path.Combine(workspace.Path, ".env"); 1199var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1200var envPath = Path.Combine(workspace.Path, ".env"); 1243var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1277var composePath = Path.Combine(workspace.Path, "docker-compose.yaml");
DockerComposeTests.cs (8)
63var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 85var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 148var outputPath = Path.Combine(workspace.Path, "output"); 187var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 221var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 260var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 347var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 966["ComposeFilePath"] = Path.Combine(workspace.Path, "docker-compose.yaml")
EnvFileTests.cs (6)
12var envFilePath = Path.Combine(workspace.Path, ".env"); 38var envFilePath = Path.Combine(workspace.Path, ".env"); 64var envFilePath = Path.Combine(workspace.Path, ".env"); 104var envFilePath = Path.Combine(workspace.Path, ".env"); 129var envFilePath = Path.Combine(workspace.Path, ".env"); 146var envFilePath = Path.Combine(workspace.Path, ".env");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Dotnet (19)
DotnetProjectBuildArtifactManager.cs (5)
55var coordinationLockPath = Path.Combine(BuildDirectory, ".coordination.lock"); 164Path.Combine(BuildDirectory, $"{BuildProjectFilePrefix}{hash}{BuildProjectFileExtension}"); 167Path.Combine(GetStateDirectory(), $"{hash}{StateFileExtension}"); 180var temporaryPath = Path.Combine(BuildDirectory, $".{Path.GetRandomFileName()}.tmp"); 427var temporaryPath = Path.Combine(stateDirectory, $".{Path.GetRandomFileName()}.tmp");
DotnetProjectBuildCoordinator.cs (1)
842var globalJsonPath = Path.Combine(directory.FullName, "global.json");
DotnetProjectHostingExtensions.cs (1)
301path = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, path));
DotnetProjectRunPropertiesResolver.cs (1)
39var resultOutputPath = Path.Combine(resultDirectory.FullName, "run-properties.json");
src\Shared\HeldFileLease.cs (2)
65var verifiedLeasePath = Path.Combine( 70: Path.Combine(
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
85null => Path.Combine("Properties", "launchSettings.json"),
src\Shared\LaunchProfiles\LaunchSettingsReader.cs (1)
21? Path.Combine("Properties", "launchSettings.json")
src\Shared\MsBuildResponseFile.cs (1)
29var responseFilePath = Path.Combine(directory.FullName, "build-properties.rsp");
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
Aspire.Hosting.Dotnet.Tests (142)
DotnetProjectBuildArtifactManagerTests.cs (5)
56Directory.Delete(Path.Combine(buildDirectory, ".artifacts"), recursive: true); 174Path.Combine(buildDirectory, ".old.tmp"), 175Path.Combine(stateDirectory, ".old.tmp"), 179Path.Combine(buildDirectory, ".recent.tmp"), 180Path.Combine(stateDirectory, ".recent.tmp"),
DotnetProjectBuildCoordinatorTests.cs (90)
132var globalJsonPath = Path.Combine(workspace.Path, "global.json"); 204var firstDotnetPath = Path.Combine(workspace.Path, "first-sdk"); 205var secondDotnetPath = Path.Combine(workspace.Path, "second-sdk"); 409var filePath = Path.Combine(workspace.Path, "worker.cs"); 480var fileDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "worker")); 481var filePath = Path.Combine(fileDirectory.FullName, "worker.cs"); 570var firstSentinel = Path.Combine(workspace.Path, "first-ran.txt"); 571var secondSentinel = Path.Combine(workspace.Path, "second-ran.txt"); 636var appPath = Path.Combine(workspace.Path, "worker.cs"); 637var sentinelPath = Path.Combine(workspace.Path, "worker-ran.txt"); 753var customTargetsPath = Path.Combine(workspace.Path, "CustomNuGet.targets"); 855Assert.True(File.Exists(Path.Combine(Path.GetDirectoryName(projectPath)!, "restore-ran.txt"))); 864var aspireStoreRoot = Path.Combine(workspace.Path, "custom-obj"); 936var feed = Directory.CreateDirectory(Path.Combine(projectRoot, "feed")).FullName; 942File.WriteAllText(Path.Combine(projectRoot, "nuget.config"), $$""" 950File.WriteAllText(Path.Combine(projectRoot, "Directory.Build.props"), """ 962var versionsPath = Path.Combine(projectRoot, "Directory.Packages.props"); 999var escapedDirectory = Path.Combine(projectRoot, "First's Project;100% (test)"); 1001firstProject = Path.Combine(escapedDirectory, Path.GetFileName(firstProject)); 1019File.ReadAllText(Path.Combine(Path.GetDirectoryName(project)!, "package-version.txt"))); 1020Assert.True(File.Exists(Path.Combine(Path.GetDirectoryName(project)!, "packages.lock.json"))); 1038File.ReadAllText(Path.Combine(Path.GetDirectoryName(project)!, "package-version.txt"))); 1046File.ReadAllText(Path.Combine(Path.GetDirectoryName(project)!, "package-version.txt"))); 1091var aspireStoreRoot = Path.Combine(workspace.Path, "custom-obj"); 1558var appPath = Path.Combine(workspace.Path, "app.cs"); 2018var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "runtime")).FullName; 2019var sdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "sdk-runtime")).FullName; 2067var firstSdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "sdk-runtime-1")).FullName; 2068var secondSdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "sdk-runtime-2")).FullName; 2110var sourceRoot = Directory.CreateDirectory(Path.Combine(workspace.Path, "source")).FullName; 2111File.WriteAllText(Path.Combine(sourceRoot, "global.json"), "{}"); 2114var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "runtime")).FullName; 2136Directory.CreateDirectory(Path.Combine(workspace.Path, "source")).FullName, 2140var foreignRoot = Directory.CreateDirectory(Path.Combine(workspace.Path, "foreign")).FullName; 2141File.WriteAllText(Path.Combine(foreignRoot, "global.json"), "{}"); 2142var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(foreignRoot, "runtime")).FullName; 2221var filePath = Path.Combine(workspace.Path, "worker.cs"); 2272File.WriteAllText(Path.Combine(Path.GetDirectoryName(firstPath)!, "global.json"), """ 2296Assert.True(File.Exists(Path.Combine(firstBuild.WorkingDirectory, "global.json"))); 2317var physicalRoot = Directory.CreateDirectory(Path.Combine(workspace.Path, "Physical")); 2319File.WriteAllText(Path.Combine(physicalRoot.FullName, "global.json"), """ 2327var linkPath = Path.Combine(workspace.Path, "Alias"); 2351Assert.True(File.Exists(Path.Combine(linkedBuild.WorkingDirectory, "global.json"))); 2571File.WriteAllText(Path.Combine(Path.GetDirectoryName(firstPath)!, "global.json"), """ 2629var linkDirectory = Path.Combine(workspace.Path, "ServiceAlias"); 2640var aliasPath = Path.Combine(linkDirectory, Path.GetFileName(projectPath)); 2713var escapedDirectory = Path.Combine(workspace.Path, "Api's Project 100% (test)"); 2715apiProject = Path.Combine(escapedDirectory, Path.GetFileName(apiProject)); 2716var apiSentinel = Path.Combine(workspace.Path, "api-ran.txt"); 2717var workerSentinel = Path.Combine(workspace.Path, "worker-ran.txt"); 2757var restoreCountPath = Path.Combine(Path.GetDirectoryName(project)!, "restore-count.txt"); 2773File.WriteAllText(Path.Combine(Path.GetDirectoryName(projectPath)!, "Program.cs"), """ 2780var sentinels = Directory.CreateDirectory(Path.Combine(workspace.Path, "instances")).FullName; 2868var firstSentinel = Path.Combine(workspace.Path, "first-ran.txt"); 2869var secondSentinel = Path.Combine(workspace.Path, "second-ran.txt"); 2913var secondBuildMarker = Path.Combine(workspace.Path, "second-built.txt"); 2919var secondSentinel = Path.Combine(workspace.Path, "second-ran.txt"); 2975File.WriteAllText(Path.Combine(Path.GetDirectoryName(validProject)!, "Program.cs"), """ 2978var sentinelPath = Path.Combine(workspace.Path, "valid-ran.txt"); 3078var sentinelPath = Path.Combine(workspace.Path, "environment-build-ran.txt"); 3079File.WriteAllText(Path.Combine(Path.GetDirectoryName(projectPath)!, "Program.cs"), """ 3130var sentinelPath = Path.Combine(Path.GetDirectoryName(projectPath)!, "build-sentinel.txt"); 3186var filePath = Path.Combine(workspace.Path, "worker.cs"); 3419var filePath = Path.Combine(workspace.Path, "worker.cs"); 3453var filePath = Path.Combine(workspace.Path, "worker.cs"); 3519Path.Combine(workspace.Path, "missing-dotnet"); 3555var fileApp = Path.Combine(workspace.Path, "worker.cs"); 3556var sentinel = Path.Combine(workspace.Path, "worker-ran.txt"); 3617var releaseBuild = Path.Combine(workspace.Path, "release-build"); 3619var fileApp = Path.Combine(workspace.Path, "worker.cs"); 3620var sentinel = Path.Combine(workspace.Path, "worker-ran.txt"); 3730using var archive = ZipFile.Open(Path.Combine(feed, $"Aspire.RestoreTest.{version}.nupkg"), ZipArchiveMode.Create); 3758var directory = Directory.CreateDirectory(Path.Combine(root, directoryName)); 3759var path = Path.Combine(directory.FullName, projectFileName); 3767Path.Combine(Path.GetDirectoryName(projectPath)!, "Properties")); 3768File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), $$""" 3803File.WriteAllText(Path.Combine(Path.GetDirectoryName(projectPath)!, "SharedValue.cs"), """ 3816var directory = Directory.CreateDirectory(Path.Combine(root, name)); 3818var projectPath = Path.Combine(directory.FullName, $"{name}.csproj"); 3837File.WriteAllText(Path.Combine(directory.FullName, "Program.cs"), """ 3858File.WriteAllText(Path.Combine(Path.GetDirectoryName(projectPath)!, "Program.cs"), """ 3877File.WriteAllText(Path.Combine(Path.GetDirectoryName(projectPath)!, "BuildGate.cs"), $$""" 3908File.WriteAllText(Path.Combine(projectDirectory, "Program.cs"), "System.Console.WriteLine(\"Started\");"); 3925File.WriteAllText(Path.Combine(Path.GetDirectoryName(projectPath)!, "Program.cs"), "this does not compile"); 3931var directory = Directory.CreateDirectory(Path.Combine(root, name)); 3932var projectPath = Path.Combine(directory.FullName, $"{name}.csproj"); 3939var directory = Directory.CreateDirectory(Path.Combine(root, name)); 3940var appPath = Path.Combine(directory.FullName, $"{name}.cs"); 3952Path.Combine(Path.GetDirectoryName(projectPath)!, "build-count.txt"); 4077var responseFilePath = Path.Combine(directory, "build-properties.rsp");
DotnetProjectOptionsTests.cs (5)
97var projectDirectory = Directory.CreateDirectory(Path.Combine(workspacePath, "Service")); 98var projectPath = Path.Combine(projectDirectory.FullName, "Service.csproj"); 100var propertiesDirectory = Directory.CreateDirectory(Path.Combine(projectDirectory.FullName, "Properties")); 101await File.WriteAllTextAsync(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 117await File.WriteAllTextAsync(Path.Combine(projectDirectory.FullName, "appsettings.json"), """
DotnetProjectResourceTests.cs (38)
55var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 260await File.WriteAllTextAsync(Path.Combine(workspace.Path, "Dockerfile"), "FROM scratch"); 299var appPath = Path.Combine(workspace.Path, "app.cs"); 306var archivePath = Path.Combine(workspace.Path, "app.tar.gz"); 334var sentinelDockerfilePath = Path.Combine(workspace.Path, "Dockerfile.sentinel"); 335await File.WriteAllTextAsync(Path.Combine(workspace.Path, "sentinel.txt"), marker, cancellation.Token); 382var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "project")); 383var projectPath = Path.Combine(projectDirectory.FullName, "Project.csproj"); 396Path.Combine(projectDirectory.FullName, "Program.cs"), 398var archivePath = Path.Combine(workspace.Path, "project.tar.gz"); 425var projectPath = Path.Combine(workspace.Path, "Project.csproj"); 432context.OutputPath = Path.Combine(workspace.Path, "project.tar"); 451var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "project")); 453var runtimeDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "runtime")); 454File.WriteAllText(Path.Combine(projectDirectory.FullName, "Dockerfile"), "FROM scratch"); 477var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 478var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 495var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "AmbiguousService")); 496File.WriteAllText(Path.Combine(projectDir.FullName, "First.csproj"), "<Project />"); 497File.WriteAllText(Path.Combine(projectDir.FullName, "Second.csproj"), "<Project />"); 562var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 563var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 566var propertiesDir = Directory.CreateDirectory(Path.Combine(projectDir.FullName, "Properties")); 567await File.WriteAllTextAsync(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """ 608var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 665var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 666var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 669var propertiesDir = Directory.CreateDirectory(Path.Combine(projectDir.FullName, "Properties")); 670await File.WriteAllTextAsync(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """ 735var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 736var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 739var propertiesDir = Directory.CreateDirectory(Path.Combine(projectDir.FullName, "Properties")); 740await File.WriteAllTextAsync(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """ 834var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 869var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 1057var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 1141var projectDirectory = Directory.CreateDirectory(Path.Combine(workspacePath, "MyService")); 1148var path = Path.Combine(directory, fileName);
DotnetProjectRunPropertiesResolverTests.cs (3)
20var projectPath = Path.Combine(workspace.Path, "Broken.csproj"); 55var projectPath = Path.Combine(workspace.Path, "Warning.csproj"); 77Assert.Equal(new("dotnet", "exec app.dll", Path.Combine(workspace.Path, "bin")), result);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.EntityFrameworkCore (6)
EFMigrationResourceBuilderExtensions.cs (3)
244projectPath = Path.GetFullPath(Path.Combine(builder.ApplicationBuilder.AppHostDirectory, projectPath)); 334var buildContext = Path.Combine(ResolvePipelineOutputDirectory(builder), "efmigrations"); 379return Path.Combine(builder.ApplicationBuilder.AppHostDirectory, "aspire-output");
EFResourceBuilderExtensions.cs (3)
345? Path.Combine(outputDir, migrationResource.Name + ".sql") 389? Path.Combine(outputDir, GetBundleFileName(migrationResource)) 461var outputDir = Path.Combine(pipelineOutputService.GetOutputDirectory(), "efmigrations");
Aspire.Hosting.EntityFrameworkCore.Tests (3)
EFMigrationConfigurationTests.cs (2)
259Assert.Equal(Path.GetFullPath(Path.Combine(builder.AppHostDirectory, "Target.csproj")), migrations.Resource.MigrationsProjectPath); 261Assert.Equal(Path.GetFullPath(Path.Combine(builder.AppHostDirectory, "Target.csproj")), migrations.Resource.MigrationsProjectPath);
EFMigrationPipelineTests.cs (1)
473Assert.Equal(Path.Combine(Path.GetFullPath("./"), "efmigrations"), dockerfileAnnotation.ContextPath);
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
241Assert.Equal(Path.Combine(builder.AppHostDirectory, "mygarnetdata"), volumeAnnotation.Source);
Aspire.Hosting.Go (4)
GoHostingExtensions.cs (3)
167if (File.Exists(Path.Combine(appDirectory, "Dockerfile"))) 186var hasGoMod = File.Exists(Path.Combine(appDirectory, "go.mod")); 187var hasGoSum = File.Exists(Path.Combine(appDirectory, "go.sum"));
GoVersionDetector.cs (1)
14var goModPath = Path.Combine(appDirectory, "go.mod");
Aspire.Hosting.Go.Tests (33)
AddGoAppTests.cs (27)
88File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 95var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 779File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.23\n"); 780File.WriteAllText(Path.Combine(sourceDir.FullName, "main.go"), "package main\nfunc main() {}"); 787var dockerfilePath = Path.Combine(outputDir.FullName, "api.Dockerfile"); 807var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 819File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.22\n"); 829var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 841File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 851var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 864File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch"); 880File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.22\n"); 888var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 902File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 910var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 922File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 930var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 978File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 995var dockerfile = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1012File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 1035var dockerfile = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1080File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 1087var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1154File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 1161var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile")); 1173File.WriteAllText(Path.Combine(sourceDir.FullName, "go.mod"), "module example.com/api\n\ngo 1.24\n"); 1181var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"));
GoVersionDetectorTests.cs (5)
22File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), "module example.com/m\n\ngo 1.23\n"); 33File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), "module example.com/m\n\ngo 1.23.4\n"); 44File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), 57File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), 69File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), "module example.com/m\n");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Java (31)
JavaBuildToolResolver.cs (8)
31var hasMaven = File.Exists(Path.Combine(appDirectory, "pom.xml")); 32var hasGradle = s_gradleBuildFileNames.Any(fileName => File.Exists(Path.Combine(appDirectory, fileName))); 78FindWrapperInBuildRoot(appDirectory, wrapperName, tool) ?? Path.Combine(appDirectory, wrapperName)); 86var candidate = Path.Combine(directory.FullName, wrapperName); 99var gitPath = Path.Combine(directory.FullName, ".git"); 116JavaBuildTool.Gradle => File.Exists(Path.Combine(directory, "settings.gradle")) 117|| File.Exists(Path.Combine(directory, "settings.gradle.kts")), 120JavaBuildTool.Maven => File.Exists(Path.Combine(directory, "pom.xml")),
JavaDockerfileGenerator.cs (3)
123&& !File.Exists(Path.Combine(appDirectory, ".dockerignore"))) 784var path = Path.Combine(appDirectory, fileName); 1079if (!File.Exists(Path.Combine(appDirectory, posixSibling.Replace('/', Path.DirectorySeparatorChar))))
JavaHostingExtensions.cs (8)
94Path.Combine(builder.AppHostDirectory, appDirectory)); 117if (File.Exists(Path.Combine(appDirectory, "Dockerfile"))) 956Path.Combine(builder.Resource.WorkingDirectory, wrapperPath)); 1244resolved = Path.GetFullPath(Path.Combine(builder.Resource.WorkingDirectory, authored)); 1861var jarPath = Path.GetFullPath(Path.Combine(resource.WorkingDirectory, NormalizeJarPathForJava(jar.JarPath))); 1895JavaBuildTool.Maven => Path.Combine(resource.WorkingDirectory, "target"), 2015JavaBuildTool.Maven => TryReadMavenArtifactId(Path.Combine(resource.WorkingDirectory, "pom.xml")), 2082var settingsPath = Path.Combine(workingDirectory, fileName);
JavaVersionDetector.cs (6)
45DetectFromGradle(Path.Combine(appDirectory, "build.gradle")), 46DetectFromGradle(Path.Combine(appDirectory, "build.gradle.kts")), 47DetectFromPom(Path.Combine(appDirectory, "pom.xml"), buildArgs: null), 52Path.Combine(appDirectory, "pom.xml"), 54DetectFromGradle(Path.Combine(appDirectory, "build.gradle")), 55DetectFromGradle(Path.Combine(appDirectory, "build.gradle.kts")),
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
Aspire.Hosting.Java.Tests (129)
AddJavaAppPublishTests.cs (77)
54var destination = Path.Combine(workspace.Path, "app.jar"); 234File.WriteAllText(Path.Combine(sourceDir.FullName, "build.gradle"), ""); 406File.WriteAllText(Path.Combine(source, ".dockerignore"), "secrets/\n"); 421File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 427Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 442File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 473File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 505var manifest = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "aspire-manifest.json"), TestContext.Current.CancellationToken); 522File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), $""" 543File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 571File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 594File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 618File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 689File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "plugins { id 'java' }"); 699File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 724File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 908File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), script); 1020File.WriteAllText(Path.Combine(appDirectory.Path, fileName), script); 1030File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), """ 1043File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 1046File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "sourceCompatibility = '21'"); 1062File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 1065File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "sourceCompatibility = '21'"); 1079File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 1082File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "plugins { id 'java' }"); 1094File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 1117File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 1139File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 1160File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), "<project>"); 1192File.WriteAllText(Path.Combine(appDirectory.Path, fileName), ""); 1209File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), "<project />"); 1210File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), ""); 1256File.WriteAllText(Path.Combine(sourceDir.FullName, "pom.xml"), "<project/>"); 1381var wrapperDirectory = Path.Combine(source, "scripts"); 1405File.Delete(Path.Combine(sourceDir.FullName, "mvnw")); 1431Directory.Delete(Path.Combine(sourceDir.FullName, supportDirectory), recursive: true); 1453Directory.CreateDirectory(Path.Combine(source, "scripts")); 1454WriteWrapper(Path.Combine(source, "scripts"), "custom-mvnw"); 1458.WithWrapperPath(Path.Combine("scripts", "custom-mvnw"))); 1470Directory.CreateDirectory(Path.Combine(source, "target")); 1473jarPath: Path.Combine("target", "worker.jar")); 1490Directory.CreateDirectory(Path.Combine(source, "target")); 1493jarPath: Path.Combine("target", "worker.jar"), 1506Directory.CreateDirectory(Path.Combine(source, "target")); 1509jarPath: Path.Combine("target", "worker.jar")); 1523jarPath: Path.Combine("target", "api.jar")); 1541Path.Combine(sourceDir.FullName, "App.java"), 1562builder.AddJavaApp("api", sourceDir.FullName, Path.Combine("target", "app.jar"), ["--greeting", "hello"]); 1571await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "aspire-manifest.json"), TestContext.Current.CancellationToken)); 1581Path.Combine(outputDir.FullName, "api.Dockerfile"), 1582Path.Combine(sourceDir.FullName, "Dockerfile")); 1584Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"), 1585Path.Combine(sourceDir.FullName, ".dockerignore")); 1621Path.Combine(sourceDir.FullName, "pom.xml"), 1654Path.Combine(sourcePath.FullName, "App.java"), 1688Path.Combine(outputDir.FullName, "api.Dockerfile"), 1689Path.Combine(sourceDir.FullName, "Dockerfile")); 1691Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"), 1692Path.Combine(sourceDir.FullName, ".dockerignore")); 1824var stagingDirectory = Path.Combine(workspace.Path, "staged"); 1865Assert.Equal("runner", File.ReadAllText(Path.Combine(stagingDirectory, "quarkus-run.jar"))); 1870Assert.False(Directory.Exists(Path.Combine(stagingDirectory, "lib"))); 2088Path.Combine(source, "pom.xml"), 2089File.ReadAllText(Path.Combine(source, "pom.xml")).Replace( 2134var nested = Directory.CreateDirectory(Path.Combine(sourceDir.FullName, "build tools")); 2140.WithWrapperPath(Path.Combine("build tools", "mvnw")); 2172File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile")), 2198return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 2421return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 2445var ignorePath = Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"); 2456File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), $""" 2473File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), """ 2499File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), $""" 2516File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), $""" 2544File.WriteAllText(Path.Combine(sourceDirectory, "build.gradle"), contents); 2550File.WriteAllText(Path.Combine(sourceDirectory, wrapperName), "#!/bin/sh\nexit 0\n"); 2568Path.Combine(supportDirectory, gradle ? "gradle-wrapper.properties" : "maven-wrapper.properties"),
AddJavaAppTests.cs (34)
46Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultMavenWrapper), tempDir.Path, "spring-boot:run"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource)); 59Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultGradleWrapper), tempDir.Path, "bootRun", "--no-daemon"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource)); 320var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultGradleWrapper)); 338var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultMavenWrapper)); 351File.WriteAllText(Path.Combine(repo.Path, "settings.gradle"), "include 'services:api'"); 353File.WriteAllText(Path.Combine(module, "build.gradle"), ""); 359var expectedWrapper = Path.GetFullPath(Path.Combine(repo.Path, JavaHostingExtensions.s_defaultGradleWrapper)); 371File.WriteAllText(Path.Combine(repo.Path, "pom.xml"), "<project />"); 373File.WriteAllText(Path.Combine(module, "pom.xml"), "<project />"); 379var expectedWrapper = Path.GetFullPath(Path.Combine(repo.Path, JavaHostingExtensions.s_defaultMavenWrapper)); 392File.WriteAllText(Path.Combine(module, JavaHostingExtensions.s_defaultGradleWrapper), "#!/bin/sh\n"); 398var expectedWrapper = Path.GetFullPath(Path.Combine(module, JavaHostingExtensions.s_defaultGradleWrapper)); 553var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.Path, "scripts/custom-mvnw")); 571var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.Path, "scripts/custom-gradlew")); 788.WithWrapperPath(Path.Combine("tools", "mvnw")); 815var wrapper = Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultMavenWrapper); 1314var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.Path, "tools/mvn")); 1376var javaExecutable = Path.Combine(tempDir.Path, fileName); 1392var command = Path.Combine(tempDir.Path, fileName); 1404var command = Path.Combine("bin", OperatingSystem.IsWindows() ? "java.exe" : "java"); 1418var javaExecutable = Path.Combine(tempDir.Path, OperatingSystem.IsWindows() ? "java.exe" : "java"); 1445var javaExecutable = Path.Combine(tempDir.Path, OperatingSystem.IsWindows() ? "java.exe" : "java"); 1470var wrapperCommand = Path.Combine(tempDir.Path, OperatingSystem.IsWindows() ? "cmd.exe" : "sh"); 1526var jarPath = Path.Combine(directory, fileName); 1659Assert.Equal(Path.Combine(tempDir.Path, "no-main.jar"), Assert.Single(noMainClassConfiguration.ClassPaths!)); 1663Assert.Equal(Path.Combine(tempDir.Path, "does-not-exist.jar"), Assert.Single(missingConfiguration.ClassPaths!)); 1679Path.Combine(outputDirectory, "catalog-0.0.1-SNAPSHOT.jar"), 1689Path.Combine(tempDir.Path, tool == "maven" ? "pom.xml" : "settings.gradle"), 1797File.WriteAllText(Path.Combine(tempDir.Path, "pom.xml"), """ 1827File.WriteAllText(Path.Combine(tempDir.Path, "settings.gradle"), "rootProject.name = 'orders'\n"); 1861Path.Combine(tempDir.Path, "settings.gradle"), 1882File.WriteAllText(Path.Combine(tempDir.Path, "pom.xml"), """ 1894Path.Combine("target", "worker-0.0.1-SNAPSHOT.jar"), 1898.AddJavaApp("worker", tempDir.Path, Path.Combine("target", "worker-0.0.1-SNAPSHOT.jar"))
AddQuarkusAppTests.cs (2)
101Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultMavenWrapper), tempDir.Path, "quarkus:dev"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource)); 118Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultGradleWrapper), tempDir.Path, "quarkusDev"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
AddSpringBootAppTests.cs (4)
26Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultMavenWrapper), tempDir.Path, "spring-boot:run"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource)); 43Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultGradleWrapper), tempDir.Path, "bootRun"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource)); 119Path.Combine(tempDir.Path, JavaHostingExtensions.s_defaultMavenWrapper), 321.WithOtelAgent(Path.Combine(Path.GetTempPath(), "opentelemetry-javaagent.jar"));
JavaBuildToolResolverTests.cs (9)
26Assert.Equal(Path.GetFullPath(Path.Combine(tempDir.Path, expectedWrapperName)), wrapperPath); 54Assert.Equal(Path.GetFullPath(Path.Combine(root.RootPath, "mvnw")), wrapperPath); 78Assert.Equal(Path.GetFullPath(Path.Combine(module, "mvnw")), wrapperPath); 105Assert.Equal(Path.GetFullPath(Path.Combine(root.RootPath, "mvnw")), wrapperPath); 120Path.Combine(root.RootPath, "mvnw"), 129Assert.Equal(Path.GetFullPath(Path.Combine(module, "mvnw")), wrapperPath); 143File.WriteAllText(Path.Combine(_root.FullName, "pom.xml"), "<project/>"); 144File.WriteAllText(Path.Combine(_root.FullName, "mvnw"), "#!/bin/sh\n"); 152File.WriteAllText(Path.Combine(module.FullName, "pom.xml"), "<project/>");
TempJavaAppDirectory.cs (2)
27: Directory.CreateDirectory(System.IO.Path.Combine(_root.FullName, directoryName)); 43var fullPath = System.IO.Path.Combine(Path, fileName);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.JavaScript (36)
DenoHostingExtensions.cs (2)
1216else if (File.Exists(Path.Combine(workingDirectory, "deno.lock"))) 1405return File.Exists(Path.Combine(workingDirectory, lockFile));
JavaScriptHostingExtensions.cs (28)
186if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 274if (File.Exists(Path.Combine(appDirectory, "package.json"))) 514if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 679if (File.Exists(Path.Combine(appDirectory, "package.json"))) 888if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 1042if (File.Exists(Path.Combine(appDirectory, "package.json")) || 1043File.Exists(Path.Combine(appDirectory, "deno.json")) || 1044File.Exists(Path.Combine(appDirectory, "deno.jsonc"))) 1176appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 1686if (File.Exists(Path.Combine(appDirectory, "Dockerfile"))) 2016appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 2217appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 2395var hasBunLock = File.Exists(Path.Combine(workingDirectory, "bun.lock")) || 2396File.Exists(Path.Combine(workingDirectory, "bun.lockb")); 2401if (File.Exists(Path.Combine(workingDirectory, "bun.lock"))) 2405if (File.Exists(Path.Combine(workingDirectory, "bun.lockb"))) 2486if (File.Exists(Path.Combine(workingDirectory, manifest))) 2549File.Exists(Path.Combine(resource.Resource.WorkingDirectory, "package-lock.json")) 2567var hasYarnLock = File.Exists(Path.Combine(workingDirectory, "yarn.lock")); 2568var hasYarnrc = File.Exists(Path.Combine(workingDirectory, ".yarnrc.yml")); 2569var hasYarnBerryDir = Directory.Exists(Path.Combine(workingDirectory, ".yarn")); 2646var hasPnpmLock = File.Exists(Path.Combine(workingDirectory, "pnpm-lock.yaml")); 2647var hasPnpmWorkspace = File.Exists(Path.Combine(workingDirectory, "pnpm-workspace.yaml")); 2701var packageJsonPath = Path.Combine(workingDirectory, "package.json"); 3161var configPath = Path.Combine(appDirectory, configFileName); 3286var nvmrcPath = Path.Combine(workingDirectory, ".nvmrc"); 3299var nodeVersionPath = Path.Combine(workingDirectory, ".node-version"); 3312var toolVersionsPath = Path.Combine(workingDirectory, ".tool-versions");
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
Aspire.Hosting.JavaScript.Tests (306)
AddBunAppTests.cs (18)
36var appDir = Path.Combine(workspace.Path, "js"); 41File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 48var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 64var appDir = Path.Combine(workspace.Path, "js"); 66File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 75await Verify(File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile"))); 84var appDir = Path.Combine(workspace.Path, "js"); 86File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 95var perDockerfileIgnorePath = Path.Combine(workspace.Path, "js.Dockerfile.dockerignore"); 101Assert.False(File.Exists(Path.Combine(appDir, ".dockerignore")), "Aspire should not write a .dockerignore into the user's source tree."); 115var appDir = Path.Combine(workspace.Path, "js"); 117File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 123var perDockerfileIgnorePath = Path.Combine(workspace.Path, "js.Dockerfile.dockerignore"); 129var userIgnorePath = Path.Combine(appDir, ".dockerignore"); 145File.WriteAllText(Path.Combine(workspace.Path, "server.ts"), "console.log('hi');"); 167File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 351File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 384File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}");
AddDenoAppTests.cs (132)
63var appDir = Path.Combine(workspace.Path, "js"); 68File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 75var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 91var appDir = Path.Combine(workspace.Path, "js"); 93File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 102var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 114var appDir = Path.Combine(workspace.Path, "js"); 116File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 125var perDockerfileIgnorePath = Path.Combine(workspace.Path, "js.Dockerfile.dockerignore"); 131Assert.False(File.Exists(Path.Combine(appDir, ".dockerignore")), "Aspire should not write a .dockerignore into the user's source tree."); 146var appDir = Path.Combine(workspace.Path, "js"); 153var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 181var appDir = Path.Combine(workspace.Path, "js"); 184File.WriteAllText(Path.Combine(appDir, "deno.lock"), "{}"); 190var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 201var appDir = Path.Combine(workspace.Path, "js"); 203File.WriteAllText(Path.Combine(appDir, "custom.lock"), "{}"); 213var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 225var appDir = Path.Combine(workspace.Path, "js"); 227File.WriteAllText(Path.Combine(appDir, "custom.lock"), "{}"); 239await Verify(File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile"))); 248var appDir = Path.Combine(workspace.Path, "js"); 250File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"start":"deno run -A main.ts"}}"""); 257var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 268var appDir = Path.Combine(workspace.Path, "js"); 270File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"start":"deno run -A main.ts"}}"""); 271File.WriteAllText(Path.Combine(appDir, "deno.lock"), "{}"); 282var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 295var appDir = Path.Combine(workspace.Path, "js"); 297File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"build":"deno run -A build.ts","start":"deno run -A main.ts"}}"""); 306var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 321var appDir = Path.Combine(workspace.Path, "js"); 324Path.Combine(appDir, "deno.json"), 337var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 352var appDir = Path.Combine(workspace.Path, "js"); 372var appDir = Path.Combine(workspace.Path, "js"); 392var appDir = Path.Combine(workspace.Path, "js"); 394File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"importMap":"import_map.json","tasks":{"start":"deno run main.ts"}}"""); 395File.WriteAllText(Path.Combine(appDir, "import_map.json"), """{"imports":{}}"""); 402var dockerfileLines = File.ReadAllLines(Path.Combine(workspace.Path, "js.Dockerfile")); 416var appDir = Path.Combine(workspace.Path, "js"); 418File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"importMap":"import_map.json","tasks":{"start":"deno run main.ts"}}"""); 419File.WriteAllText(Path.Combine(appDir, "import_map.json"), """{"imports":{}}"""); 427var dockerfileLines = File.ReadAllLines(Path.Combine(workspace.Path, "js.Dockerfile")); 441var appDir = Path.Combine(workspace.Path, "js"); 447var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 459var appDir = Path.Combine(workspace.Path, "js"); 466var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 478var appDir = Path.Combine(workspace.Path, "js"); 487var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 505var appDir = Path.Combine(workspace.Path, "js"); 524var appDir = Path.Combine(workspace.Path, "js"); 526File.WriteAllText(Path.Combine(appDir, "Dockerfile"), "FROM denoland/deno:2.9.0"); 533Assert.False(File.Exists(Path.Combine(workspace.Path, "js.Dockerfile"))); 542var appDir = Path.Combine(workspace.Path, "js"); 544File.WriteAllText(Path.Combine(appDir, "main.ts"), "console.log(1);"); 554var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 569var appDir = Path.Combine(workspace.Path, "js"); 571File.WriteAllText(Path.Combine(appDir, "main.ts"), "console.log(1);"); 585var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 612var appDir = Path.Combine(workspace.Path, "js"); 614File.WriteAllText(Path.Combine(appDir, "main.ts"), "console.log(1);"); 623var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 633var appDir = Path.Combine(workspace.Path, "js"); 635File.WriteAllText(Path.Combine(appDir, "main.ts"), "console.log(1);"); 644var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 654var appDir = Path.Combine(workspace.Path, "js"); 656File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"build prod":"deno run -A build.ts","start":"deno run -A main.ts"}}"""); 665var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 676var appDir = Path.Combine(workspace.Path, "js"); 678File.WriteAllText(Path.Combine(appDir, "package.json"), """{"scripts":{"build prod":"echo build","start":"node main.js"}}"""); 688var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 698var appDir = Path.Combine(workspace.Path, "js"); 700File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"start":"deno run -A main.ts"}}"""); 709var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 727var appDir = Path.Combine(workspace.Path, "js"); 729File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"start":"deno run -A main.ts"}}"""); 747var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 758var appDir = Path.Combine(workspace.Path, "js"); 760File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"start":"deno run -A main.ts"}}"""); 768var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 862var appDir = Path.Combine(workspace.Path, "js"); 864File.WriteAllText(Path.Combine(appDir, "deno.json"), """{"tasks":{"start":"deno run -A main.ts"}}"""); 874var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 886var appDir = Path.Combine(workspace.Path, "js"); 888File.WriteAllText(Path.Combine(appDir, "deno.lock"), "{}"); 895var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 905var appDir = Path.Combine(workspace.Path, "js"); 907File.WriteAllText(Path.Combine(appDir, "deno.lock"), "{}"); 914var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 953var appDir = Path.Combine(workspace.Path, "js"); 962var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 974var appDir = Path.Combine(workspace.Path, "js"); 976File.WriteAllText(Path.Combine(appDir, "custom lock's.lock"), "{}"); 985var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 997var appDir = Path.Combine(workspace.Path, "js"); 1006var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1023var appDir = Path.Combine(workspace.Path, "js"); 1031var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1041var appDir = Path.Combine(workspace.Path, "js"); 1050var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1062var appDir = Path.Combine(workspace.Path, "js"); 1071var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1083var appDir = Path.Combine(workspace.Path, "js"); 1095var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1107var appDir = Path.Combine(workspace.Path, "js"); 1125var appDir = Path.Combine(workspace.Path, "js"); 1152var appDir = Path.Combine(workspace.Path, "js"); 1181var appDir = Path.Combine(workspace.Path, "js"); 1200var appDir = Path.Combine(workspace.Path, "js"); 1229var appDir1 = Path.Combine(workspace.Path, "js1"); 1230var appDir2 = Path.Combine(workspace.Path, "js2"); 1244var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js2.Dockerfile")); 1254File.WriteAllText(Path.Combine(workspace.Path, "main.ts"), "console.log('hi');"); 1276File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 1303File.WriteAllText(Path.Combine(workspace.Path, "deno.json"), "{}"); 1325File.WriteAllText(Path.Combine(workspace.Path, "main.ts"), "console.log('hi');"); 1579var appDir = Path.Combine(workspace.Path, "js"); 1588var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1603var appDir = Path.Combine(workspace.Path, "js"); 1613var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1630var appDir = Path.Combine(workspace.Path, "js"); 1639var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1650var appDir = Path.Combine(workspace.Path, "js"); 1658var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 1685var appDir = Path.Combine(workspace.Path, "js"); 2349var appDir = Path.Combine(workspace.Path, "deno-app"); 2351await File.WriteAllTextAsync(Path.Combine(appDir, "main.ts"), """ 2360var dockerfilePath = Path.Combine(workspace.Path, "deno-app.Dockerfile"); 2587File.WriteAllText(Path.Combine(workspace.Path, "deno.json"), "{}"); 2605File.WriteAllText(Path.Combine(workspace.Path, "deno.json"), "{}"); 2624File.WriteAllText(Path.Combine(workspace.Path, "deno.json"), "{}");
AddJavaScriptAppTests.cs (44)
27var appDir = Path.Combine(workspace.Path, "js"); 36var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 49var appDir = Path.Combine(workspace.Path, "js"); 59var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 69var appDir = Path.Combine(workspace.Path, "js"); 79var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 89var appDir = Path.Combine(workspace.Path, "js"); 99var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 112var appDir = Path.Combine(workspace.Path, "js"); 117File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty); 126var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 138var appDir = Path.Combine(workspace.Path, "js"); 147var dockerfileLines = await File.ReadAllLinesAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 172var appDir = Path.Combine(workspace.Path, "js"); 177File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty); 187var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 350var appDir = Path.Combine(workspace.Path, "js"); 353File.WriteAllText(Path.Combine(appDir, "pnpm-workspace.yaml"), "allowBuilds: {}\n"); 361var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 381var appDir = Path.Combine(workspace.Path, "js"); 384Path.Combine(appDir, "package.json"), 397var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 415var appDir = Path.Combine(workspace.Path, "js"); 418Path.Combine(appDir, "package.json"), 432var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 447var appDir = Path.Combine(workspace.Path, "js"); 450Path.Combine(appDir, "package.json"), 463var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 476var appDir = Path.Combine(workspace.Path, "js"); 479Path.Combine(appDir, "package.json"), 492var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 515var appDir = Path.Combine(workspace.Path, "js"); 517var packageJsonPath = Path.Combine(appDir, "package.json"); 542var appDir = Path.Combine(workspace.Path, "pnpm-app"); 556await File.WriteAllTextAsync(Path.Combine(appDir, "package.json"), packageJson); 564var dockerfilePath = Path.Combine(workspace.Path, "pnpm-app.Dockerfile"); 579var dockerfileInContext = Path.Combine(appDir, "Dockerfile"); 637var appDir = Path.Combine(workspace.Path, "pnpm-app"); 651await File.WriteAllTextAsync(Path.Combine(appDir, "package.json"), packageJson); 660var dockerfilePath = Path.Combine(workspace.Path, "pnpm-app.Dockerfile"); 669var dockerfileInContext = Path.Combine(appDir, "Dockerfile"); 715var appDir = Path.Combine(rootDirectory, "js"); 725File.WriteAllText(Path.Combine(appDir, "Dockerfile"), dockerfile); 726File.WriteAllText(Path.Combine(appDir, "package.json"), """
AddNodeAppTests.cs (19)
101var appDir = Path.Combine(workspace.Path, "js"); 106File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 107File.WriteAllText(Path.Combine(appDir, "package-lock.json"), "{}"); 114var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 169var appDir = Path.Combine(workspace.Path, "js"); 171File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 183var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 216var appDir = Path.Combine(workspace.Path, "js"); 218File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 229var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 238File.WriteAllText(Path.Combine(workspace.Path, "app.js"), "{}"); 265File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 339File.WriteAllText(Path.Combine(appDirectory, "package.json"), packageJsonContent); 340File.WriteAllText(Path.Combine(appDirectory, "app.js"), appContent); 365var nodeDockerfilePath = Path.Combine(outputDir.FullName, "nodeapp.Dockerfile"); 396File.WriteAllText(Path.Combine(appDirectory, "package.json"), packageJsonContent); 397File.WriteAllText(Path.Combine(appDirectory, "app.js"), appContent); 422var nodeDockerfilePath = Path.Combine(outputDir.FullName, "nodeapp.Dockerfile"); 562File.WriteAllText(Path.Combine(workspace.Path, "app.js"), "console.log('hello');");
AddViteAppTests.cs (77)
28var viteDir = Path.Combine(workspace.Path, "vite"); 32File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty"); 63var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 89var viteDir = Path.Combine(workspace.Path, "vite"); 91File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty"); 99var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 115var viteDir = Path.Combine(workspace.Path, "vite"); 117File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty"); 119var apiDir = Path.Combine(workspace.Path, "api"); 121File.WriteAllText(Path.Combine(apiDir, "package-lock.json"), "empty"); 132var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 142var viteDir = Path.Combine(workspace.Path, "vite"); 144File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty"); 163var viteDir = Path.Combine(workspace.Path, "vite"); 165File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty"); 167var apiDir = Path.Combine(workspace.Path, "api"); 169File.WriteAllText(Path.Combine(apiDir, "package-lock.json"), "empty"); 193var appDir = Path.Combine(workspace.Path, "angular"); 195File.WriteAllText(Path.Combine(appDir, "package-lock.json"), "empty"); 203var dockerfilePath = Path.Combine(workspace.Path, "angular.Dockerfile"); 219var appDir = Path.Combine(workspace.Path, "vite"); 221File.WriteAllText(Path.Combine(appDir, "package-lock.json"), "empty"); 229var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 242var nextDir = Path.Combine(workspace.Path, "nextjs"); 244File.WriteAllText(Path.Combine(nextDir, "package-lock.json"), "empty"); 251var dockerfilePath = Path.Combine(workspace.Path, "nextjs.Dockerfile"); 263var nextDir = Path.Combine(workspace.Path, "nextjs"); 265File.WriteAllText(Path.Combine(nextDir, "pnpm-lock.yaml"), ""); 272var dockerfilePath = Path.Combine(workspace.Path, "nextjs.Dockerfile"); 282var appDir = Path.Combine(workspace.Path, "nuxt"); 284File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), ""); 292var dockerfilePath = Path.Combine(workspace.Path, "nuxt.Dockerfile"); 302var appDir = Path.Combine(workspace.Path, "nuxt"); 304File.WriteAllText(Path.Combine(appDir, "bun.lock"), ""); 312var dockerfilePath = Path.Combine(workspace.Path, "nuxt.Dockerfile"); 322File.WriteAllText(Path.Combine(workspace.Path, ".nvmrc"), "18.20.0"); 330var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 342File.WriteAllText(Path.Combine(workspace.Path, ".node-version"), "v21.5.0"); 350var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 367File.WriteAllText(Path.Combine(workspace.Path, ".tool-versions"), toolVersions); 375var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 393File.WriteAllText(Path.Combine(workspace.Path, ".tool-versions"), toolVersions); 401var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 419File.WriteAllText(Path.Combine(workspace.Path, "package.json"), packageJson); 427var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 444var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 460File.WriteAllText(Path.Combine(workspace.Path, ".nvmrc"), versionString); 468var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 490var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 548Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 551var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 596Assert.Contains(Path.Combine("node_modules", ".aspire"), newConfigPath); 609Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 612var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 713var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 756Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 759var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 811var repoRoot = Path.Combine(workspace.Path, "repo"); 814Directory.CreateDirectory(Path.Combine(repoRoot, "node_modules")); 817var viteConfigPath = Path.Combine(appDir, "vite.config.ts"); 887var repoRoot = Path.Combine(workspace.Path, "repo"); 892Directory.CreateDirectory(Path.Combine(repoRoot, "node_modules")); 894var firstConfigPath = Path.Combine(firstAppDirectory, "vite.config.ts"); 895var secondConfigPath = Path.Combine(secondAppDirectory, "vite.config.ts"); 950var repoRoot = Path.Combine(workspace.Path, "repo"); 955Directory.CreateDirectory(Path.Combine(repoRoot, "node_modules")); 957var firstConfigPath = Path.Combine(firstAppDirectory, "vite.config.ts"); 958var secondConfigPath = Path.Combine(secondAppDirectory, "vite.config.ts"); 996Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 999var viteConfigPath = Path.Combine(workspace.Path, configFileName); 1050var nextDir = Path.Combine(workspace.Path, "nextjs"); 1052File.WriteAllText(Path.Combine(nextDir, "package-lock.json"), "empty"); 1066var nextDir = Path.Combine(workspace.Path, "nextjs"); 1068File.WriteAllText(Path.Combine(nextDir, "package-lock.json"), "empty"); 1083var nextDir = Path.Combine(workspace.Path, "nextjs"); 1085File.WriteAllText(Path.Combine(nextDir, "package-lock.json"), "empty"); 1086File.WriteAllText(Path.Combine(nextDir, "next.config.ts"), "const nextConfig = {}; export default nextConfig;");
BunAppFixture.cs (2)
83File.WriteAllText(Path.Combine(tempDir, "server.ts"), 101File.WriteAllText(Path.Combine(tempDir, "package.json"),
DenoAppFixture.cs (2)
120File.WriteAllText(Path.Combine(tempDir, "main.ts"), 138File.WriteAllText(Path.Combine(tempDir, "deno.json"),
NodeAppFixture.cs (2)
75File.WriteAllText(Path.Combine(tempDir, "app.js"), 95File.WriteAllText(Path.Combine(tempDir, "package.json"),
PackageInstallationTests.cs (7)
458File.WriteAllText(Path.Combine(workspace.Path, "package-lock.json"), "empty"); 485File.WriteAllText(Path.Combine(workspace.Path, "yarn.lock"), "empty"); 506File.WriteAllText(Path.Combine(workspace.Path, "yarn.lock"), "empty"); 507File.WriteAllText(Path.Combine(workspace.Path, ".yarnrc.yml"), "empty"); 522File.WriteAllText(Path.Combine(workspace.Path, "yarn.lock"), "empty"); 538File.WriteAllText(Path.Combine(workspace.Path, "pnpm-lock.yaml"), "empty"); 553File.WriteAllText(Path.Combine(workspace.Path, "bun.lock"), "empty");
RequiredCommandTests.cs (2)
158File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 171File.WriteAllText(Path.Combine(workspace.Path, "deno.json"), "{}");
ResourceCreationTests.cs (1)
44Assert.Equal(Path.Combine(builder.AppHostDirectory, "test"), resource.WorkingDirectory);
Aspire.Hosting.Kafka.Tests (1)
AddKafkaTests.cs (1)
205Assert.Equal(Path.Combine(appBuilder.AppHostDirectory, "kafka-data"), volumeAnnotation.Source);
Aspire.Hosting.Keycloak.Tests (2)
KeycloakPublicApiTests.cs (1)
177var filePath = Path.Combine(workspace.Path, file);
KeycloakResourceBuilderTests.cs (1)
122Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
Aspire.Hosting.Kubernetes (17)
CertManagerExtensions.cs (1)
452var manifestPath = Path.Combine(tempDir.FullName, $"{issuer.Name}.yaml");
Deployment\HelmDeploymentEngine.cs (4)
249var valuesFilePath = Path.Combine(outputPath, "values.yaml"); 368var overrideFilePath = Path.Combine(outputPath, GetDeployValuesFileName(environment.Name)); 440var valuesFilePath = Path.Combine(outputPath, "values.yaml"); 457var deployValuesFilePath = Path.Combine(outputPath, GetDeployValuesFileName(environment.Name));
KubernetesEnvironmentResource.cs (7)
1483var patchFilePath = Path.Combine(patchTempDir.FullName, "patch.json"); 1595var certPath = Path.Combine(tempDir.FullName, "tls.crt"); 1596var keyPath = Path.Combine(tempDir.FullName, "tls.key"); 1929var patchFilePath = Path.Combine(patchTempDir.FullName, "patch.json"); 2110var manifestPath = Path.Combine(tempDir.FullName, "gateway.json"); 2232var certPath = Path.Combine(tempDir.FullName, "tls.crt"); 2233var keyPath = Path.Combine(tempDir.FullName, "tls.key");
KubernetesPublishingContext.cs (4)
96var resourceDockerfilePath = Path.Combine(OutputPath, $"{serviceResource.TargetResource.Name}.Dockerfile"); 374var outputFile = Path.Combine(templatesFolder, fileName); 402var outputFile = Path.Combine(OutputPath!, "values.yaml"); 424var outputFile = Path.Combine(OutputPath, "Chart.yaml");
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
Aspire.Hosting.Kubernetes.Tests (73)
KubernetesDeployTests.cs (32)
846var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 877var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 940var outputPath = Path.Combine(workspace.Path, "env"); 951await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), valuesYaml); 970var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 987var outputPath = Path.Combine(workspace.Path, "env"); 990await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), "parameters: {}\nsecrets: {}\nconfig: {}"); 999var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1007var outputPath = Path.Combine(workspace.Path, "env"); 1010await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), "parameters: {}\nsecrets: {}\nconfig: {}"); 1029var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1081var outputPath = Path.Combine(workspace.Path, "env"); 1084await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), "parameters: {}\nsecrets: {}\nconfig: {}"); 1105var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1238var outputPath = Path.Combine(workspace.Path, "env"); 1249await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), valuesYaml); 1274var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1288var outputPath = Path.Combine(workspace.Path, "env"); 1298var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1337var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1412var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1439var outputPath = Path.Combine(workspace.Path, "deploy"); 1471var overridePath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("myenv")); 1529var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1590var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1635var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1675var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1676await Verify(await File.ReadAllTextAsync(Path.Combine(workspace.Path, "values.yaml")), "yaml") 1753var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1792var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1827var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1863var valuesPath = Path.Combine(workspace.Path, "values.yaml");
KubernetesEnvironmentResourceTests.cs (3)
29var chartYaml = Path.Combine(workspace.Path, "Chart.yaml"); 30var valuesYaml = Path.Combine(workspace.Path, "values.yaml"); 95var outputPath = Path.Combine(workspace.Path, "output");
KubernetesGatewayTests.cs (1)
108var valuesPath = Path.Combine(workspace.Path, "values.yaml");
KubernetesIngressTests.cs (2)
115var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 178var valuesPath = Path.Combine(workspace.Path, "values.yaml");
KubernetesPublisherTests.cs (34)
72var filePath = Path.Combine(workspace.Path, expectedFile); 111var deploymentPath = Path.Combine(workspace.Path, "templates/service/deployment.yaml"); 169var filePath = Path.Combine(workspace.Path, expectedFile); 213var manifestPath = Path.Combine(workspace.Path, "templates/myapp/scaler.yaml"); 296var filePath = Path.Combine(workspace.Path, expectedFile); 352var filePath = Path.Combine(workspace.Path, expectedFile); 384var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 459var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 508var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 543var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 636var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 732var filePath = Path.Combine(workspace.Path, expectedFile); 760await Verify(File.ReadAllText(Path.Combine(workspace.Path, "Chart.yaml")), "yaml") 761.AppendContentAsFile(File.ReadAllText(Path.Combine(workspace.Path, "values.yaml")), "yaml") 797var filePath = Path.Combine(workspace.Path, expectedFile); 841var filePath = Path.Combine(workspace.Path, expectedFile); 867var servicePath = Path.Combine(workspace.Path, "templates/database/service.yaml"); 903var filePath = Path.Combine(workspace.Path, expectedFile); 955var filePath = Path.Combine(workspace.Path, expectedFile); 1000var filePath = Path.Combine(workspace.Path, expectedFile); 1045var filePath = Path.Combine(workspace.Path, expectedFile); 1200var filePath = Path.Combine(workspace.Path, expectedFile); 1246var filePath = Path.Combine(workspace.Path, expectedFile); 1307var filePath = Path.Combine(workspace.Path, expectedFile); 1358var filePath = Path.Combine(workspace.Path, expectedFile); 1420var filePath = Path.Combine(workspace.Path, expectedFile); 1479var filePath = Path.Combine(workspace.Path, expectedFile); 1533var filePath = Path.Combine(workspace.Path, expectedFile); 1590var filePath = Path.Combine(workspace.Path, expectedFile); 1684var filePath = Path.Combine(workspace.Path, expectedFile); 1739var filePath = Path.Combine(workspace.Path, expectedFile); 1853var filePath = Path.Combine(workspace.Path, expectedFile); 1903var filePath = Path.Combine(workspace.Path, expectedFile); 2097var valuesPath = Path.Combine(workspace.Path, "values.yaml");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Maui (9)
MauiPlatformHelper.cs (1)
57Path.Combine(builder.ApplicationBuilder.AppHostDirectory, projectPath));
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
Utilities\MauiEnvironmentHelper.cs (2)
62var targetsFilePath = Path.Combine(tempDirectory, $"{sanitizedName}.targets"); 203var targetsFilePath = Path.Combine(tempDirectory, $"{sanitizedName}.targets");
Aspire.Hosting.Maui.Tests (65)
MauiiOSValidationTests.cs (6)
24var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 50var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 76var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 97var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 116var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 135var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiOtlpTemplateTests.cs (3)
26var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 53var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 76var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiPlatformExtensionsTests.cs (38)
98var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 121var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 141var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 160var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 189var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 237var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 256var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 280var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 309var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 335var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 358var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 381var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 404var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 432var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 457var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 486var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 511var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 538var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 565var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 632var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 662var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 686var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 709var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 747var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 800var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 865var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 904var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 957var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1023var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1060var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1077var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1099var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1130var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1157var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1187var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1269var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1305var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 1368var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiUnsupportedPlatformTests.cs (6)
17var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 41var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 65var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 89var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 114var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 129var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiWithArgsTests.cs (11)
21var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 39var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 58var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 78var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 95var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 115var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 132var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 151var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 168var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 188var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 210var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
99bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data");
Aspire.Hosting.MongoDB.Tests (3)
MongoDbFunctionalTests.cs (3)
227bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data"); 365var initFilePath = Path.Combine(bindMountPath, "mongo-init.js"); 462var initFilePath = Path.Combine(initFilesPath, "mongo-init.js");
Aspire.Hosting.MySql.Tests (3)
MySqlFunctionalTests.cs (3)
152bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data"); 325File.WriteAllText(Path.Combine(bindMountPath, "init.sql"), """ 410File.WriteAllText(Path.Combine(initFilesPath, "init.sql"), """
Aspire.Hosting.Oracle.Tests (2)
OracleFunctionalTests.cs (2)
280File.WriteAllText(Path.Combine(bindMountPath, "01_init.sql"), $""" 372File.WriteAllText(Path.Combine(initFilesPath, "01_init.sql"), $"""
Aspire.Hosting.PostgreSQL.Tests (5)
AddPostgresTests.cs (2)
908Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source); 935Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
PostgresFunctionalTests.cs (3)
226bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data"); 385File.WriteAllText(Path.Combine(bindMountPath, "init.sql"), """ 471File.WriteAllText(Path.Combine(initFilesPath, "init.sql"), """
Aspire.Hosting.Python (15)
PythonAppResourceBuilderExtensions.cs (13)
434if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 512if (File.Exists(Path.Combine(appDirectoryFullPath, "pyproject.toml")) || 513File.Exists(Path.Combine(appDirectoryFullPath, "requirements.txt"))) 532var uvLockPath = Path.Combine(resource.WorkingDirectory, "uv.lock"); 641var requirementsTxtPath = Path.Combine(resource.WorkingDirectory, "requirements.txt"); 681var pyprojectTomlPath = Path.Combine(resource.WorkingDirectory, "pyproject.toml"); 776return Path.Combine(appDirectoryFullPath, virtualEnvironmentPath); 784var venvPath = Path.Combine(currentDirectory, virtualEnvironmentPath); 814return Path.Combine(appDirectoryFullPath, virtualEnvironmentPath); 1157if (File.Exists(Path.Combine(workingDirectory, "pyproject.toml"))) 1162else if (File.Exists(Path.Combine(workingDirectory, "requirements.txt"))) 1270var fullPath = Path.Combine(directory, commandWithExt); 1283var fullPath = Path.Combine(directory, command);
PythonVersionDetector.cs (2)
20var pythonVersionFile = Path.Combine(appDirectory, ".python-version"); 31var pyprojectFile = Path.Combine(appDirectory, "pyproject.toml");
Aspire.Hosting.Python.Tests (119)
AddPythonAppTests.cs (112)
29var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 67var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 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, workspace.Path)); 532var appVenvPath = Path.Combine(appDir.FullName, ".venv"); 545var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, appDir.FullName)); 546var expectedVenvPath = Path.Combine(expectedProjectDirectory, ".venv"); 562var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName); 566var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv"); 608var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName); 612var appVenvPath = Path.Combine(appDirPath, ".venv"); 615var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv"); 665var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, appDir.FullName)); 666var expectedVenvPath = Path.Combine(expectedProjectDirectory, ".venv"); 682var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName); 686var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv"); 690var customVenvPath = Path.Combine(appDirPath, "custom-venv"); 742var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 992var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 1026var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 1060var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 1269File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1270File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent); 1271File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1273var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 1292var scriptDockerfilePath = Path.Combine(outputDir.FullName, "script-app.Dockerfile"); 1295var moduleDockerfilePath = Path.Combine(outputDir.FullName, "module-app.Dockerfile"); 1298var executableDockerfilePath = Path.Combine(outputDir.FullName, "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.FullName, "script-app.Dockerfile"); 1361var moduleDockerfilePath = Path.Combine(outputDir.FullName, "module-app.Dockerfile"); 1364var executableDockerfilePath = Path.Combine(outputDir.FullName, "executable-app.Dockerfile"); 1397var appDirectory = Path.Combine(workspace.Path, "myapp"); 1399var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1441var appDirectory = Path.Combine(workspace.Path, "myapp"); 1443var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1481var appDirectory = Path.Combine(workspace.Path, "myapp"); 1483var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1516var appDirectory = Path.Combine(workspace.Path, "myapp"); 1518var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1527Assert.Equal(Path.Combine(appDirectory, "main.py"), launchConfig.ProgramPath); 1537var appDirectory = Path.Combine(workspace.Path, "myapp"); 1539var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1561var appDirectory = Path.Combine(workspace.Path, "myapp"); 1563var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1585var appDirectory = Path.Combine(workspace.Path, "myapp"); 1587var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1589var customWorkingDirectory = Path.Combine(workspace.Path, "custom"); 1600Path.Combine(builder.AppHostDirectory, customWorkingDirectory)); 1612var appDirectory = Path.Combine(workspace.Path, "myapp"); 1614var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1616var customWorkingDirectory = Path.Combine(workspace.Path, "custom"); 1626Path.Combine(builder.AppHostDirectory, customWorkingDirectory)); 1628Assert.Equal(Path.Combine(expectedWorkingDirectory, "main.py"), launchConfig.ProgramPath); 1653var appDirectory = Path.Combine(workspace.Path, "myapp"); 1655var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1686var appDirectory = Path.Combine(workspace.Path, "myapp"); 1688var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1795File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1796File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent); 1797File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1812var dockerfilePath = Path.Combine(outputDir.FullName, "custom-images-app.Dockerfile"); 1842File.WriteAllText(Path.Combine(projectDirectory, "requirements.txt"), requirementsContent); 1843File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1854var dockerfilePath = Path.Combine(outputDir.FullName, "script-app.Dockerfile"); 1892File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1893File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1904var dockerfilePath = Path.Combine(outputDir.FullName, "script-app.Dockerfile"); 1925File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1936var dockerfilePath = Path.Combine(outputDir.FullName, "script-app.Dockerfile"); 1959File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1960File.WriteAllText(Path.Combine(projectDirectory, ".python-version"), pythonVersionContent); 1973var scriptDockerfilePath = Path.Combine(outputDir.FullName, "script-app.Dockerfile"); 1976var moduleDockerfilePath = Path.Combine(outputDir.FullName, "module-app.Dockerfile"); 1979var executableDockerfilePath = Path.Combine(outputDir.FullName, "executable-app.Dockerfile"); 2008var scriptPath = Path.Combine(workspace.Path, scriptName); 2012var pyprojectPath = Path.Combine(workspace.Path, "pyproject.toml"); 2042var scriptPath = Path.Combine(workspace.Path, scriptName); 2046var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2077var scriptPath = Path.Combine(workspace.Path, scriptName); 2081var pyprojectPath = Path.Combine(workspace.Path, "pyproject.toml"); 2083var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2107var scriptPath = Path.Combine(workspace.Path, scriptName); 2131var scriptPath = Path.Combine(workspace.Path, scriptName); 2154var scriptPath = Path.Combine(workspace.Path, scriptName); 2158var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2182var scriptPath = Path.Combine(workspace.Path, scriptName); 2186var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2211var scriptPath = Path.Combine(workspace.Path, "main.py"); 2239var scriptPath = Path.Combine(workspace.Path, "main.py"); 2243var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2282var scriptPath = Path.Combine(workspace.Path, "main.py"); 2285var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2312var scriptPath = Path.Combine(workspace.Path, "main.py"); 2315var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2346var scriptPath = Path.Combine(workspace.Path, "main.py"); 2349var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2382var scriptPath = Path.Combine(workspace.Path, "main.py"); 2385var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2412var scriptPath = Path.Combine(workspace.Path, "main.py"); 2415var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2444var scriptPath = Path.Combine(workspace.Path, "main.py"); 2447var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2476var scriptPath = Path.Combine(workspace.Path, "main.py"); 2479var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2512var scriptPath = Path.Combine(workspace.Path, "main.py"); 2566var scriptPath = Path.Combine(workspace.Path, scriptName); 2569var requirementsPath = Path.Combine(workspace.Path, "requirements.txt");
AddUvicornAppTests.cs (6)
18var appDirectory = Path.Combine(Path.GetTempPath(), "test-app"); 58File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 59File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent); 60File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 62var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 88var appDockerfilePath = Path.Combine(outputDir.FullName, "main.Dockerfile");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
118bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data");
Aspire.Hosting.Radius (7)
Publishing\RadiusBicepPublishingContext.cs (2)
94var bicepPath = Path.Combine(outputDir, "app.bicep"); 95var configPath = Path.Combine(outputDir, "bicepconfig.json");
Publishing\RadiusDeploymentPipelineStep.cs (3)
300Pin("AZURE_CONFIG_DIR", Path.Combine(realHome, ".azure")); 525var bicepPath = Path.Combine(outputDir, "app.bicep"); 700var filePath = Path.Combine(directory.FullName, "parameters.json");
Secrets\SealedSecretArtifact.cs (2)
33Path.Combine(outputDirectory, RootDirectoryName); 40Path.Combine(outputDirectory, RelativePath(storeName, sourceManifestPath));
Aspire.Hosting.Radius.Tests (16)
Deployment\ControlPlaneVersionGateTests.cs (7)
85var home = Path.Combine(Path.GetTempPath(), "aspire-radius-kubeconfig-test"); 116var home = Path.Combine(Path.GetTempPath(), "aspire-radius-kubeconfig-test"); 117var realHome = Path.Combine(Path.GetTempPath(), "aspire-radius-real-home"); 128Assert.Equal(Path.Combine(realHome, ".azure"), environment["AZURE_CONFIG_DIR"]); 142var home = Path.Combine(Path.GetTempPath(), "aspire-radius-kubeconfig-test"); 143var realHome = Path.Combine(Path.GetTempPath(), "aspire-radius-real-home"); 161var home = Path.Combine(Path.GetTempPath(), "aspire-radius-kubeconfig-test");
Publishing\PostCallbackSecretValidationTests.cs (1)
30var path = Path.Combine(_manifestDirectory, $"{fileName}.sealed.yaml");
Publishing\SealedSecretPublishTests.cs (5)
25var path = Path.Combine(_dir, $"{name}.sealed.yaml"); 75.WithSealedSecret(Path.Combine("secrets", "db-creds.sealed.yaml"), "username"); 81Path.GetFullPath(Path.Combine("secrets", "db-creds.sealed.yaml"), store.ApplicationBuilder.AppHostDirectory), 88var missing = Path.Combine(_dir, "does-not-exist.sealed.yaml"); 103var manifest = Path.Combine(_dir, "no-payload.sealed.yaml");
Secrets\SealedSecretManifestTests.cs (1)
16var path = Path.Combine(_dir, $"{Guid.NewGuid():N}.sealed.yaml");
Secrets\SecretStoreValidationTests.cs (1)
57var path = Path.Combine(_sealedManifestDirectory, $"{Guid.NewGuid():N}.sealed.yaml");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
666Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
Aspire.Hosting.RemoteHost (2)
AssemblyLoader.cs (1)
356var libsPath = Path.Combine(integrationLibsPath, sharedName + ".dll");
IntegrationLoadContext.cs (1)
139var path = Path.Combine(dir, $"{assemblyName}.dll");
Aspire.Hosting.RemoteHost.Tests (25)
AssemblyLoaderTests.cs (11)
30[integrationLibs.Path, applicationBase.Path, Path.Combine(applicationBase.Path, "missing")]); 82var runtimeAssemblyPath = System.IO.Path.Combine(packageAssemblyDirectory.Path, "Aspire.Hosting.Azure.OperationalInsights.dll"); 88var manifestPath = System.IO.Path.Combine(manifestDirectory.Path, "integration-package-probe-manifest.json"); 108applicationBasePath: System.IO.Path.Combine(manifestDirectory.Path, "missing"), 128var packageAssemblyPath = System.IO.Path.Combine(packageAssemblyDirectory.Path, "Aspire.Hosting.PackageIntegration.dll"); 131var manifestPath = System.IO.Path.Combine(manifestDirectory.Path, "integration-package-probe-manifest.json"); 145applicationBasePath: System.IO.Path.Combine(manifestDirectory.Path, "missing"), 204var firstAssemblyPath = System.IO.Path.Combine(closureDirectory.Path, "Aspire.Hosting.Test.First.dll"); 205var secondAssemblyPath = System.IO.Path.Combine(closureDirectory.Path, "Aspire.Hosting.Test.Second.dll"); 209var manifestPath = System.IO.Path.Combine(manifestDirectory.Path, IntegrationPackageProbeManifest.FileName); 282File.WriteAllText(System.IO.Path.Combine(Path, fileName), string.Empty);
AtsExportsTests.cs (1)
139var tempFile = Path.Combine(workspace.WorkspaceRoot.FullName, "artifact.zip");
CodeGeneration\ApiReferenceExportTests.cs (2)
97var manifestPath = Path.Combine(manifestDirectory.Path, "integration-package-probe-manifest.json"); 288var destinationPath = Path.Combine(destinationDirectory, Path.GetFileName(assemblyPath));
IntegrationLoadContextTests.cs (4)
41var assemblyPath = Path.Combine(AppContext.BaseDirectory, "Aspire.Hosting.CodeGeneration.Go.dll"); 47var manifestPath = Path.Combine(manifestDirectory.FullName, "integration-package-probe-manifest.json"); 79var manifestPath = Path.Combine(manifestDirectory.FullName, "integration-package-probe-manifest.json"); 108var manifestPath = Path.Combine(manifestDirectory.FullName, "integration-package-probe-manifest.json");
IntegrationPackageProbeManifestTests.cs (1)
26var manifestPath = Path.Combine(manifestDirectory.FullName, "integration-package-probe-manifest.json");
JsonRpcAuthenticationTests.cs (4)
122var existingFile = Path.Combine(target.FullName, "rpc.sock"); 124workspace.CreateDirectory(Path.Combine(".aspire", "cli")); 130["REMOTE_APP_HOST_SOCKET_PATH"] = symbolicLink ? Path.Combine(link, "rpc.sock") : existingFile 172var directory = Path.Combine(workspace.Path, "rpc");
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
Aspire.Hosting.Rust (12)
RustDockerfileGenerator.cs (3)
68&& !File.Exists(Path.Combine(workingDirectory, ".dockerignore"))) 278var candidate = Path.Combine(current, segments[i]); 283current = Path.Combine(current, segments[i]);
RustHostingExtensions.cs (3)
609if (File.Exists(Path.Combine(candidate, "Cargo.lock"))) 751if (File.Exists(Path.Combine(workingDirectory, "Dockerfile"))) 756Path.Combine(workingDirectory, "Dockerfile"),
src\Shared\PathNormalizer.cs (6)
82var candidate = Path.Combine(current, segment); 91!Path.Exists(Path.Combine(current, caseVariant))) 227current = Path.Combine(current, segments[i]); 276current = Path.Combine(current, segments[j]); 315current = Path.Combine(current, segments[i]); 328current = Path.Combine(current, segments[j]);
Aspire.Hosting.Rust.Tests (68)
AddRustAppPublishTests.cs (48)
40File.WriteAllText(Path.Combine(source, "rust-toolchain.toml"), """ 418Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 473Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 497File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 503Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 515File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 521Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 531var customDockerfile = Path.Combine(customContext.FullName, "Dockerfile.prod"); 545Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 566Path.Combine(outputDir.FullName, "api.Dockerfile"), 591File.WriteAllText(Path.Combine(manifestDirectory.FullName, "Cargo.toml"), "[package]\nname = \"api\"\n"); 594if (!File.Exists(Path.Combine(sourceDir.FullName, differentlyCasedPath))) 604var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 617var manifestDirectory = Directory.CreateDirectory(Path.Combine(sourceDir.FullName, decomposedDirectoryName)); 619File.WriteAllText(Path.Combine(manifestDirectory.FullName, "Cargo.toml"), "[package]\nname = \"api\"\n"); 621var composedManifestPath = Path.Combine(composedDirectoryName, "Cargo.toml"); 622if (!File.Exists(Path.Combine(sourceDir.FullName, composedManifestPath))) 634var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 651var sourceDir = Directory.CreateDirectory(Path.Combine(restrictedAncestor.FullName, "source")); 655File.WriteAllText(Path.Combine(manifestDirectory.FullName, "Cargo.toml"), "[package]\nname = \"api\"\n"); 679Path.Combine(outputDir.FullName, "api.Dockerfile"), 717var manifestDirectory = Directory.CreateDirectory(Path.Combine(source, @"crates\api")); 718File.WriteAllText(Path.Combine(manifestDirectory.FullName, "Cargo.toml"), "[package]\nname = \"api\"\n"); 754var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 773File.WriteAllText(Path.Combine(manifestDirectory.FullName, "Cargo.toml"), "[package]\nname = \"api\"\n"); 793var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 805File.WriteAllText(Path.Combine(outsideDir.FullName, "Cargo.toml"), "[package]\nname = \"outside\"\n"); 806CreateDirectorySymbolicLinkOrSkip(Path.Combine(sourceDir.FullName, "linked"), outsideDir.FullName); 813Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 822var firstLink = Path.Combine(sourceDir.FullName, "linked"); 823var secondLink = Path.Combine(sourceDir.FullName, "loop"); 836Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 863configureResource: app => app.WithCargoManifestPath(Path.Combine(Path.GetTempPath(), "Cargo.toml")))); 874File.WriteAllText(Path.Combine(source, "Cargo.lock"), "version = 4\n")); 883configureSource: source => File.WriteAllText(Path.Combine(source, "Cargo.lock"), "version = 4\n"), 927var first = await File.ReadAllTextAsync(Path.Combine(firstOutputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 928var second = await File.ReadAllTextAsync(Path.Combine(secondOutputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 945var first = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 946var second = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "worker.Dockerfile"), TestContext.Current.CancellationToken); 974var ignore = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"), TestContext.Current.CancellationToken); 988File.WriteAllText(Path.Combine(sourceDir.FullName, ".dockerignore"), "*.md\n"); 995Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"))); 1010File.WriteAllText(Path.Combine(relocatedDir.FullName, "Dockerfile"), "FROM scratch\n"); 1031Assert.Equal(Path.Combine(relocatedDir.FullName, "Dockerfile"), dockerfile.DockerfilePath); 1053File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "Cargo.lock"), "version = 4\n"); 1057File.WriteAllText(Path.Combine(sourceDir.FullName, "Cargo.lock"), "version = 4\n"); 1066var content = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 1143return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken);
CargoMetadataTests.cs (4)
290Directory.CreateDirectory(Path.Combine(crate.Path, "src")); 291crate.Write(Path.Combine("src", "main.rs"), "fn main() { println!(\"hello\"); }"); 311TestPathNormalizer.ResolveSymlinks(Path.Combine(crate.Path, "target")), 315Assert.False(Directory.Exists(Path.Combine(crate.Path, "target")));
RustDockerfileShellTests.cs (8)
31Assert.Equal("current", File.ReadAllText(Path.Combine(artifactDirectory, "api"))); 41var cargoStub = Path.Combine(workspace.WorkspaceRoot.FullName, "cargo-stub"); 56Assert.False(File.Exists(Path.Combine(artifactDirectory, "api"))); 87Assert.Equal("current", File.ReadAllText(Path.Combine(artifactDirectory, "api"))); 97var markerPath = Path.Combine(workspace.WorkspaceRoot.FullName, "command-substitution-ran"); 121var invocationLog = Path.Combine(workspace.WorkspaceRoot.FullName, "invocations"); 153var invocationLog = Path.Combine(workspace.WorkspaceRoot.FullName, "invocations"); 181var stubPath = Path.Combine(directory, name);
RustPublicApiTests.cs (6)
359Directory.CreateDirectory(Path.Combine(crate.Path, "src")); 360crate.Write(Path.Combine("src", "main.rs"), "fn main() {}"); 381Path.Combine("debug", OperatingSystem.IsWindows() ? "first.exe" : "first"), 384Path.Combine("debug", OperatingSystem.IsWindows() ? "second.exe" : "second"), 448Assert.EndsWith(Path.Combine("debug", OperatingSystem.IsWindows() ? "first.exe" : "first"), Assert.IsType<RustCargoLaunchTarget>(first.Cargo).ExecutablePath); 449Assert.EndsWith(Path.Combine("debug", OperatingSystem.IsWindows() ? "second.exe" : "second"), Assert.IsType<RustCargoLaunchTarget>(second.Cargo).ExecutablePath);
TempCrateDirectory.cs (1)
16=> File.WriteAllText(System.IO.Path.Combine(Path, fileName), content);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Sdk.Tests (102)
AppHostSdkTargetsTests.cs (100)
104var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 128var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 167var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 197var emptyPathDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-path")); 223var nonExecutableDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "non-executable")); 224var nonExecutableDnxPath = Path.Combine(nonExecutableDirectory.FullName, "dnx"); 231var executableDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "executable")); 252var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(project.ProjectDirectory, RelativeCliDirectory)); 271var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 292var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 307var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake cli !& (shim)^,;=+[]{}~@")); 325var emptyPathDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-path")); 332var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 350var appHostDirectory = Path.Combine(workspace.Path, "FileApp"); 352var appHostFile = Path.Combine(appHostDirectory, "apphost.cs"); 373var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 424var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "selected cli")); 425var captureFile = Path.Combine(workspace.Path, "aspire-args.txt"); 461var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "selected cli")); 462var captureFile = Path.Combine(workspace.Path, "dnx-args.txt"); 504var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "native aspire")); 505var captureFile = Path.Combine(workspace.Path, "aspire-native-args.txt"); 544var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake cli !& (shim)^,;=+[]{}~@")); 545var captureFile = Path.Combine(workspace.Path, "aspire-args.txt"); 581var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 582var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 597var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 604var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 630var staleCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "stale-cli")); 636var dnxDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, dnxDirectoryName)); 641var aspireHome = Path.Combine(workspace.Path, aspireHomeDirectoryName); 681File.Move(bundle.DashboardPath, Path.Combine(managedDir, Path.GetFileName(bundle.DashboardPath))); 712var managedPath = Path.Combine(managedDir, OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"); 718expectedDashboardPath = Path.Combine(managedDir, Path.GetFileName(bundle.DashboardPath)); 751Path.Combine(workspace.Path, "cli $HOME `aspire-test-command`")); 753var aspireHome = Path.Combine(workspace.Path, "empty-aspire-home"); 775var selectedCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "selected-cli")); 777var staleCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "stale-cli")); 780var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 806var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "native%ASPIRE_TEST_LITERAL%")); 808var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 824Assert.False(Directory.Exists(Path.Combine(workspace.Path, "nativeexpanded"))); 832var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 835var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 861var fakeCommandDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-command")); 863var commandShimPath = Path.Combine(fakeCommandDirectory.FullName, "aspire.cmd"); 869var childPidPath = Path.Combine(workspace.Path, "child.pid"); 871var projectPath = Path.Combine(workspace.Path, "RunAspireCliCommand.proj"); 929var commandPath = Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "hang.cmd" : "hang"); 998var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1000var environmentAspireHome = Path.Combine(workspace.Path, "environment-aspire-home"); 1001var propertyAspireHome = Path.Combine(workspace.Path, "property-aspire-home"); 1015Assert.False(Directory.Exists(Path.Combine(propertyAspireHome, "bundle"))); 1023var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1049var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1050var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1065var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1066var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1081var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1082var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1097var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1098var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1113var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1114var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1129var emptyPathDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-path")); 1143var projectDirectory = Path.Combine(workspace.Path, "AppHost"); 1149await File.WriteAllTextAsync(Path.Combine(projectDirectory, "AppHost.csproj"), 1189var projectDirectory = Path.Combine(workspace, "AppHost"); 1193var projectFile = Path.Combine(projectDirectory, "AppHost.csproj"); 1224await File.WriteAllTextAsync(Path.Combine(projectDirectory, "Program.cs"), """ 1299var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1315var aspirePath = Path.Combine(fakeCliDirectory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1354File.WriteAllText(Path.Combine(bundle.DcpDirectory, OperatingSystem.IsWindows() ? "dcp.exe" : "dcp"), ""); 1364var bundleRoot = Path.Combine(layoutRoot, "bundle"); 1365var dcpDirectory = Path.Combine(bundleRoot, "dcp"); 1366var dashboardDirectory = Path.Combine(bundleRoot, "dashboard"); 1367var dashboardPath = Path.Combine(dashboardDirectory, OperatingSystem.IsWindows() ? "Aspire.Dashboard.exe" : "Aspire.Dashboard"); 1373var aspirePath = Path.Combine(fakeCliDirectory, $"aspire{extension}"); 1409var dnxPath = Path.Combine(fakeCliDirectory, OperatingSystem.IsWindows() ? "dnx.cmd" : "dnx"); 1414await File.WriteAllTextAsync(Path.Combine(fakeSdkDirectory.FullName, "dotnet.dll"), ""); 1464await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "fail-version"), ""); 1478var aspirePath = Path.Combine(fakeCliDirectory, "aspire.exe"); 1489File.Copy(sourcePath, Path.Combine(destinationDirectory, Path.GetFileName(sourcePath)), overwrite: true); 1492return Path.Combine(destinationDirectory, Path.GetFileName(fakeCommandHostPath)); 1497var captureFile = Path.Combine(workingDirectory, $"{command}-shadow-invoked.txt"); 1501Path.Combine(workingDirectory, $"{command}.cmd"), 1516await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), $$""" 1528var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1544await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), $$""" 1557var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1578await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), """ 1591var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1608await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), """ 1625var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1646await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), """ 1662var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1764=> OperatingSystem.IsWindows() ? Path.Combine(Path.GetDirectoryName(dnxPath)!, "dotnet.exe") : dnxPath; 1890return executableNames.Any(executableName => File.Exists(Path.Combine(directory.Trim().Trim('"'), executableName))); 1999while (directory is not null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
Aspire.Hosting.Seq.Tests (2)
AddSeqTests.cs (1)
160Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
SeqFunctionalTests.cs (1)
98bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data");
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
261var path = Path.Combine(source, dir);
Aspire.Hosting.Tasks (13)
CommandPathResolver.cs (1)
36var candidate = Path.Combine(directory, executableName);
ResolveAspireCliBundle.cs (11)
217if (TryResolveBundleRoot(Path.Combine(fullPath, BundleDirectoryName), out resolution)) 229var dcpDir = Path.Combine(bundleRoot, "dcp"); 230var dcpPath = Path.Combine(dcpDir, IsWindows() ? "dcp.exe" : "dcp"); 231var managedDir = Path.Combine(bundleRoot, "managed"); 232var managedPath = Path.Combine(managedDir, IsWindows() ? "aspire-managed.exe" : "aspire-managed"); 238var dashboardDir = Path.Combine(bundleRoot, "dashboard"); 239var dashboardPath = Path.Combine(dashboardDir, IsWindows() ? "Aspire.Dashboard.exe" : "Aspire.Dashboard"); 250dashboardPath = Path.Combine(managedDir, IsWindows() ? "Aspire.Dashboard.exe" : "Aspire.Dashboard"); 363var versionsRoot = Path.Combine(layoutPath, VersionsDirectoryName); 459var sidecarPath = Path.Combine(cliDirectory, InstallSidecarFileName); 486? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".aspire")
ResolveAspireCliInvocation.cs (1)
122var dotnetPath = Path.Combine(dotnetRoot, "dotnet.exe");
Aspire.Hosting.Testing (1)
src\Shared\LaunchProfiles\LaunchSettingsReader.cs (1)
21? Path.Combine("Properties", "launchSettings.json")
Aspire.Hosting.Testing.Tests (6)
TestingBuilderTests.cs (1)
59var appHostAssembly = Assembly.LoadFrom(Path.Combine(AppContext.BaseDirectory, testProjectAssemblyPath));
tests\Aspire.Hosting.TestUtilities\Utils\MSBuildUtils.cs (2)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
72var uniqueFolder = Path.Combine(baseDcpLogFolder, folderName);
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
Aspire.Hosting.Tests (439)
ApplicationModel\Docker\DockerfileBuildAnnotationTests.cs (14)
73var dockerfilePath = Path.Combine(Path.GetTempPath(), $"Dockerfile.{Guid.NewGuid()}"); 103var dockerfilePath = Path.Combine(Path.GetTempPath(), $"Dockerfile.{Guid.NewGuid()}"); 139var dockerfilePath = Path.Combine(Path.GetTempPath(), $"Dockerfile.{Guid.NewGuid()}"); 179var dockerfilePath = Path.Combine(Path.GetTempPath(), $"Dockerfile.{Guid.NewGuid()}"); 222var dockerfilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "Dockerfile"); 223var differentCasingDockerfilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "DOCKERFILE"); 242var contextPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app"); 243var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "out"); 247var dockerfilePath = Path.Combine(outputPath, "Dockerfile"); 261await File.WriteAllTextAsync(Path.Combine(contextPath, ".dockerignore"), "secrets\n"); 272var contextPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app"); 273var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "out"); 277var dockerfilePath = Path.Combine(outputPath, "Dockerfile"); 279await File.WriteAllTextAsync(Path.Combine(contextPath, ".dockerignore"), "secrets\n");
AspireStoreTests.cs (1)
69Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"), store.BasePath);
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (4)
1617producerUdsPath: Path.Combine(baseDir, $"{pseudoId}.dcp.sock"), 1618consumerUdsPath: Path.Combine(baseDir, $"{pseudoId}.host.sock"), 1619controlUdsPath: Path.Combine(baseDir, $"{pseudoId}.ctrl.sock"), 1620metadataPath: Path.Combine(baseDir, $"{pseudoId}.metadata.json"));
Backchannel\AuxiliaryBackchannelTests.cs (6)
661var realDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "real")); 662var symlinkDirectory = Path.Combine(tempRoot.FullName, "link"); 665var appHostFileViaSymlink = Path.Combine(symlinkDirectory, "apphost.cs"); 695var appHostFile = new FileInfo(Path.Combine(tempRoot.FullName, "AppHost.cs")); 697var differentlyCasedPath = Path.Combine(tempRoot.FullName, "APPHOST.CS"); 727var appHostFile = Path.Combine(tempRoot.FullName, "apphost.cs");
Backchannel\GetTerminalInfoAsyncTests.cs (5)
339var producer = Path.Combine(baseDir, $"{pseudoId}.dcp.sock"); 340var consumer = Path.Combine(baseDir, $"{pseudoId}.host.sock"); 346: Path.Combine(baseDir, $"{pseudoId}.ctrl.sock"); 347var metadata = Path.Combine(baseDir, $"{pseudoId}.metadata.json"); 393var socketPath = Path.Combine(dir, "ctrl.sock");
Cli\ProcessStartTimeHelperTests.cs (2)
114var statDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, pid.ToString(CultureInfo.InvariantCulture))); 118File.WriteAllText(Path.Combine(statDirectory.FullName, "stat"), $"{pid} (proc name) {string.Join(' ', fields)}");
Dashboard\DashboardEventHandlersTests.cs (12)
570var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 571var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 659var dashboardExe = Path.Combine(tempDir, "Aspire.Dashboard.exe"); 660var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 661var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 728var dashboardExe = Path.Combine(tempDir, "Aspire.Dashboard"); 729var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 730var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 797var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 798var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 862var dashboardExecutable = Path.Combine(tempDir.FullName, executableName); 891var dashboardDll = Path.Combine(tempDirectory.FullName, "Aspire.Dashboard.dll");
Dashboard\DashboardResourceTests.cs (1)
41var dashboardPath = Path.Combine(dashboardDirectory.FullName, "dashboard");
Dashboard\DashboardServiceDataTerminalTests.cs (4)
174producerUdsPath: Path.Combine(baseDir, $"{pseudoId}.dcp.sock"), 175consumerUdsPath: Path.Combine(baseDir, $"{pseudoId}.host.sock"), 176controlUdsPath: Path.Combine(baseDir, $"{pseudoId}.ctrl.sock"), 177metadataPath: Path.Combine(baseDir, $"{pseudoId}.metadata.json"));
Dashboard\DashboardServiceTests.cs (4)
1568producerUdsPath: Path.Combine(directory.Path, "producer.sock"), 1569consumerUdsPath: Path.Combine(directory.Path, "consumer.sock"), 1570controlUdsPath: Path.Combine(directory.Path, "control.sock"), 1571metadataPath: Path.Combine(directory.Path, "metadata.json"));
Dcp\DcpCliArgsTests.cs (11)
69var explicitDcpPath = Path.Combine("explicit", "dcp"); 70var explicitDashboardPath = Path.Combine("explicit", "dashboard"); 72builder.Configuration[BundleDiscovery.DcpPathEnvVar] = Path.Combine("bundle", "dcp"); 73builder.Configuration[BundleDiscovery.DashboardPathEnvVar] = Path.Combine("bundle", "dashboard"); 80Assert.Equal(Path.Combine("explicit", "ext"), dcpOptions.ExtensionsPath); 88var bundleDcpPath = Path.Combine("bundle", "dcp"); 89var bundleDashboardPath = Path.Combine("bundle", "dashboard"); 99Assert.Equal(Path.Combine(bundleDcpPath, "ext"), dcpOptions.ExtensionsPath); 107var bundleDcpPath = Path.Combine("bundle", "dcp"); 108var bundleDashboardPath = Path.Combine("bundle", "dashboard"); 118Assert.Equal(Path.Combine(bundleDcpPath, "ext"), dcpOptions.ExtensionsPath);
Dcp\DcpExecutorTests.cs (3)
7227? Path.GetFullPath(Path.Combine("test-dotnet-root", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet")) 7821var projectPath = Path.Combine("src", "app.cs"); 7867var projectPath = Path.Combine("src", "app.cs");
Dcp\DcpHostNotificationTests.cs (11)
582var terminalHostPath = Path.Combine(directory.FullName, "aspire-managed.exe"); 584File.WriteAllText(Path.Combine(directory.FullName, "conpty.dll"), ""); 585Directory.CreateDirectory(Path.Combine(directory.FullName, architectureDirectory)); 612var terminalHostPath = Path.Combine(directory.FullName, "aspire-managed.exe"); 615Directory.CreateDirectory(Path.Combine(nativeDirectory, nativeHostDirectory)); 616File.WriteAllText(Path.Combine(nativeDirectory, "conpty.dll"), ""); 642var terminalHostPath = Path.Combine(directory.FullName, "aspire-managed.exe"); 646File.WriteAllText(Path.Combine(directory.FullName, "conpty.dll"), ""); 652Directory.CreateDirectory(Path.Combine(directory.FullName, architectureDirectory)); 970var appHostDirectory = Path.Combine(Path.GetTempPath(), "aspire-apphost-test"); 1144var appHostDirectory = Path.Combine(Path.GetTempPath(), "aspire-apphost-test");
Dcp\DcpSocketTests.cs (1)
28var socketPath = Path.Combine(directory, "output.sock");
Dcp\ExecutableLaunchPlanTests.cs (1)
131var projectPath = Path.Combine("tmp", "project.csproj");
DebugSupportExtensionsTests.cs (2)
369var appPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.cs"); 383var appPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.cs");
DistributedApplicationBuilderTests.cs (32)
125Path.Combine(projectDirectory, "appsettings.json"), 141Path.Combine(projectDirectory, "appsettings.PolyglotTest.json"), 154AppHostFilePath = Path.Combine(projectDirectory, "apphost.mts") 171Path.Combine(projectDirectory, "appsettings.json"), 185AppHostFilePath = Path.Combine(projectDirectory, "apphost.mts") 213Assert.Equal(Path.Combine(projectDirectory, "aspire-output"), outputService.GetOutputDirectory()); 236Assert.Equal(Path.Combine(Environment.CurrentDirectory, "aspire-output"), outputService.GetOutputDirectory()); 498var appHostPath = Path.Combine(projectDirectory.FullName, "apphost.ts"); 511AppHostFilePath = Path.Combine(projectDirectory.FullName, "AppHost.ts"), 547var appHostPath = Path.Combine(realDirectory.FullName, "apphost.ts"); 550var symlinkDirectory = Path.Combine(projectDirectory.FullName, "link"); 552var appHostPathViaSymlink = Path.Combine(symlinkDirectory, "apphost.ts"); 588var legacyStatePath = Path.Combine(legacyDirectory, $"{environment}.json"); 600AppHostFilePath = Path.Combine(projectDirectory.FullName, "apphost.ts"), 648AppHostFilePath = Path.Combine(projectDirectory.FullName, "apphost.ts"), 673AppHostFilePath = Path.Combine(projectDirectory.FullName, "apphost.ts"), 683var currentDirectory = Path.Combine(deploymentsDirectory, currentSha); 684var legacyDirectory = Path.Combine(deploymentsDirectory, legacySha); 685var currentStatePath = Path.Combine(currentDirectory, $"{environment}.json"); 686var legacyStatePath = Path.Combine(legacyDirectory, $"{environment}.json"); 732AppHostFilePath = Path.Combine(projectDirectory.FullName, "apphost.ts"), 742var currentDirectory = Path.Combine(deploymentsDirectory, currentSha); 743var legacyDirectory = Path.Combine(deploymentsDirectory, legacySha); 744var currentStatePath = Path.Combine(currentDirectory, $"{environment}.json"); 745var legacyStatePath = Path.Combine(legacyDirectory, $"{environment}.json"); 796AppHostFilePath = Path.Combine(projectDirectory.FullName, "apphost.ts"), 806var currentDirectory = Path.Combine(deploymentsDirectory, currentSha); 807var legacyDirectory = Path.Combine(deploymentsDirectory, legacySha); 808var currentStatePath = Path.Combine(currentDirectory, $"{environment}.json"); 809var legacyStatePath = Path.Combine(legacyDirectory, $"{environment}.json"); 858AppHostFilePath = Path.Combine(projectDirectory.FullName, "apphost.ts"), 868var currentStatePath = Path.Combine(currentDirectory, $"{environment}.json");
DotnetProgramPublishingTests.cs (9)
144var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"); 323resource.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"))) 329context.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar"); 381.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "local.csproj"))); 383.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "archive.csproj"))) 387context.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "archive.tar"); 441var metadata = new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj")); 495var path = Path.Combine(workspace.WorkspaceRoot.FullName, name); 512var path = Path.Combine(workspace.WorkspaceRoot.FullName, name);
ExecutableResourceBuilderExtensionTests.cs (2)
29var expectedPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 56var expectedPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory));
MSBuildTests.cs (98)
28var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 31File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 60File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 85var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 88File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 116File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 127var appHostMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "_AppHost.ProjectMetadata.g.cs")); 128var appMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "App.ProjectMetadata.g.cs")); 155File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"), 167File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"), 182var libraryDirectory = Path.Combine(basePath, name); 185File.WriteAllText(Path.Combine(libraryDirectory, $"{name}.csproj"), 197File.WriteAllText(Path.Combine(libraryDirectory, "Class1.cs"), 209var appDirectory = Path.Combine(basePath, name); 212File.WriteAllText(Path.Combine(appDirectory, $"{name}.csproj"), 223File.WriteAllText(Path.Combine(appDirectory, "Program.cs"), 328var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, "Plain.AppHost.csproj"); 380var layoutRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "layout"); 404var layoutRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "layout"); 450var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 452var bundle = CreateFakeCliBundle(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-home")); 474var aspireHome = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"); 475var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "fake-cli")); 488var bundleRoot = Path.Combine(workspace.WorkspaceRoot.FullName, BundleDiscovery.BundleDirectoryName); 489var expectedDcpDir = EnsureTrailingSeparator(Path.Combine(bundleRoot, "dcp")); 490var expectedDashboardDir = EnsureTrailingSeparator(Path.Combine(bundleRoot, BundleDiscovery.DashboardDirectoryName)); 493Assert.Equal(Path.Combine(expectedDashboardDir, OperatingSystem.IsWindows() ? "Aspire.Dashboard.exe" : "Aspire.Dashboard"), resolvedPaths[2]); 494Assert.False(Directory.Exists(Path.Combine(aspireHome, BundleDiscovery.BundleDirectoryName))); 503var aspireHome = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"); 504var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "fake-cli")); 522Assert.False(Directory.Exists(Path.Combine(aspireHome, BundleDiscovery.BundleDirectoryName))); 523Assert.False(Directory.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, BundleDiscovery.BundleDirectoryName))); 532var aspireHome = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"); 533var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "fake-cli")); 562var aspireHome = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"); 563var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "fake-cli")); 592var aspireHome = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"); 594var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, literalSegment)); 612var bundleRoot = Path.Combine(workspace.WorkspaceRoot.FullName, BundleDiscovery.BundleDirectoryName); 613Assert.Equal(EnsureTrailingSeparator(Path.Combine(bundleRoot, BundleDiscovery.DcpDirectoryName)), resolvedPaths[0]); 614Assert.Equal(EnsureTrailingSeparator(Path.Combine(bundleRoot, BundleDiscovery.DashboardDirectoryName)), resolvedPaths[1]); 626var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, literalSegment)); 639["ASPIRE_HOME"] = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"), 654var bundle = CreateFakeCliBundle(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-home")); 690File.WriteAllText(Path.Combine(nativeCliDirectory.FullName, ".aspire-install.json"), """{"source":"dotnet-tool"}"""); 714var repoDcpDir = EnsureTrailingSeparator(Path.Combine(workspace.WorkspaceRoot.FullName, "repo-dcp")); 715var repoDashboardDir = EnsureTrailingSeparator(Path.Combine(workspace.WorkspaceRoot.FullName, "repo-dashboard")); 733Assert.Contains(Path.Combine(repoDashboardDir, "Aspire.Dashboard"), resolvedPaths[2]); 742var missingBundlePath = Path.Combine(workspace.WorkspaceRoot.FullName, "missing-bundle"); 780var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "fake-cli")); 781var dnxPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "dnx.exe" : "dnx"); 786File.Copy(Path.Combine(Environment.SystemDirectory, "where.exe"), dnxPath); 798["ASPIRE_HOME"] = Path.Combine(workspace.WorkspaceRoot.FullName, "empty-aspire-home"), 817var missingCliPath = Path.Combine(workspace.WorkspaceRoot.FullName, "missing-aspire"); 839var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 841File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.fsproj"), 899var appHostDirectory = Path.Combine(basePath, "AppHost"); 902File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 940File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 957File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"), 967File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"), 982return CreateFakeCliBundleAtLayoutRoot(Path.Combine(basePath, "layout")); 987return CreateFakeCliBundleRoot(layoutRoot, Path.Combine(layoutRoot, "bundle")); 997var dcpDir = EnsureTrailingSeparator(Path.Combine(bundleRoot, "dcp")); 998var managedDir = EnsureTrailingSeparator(Path.Combine(bundleRoot, "managed")); 999var dashboardDir = EnsureTrailingSeparator(Path.Combine(bundleRoot, BundleDiscovery.DashboardDirectoryName)); 1004File.WriteAllText(Path.Combine(dcpDir, OperatingSystem.IsWindows() ? "dcp.exe" : "dcp"), ""); 1005var managedPath = Path.Combine(managedDir, OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"); 1007var dashboardPath = Path.Combine(dashboardDir, OperatingSystem.IsWindows() ? "Aspire.Dashboard.exe" : "Aspire.Dashboard"); 1015var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 1022var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1060var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1086var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1141return executableNames.Any(executableName => File.Exists(Path.Combine(directory.Trim().Trim('"'), executableName))); 1156var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 1159File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 1188File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 1215var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 1218File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 1247File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 1268var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "MyHostingExtension"); 1271File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 1288File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 1317var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "MyHostingExtension"); 1320File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 1337File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 1366var packageOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "packages"); 1393var packageOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "packages"); 1439var packageOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "packages"); 1449var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "MyHostingExtension"); 1451var nuGetConfigPath = Path.Combine(projectDirectory, "NuGet.config"); 1495File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 1518File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 1545File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"), 1557File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"), 1582var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 1585File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 1613File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
PathLookupHelperTests.cs (50)
13var binPath = Path.Combine(workspace.WorkspaceRoot.FullName, "bin"); 17var executablePath = Path.Combine(binPath, executableName); 47var firstBinPath = Path.Combine(workspace.WorkspaceRoot.FullName, "first-bin"); 48var secondBinPath = Path.Combine(workspace.WorkspaceRoot.FullName, "second-bin"); 52var nonExecutablePath = Path.Combine(firstBinPath, "mycommand"); 56var executablePath = Path.Combine(secondBinPath, "mycommand"); 74var binPath = Path.Combine(workspace.WorkspaceRoot.FullName, "bin"); 76File.WriteAllText(Path.Combine(binPath, "mycommand"), string.Empty); 94var binPath = Path.Combine(workspace.WorkspaceRoot.FullName, "bin"); 96File.WriteAllText(Path.Combine(binPath, "mycommand.exe"), string.Empty); 111Path.Combine("/usr/bin", "mycommand") 118Assert.Equal(Path.Combine("/usr/bin", "mycommand"), result); 166Path.Combine("/first/path", "mycommand"), 167Path.Combine("/second/path", "mycommand") 174Assert.Equal(Path.Combine("/first/path", "mycommand"), result); 180var firstPath = Path.Combine("/first/path", "mycommand"); 181var secondPath = Path.Combine("/second/path", "mycommand"); 212var firstBinPath = Path.Combine(workspace.WorkspaceRoot.FullName, "first-bin"); 213var secondBinPath = Path.Combine(workspace.WorkspaceRoot.FullName, "second-bin"); 217var nonExecutablePath = Path.Combine(firstBinPath, "mycommand"); 221var executablePath = Path.Combine(secondBinPath, "mycommand"); 264var path = string.Join(';', Path.Combine("first", "bin"), Path.Combine("second", "bin")); 275var dir = Path.Combine("testdir", "bin"); 276var expectedPath = Path.Combine(dir, "mycommand"); 293var dir = Path.Combine("testdir", "bin"); 294var expectedPath = Path.Combine(dir, "code.CMD"); 312var dir = Path.Combine("testdir", "bin"); 313var exePath = Path.Combine(dir, "code.EXE"); 314var cmdPath = Path.Combine(dir, "code.CMD"); 336var dir = Path.Combine("testdir", "bin"); 337var exactPath = Path.Combine(dir, "code"); 338var cmdPath = Path.Combine(dir, "code.CMD"); 357var dir = Path.Combine("testdir", "bin"); 358var exactPath = Path.Combine(dir, "mytool"); 376var dir = Path.Combine("testdir", "bin"); 377var expectedPath = Path.Combine(dir, "code.CMD"); 395var dir = Path.Combine("testdir", "bin"); 410var dir = Path.Combine("testdir", "bin"); 411var cmdPath = Path.Combine(dir, "code.CMD"); 433Path.Combine(dir, "code.cmd") 450Path.Combine(dir, "code.cmd") 467var dir1 = Path.Combine("first", "bin"); 468var dir2 = Path.Combine("second", "bin"); 469var dir1CmdPath = Path.Combine(dir1, "code.CMD"); 470var dir2ExePath = Path.Combine(dir2, "code.EXE"); 489var dir1 = Path.Combine("first", "bin"); 490var dir2 = Path.Combine("second", "bin"); 491var dir1ExactPath = Path.Combine(dir1, "mytool"); 492var dir2ExePath = Path.Combine(dir2, "mytool.EXE");
ProjectResourceTests.cs (7)
64var projectFilePath = Path.Combine(projectDirectoryPath, "Project.csproj"); 65var propertiesDirectoryPath = Path.Combine(projectDirectoryPath, "Properties"); 66var launchSettingsFilePath = Path.Combine(propertiesDirectoryPath, "launchSettings.json"); 104var projectFilePath = Path.Combine(projectDirectoryPath, "Project.csproj"); 105var propertiesDirectoryPath = Path.Combine(projectDirectoryPath, "Properties"); 106var launchSettingsFilePath = Path.Combine(propertiesDirectoryPath, "launchSettings.json"); 1042Path.Combine(builder.AppHostDirectory, "app.cs"),
PublishAsDockerfileTests.cs (7)
220var projectPath = Path.Combine(path, "project.csproj"); 275var projectPath = Path.Combine(path, "project.csproj"); 292var projectPath = Path.Combine(path, "project.csproj"); 312var projectPath = Path.Combine(path, "project.csproj"); 335var projectPath = Path.Combine(path, "project.csproj"); 411var projectPath = Path.Combine(path, "project.csproj"); 429var projectPath = Path.Combine(path, "project.csproj");
Publishing\ContainerImageArchiveRewriterTests.cs (22)
20var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 21var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 105var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 106var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 181var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 182var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 217var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 218var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 290var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 291var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 311var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 312var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 333var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 334var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 357var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 358var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 390var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 391var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 412var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 413var destinationArchive = Path.Combine(workspace.Path, "destination.tar"); 436var sourceArchive = Path.Combine(workspace.Path, "source.tar"); 437var compressedArchive = Path.Combine(workspace.Path, "custom-extension.archive");
Publishing\DeploymentStateManagerTests.cs (1)
1206var legacyPath = Path.Combine(legacyDirectory, "production.json");
Publishing\DotnetProgramArchiveTests.cs (12)
41var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar"); 77var firstArchive = Path.Combine(firstWorkspace.WorkspaceRoot.FullName, "program.tar"); 78var secondArchive = Path.Combine(secondWorkspace.WorkspaceRoot.FullName, "program.tar"); 136var resource = AddArchiveResource(builder, workspace.WorkspaceRoot.FullName, Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar")); 182var resource = AddArchiveResource(builder, workspace.WorkspaceRoot.FullName, Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar")); 220var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar.gz"); 262var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar"); 285var blockedDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 290Path.Combine(blockedDirectory, "program.tar.gz")); 318var resource = AddArchiveResource(builder, workspace.WorkspaceRoot.FullName, Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar")); 348var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, path); 382return builder.AddProject("program", Path.Combine(workspacePath, "program.csproj"), static options => options.ExcludeLaunchProfile = true)
Publishing\PodmanSaveArgumentsTests.cs (6)
24OutputPath = Path.Combine("out", "archives"), 41OutputPath = Path.Combine("out", "archives"), 58OutputPath = Path.Combine("out", "archives") 72var outputPath = Path.Combine("out", "archives"); 95var outputPath = Path.Combine("out", "archives"); 147Assert.Contains($"--output \"{Path.Combine("out", "container-abc123.tar")}\"", arguments, StringComparison.Ordinal);
Publishing\ResourceContainerImageManagerTests.cs (28)
60var appPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.cs"); 66var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.tar.gz"); 309var tempOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "NewFolder"); // tests that the folder is created if it doesn't exist 690.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"))) 721.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"))) 754.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"))) 801.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"))) 811context.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar"); 839var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"); 852context.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar"); 893var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar.gz"); 895var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"); 982var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "program.tar.gz"); 985.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "program.csproj"))) 1033.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "app.cs"))) 1038context.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.tar"); 1074var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, fileBased ? "app.cs" : "app.csproj"); 1080context.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.tar"); 1114var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, fileBased ? "app.cs" : "app.csproj"); 1175var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, fileBased ? "app.cs" : "app.csproj"); 1210var probePath = Path.Combine(workspace.WorkspaceRoot.FullName, "properties.proj"); 1258var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, "app.csproj"); 1259var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "archive;100%.tar"); 1285var probePath = Path.Combine(workspace.WorkspaceRoot.FullName, "properties.proj"); 1554var tempSecretFile = System.IO.Path.Combine(workspace.WorkspaceRoot.FullName, ".npmrc"); 1939ctx.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "archives"); 2063ctx.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "archives"); 2130var dockerfilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "Dockerfile");
ResourceCommandServiceTests.cs (2)
1800var projectPath = Path.Combine(directoryPath, "BuildOutputProject.csproj"); 1801var programPath = Path.Combine(directoryPath, "Program.cs");
ResourceFailureLoggingTests.cs (1)
79var relativeWorkingDirectory = Path.Combine("missing-working-directories", Guid.NewGuid().ToString("N"));
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");
TerminalHostPathsTests.cs (3)
38Assert.Equal(Path.Combine(trmnlDirectory, $"{id}.{TerminalHostPaths.ControlSockPurpose}.sock"), control); 48Assert.Equal(Path.Combine(trmnlDirectory, $"{id}.{TerminalHostPaths.MetadataSuffix}"), metadata); 59Path.Combine(trmnlDirectory, $"{id}.{TerminalHostPaths.MetadataTemporarySuffix}"),
Terminals\Hex1bAspireTerminalTests.cs (1)
245await File.WriteAllTextAsync(Path.Combine(directory.Path, "working-directory-marker"), string.Empty);
Terminals\Hex1bPtySocketTests.cs (7)
32var directory = Path.Combine(root.FullName, "custom"); 63var directory = Path.Combine(root.FullName, "custom"); 79EnvironmentVariables = { [Hex1bPtySocketHelper.SocketDirectoryEnvironmentVariable] = Path.Combine(root.FullName, "child") } 117Directory.CreateDirectory(Path.Combine(root.FullName, ".aspire")); 152var directory = Directory.CreateDirectory(Path.Combine(root.FullName, "custom")); 197root.MoveTo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), root.Name)); 199_ = new UnixDomainSocketEndPoint(Path.Combine(directory, $"hex1bpty-{new string('0', 32)}.socket"));
Terminals\ResourceAspireTerminalTests.cs (3)
69var missingSocket = Path.Combine(_socketDirectory, "not-listening.sock"); 81var terminal = new ResourceAspireTerminal("resource:test:0", "test", Path.Combine(_socketDirectory, "unused.sock"), NullLogger.Instance).Handle; 149=> Path.Combine(_socketDirectory, $"{Guid.NewGuid().ToString("N")[..8]}.sock");
Terminals\TerminalKeyInputTests.cs (1)
38? await TestResourceTerminalHost.StartAsync(Path.Combine(_socketDirectory, "keys.sock"), workload)
Terminals\TerminalServiceTests.cs (1)
294options.WorkingDirectory = Path.Combine(secondDirectory, "must-not-be-used");
tests\Shared\TestFileSystemService.cs (1)
36var filePath = System.IO.Path.Combine(tempDir.FullName, resolvedName);
tests\Shared\TestInteractionFileUploadStore.cs (1)
33var filePath = Path.Combine("memory", fileId);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Utils\DotnetSdkVersionProviderTests.cs (6)
220File.WriteAllText(Path.Combine(workspace.Path, "global.json"), "{}"); 242var firstDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "First")).FullName; 243var secondDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "Second")).FullName; 244File.WriteAllText(Path.Combine(firstDirectory, "global.json"), "{}"); 245File.WriteAllText(Path.Combine(secondDirectory, "global.json"), "{}"); 267var globalJsonPath = Path.Combine(workspace.Path, "global.json");
Utils\SocketPermissionHelperTests.cs (27)
25var directory = Path.Combine(root.FullName, "custom"); 31var socketPath = Path.Combine(directory, "s.sock"); 71var socketPath = Path.Combine(directory, "occupied"); 96var directory = Path.Combine(root.FullName, "custom"); 138var directory = SocketPermissionHelper.CreateDirectory(Path.Combine(root.FullName, "custom"), repairExisting: false); 164Directory.CreateDirectory(Path.Combine(root.FullName, ".aspire")); 169Assert.ThrowsAny<IOException>(() => SocketPermissionHelper.Bind(socket, Path.Combine(directory, "s.sock"))); 191var target = Directory.CreateDirectory(Path.Combine(root.FullName, "target")); 192Directory.CreateDirectory(Path.Combine(target.FullName, "home")); 193var link = Path.Combine(root.FullName, "homes"); 195var profile = Path.Combine(link, "home"); 225var target = Directory.CreateDirectory(Path.Combine(root.FullName, "target")); 227var link = Path.Combine(root.FullName, "base"); 274var home = Directory.CreateDirectory(Path.Combine(root.FullName, "home")); 275var profile = Path.Combine(root.FullName, "profile"); 277var target = Path.Combine(root.FullName, "target"); 280var link = Path.Combine(profile, linkedSuffix); 310var target = Path.Combine(root.FullName, "target"); 315var profile = Path.Combine(root.FullName, "profile"); 346var target = Path.Combine(root.FullName, "target"); 349Directory.CreateDirectory(Path.Combine(root.FullName, ".aspire")); 391var socketPath = Path.Combine(directory, "s.sock"); 451Assert.Equal(Path.Combine(root.FullName, "custom"), directory.FullName); 468var directory = Path.Combine(root.FullName, dcpLayout ? "aspire-dcp-test" : ".aspire/pty"); 499var target = Directory.CreateDirectory(Path.Combine(root.FullName, "target")); 500var directory = Path.Combine(target.FullName, "pty"); 503Directory.CreateSymbolicLink(Path.Combine(root.FullName, ".aspire"), target.FullName);
WithTerminalTests.cs (17)
20private string _terminalDirectory => Path.Combine(_terminalRoot, "terminals"); 513var orphanMetadataPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.MetadataSuffix}"); 514var orphanProducerPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 515var orphanConsumerPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.ConsumerSockPurpose}.sock"); 516var orphanControlPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.ControlSockPurpose}.sock"); 568var liveMetadataPath = Path.Combine(trmnlDirectory, $"{liveId}.{TerminalHostPaths.MetadataSuffix}"); 569var liveProducerPath = Path.Combine(trmnlDirectory, $"{liveId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 619var metadataPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.MetadataSuffix}"); 620var producerPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 651var metadataPath = Path.Combine(trmnlDirectory, $"{fileReplicaId}.{TerminalHostPaths.MetadataSuffix}"); 657var sentinelPath = Path.Combine(trmnlDirectory, maliciousPrefix + "-sentinel.tmp"); 786var metadataPath = Path.Combine(trmnlDirectory, $"{invalidReplicaId}.{TerminalHostPaths.MetadataSuffix}"); 787var producerPath = Path.Combine(trmnlDirectory, $"{invalidReplicaId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 816var metadataPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.MetadataSuffix}"); 817var producerPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 999var publishDirectory = Path.Combine(_terminalDirectory, "publish"); 1394var directory = Path.Combine(_terminalRoot, "custom");
WithVolumeTests.cs (2)
160var markerPath = Path.Combine(sessionPath, "marker.txt"); 166Assert.Equal("persisted", await File.ReadAllTextAsync(Path.Combine(persistentPath, "marker.txt")));
Aspire.Hosting.TestUtilities (11)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
72var uniqueFolder = Path.Combine(baseDcpLogFolder, folderName);
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Utils\DockerfileUtils.cs (1)
45var tempDockerfilePath = Path.Combine(tempContextPath, dockerfileName);
Utils\DotnetFileAppProcess.cs (1)
17var appPath = Path.Combine(directoryPath, fileName);
Utils\ManifestUtils.cs (3)
34var context = new ManifestPublishingContext(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer); 56var context = new ManifestPublishingContext(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer); 75var context = new ManifestPublishingContext(executionContext, Path.Combine(Environment.CurrentDirectory, "manifest.json"), writer);
Utils\MSBuildUtils.cs (2)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
Aspire.Hosting.Valkey.Tests (2)
AddValkeyTests.cs (1)
237Assert.Equal(Path.Combine(builder.AppHostDirectory, "myValkeydata"), volumeAnnotation.Source);
ValkeyFunctionalTests.cs (1)
87bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data");
Aspire.Hosting.Yarp.Tests (2)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
YarpConfigGeneratorTests.cs (1)
292var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml");
Aspire.Managed.Tests (13)
TerminalHostSignalTests.cs (11)
25var socketDirectory = new DirectoryInfo(Path.Combine(root.FullName, "terminals")); 26var producerPath = Path.Combine(socketDirectory.FullName, "p.sock"); 27var consumerPath = Path.Combine(socketDirectory.FullName, "h.sock"); 28var controlPath = Path.Combine(socketDirectory.FullName, "c.sock"); 99var socketDirectory = new DirectoryInfo(Path.Combine(root.FullName, "terminals")); 100var parentProducerPath = Path.Combine(socketDirectory.FullName, "pp.sock"); 101var parentConsumerPath = Path.Combine(socketDirectory.FullName, "ph.sock"); 102var parentControlPath = Path.Combine(socketDirectory.FullName, "pc.sock"); 104var producerPath = Path.Combine(socketDirectory.FullName, "p.sock"); 105var consumerPath = Path.Combine(socketDirectory.FullName, "h.sock"); 106var controlPath = Path.Combine(socketDirectory.FullName, "c.sock");
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
Aspire.Playground.Tests (3)
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
Aspire.Templates.Tests (45)
AppHostTemplateTests.cs (1)
27var projectPath = Path.Combine(project.RootDir, $"{projectId}.csproj");
BuildAndRunTemplateTests.cs (1)
93var cpmFilePath = Path.Combine(project.RootDir, "Directory.Packages.props");
LocalhostTldHostnameTests.cs (1)
70"aspire-apphost-singlefile" => Path.Combine(project.RootDir, "apphost.run.json"),
NewUpAndBuildStandaloneTemplateTests.cs (1)
110var webProjectDirectory = Path.Combine(project.RootDir, $"{project.Id}.Web");
NewUpAndBuildSupportProjectTemplatesTests.cs (2)
15var topLevelDir = Path.Combine(BuildEnvironment.TestRootPath, id + "_root"); 44project.AppHostProjectDirectory = Path.Combine(topLevelDir, id + ".AppHost");
StarterTemplateRunTestsBase.cs (1)
120string screenshotPath = Path.Combine(logPath, "webfrontend-fail.png");
TemplateTestsBase.cs (4)
71var testProjectDir = Path.Combine(rootDirToUse, testProjectName); 74var testProjectPath = Path.Combine(testProjectDir, testProjectName + ".csproj"); 111var testCsPath = Path.Combine(projectDir, "IntegrationTest1.cs"); 166string screenshotPath = Path.Combine(logPath, $"dashboard-fail-{Guid.NewGuid().ToString()[..8]}.png");
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
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";
tests\Shared\TemplatesTesting\BuildEnvironment.cs (9)
31public static readonly string TestAssetsPath = Path.Combine(AppContext.BaseDirectory, "testassets"); 32public static readonly string TestRootPath = Path.Combine(TempDir, "templates-testroot"); 90string workloadsProjString = Path.Combine("tests", "workloads.proj"); 102.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 125.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 147sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 168NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 200DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 213LogRootPath = Path.Combine(AppContext.BaseDirectory, "logs");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (4)
29? Path.Combine(Path.GetTempPath(), $"templates-${s_tmpDirSuffix}") 30: Path.Combine(AppContext.BaseDirectory, "templates"); 31_customHiveDirectory = Path.Combine(customHiveBaseDirectory, customHiveDirName); 32_stampFilePath = Path.Combine(_customHiveDirectory, ".stamp-installed");
Aspire.TerminalHost (2)
src\Shared\TerminalHost\TerminalHostPaths.cs (2)
112return Path.Combine(trmnlDirectory, $"{replicaId}.{sockPurpose}.sock"); 123return Path.Combine(trmnlDirectory, $"{replicaId}.{MetadataSuffix}");
Aspire.TerminalHost.Tests (10)
TerminalHostAppTests.cs (8)
43var dcpDir = Path.Combine(workspace.Path, "terminals"); 48var producer = Path.Combine(dcpDir, "p.sock"); 49var consumer = Path.Combine(hostDir, "r.sock"); 50var control = Path.Combine(ctrlDir, "c.sock"); 700Directory.CreateDirectory(Path.Combine(workspace.Path, ".aspire")); 706Path.Combine(parentFile, "consumer.sock"), 1255Directory.CreateDirectory(Path.Combine(workspace.Path, ".aspire")); 1260Path.Combine(parentFile, "producer.sock"), CancellationToken.None));
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
Aspire.TestTools (2)
GitHubCli.cs (2)
218var fixturePath = Path.Combine(fixtureDirectory, $"{name}{extension}"); 381fixturePath = Path.Combine(fixtureDirectory, $"{fileName}{extension}");
Aspire.TestUtilities (1)
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
Binding.UDS.IntegrationTests (2)
UDSBindingTests.cs (2)
209return Path.Combine(Path.GetTempPath(), "unix1.txt"); 214return Path.Combine(Path.GetTempPath(), "invalid.txt");
blazor-devserver (1)
Server\Program.cs (1)
45config.AddJsonFile(Path.Combine(applicationDirectory, "blazor-devserversettings.json"), optional: true, reloadOnChange: true);
CodeStyleConfigFileGenerator (3)
Program.cs (3)
68var configDir = Path.Combine(outputDir, "config"); 91var configFilePath = Path.Combine(directory.FullName, configFileName); 205var fileWithPath = Path.Combine(directory.FullName, targetsFileName);
ConfigurationSchemaGenerator.Tests (2)
GeneratorTests.cs (2)
1595var outputPath = Path.Combine(Directory.GetCurrentDirectory(), "IntegrationTest.json"); 1606var baseline = File.ReadAllText(Path.Combine("Baselines", "IntegrationTest.baseline.json")).ReplaceLineEndings();
CreateLayout (17)
Program.cs (17)
170var managedDir = Path.Combine(_outputPath, "managed"); 178var managedExePath = Path.Combine(managedPublishPath, managedExeName); 184File.Copy(managedExePath, Path.Combine(managedDir, managedExeName), overwrite: true); 198var destination = Path.Combine(managedDir, relativePath); 200File.Copy(Path.Combine(managedPublishPath, relativePath), destination, overwrite: true); 221var dashboardExePath = Path.Combine(dashboardPublishPath, dashboardExeName); 227var wwwrootPath = Path.Combine(dashboardPublishPath, "wwwroot"); 242var sqliteLibraryPath = Path.Combine(dashboardPublishPath, sqliteLibraryName); 250var dashboardDir = Path.Combine(_outputPath, "dashboard"); 270var dcpDir = Path.Combine(_outputPath, "dcp"); 282var archivePath = Path.Combine(Path.GetDirectoryName(_outputPath)!, archiveName + ".tar.gz"); 402var dcpPackagePath = Path.Combine(nugetPackages, dcpPackageName); 415var toolsPath = Path.Combine(latestVersion.Path, "tools"); 426var oldPackagePath = Path.Combine(nugetPackages, oldPackageName); 436var toolsPath = Path.Combine(latestVersion, "tools"); 459var destFile = Path.Combine(destination, Path.GetFileName(file)); 472var destDir = Path.Combine(destination, Path.GetFileName(dir));
crossgen2 (2)
parent\parent\Common\CommandLineHelpers.cs (2)
219zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 338reproPackagePath = Path.Combine(reproFileDir, Path.GetFileName(originalPath));
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
365compilerOutputPath = Path.Combine(OutputPath, compilerOutputRelativePath); 366string publishOutputPath = Path.Combine(OutputPath, publishOutputRelativePath);
csc (8)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
461var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 818var result = Path.Combine(tempPath, ".roslyn"); 826FilePath = Path.Combine(mutexDirectory, name); 827GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
182loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\Csc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, CSharpCompiler.ResponseFileName);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\StandardBuildEnvironment.cs (1)
21public string GetFullyQualifiedPath(string path) => Path.Combine(CurrentDirectory, path);
CSharpSyntaxGenerator (4)
Program.cs (4)
104var outputMainFile = Path.Combine(outputLocation.Trim('"'), $"CSharp.Generated.g4"); 144var outputMainFile = Path.Combine(outputPath, $"{prefix}.Main.Generated.cs"); 145var outputInternalFile = Path.Combine(outputPath, $"{prefix}.Internal.Generated.cs"); 146var outputSyntaxFile = Path.Combine(outputPath, $"{prefix}.Syntax.Generated.cs");
csi (1)
Csi.cs (1)
33responseFile: Path.Combine(csiDirectory, InteractiveResponseFileName),
datacollector (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
datacollector.arm64 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
dotnet (5)
Program.cs (5)
8Console.WriteLine($"13.5.0 [{Path.Combine(AppContext.BaseDirectory, "sdk")}]"); 42File.WriteAllText(Path.Combine(dcpDirectory.FullName, OperatingSystem.IsWindows() ? "dcp.exe" : "dcp"), ""); 43File.WriteAllText(Path.Combine(managedDirectory.FullName, OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"), ""); 44File.WriteAllText(Path.Combine(dashboardDirectory.FullName, OperatingSystem.IsWindows() ? "Aspire.Dashboard.exe" : "Aspire.Dashboard"), ""); 50if (File.Exists(Path.Combine(AppContext.BaseDirectory, "fail-version")))
dotnet-aot (43)
parent\dotnet\CommandFactory\CommandResolution\AppBaseDllCommandResolver.cs (1)
21var localPath = Path.Combine(SdkPaths.SdkDirectory,
parent\dotnet\CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (4)
21return new DotnetToolsCommandResolver(Path.Combine(sdkRoot, "DotnetTools")); 32_dotnetToolPath = dotnetToolPath ?? Path.Combine(SdkPaths.SdkDirectory, "DotnetTools"); 44var packageId = new DirectoryInfo(Path.Combine(_dotnetToolPath, arguments.CommandName)); 48packageId = new DirectoryInfo(Path.Combine(_dotnetToolPath, aggregatePackageId));
parent\dotnet\CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (2)
38var depsFilePath = Path.Combine(publishDirectory, $"{applicationName}.deps.json"); 48var runtimeConfigPath = Path.Combine(publishDirectory, $"{applicationName}.runtimeconfig.json");
parent\dotnet\CommandFactory\CommandResolution\WindowsExePreferredCommandSpecFactory.cs (1)
51var comSpec = Environment.GetEnvironmentVariable("ComSpec") ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
parent\dotnet\Commands\MSBuild\MSBuildForwardingApp.cs (1)
55string loggerTypeLocation = Path.Combine(SdkPaths.SdkDirectory, "dotnet.dll");
parent\dotnet\Commands\Test\MTP\ArtifactPostProcessingManager.cs (2)
146string tempDirectory = Path.Combine( 155string manifestPath = Path.Combine(tempDirectory, "manifest.json");
parent\dotnet\Commands\Test\MTP\IPC\NamedPipeServer.cs (1)
222return Path.Combine("/tmp", name);
parent\dotnet\Commands\Test\MTP\Terminal\FileUtilities.cs (1)
22string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
parent\dotnet\Commands\Test\MTP\TestApplication.cs (1)
438string path = Path.Combine(Path.GetTempPath(), $"dotnet-test-http-{Guid.NewGuid():N}.rsp");
parent\dotnet\Commands\Test\MTP\TestResultsDirectoryResolver.cs (3)
133return Path.Combine(artifactsPath, ArtifactsTestDirectoryName); 137? Path.Combine(workingDirectory, DefaultResultsDirectoryName) 215return Path.Combine(firstRoot, string.Join(Path.DirectorySeparatorChar, firstSegments, 0, shared));
parent\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (1)
38return Path.Combine(SdkPaths.SdkDirectory, VstestAppName);
parent\dotnet\Commands\Workload\Install\FileBasedManifestInstaller.cs (1)
56FileAccessRetrier.RetryOnMoveAccessFailure(() => DirectoryPath.MoveDirectory(Path.Combine(extractionPath, "data"), targetPath));
parent\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (8)
102string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, dotnetDir), "default.json"); 129var workloadSetVersionFilePath = Path.Combine(advertisedPath, Constants.workloadSetVersionFileName); 222File.WriteAllText(Path.Combine(adManifestPath, "AdvertisedManifestFeatureBand.txt"), band.ToString()); 235File.WriteAllText(Path.Combine(adManifestPath, Constants.workloadSetVersionFileName), workloadSetVersion); 297var manifestPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "WorkloadManifest.json"); 307var adManifestFeatureBandPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "AdvertisedManifestFeatureBand.txt"); 369private string GetAdvertisingManifestSentinelPath(SdkFeatureBand featureBand) => Path.Combine(_userProfileDir, $".workloadAdvertisingManifestSentinel{featureBand}"); 373internal static string GetAdvertisingWorkloadsFilePath(string userProfileDir, SdkFeatureBand featureBand) => Path.Combine(userProfileDir, $".workloadAdvertisingUpdates{featureBand}");
parent\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (2)
21.Where(band => Directory.Exists(Path.Combine(band, InstalledWorkloadDir)) && Directory.GetFiles(Path.Combine(band, InstalledWorkloadDir)).Any())
parent\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
41using RegistryKey? workloadKey = baseKey.OpenSubKey(Path.Combine(basePath, $"{sdkFeatureBand}"));
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
167var useWorkloadSets = InstallStateContents.FromPath(Path.Combine(WorkloadInstallType.GetInstallStateFolder(_currentSdkFeatureBand, UserLocalPath), "default.json")).ShouldUseWorkloadSets();
parent\dotnet\FirstRunExperience.cs (1)
64string toolPath = Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, s_toolPathSentinelFileName);
parent\dotnet\NuGetForwardingApp.cs (1)
42return Path.Combine(
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (2)
309return Path.Combine( 352string fullPath = Path.GetFullPath(Path.Combine(targetFolder.Value, fileAndPermission.Path));
parent\dotnet\SdkVulnerability\SdkReleaseMetadataCache.cs (5)
28Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, CacheDirectoryName), 52var sentinelPath = Path.Combine(_cacheDirectory, SentinelFileName); 157var tempPath = Path.Combine(_cacheDirectory, Path.GetRandomFileName()); 174var sentinelPath = Path.Combine(_cacheDirectory, SentinelFileName); 192Path.Combine(_cacheDirectory, $"{SummaryFilePrefix}{sdkVersion}.json");
parent\dotnet\Telemetry\TelemetryCommonProperties.cs (1)
73{ MachineId, _userLevelCacheWriter.RunWithCacheInFilePath(Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, $"{MachineIdCacheKey}.v1.dotnetUserLevelCache"), GetMachineId) },
parent\dotnet\ToolManifest\ToolManifestFinder.cs (1)
253string manifestFileLocation = Path.Combine(folderPath.Value, Constants.ToolManifestFileName);
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
38return Path.Combine(homePath, DotnetProfileDirectoryName);
dotnet-dev-certs (8)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
367Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
114var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 242var certPath = Path.Combine(certDir, nickname) + ".pem"; 361? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 405Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 471var certPath = Path.Combine(certDir, nickname) + ".pem"; 610if (File.Exists(Path.Combine(searchFolder, command))) 1050var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
dotnet-format (6)
Analyzers\CodeStyleInformationProvider.cs (3)
16private readonly string _featuresPath = Path.Combine(s_executingPath, "Microsoft.CodeAnalysis.Features.dll"); 17private readonly string _featuresCSharpPath = Path.Combine(s_executingPath, "Microsoft.CodeAnalysis.CSharp.Features.dll"); 18private readonly string _featuresVisualBasicPath = Path.Combine(s_executingPath, "Microsoft.CodeAnalysis.VisualBasic.Features.dll");
ReportWriter.cs (2)
41return Path.Combine(Environment.CurrentDirectory, defaultReportName); 45return Path.Combine(reportPath, defaultReportName);
Utilities\EditorConfigFinder.cs (1)
30var editorConfigPath = Path.Combine(directory.FullName, ".editorconfig");
dotnet-getdocument (5)
Commands\InvokeCommand.cs (5)
60toolsDirectory = Path.Combine( 64var executableSource = Path.Combine(toolsDirectory, InsideManName + ".exe"); 65executable = Path.Combine(targetDirectory, InsideManName + ".exe"); 84toolsDirectory = Path.Combine(thisPath, $"net{targetFramework.Version}"); 125args.Add(Path.Combine(toolsDirectory, InsideManName + ".dll"));
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
337string codePath = Path.Combine(outputDirectory, serializerName + ".cs");
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
344var filePath = Path.Combine(directory, fileName + extension); 358filePath = Path.Combine(directory, uniqueName + extension);
dotnet-razorpagegenerator (1)
Program.cs (1)
214var includeFileContent = File.ReadAllText(System.IO.Path.Combine(basePath, includeFileName));
dotnet-suggest (7)
DotnetMuxer.cs (1)
32var muxerCandidate = new FileInfo(System.IO.Path.Combine(muxerDir.FullName, muxerFileName));
DotnetProfileDirectory.cs (1)
30dotnetProfileDirectory = Path.Combine(home, DotnetProfileDirectoryName);
FileSuggestionRegistration.cs (2)
28_registrationConfigurationFilePath = Path.Combine(testDirectoryOverride, RegistrationFileName); 34_registrationConfigurationFilePath = Path.Combine(userProfile, RegistrationFileName);
GlobalToolsSuggestionRegistration.cs (2)
25? Path.Combine(directory, "tools") 44new Registration(Path.Combine(_nullableToolsShimPath, p)));
SuggestionShellScriptHandler.cs (1)
33string scriptContent = File.ReadAllText(Path.Combine(directory, scriptName));
dotnet-svcutil-lib (38)
Bootstrapper\SvcutilBootstrapper.cs (3)
117var svcutilPkgRef = ProjectDependency.FromAssembly(Path.Combine(Path.GetDirectoryName(Tool.FullPath), Tool.AssemblyName + ".dll")); 171string programFilePath = Path.Combine(this.MSBuildProj.DirectoryPath, "Program.cs"); 178var paramsFilePath = Path.Combine(this.MSBuildProj.DirectoryPath, s_bootstrapperParamsFileName);
CommandProcessorOptions.cs (4)
396Path.GetDirectoryName(this.OutputFile.FullName) : Path.GetDirectoryName(Path.Combine(Directory.GetCurrentDirectory(), this.OutputFile.OriginalPath())); 403new DirectoryInfo(Path.Combine(workingDirectory, this.UpdateServiceReferenceFolder)) : 416this.OutputDir = new DirectoryInfo(Path.Combine(workingDirectory, originalDirSpec)); 853string projFolder = Path.Combine(this.BootstrapPath.FullName, nameof(SvcutilBootstrapper));
FrameworkFork\Microsoft.CodeDom\Compiler\RedistVersionInfo.cs (1)
52dir = Path.Combine(comPlus_InstallRoot, comPlus_Version);
Metadata\MetadataDocumentLoader.cs (5)
271!isUrl && Uri.TryCreate(Path.Combine(basePath, uri), UriKind.Absolute, out serviceUri)) 490if (Uri.TryCreate(Path.Combine(basePath, schemaLocation), UriKind.Absolute, out Uri schemaFile)) 532fullFileName = Path.Combine(basePath, schemaUri.Segments[schemaUri.Segments.Length - 1]); 546fullFileName = Path.Combine(basePath, schemaLocation); 550fullFileName = Path.Combine(basePath, Path.GetFileName(schemaLocation));
Metadata\MetadataDocumentSaver.cs (2)
146var updatedLocation = Path.Combine(this.DirectoryPath, Path.GetFileName(location)); 285var filePath = Path.Combine(this.DirectoryPath, import.Location);
Metadata\MetadataFileNameManager.cs (2)
53filePath = Path.IsPathRooted(uniqueFileNameWithExtension) ? uniqueFileNameWithExtension : Path.Combine(basePath, uniqueFileNameWithExtension); 83var filePath = Path.IsPathRooted(fileNameWithExtension) ? fileNameWithExtension : Path.Combine(basePath, fileNameWithExtension);
OutputPathHelper.cs (1)
28string combinedPath = Path.Combine(directoryPath, outputFileWithExtension);
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));
Shared\Options\UpdateOptions.cs (1)
112this.OutputFile = new FileInfo(Path.Combine(optionsFileDirectory.FullName, this.OutputFile.OriginalPath()));
Shared\ProjectPropertyResolver.cs (2)
149while (dotnetDir != null && !(File.Exists(Path.Combine(dotnetDir, "dotnet")) || File.Exists(Path.Combine(dotnetDir, "dotnet.exe"))))
Shared\Utilities\PathHelper.cs (5)
61if (!isUrl && (Uri.TryCreate(Path.Combine(basePath, input), UriKind.Absolute, out var uri)) && uri.Scheme == "file") 85filePath = Path.Combine(directory.FullName, relPath); 178var directory = new DirectoryInfo(Path.Combine(parentDirInfo.FullName, directoryName)); 198directory = new DirectoryInfo(Path.Combine(parentDirInfo.FullName, directoryName + nextIndex)); 215var dstFilePath = Path.Combine(destinationDir, fileName);
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
47if (!File.Exists(Path.Combine(destinationDirectory, "global.json"))) 53if (!File.Exists(Path.Combine(destinationDirectory, "nuget.config")))
Tool.cs (1)
314var paramsFile = Path.Combine(options.OutputDir.FullName, CommandProcessorOptions.SvcutilParamsFileName);
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)));
FileUtil.cs (2)
28string temppath = Path.Combine(destinationDirectory, file.Name); 34string temppath = Path.Combine(destinationDirectory, subdir.Name);
GlobalToolTests.cs (20)
135Directory.CreateDirectory(Path.Combine(this_TestCaseOutputDir, "SvcutilBootstrapper")); 158File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.cs"), Path.Combine(this_TestCaseOutputDir, "FullFramework.cs"), true); 159File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.csproj"), Path.Combine(this_TestCaseOutputDir, "FullFramework.csproj"), true); 162var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 179this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testCaseName); 181this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 182this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{testCaseName}.log"); 183this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testCaseName); 186File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, "Program.cs"), Path.Combine(this_TestCaseOutputDir, "Program.cs"), true); 187File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, $"{testCaseName}.csproj"), Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), true); 188this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), null, CancellationToken.None); 194var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 207this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testClientFolder); 210this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 211this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{this_TestCaseName}.log"); 212this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testClientFolder); 215FileUtil.CopyDirectory(Path.Combine(g_TestCasesDir, this_TestCaseName), this_TestGroupOutputDir, true); 216this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None); 224var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 246var paramsFilePath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.params.json");
ProjectUtils.cs (5)
24var srcProgramFile = Path.Combine(projectDir, "Program.cs"); 25var dstProgramFile = Path.Combine(projectDir, $"{Path.GetFileNameWithoutExtension(filePath)}.cs"); 33FileUtil.TryDeleteDirectory(Path.Combine(Path.GetDirectoryName(filePath), "obj")); 177var outputDir = Path.Combine(project.DirectoryPath, referenceFolderName); 180var dstParamsFile = Path.Combine(outputDir, Path.GetFileName(srcParamsFile));
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));
UnitTest.cs (6)
218var wsdlFilesDstDir = Path.Combine(this_TestGroupOutputDir, "wsdl"); 222FileUtil.CopyDirectory(wsdlFilesSrcDir.Replace("$testCasesDir$", g_TestCasesDir), Path.Combine(wsdlFilesDstDir, "WcfProjectNService"), overwrite: true); 224Directory.CreateDirectory(Path.Combine(this_TestGroupOutputDir, "wsdl")); 329var jsonFileSrcPath = Path.Combine(jsonFilesRoot, jsonFile); 330var jsonFileDstPath = Path.Combine(this_TestCaseOutputDir, Path.GetFileName(jsonFileSrcPath)); 353var outJsonFile = Path.Combine(outputDir, Path.GetFileName(jsonFileSrcPath));
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
41string combinedPath = Path.Combine(directoryPath, outputFileWithExtension);
dotnet-user-jwts (13)
Commands\ClearCommand.cs (1)
73var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Commands\CreateCommand.cs (1)
267var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Commands\RemoveCommand.cs (1)
64var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Helpers\DevJwtCliHelpers.cs (3)
116else if (!File.Exists(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile))) 118reporter.Error(Resources.FormatRemoveCommand_AppsettingsFileNotFound_Error(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile))); 138var fileBasedAppLaunchSettingsFilePath = Path.Combine(projectDirectory, Path.GetFileNameWithoutExtension(project) + ".run.json");
Helpers\JwtStore.cs (1)
17_filePath = Path.Combine(Path.GetDirectoryName(PathHelper.GetSecretsPathFromSecretsId(userSecretsId)), FileName);
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
25projectPath = Path.Combine(_directory, projectPath);
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (5)
57var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 141var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 241Path.Combine(AppContext.BaseDirectory, "assets"), 252searchPaths.Insert(1, Path.Combine(assemblyDir, "assets")); 257var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists);
dotnet-user-secrets (6)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
25projectPath = Path.Combine(_directory, projectPath);
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (5)
57var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 141var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 241Path.Combine(AppContext.BaseDirectory, "assets"), 252searchPaths.Insert(1, Path.Combine(assemblyDir, "assets")); 257var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists);
dotnet-watch (7)
Program.cs (4)
122project = new ProjectRepresentation(projectPath: null, entryPointFilePath: Path.GetFullPath(Path.Combine(workingDirectory, options.FilePath))); 170entryPointPath = Path.GetFullPath(Path.Combine(workingDirectory, firstArg)); 191projectPath = Path.GetFullPath(Path.Combine(workingDirectory, projectPath)); 384var loadedAssembly = context.LoadFromAssemblyPath(Path.Combine(roslynPath, assembly.Name + ".dll"));
Watch\MsBuildFileSetFactory.cs (3)
190Path.Combine(AppContext.BaseDirectory, "assets"), 191Path.Combine(assemblyDir, "assets"), 196var targetPath = searchPaths.Select(p => Path.Combine(p, WatchTargetsFileName)).FirstOrDefault(File.Exists);
DotnetTool.AppHost (1)
AppHost.cs (1)
84.WithWorkingDirectory(Path.Combine(Projects.DotnetTool_AppHost.ProjectPath, "IncompatibleSdk"));
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);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
437path = Path.Combine(outputDirectory, path);
ilasm (3)
Program.cs (3)
179string fullPath = Path.Combine(baseDir, path); 188fullPath = Path.Combine(includePath, path); 207string fullPath = Path.Combine(baseDir, path);
ilc (2)
parent\parent\Common\CommandLineHelpers.cs (2)
219zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 338reproPackagePath = Path.Combine(reproFileDir, Path.GetFileName(originalPath));
ILCompiler.Compiler (1)
parent\parent\Common\Compiler\CompilerTypeSystemContext.cs (1)
349candidatePath = Path.Combine(Path.GetDirectoryName(peFilePath), Path.GetFileName(candidatePath));
ILCompiler.Diagnostics (3)
PdbWriter.cs (3)
175_pdbFilePath = Path.Combine(_pdbPath, dllNameWithoutExtension + ".pdb"); 187_tempSourceDllName = Path.Combine(Path.GetDirectoryName(dllPath), dllNameWithoutExtension + ".ni" + Path.GetExtension(dllPath)); 190_pdbFilePath = Path.Combine(_pdbPath, dllNameWithoutExtension + ".ni.pdb");
ILCompiler.ReadyToRun (7)
Compiler\ReadyToRunCodegenCompilation.cs (1)
474string standaloneMsilOutputFile = Path.Combine(outputDirectory, relativeMsilPath);
ObjectWriter\SymbolFileBuilder.cs (2)
30Console.WriteLine("Emitting PDB file: {0}", Path.Combine(pdbPath, Path.GetFileNameWithoutExtension(dllFileName) + ".ni.pdb")); 60string perfMapFileName = Path.Combine(perfMapPath, Path.GetFileNameWithoutExtension(dllFileName) + perfMapExtension);
parent\parent\Common\Compiler\CompilerTypeSystemContext.cs (1)
349candidatePath = Path.Combine(Path.GetDirectoryName(peFilePath), Path.GetFileName(candidatePath));
PortableCallHelpers\PortableCallHelpersGenerator.cs (3)
122WriteIfDifferent(Path.Combine(options.OutputDirectory, PInvokeFileName), log, 125WriteIfDifferent(Path.Combine(options.OutputDirectory, ReversePInvokeFileName), log, 131WriteIfDifferent(Path.Combine(options.OutputDirectory, InterpToNativeFileName), log,
illink (11)
Infrastructure.Common (2)
CertificateManager.cs (2)
74return Path.Combine(Environment.CurrentDirectory, "wcfLocal.keychain"); 251string pemPath = Path.Combine(Path.GetTempPath(), "wcf-root-" + certificate.Thumbprint + ".pem");
Infrastructure.Tests (950)
BuildWarningPolicyTests.cs (11)
21var script = Path.Combine(workspace.Path, "evaluate.ps1"); 98File.Copy(Path.Combine(RepoRoot.Path, file), Path.Combine(root, file)); 102await File.WriteAllTextAsync(Path.Combine(root, "Directory.Build.props"), scenario == "invalid-policy" || clean ? "<Project>" : """ 121await File.WriteAllTextAsync(Path.Combine(common, "tools.ps1"), """ 133await File.WriteAllTextAsync(Path.Combine(common, "tools.sh"), """ 146await File.WriteAllTextAsync(Path.Combine(common, "build.ps1"), """ 166var commonBash = Path.Combine(common, "build.sh"); 269var harness = Path.Combine(root, "run.ps1"); 279var report = Path.Combine(root, "report.txt"); 280var bootstrap = Path.Combine(root, "bootstrap.txt");
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (23)
72var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 84Path.Combine(fixtureDirectory, "search-issue.json"), 89Path.Combine(fixtureDirectory, "create-issue.json"), 123Path.Combine(fixtureDirectory, "search-issue.json"), 133File.WriteAllText(Path.Combine(fixtureDirectory, "add-issue-comment.json"), "{}"); 153var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 164Path.Combine(fixtureDirectory, "search-issue.json"), 174File.WriteAllText(Path.Combine(fixtureDirectory, "reopen-issue.json"), "{}"); 175File.WriteAllText(Path.Combine(fixtureDirectory, "add-issue-comment.json"), "{}"); 195var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 206Path.Combine(fixtureDirectory, "search-issue.json"), 211Path.Combine(fixtureDirectory, "create-issue.json"), 237var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 248Path.Combine(fixtureDirectory, "search-issue.json"), 258Path.Combine(fixtureDirectory, "create-issue.json"), 285var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 431var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 530var diagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 560var queuedDiagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 586var failedDiagnosticsLog = File.ReadAllText(Path.Combine(fixtureDirectory, "diagnostics.log")); 691var fixtureDirectory = Path.Combine(_workspace.Path, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture)); 832var fixtureDirectory = Path.Combine(_workspace.Path, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture)); 988return Path.Combine(fixtureDirectory, $"{fileName}{extension}");
CreateLayout\CreateLayoutTests.cs (19)
18using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "win-x64", configuration, "1.0.0", verbose: false); 39using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false); 51var outputPath = Path.Combine(workspace.Path, "layout"); 97var filePath = Path.Combine(publishPath, relativePath); 102var outputPath = Path.Combine(workspace.Path, "layout"); 107var dashboardPath = Path.Combine(outputPath, "dashboard"); 113Assert.Equal(File.ReadAllBytes(Path.Combine(publishPath, relativePath)), File.ReadAllBytes(Path.Combine(dashboardPath, relativePath))); 122var wwwrootPath = Path.Combine(publishPath, "wwwroot"); 124var outputPath = Path.Combine(workspace.Path, "layout"); 130Assert.False(Directory.Exists(Path.Combine(outputPath, "dashboard"))); 150var outputPath = Path.Combine(workspace.Path, "layout"); 156Assert.False(Directory.Exists(Path.Combine(outputPath, "dashboard"))); 170var sqliteLibraryPath = Path.Combine(publishPath, sqliteLibraryName); 180var outputPath = Path.Combine(workspace.Path, "layout"); 186Assert.False(Directory.Exists(Path.Combine(outputPath, "dashboard"))); 195File.WriteAllText(Path.Combine(publishPath, executableName), "executable"); 196File.WriteAllText(Path.Combine(publishPath, sqliteLibraryName), "sqlite"); 197File.WriteAllText(Path.Combine(frameworkPath, "blazor.web.js"), "static asset");
DownloadFailingJobLogs\DownloadFailingJobLogsFixture.cs (1)
20DotNetPath = Path.Combine(RepoRoot.Path, "dotnet.sh");
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (4)
45var fixtureDirectory = Path.Combine(_workspace.Path, "fixtures-success"); 61var logPath = Path.Combine(_workspace.Path, "failed_job_0_Tests___Linux___Sample__Sample____Sample__linux-latest_.log"); 72var fixtureDirectory = Path.Combine(_workspace.Path, "fixtures-missing-artifact"); 204return Path.Combine(fixtureDirectory, $"{fileName}{extension}");
ExtractTestPartitions\ExtractTestPartitionsTests.cs (21)
31var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 37var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 56var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 62var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 77var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 83var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 101var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 104var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 119var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 126var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 144var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 151var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 167var nonExistentPath = Path.Combine(_workspace.Path, "DoesNotExist.dll"); 168var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 193var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 213var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 218var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 235var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 242var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 260var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 267var outputFile = Path.Combine(_workspace.Path, "partitions.txt");
ExtractTestPartitions\MockAssemblyBuilder.cs (2)
241var netstandardPath = Path.Combine( 250var runtimePath = Path.Combine(
GenerateTestSummary\GenerateTestSummaryToolTests.cs (20)
31var trxPath = Path.Combine(_workspace.Path, "sample.trx"); 53var trxPath = Path.Combine(_workspace.Path, "mixed.trx"); 60var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 81var trxPath = Path.Combine(_workspace.Path, "aborted.trx"); 87var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 104var trxPath = Path.Combine(_workspace.Path, "allpass.trx"); 110var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 133var trxDir = Path.Combine(_workspace.Path, "corrupt"); 135await File.WriteAllTextAsync(Path.Combine(trxDir, "broken.trx"), "this is not valid trx xml <<<"); 137var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 160var trxDir = Path.Combine(_workspace.Path, "partial"); 163Path.Combine(trxDir, "clean.trx"), 165await File.WriteAllTextAsync(Path.Combine(trxDir, "broken.trx"), "this is not valid trx xml <<<"); 167var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 187var trxDir = Path.Combine(_workspace.Path, "partial-with-failure"); 190Path.Combine(trxDir, "failed.trx"), 192await File.WriteAllTextAsync(Path.Combine(trxDir, "broken.trx"), "this is not valid trx xml <<<"); 194var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 216var trxPath = Path.Combine(_workspace.Path, "timestamped.trx"); 225var jsonPath = Path.Combine(_workspace.Path, "failed.json");
Hex1bNativePublishingTests.cs (16)
83var artifacts = Path.Combine(_workspace.Path, "artifacts"); 96WriteFile(Path.Combine(publish, file), file); 112WriteFile(Path.Combine(dashboardPublish, file), file); 126var packages = Path.Combine(_workspace.Path, "packages"); 128var layout = Path.Combine(_workspace.Path, "layout"); 145var managed = Path.Combine(layout, "managed"); 150Assert.True(File.ReadAllBytes(Path.Combine(publish, file)).SequenceEqual(File.ReadAllBytes(Path.Combine(managed, file))), file); 153var dashboard = Path.Combine(layout, "dashboard"); 158Assert.True(File.ReadAllBytes(Path.Combine(dashboardPublish, file)).SequenceEqual(File.ReadAllBytes(Path.Combine(dashboard, file))), file); 169var layout = Path.Combine(_workspace.Path, "layout"); 170var marker = Path.Combine(layout, "existing.txt"); 181"--output", layout, "--artifacts", Path.Combine(_workspace.Path, "missing-artifacts"), "--rid", rid, "--configuration", "Release"]); 198var repositoryTargets = XDocument.Load(Path.Combine(RepoRoot.Path, "Directory.Build.targets")); 317var projectPath = Path.Combine(_workspace.Path, "Publish.proj");
MicrosoftTestingPlatformTests.cs (2)
21var script = Path.Combine(workspace.Path, "evaluate.ps1"); 51var script = Path.Combine(workspace.Path, "runner-help.ps1");
NuGetConfigTests.cs (2)
36var root = XDocument.Load(Path.Combine(RepoRoot.Path, "NuGet.config")).Root!; 66var document = XDocument.Load(Path.Combine(RepoRoot.Path, "NuGet.config"));
Pipelines\ExtensionE2eRecorderStepTests.cs (5)
69var scriptPath = Path.Combine(workspace.Path, "step.ps1"); 152invocationLog = Path.Combine(workspace.Path, "invocations.log"); 153var attemptCounter = Path.Combine(workspace.Path, "install-attempts"); 199File.CreateSymbolicLink(Path.Combine(stubDirectory, "pwsh"), pwshPath); 206var stubPath = Path.Combine(directory, name);
Pipelines\ExtensionE2eWorkflow.cs (1)
19using var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, WorkflowRelativePath)));
Pipelines\ExtensionE2eWorkflowTests.cs (2)
92using var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, CallerWorkflowRelativePath))); 144using var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, relativePath)));
Pipelines\NixCliPackageTests.cs (8)
73var outputPath = Path.Combine(_workspace.Path, "versions.json"); 74var fakeBinPath = Path.Combine(_workspace.Path, "bin"); 77var curlPath = Path.Combine(fakeBinPath, "curl"); 118var outputPath = Path.Combine(_workspace.Path, "versions.json"); 119var fakeBinPath = Path.Combine(_workspace.Path, "bin"); 124var curlPath = Path.Combine(fakeBinPath, "curl"); 180var outputPath = Path.Combine(_workspace.Path, "versions.json"); 254: File.ReadAllTextAsync(Path.Combine(RepoRoot.Path, relativePath));
Pipelines\NpmCliPackageTests.cs (23)
180var testScriptPath = Path.Combine(_workspace.Path, $"{Path.GetRandomFileName()}.js"); 220var testScriptPath = Path.Combine(_workspace.Path, $"{Path.GetRandomFileName()}.js"); 249var packageJson = ReadJsonObject(Path.Combine(package.PointerPackageRoot, "package.json")); 270var readme = await File.ReadAllTextAsync(Path.Combine(package.PointerPackageRoot, "README.md")); 335var packageJson = ReadJsonObject(Path.Combine(package.RidPackageRoot, "package.json")); 355var readme = await File.ReadAllTextAsync(Path.Combine(package.RidPackageRoot, "README.md")); 572=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar))); 576var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName()); 577var nodeModulesRoot = Path.Combine(testRoot, "node_modules"); 579var pointerBinRoot = Path.Combine(pointerPackageRoot, "bin"); 584Path.Combine(pointerBinRoot, "aspire.js")); 587Path.Combine(pointerPackageRoot, "package.json"), 601await File.WriteAllTextAsync(Path.Combine(pointerBinRoot, "aspire-package-map.json"), packageMap.ToJsonString()); 608var ridBinRoot = Path.Combine(ridPackageRoot, "bin"); 612Path.Combine(ridPackageRoot, "package.json"), 620await File.WriteAllTextAsync(Path.Combine(ridBinRoot, "aspire"), "native binary stub"); 621await File.WriteAllTextAsync(Path.Combine(ridBinRoot, "aspire.exe"), "native binary stub"); 641var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName()); 642var stagingRoot = Path.Combine(testRoot, "staging"); 643var outputPath = Path.Combine(testRoot, "output"); 644var nativeBinaryPath = Path.Combine(testRoot, "native-aspire-stub"); 665Path.Combine(stagingRoot, "rid"), 666Path.Combine(stagingRoot, "pointer"));
Pipelines\ReleasePublishNugetPipelineTests.cs (1)
804=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
PowerShellScripts\AspireSkillsBundleHashTests.cs (2)
54var inputPath = Path.Combine(_workspace.Path, $"input-{lineEndings}.bin"); 150var path = Path.Combine(_workspace.Path, fileName);
PowerShellScripts\BuildTestMatrixTests.cs (69)
33var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 37Path.Combine(artifactsDir, "MyProject.tests-metadata.json"), 42var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 63var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 67Path.Combine(artifactsDir, "ProjectA.tests-metadata.json"), 72Path.Combine(artifactsDir, "ProjectB.tests-metadata.json"), 76var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 95var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 99Path.Combine(artifactsDir, "SplitProject.tests-metadata.json"), 105Path.Combine(artifactsDir, "SplitProject.tests-partitions.json"), 108var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 136var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 140Path.Combine(artifactsDir, "ClassSplitProject.tests-metadata.json"), 146Path.Combine(artifactsDir, "ClassSplitProject.tests-partitions.json"), 149var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 172var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 177Path.Combine(artifactsDir, "NoTimeouts.tests-metadata.json"), 181var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 199var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 203Path.Combine(artifactsDir, "CustomTimeouts.tests-metadata.json"), 208var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 226var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 230Path.Combine(artifactsDir, "NeedsNugets.tests-metadata.json"), 236Path.Combine(artifactsDir, "NoNugets.tests-metadata.json"), 241var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 260var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 264Path.Combine(artifactsDir, "FilterTest.tests-metadata.json"), 269Path.Combine(artifactsDir, "FilterTest.tests-partitions.json"), 272var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 290var emptyArtifactsDir = Path.Combine(_workspace.Path, "empty-artifacts"); 293var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 310var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 314Path.Combine(artifactsDir, "SplitProject.tests-metadata.json"), 322Path.Combine(artifactsDir, "SplitProject.tests-partitions.json"), 325var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 351var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 355Path.Combine(artifactsDir, "SdkProject.tests-metadata.json"), 360var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 378var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 382Path.Combine(artifactsDir, "LinuxOnly.tests-metadata.json"), 387var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 406var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 410Path.Combine(artifactsDir, "OsRestrictedSplit.tests-metadata.json"), 417Path.Combine(artifactsDir, "OsRestrictedSplit.tests-partitions.json"), 420var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 443var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 447Path.Combine(artifactsDir, "CustomRunner.tests-metadata.json"), 452var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 472var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 476Path.Combine(artifactsDir, "NoRunner.tests-metadata.json"), 480var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 498var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 502Path.Combine(artifactsDir, "SplitRunner.tests-metadata.json"), 509Path.Combine(artifactsDir, "SplitRunner.tests-partitions.json"), 512var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 534var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 538Path.Combine(artifactsDir, "ClassRunner.tests-metadata.json"), 549Path.Combine(artifactsDir, "ClassRunner.tests-partitions.json"), 552var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 577var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 581Path.Combine(artifactsDir, "DefaultProps.tests-metadata.json"), 585var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 612var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 628Path.Combine(artifactsDir, "PartialProps.tests-metadata.json"), 631var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 699var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 703Path.Combine(artifactsDir, "SplitProps.tests-metadata.json"), 710Path.Combine(artifactsDir, "SplitProps.tests-partitions.json"), 713var outputFile = Path.Combine(_workspace.Path, "matrix.json");
PowerShellScripts\DownloadNativeArchivesTests.cs (2)
169var dashboardArtifactsDir = Path.Combine(Path.GetDirectoryName(archivesDir)!, "dashboard-artifacts"); 415"-DashboardArtifactsTargetDir", $"\"{Path.Combine(Path.GetDirectoryName(archivesTargetDir)!, "dashboard-artifacts")}\"",
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (43)
39var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 42var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 66var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 69var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 92var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 95var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 116var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 119var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 142var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 145var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 169var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 172var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 200var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 203var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 238var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 241var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 265var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 268var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 282var nonExistentFile = Path.Combine(_workspace.Path, "does-not-exist.json"); 283var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 301var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 304var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 327var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 330var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 353var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 356var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 386var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 389var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 413var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 416var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 452var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 455var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 486var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 489var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 509var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 513Path.Combine(artifactsDir, "RegularProject.tests-metadata.json"), 519Path.Combine(artifactsDir, "SplitMultiOS.tests-metadata.json"), 526Path.Combine(artifactsDir, "SplitMultiOS.tests-partitions.json"), 530Path.Combine(artifactsDir, "LinuxE2E.tests-metadata.json"), 538Path.Combine(artifactsDir, "CliE2E.tests-metadata.json"), 548var canonicalFile = Path.Combine(_workspace.Path, "canonical.json"); 558var expandedFile = Path.Combine(_workspace.Path, "expanded.json"); 564var githubOutputFile = Path.Combine(_workspace.Path, "github_output.txt");
PowerShellScripts\ScanTestPartitionsFromSourceGuardTests.cs (1)
43var testsRoot = Path.Combine(RepoRoot.Path, "tests");
PowerShellScripts\SplitTestMatrixByDepsTests.cs (4)
25_githubOutputFile = Path.Combine(_workspace.Path, "github_output.txt"); 185var matrixFile = Path.Combine(_workspace.Path, "matrix.json"); 214var nonExistentFile = Path.Combine(_workspace.Path, "nonexistent.json"); 240var tempMatrixFile = Path.Combine(_workspace.Path, $"matrix_input_{Guid.NewGuid():N}.json");
PowerShellScripts\SplitTestProjectsTests.cs (10)
42var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 48var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 72var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 77var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 100var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 106var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 131var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 138var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 166var nonExistentPath = Path.Combine(_workspace.Path, "DoesNotExist.dll"); 167var outputFile = Path.Combine(_workspace.Path, "partitions.json");
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (10)
37var missing = Path.Combine(_workspace.Path, "does-not-exist"); 54var filePath = Path.Combine(_workspace.Path, "not-a-directory.txt"); 71File.WriteAllText(Path.Combine(shipping, "Aspire.Hosting.13.4.0.nupkg"), "decoy"); 84var tgz = Path.Combine(shipping, "microsoft-aspire-cli-linux-x64-13.4.0.tgz"); 100var tgz = Path.Combine(shipping, "microsoft-aspire-cli-linux-x64-13.4.0.tgz"); 118var tgz = Path.Combine(shipping, "microsoft-aspire-cli-linux-x64-13.4.0.tgz"); 137var tgz = Path.Combine(shipping, "microsoft-aspire-cli-linux-x64-13.4.0.tgz"); 163var tgz = Path.Combine(shipping, "microsoft-aspire-cli-linux-x64-13.4.0.tgz"); 187var tgzMissing = Path.Combine(shipping, "microsoft-aspire-cli-linux-x64-13.4.0.tgz"); 188var tgzBadPrefix = Path.Combine(shipping, "microsoft-aspire-cli-win-x64-13.4.0.tgz");
PowerShellScripts\WriteClassModeTestPropsTests.cs (13)
28var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 32Path.Combine(artifactsDir, "RegularProject.tests-metadata.json"), 37Path.Combine(artifactsDir, "PartitionSplitProject.tests-metadata.json"), 42Path.Combine(artifactsDir, "PartitionSplitProject.tests-partitions.json"), 46Path.Combine(artifactsDir, "ClassSplitProject.tests-metadata.json"), 50var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props"); 67var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 71Path.Combine(artifactsDir, "PartitionSplitProject.tests-metadata.json"), 76Path.Combine(artifactsDir, "PartitionSplitProject.tests-partitions.json"), 79var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props"); 94var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 98Path.Combine(artifactsDir, "Broken.tests-metadata.json"), 106var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props");
Shared\ProcessRunnerTests.cs (1)
17File.WriteAllText(Path.Combine(workspace.Path, "marker.txt"), "working directory");
Shared\RepoRoot.cs (1)
27if (File.Exists(System.IO.Path.Combine(directory.FullName, "Aspire.slnx")))
Shared\TestTrxBuilder.cs (1)
64var trxPath = Path.Combine(tempDirectory, Path.GetFileName(trxEntryPath));
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
tests\Shared\TemporaryWorkspace.cs (2)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 246var settingsPath = IOPath.Combine(aspireDir, "settings.json");
TestTriggerMap\GraphAffectedProjectsTests.cs (9)
318var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 320return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath).AffectedProjects; 325var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 327return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath); 334System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), 348var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 440var newFull = System.IO.Path.Combine(_workspace.Path, newRelativePath.Replace('/', System.IO.Path.DirectorySeparatorChar)); 445return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: baseSha, to: "HEAD", changedFilesPath: null).AffectedProjects; 450var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TestTriggerMap\SelectTestsAcceptanceTests.cs (8)
124var path = Path.Combine(NewMapDir(), "map.yml"); 809var mapPath = Path.Combine(NewMapDir(), "map.yml"); 918var mapPath = Path.Combine(NewMapDir(), "map.yml"); 1204var srcDir = Path.Combine(RepoRoot.Path, "src"); 1220if (File.Exists(baseline) && Directory.Exists(Path.Combine(polyglotRoot, name))) 1275var testsDir = Path.Combine(RepoRoot.Path, "tests"); 1285var testsDir = Path.Combine(RepoRoot.Path, "tests"); 1295var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
TestTriggerMap\SelectTestsCliTests.cs (40)
99Assert.Contains("## SelectTests", File.ReadAllText(Path.Combine(repoRoot, "summary"))); 167File.WriteAllText(Path.Combine(dir.FullName, "map.yml"), Map); 171var propsPath = Path.Combine(dir.FullName, "BeforeBuildProps.props"); 220var commentPath = Path.Combine(repoRoot, "comment.md"); 272var commentPath = Path.Combine(repoRoot, "comment.md"); 328var commentPath = Path.Combine(repoRoot, "comment.md"); 369var commentPath = Path.Combine(repoRoot, "comment.md"); 400var commentPath = Path.Combine(repoRoot, "comment.md"); 446var commentPath = Path.Combine(repoRoot, "comment.md"); 462var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 499var commentPath = Path.Combine(repoRoot, "comment.md"); 524var solution = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx")); 532var project = File.ReadAllText(Path.Combine(RepoRoot.Path, projectPath)); 575var commentPath = Path.Combine(repoRoot, "comment.md"); 618var jsonPath = Path.Combine(repoRoot, "selection.json"); 662var missing = Path.Combine(repoRoot, "does-not-exist.txt"); 856var missing = Path.Combine(repoRoot, "does-not-exist.txt"); 863var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 901var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 939var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 965var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 988var commentPath = Path.Combine(repoRoot, "comment.md"); 989var jsonPath = Path.Combine(repoRoot, "selection.json"); 1002var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 1043var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 1084var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 1122var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 1138var changed = Path.Combine(repoRoot, "changed.txt"); 1243File.WriteAllText(Path.Combine(repoRoot, "skip-patterns.txt"), "# docs\n**.md\n"); 1249var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 1257File.WriteAllText(Path.Combine(repoRoot, "skip-patterns.txt"), ".github/workflows/**\n"); 1280MapPath: Path.Combine(repoRoot, "map.yml"), 1281SlnxPath: slnxPath ?? Path.Combine(repoRoot, "Aspire.slnx"), 1294var changed = Path.Combine(repoRoot, "changed.txt"); 1310File.WriteAllText(Path.Combine(dir.FullName, "Aspire.slnx"), slnx); 1311File.WriteAllText(Path.Combine(dir.FullName, "map.yml"), map); 1314body(dir.FullName, Path.Combine(dir.FullName, "BeforeBuildProps.props"), output)); 1348var outputPath = Path.Combine(dir, "output"); 1350Environment.SetEnvironmentVariable("GITHUB_STEP_SUMMARY", Path.Combine(dir, "summary")); 1393var fullPath = Path.Combine(repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar));
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (24)
39var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 45MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 46SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 79var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 85MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 86SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 134var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 139MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 140SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 170var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 174var commentPath = System.IO.Path.Combine(fixture.Path, "comment.md"); 175var jsonPath = System.IO.Path.Combine(fixture.Path, "selection.json"); 184MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 185SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 197var summary = File.ReadAllText(System.IO.Path.Combine(fixture.Path, "summary")); 233var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 237var commentPath = System.IO.Path.Combine(fixture.Path, "comment.md"); 238var jsonPath = System.IO.Path.Combine(fixture.Path, "selection.json"); 247MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 248SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 381var changed = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 412var outputPath = System.IO.Path.Combine(_workspace.Path, "output"); 414Environment.SetEnvironmentVariable("GITHUB_STEP_SUMMARY", System.IO.Path.Combine(_workspace.Path, "summary")); 445var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TestTriggerMap\TestTriggerMapTests.cs (9)
221var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx")); 243var testsRoot = Path.Combine(RepoRoot.Path, "tests"); 249.Where(rel => File.Exists(Path.Combine(RepoRoot.Path, rel))) 371var testsYml = File.ReadAllText(Path.Combine(workflowsDir, "tests.yml")); 373bool WorkflowExists(string file) => File.Exists(Path.Combine(workflowsDir, file)); 1394Assert.True(File.Exists(Path.Combine(RepoRoot.Path, s_map.Prefilter.PatternsFile!)), 1563Path.Combine(RepoRoot.Path, "tests"), "*.csproj", SearchOption.AllDirectories) 1637var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx"); 1653var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx");
TypeScriptApiCompat\TypeScriptApiCompatTests.cs (14)
126var baselineRoot = Path.Combine(workspace.Path, "baseline"); 127var currentRoot = Path.Combine(workspace.Path, "current"); 197var suppressionPath = Path.Combine(workspace.Path, "Pkg.tscompat.suppression.txt"); 240var currentSuppressions = ApiCompatSuppressionLoader.Load(Path.Combine(workspace.Path, "current")); 241var baselineSuppressions = ApiCompatSuppressionLoader.Load(Path.Combine(workspace.Path, "baseline")); 253var baselineRoot = Path.Combine(workspace.Path, "baseline"); 254var currentRoot = Path.Combine(workspace.Path, "current"); 255var reportPath = Path.Combine(workspace.Path, "report.md"); 289var baselineRoot = Path.Combine(workspace.Path, "baseline"); 290var currentRoot = Path.Combine(workspace.Path, "current"); 291var reportPath = Path.Combine(workspace.Path, "report.md"); 292var excludedPackagesPath = Path.Combine(workspace.Path, "excluded-packages.txt"); 293var suppressionPath = Path.Combine(workspace.Path, "Excluded.tscompat.suppression.txt"); 330File.WriteAllText(Path.Combine(apiDirectory, $"{packageName}.ats.txt"), content);
WorkflowScripts\AgenticWorkflowTests.cs (3)
32var metadataLine = File.ReadLines(Path.Combine(s_workflowsPath, compiledName)).First(); 45var maintenanceHeader = File.ReadLines(Path.Combine(s_workflowsPath, "agentics-maintenance-microsoft-aspire.dev.yml")).First(); 171var content = File.ReadAllText(Path.Combine(s_workflowsPath, fileName)).ReplaceLineEndings("\n");
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (482)
24Path.Combine(RepoRoot.Path, ValidationScriptRelativePath)); 26Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath)); 28Path.Combine(RepoRoot.Path, IssueScriptRelativePath)); 30Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath)); 68var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 69var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 70var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 98["GITHUB_OUTPUT"] = Path.Combine(_workspace.Path, "github-output"), 266var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 267var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 272Path.Combine(RepoRoot.Path, HistoryScriptRelativePath), 273Path.Combine(workflowDirectory, Path.GetFileName(HistoryScriptRelativePath))); 275Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath), 276Path.Combine(workflowDirectory, Path.GetFileName(CandidatesScriptRelativePath))); 277var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 286["GITHUB_OUTPUT"] = Path.Combine(_workspace.Path, "github-output"), 311var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 312var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 354Path.Combine(fakeBinDirectory, "git"), 362Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 363Path.Combine(workflowDirectory, Path.GetFileName(PersistenceScriptRelativePath))); 365var githubOutputPath = Path.Combine(_workspace.Path, "github-output"); 434var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 435var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 445var githubOutputPath = Path.Combine(_workspace.Path, "github-output"); 453["GH_CALL_LOG"] = Path.Combine(_workspace.Path, "gh-calls.log"), 464var ghCalls = await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")); 509var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 510var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 512var githubOutputPath = Path.Combine(_workspace.Path, "github-output"); 513var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 573var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 574var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 576var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 586["GITHUB_OUTPUT"] = Path.Combine(_workspace.Path, "github-output"), 652var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 653var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 662var githubOutputPath = Path.Combine(_workspace.Path, "github-output"); 663var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 699var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 735var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 749var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 770var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 787var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 806Path.Combine(priorCausesDirectory, "nuget-timeout.json"), 809var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 828Path.Combine(priorCausesDirectory, "flaky-failure.json"), 831var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 852var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 884var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 911var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 943var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 962var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 995var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1030var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1058var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1079var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1100var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1119var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1139var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1159var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1182var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1201var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1224var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1256var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1289var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1325var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1344var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1365var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1414var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1449var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1496var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1526var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1546var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1605var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1621var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1644var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1675var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1711var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1738var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1761Path.Combine(priorCausesDirectory, "nuget-timeout.json"), 1771var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1790var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1810var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1835var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1877var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 1878var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 1885Path.Combine(RepoRoot.Path, CommentScriptRelativePath), 1904var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 1905var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 1935Path.Combine(RepoRoot.Path, CommentScriptRelativePath), 1950var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 1951var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 1993Path.Combine(RepoRoot.Path, CommentScriptRelativePath), 2149var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 2200var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 2223var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 2242var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 2270var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 2291var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 2324var causePath = Path.Combine(_workspace.Path, "main-build-break.json"); 2325var runContextPath = Path.Combine(_workspace.Path, "run-context.json"); 2326var lastSuccessfulRunPath = Path.Combine(_workspace.Path, "last-successful-main-run.json"); 2327var triggeringMergePath = Path.Combine(_workspace.Path, "triggering-merge-pr.json"); 2328var candidateHistoryStatusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 2329var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 2330var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 2342Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 2407var causePath = Path.Combine(_workspace.Path, "main-build-break.json"); 2408var runContextPath = Path.Combine(_workspace.Path, "run-context.json"); 2409var lastSuccessfulRunPath = Path.Combine(_workspace.Path, "last-successful-main-run.json"); 2410var triggeringMergePath = Path.Combine(_workspace.Path, "triggering-merge-pr.json"); 2411var candidateHistoryStatusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 2412var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 2413var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 2427Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 2487var causePath = Path.Combine(_workspace.Path, "flaky-failure.json"); 2488var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 2489var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 2505Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 2803Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 2804Path.Combine(workflowDirectory, Path.GetFileName(PersistenceScriptRelativePath))); 2806Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 2808Path.Combine(failureDataDirectory, "run-context.json"), 2810await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "failed-jobs.json"), "[]"); 2812Path.Combine(failureDataDirectory, "last-successful-main-run.json"), 2815Path.Combine(failureDataDirectory, "triggering-merge-pr.json"), 2818Path.Combine(failureDataDirectory, "candidate-merge-history-status.json"), 2821Path.Combine(failureDataDirectory, "candidate-merges.json"), 2839Path.Combine(failureDataDirectory, "analysis-summary.md")); 3033var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3039var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3042Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3055var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3061var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3064Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3086var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3091var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3094Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3106var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3111var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3114Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3126var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3131var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3135Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3158var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3170var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3173Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3185var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3190var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3193Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3205var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 3214var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 3217Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3229var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3243var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3258Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3279var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3300var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3314Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3339var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3341var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3353Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3370var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3382var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3394Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3415var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3443var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3465Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3490var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3492var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3506Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3526var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3528var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3542Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3562var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3564var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3578Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3598var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 3612var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3631Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3651var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3653Path.Combine(testResultsDirectory.FullName, "00001.trx"), 3670var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3676var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3679Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3700var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3702Path.Combine(testResultsDirectory.FullName, "00001.json"), 3713var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3717var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3720Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3742var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3744Path.Combine(testResultsDirectory.FullName, "00001.json"), 3755var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3759var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3762Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3780var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3782Path.Combine(testResultsDirectory.FullName, "00001.json"), 3799var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3803var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3806Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3824var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3826var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3830var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3833Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3851var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3853Path.Combine(testResultsDirectory.FullName, "00001.json"), 3856var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3860var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3863Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3885var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3887Path.Combine(testResultsDirectory.FullName, "00001.trx"), 3896Path.Combine(testResultsDirectory.FullName, "00002.trx"), 3898var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3902var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3905Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3926var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3928Path.Combine(testResultsDirectory.FullName, "00001.trx"), 3930var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3934var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3937Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3958var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3959await File.WriteAllTextAsync(Path.Combine(testResultsDirectory.FullName, "results.xml"), "<TestRun />"); 3960var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 3964var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 3967Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 3988var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 3990Path.Combine(testResultsDirectory.FullName, "00001.trx"), 3998var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 4002var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 4005Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 4037var openIssuesPath = Path.Combine(_workspace.Path, "open-issues.json"); 4038var closedIssuesPath = Path.Combine(_workspace.Path, "closed-issues.json"); 4043Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 4080Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 4108Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 4130Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 4145var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 4156var openIssuesPath = Path.Combine(_workspace.Path, "open-issues.json"); 4157var closedIssuesPath = Path.Combine(_workspace.Path, "closed-issues.json"); 4160Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 4224var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4225var gitCallLog = Path.Combine(_workspace.Path, "git-calls.log"); 4227Path.Combine(fakeBinDirectory, "gh"), 4230Path.Combine(fakeBinDirectory, "git"), 4244["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4245["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 4266Path.Combine(causesDirectory, "nuget-timeout.json"), 4268var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4269var tempDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "temp")).FullName; 4270var ghCallLog = Path.Combine(_workspace.Path, "gh-calls.log"); 4272Path.Combine(fakeBinDirectory, "gh"), 4284Path.Combine(fakeBinDirectory, "git"), 4295["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4296["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 4325var analysisDirectory = Path.Combine(_workspace.Path, "ci-analysis-output"); 4326var causesDirectory = Directory.CreateDirectory(Path.Combine(analysisDirectory, "causes")).FullName; 4327var failureDataDirectory = Path.Combine(_workspace.Path, "ci-failure-data"); 4332Path.Combine(analysisDirectory, "analysis-result.json"), 4335Path.Combine(causesDirectory, "main-failure.json"), 4338Path.Combine(failureDataDirectory, "run-context.json"), 4341Path.Combine(failureDataDirectory, "last-successful-main-run.json"), 4344Path.Combine(failureDataDirectory, "triggering-merge-pr.json"), 4347Path.Combine(failureDataDirectory, "candidate-merge-history-status.json"), 4350var currentBodyPath = Path.Combine(_workspace.Path, "current-issue-body.md"); 4351var storedCausePath = Path.Combine(_workspace.Path, "stored-main-cause.json"); 4352var editedBodyPath = Path.Combine(_workspace.Path, "edited-issue-body.md"); 4353var editedTitlePath = Path.Combine(_workspace.Path, "edited-issue-title.txt"); 4354var editedLabelsPath = Path.Combine(_workspace.Path, "edited-issue-labels.txt"); 4410var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4412Path.Combine(fakeBinDirectory, "git"), 4426Path.Combine(fakeBinDirectory, "gh"), 4478["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4479["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 4523var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4524var ghCallLog = Path.Combine(_workspace.Path, "gh-calls.log"); 4526Path.Combine(fakeBinDirectory, "gh"), 4543["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4544["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 4561var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4562var tempDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "temp")).FullName; 4563var ghCallLog = Path.Combine(_workspace.Path, "gh-calls.log"); 4565Path.Combine(fakeBinDirectory, "gh"), 4583["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4584["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 4603var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4604var ghCallLog = Path.Combine(_workspace.Path, "gh-calls.log"); 4606Path.Combine(fakeBinDirectory, "gh"), 4625["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4626["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 4644var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4645var tempDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "temp")).FullName; 4646var ghCallLog = Path.Combine(_workspace.Path, "gh-calls.log"); 4647var prLookupCountPath = Path.Combine(_workspace.Path, "pr-lookup-count"); 4649Path.Combine(fakeBinDirectory, "gh"), 4680["GH_AW_AGENT_OUTPUT"] = Path.Combine(_workspace.Path, "output.json"), 4681["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"), 5130Path.Combine(_workspace.Path, "last-success.json")); 5133using var output = JsonDocument.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "last-success.json"))); 5136Assert.Contains("per_page=100", await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "gh-calls.log")), StringComparison.Ordinal); 5138await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 5164var outputPath = Path.Combine(_workspace.Path, "last-success.json"); 5199var outputPath = Path.Combine(_workspace.Path, "last-success.json"); 5206await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 5234var outputPath = Path.Combine(_workspace.Path, "last-success.json"); 5242await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 5264Path.Combine(_workspace.Path, "last-success.json")); 5282Path.Combine(_workspace.Path, "last-success.json")); 5309Path.Combine(_workspace.Path, "last-success.json")); 5312using var output = JsonDocument.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "last-success.json"))); 5314Assert.True(int.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "gh-call-count"))) >= 2); 5316(await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log"))) 5343Path.Combine(_workspace.Path, "last-success.json")); 5346using var output = JsonDocument.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "last-success.json"))); 5348Assert.Equal(2, int.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "gh-call-count")))); 5351(await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log"))) 5364Path.Combine(_workspace.Path, "last-success.json")); 5377var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5378var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5398var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5399var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5442var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5443var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5491var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5492var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5503var ghCalls = await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")); 5551var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5552var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5563await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 5592var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5593var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5636var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5637var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5676var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 5677var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 5719var outputPath = Path.Combine(_workspace.Path, "persisted-main.json"); 5777var outputPath = Path.Combine(_workspace.Path, $"persisted-{historyState}.json"); 5818var outputPath = Path.Combine(_workspace.Path, "persisted-pr.json"); 5871var outputPath = Path.Combine(_workspace.Path, "persisted-pr.json"); 5903var outputPath = Path.Combine(_workspace.Path, "persisted-pr.json"); 5922var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 5924Path.Combine(failureDataDirectory, "run-context.json"), 5926var causeFile = Path.Combine(_workspace.Path, "cause.json"); 5932Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 5948var newCausePath = Path.Combine(_workspace.Path, "new-cause.json"); 5949var existingCausePath = Path.Combine(_workspace.Path, "existing-cause.json"); 5950var outputPath = Path.Combine(_workspace.Path, "merged-cause.json"); 5959Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 5976var causePath = Path.Combine(_workspace.Path, "prior-cause.json"); 5993Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6012var metadataPath = Path.Combine(_workspace.Path, "metadata.json"); 6026Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6044var diagnosticsPath = Path.Combine(_workspace.Path, "diagnostics.json"); 6053Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6067var logPath = Path.Combine(_workspace.Path, "job.log"); 6073Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6120var inputPath = Path.Combine(_workspace.Path, "job.log"); 6121var outputPath = Path.Combine(_workspace.Path, "sanitized.log"); 6125Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6136var inputPath = Path.Combine(_workspace.Path, "job.log"); 6137var outputPath = Path.Combine(_workspace.Path, "sanitized.log"); 6143Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6156var causePath = Path.Combine(_workspace.Path, "cause.json"); 6157var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 6158var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 6164Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 6222var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 6223var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 6251Path.Combine(RepoRoot.Path, CommentScriptRelativePath), 6281var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 6282var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 6305Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6325var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 6326var canonicalBodyPath = Path.Combine(_workspace.Path, "canonical-body.md"); 6327var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 6398Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6446var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 6447var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 6464Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6499var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 6500var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 6521Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6538var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 6539var firstOutputPath = Path.Combine(_workspace.Path, "first-output.md"); 6540var secondOutputPath = Path.Combine(_workspace.Path, "second-output.md"); 6561Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6570Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6604var causePath = Path.Combine(_workspace.Path, "cause.json"); 6605var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 6606var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 6612Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 6664var causePath = Path.Combine(_workspace.Path, "cause.json"); 6665var runContextPath = Path.Combine(_workspace.Path, "run-context.json"); 6666var lastSuccessfulPath = Path.Combine(_workspace.Path, "last-successful.json"); 6667var triggeringMergePath = Path.Combine(_workspace.Path, "triggering-merge.json"); 6668var candidateHistoryStatusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 6669var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 6670var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 6686Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 6713var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 6714var buildCausePath = Path.Combine(_workspace.Path, "build-cause.json"); 6715var testCausePath = Path.Combine(_workspace.Path, "test-cause.json"); 6716var multiJobCausePath = Path.Combine(_workspace.Path, "multi-job-cause.json"); 6727var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 6729Path.Combine(failureDataDirectory, "run-context.json"), 6733Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6736Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6739Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6742Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6745Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 6777var buildBodyPath = Path.Combine(_workspace.Path, "build-body.md"); 6778var buildMetadataPath = Path.Combine(_workspace.Path, "build-metadata.json"); 6779var testBodyPath = Path.Combine(_workspace.Path, "test-body.md"); 6780var testMetadataPath = Path.Combine(_workspace.Path, "test-metadata.json"); 6782Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 6798Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 6916var scriptPath = Path.Combine(RepoRoot.Path, ValidationScriptRelativePath); 6927process.StartInfo.Environment["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"); 6946var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 6947var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 6957Path.Combine(RepoRoot.Path, HistoryScriptRelativePath), 6962["GH_CALL_LOG"] = Path.Combine(_workspace.Path, "gh-calls.log"), 6963["GH_CALL_COUNT_FILE"] = Path.Combine(_workspace.Path, "gh-call-count"), 6969var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 6970var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 6980Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath), 6985["GH_CALL_LOG"] = Path.Combine(_workspace.Path, "gh-calls.log"), 7003var analysisDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-analysis-output")).FullName; 7004var causesDirectory = Directory.CreateDirectory(Path.Combine(analysisDirectory, "causes")).FullName; 7005var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 7007Path.Combine(_workspace.Path, "output.json"), 7012await File.WriteAllTextAsync(Path.Combine(analysisDirectory, "analysis-result.json"), analysis); 7013await File.WriteAllTextAsync(Path.Combine(causesDirectory, "nuget-timeout.json"), cause); 7015Path.Combine(failureDataDirectory, "run-context.json"), 7024Path.Combine(failureDataDirectory, "failed-jobs.json"), 7027Path.Combine(failureDataDirectory, "test-evidence.json"), 7030Path.Combine(failureDataDirectory, "test-failures.json"), 7034var priorCausesDirectory = Directory.CreateDirectory(Path.Combine(failureDataDirectory, "prior-causes")).FullName; 7035await File.WriteAllTextAsync(Path.Combine(priorCausesDirectory, "nuget-timeout.json"), priorCause); 7045var requestPath = Path.Combine(_workspace.Path, "rerun-request.json"); 7046var outputPath = Path.Combine(_workspace.Path, "rerun-result.json"); 7053agentOutputPath = Path.Combine(_workspace.Path, "output.json"), 7054analysisDir = Path.Combine(_workspace.Path, "ci-analysis-output"), 7076var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, $"fake-bin-{Guid.NewGuid():N}")).FullName; 7077var fakeGhPath = Path.Combine(fakeBinDirectory, "gh"); 7087Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 7088Path.Combine(workflowDirectory, Path.GetFileName(PersistenceScriptRelativePath))); 7090Path.Combine(RepoRoot.Path, CommentScriptRelativePath), 7091Path.Combine(workflowDirectory, Path.GetFileName(CommentScriptRelativePath))); 7093Path.Combine(RepoRoot.Path, IssueScriptRelativePath), 7094Path.Combine(workflowDirectory, Path.GetFileName(IssueScriptRelativePath))); 7096var analysisDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-analysis-output")).FullName; 7097var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 7099Path.Combine(analysisDirectory, "analysis-result.json"), 7102Path.Combine(failureDataDirectory, "run-context.json"), 7105Path.Combine(failureDataDirectory, "failed-jobs.json"), 7108Path.Combine(failureDataDirectory, "run.json"), 7110await File.WriteAllTextAsync(Path.Combine(_workspace.Path, "output.json"), """{"items":[]}"""); 7200var analysisDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-analysis-output")).FullName; 7201var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 7202await File.WriteAllTextAsync(Path.Combine(analysisDirectory, "analysis-result.json"), analysis); 7203await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "run-context.json"), runContext); 7204await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "run.json"), run); 7205await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "failed-jobs.json"), trustedFailedJobs); 7206await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "triggering-merge-pr.json"), triggeringMerge); 7207await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "last-successful-main-run.json"), lastSuccessfulRun); 7208await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "candidate-merges.json"), candidateMerges); 7209await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "candidate-merge-history-status.json"), candidateHistoryStatus); 7210await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "pr-metadata.json"), prMetadata); 7227Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath), 7231["CI_FAILURE_DATA_DIR"] = Path.Combine(_workspace.Path, "ci-failure-data"), 7289var analysisDirectory = Path.Combine(_workspace.Path, "ci-analysis-output"); 7290var failureDataDirectory = Path.Combine(_workspace.Path, "ci-failure-data"); 7294await File.WriteAllTextAsync(Path.Combine(analysisDirectory, "analysis-result.json"), analysis); 7295await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "run-context.json"), runContext); 7296await File.WriteAllTextAsync(Path.Combine(failureDataDirectory, "failed-jobs.json"), trustedFailedJobs); 7298Path.Combine(failureDataDirectory, "run.json"), 7301Path.Combine(failureDataDirectory, "test-evidence.json"), 7335Path.Combine(failureDataDirectory, "test-failures.json"), 7359await File.WriteAllTextAsync(Path.Combine(causesDirectory, fileName), cause); 7365var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 7376var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json"));
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (2)
2221string inputPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json"); 2256=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
WorkflowScripts\CreateFailingTestIssueWorkflowTests.cs (1)
270var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\DeploymentTestCommandTests.cs (1)
72var scriptPath = Path.Combine(workspace.Path, "permission-check.js");
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (6)
315var scriptPath = Path.Combine(RepoRoot.Path, ScriptRelativePath); 408await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("docs", "late-main.md"), "non-extension main change"); 441Path.Combine("extension", "package.json"), 451=> await WriteWorkspaceFileAsync(workingDirectory, Path.Combine("extension", "CHANGELOG.md"), content); 455var fullPath = Path.Combine(workingDirectory, relativePath); 522var workflowPath = Path.Combine(RepoRoot.Path, WorkflowRelativePath);
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (7)
549var bodyPath = Path.Combine(tempDirectory.FullName, "pr_body.md"); 568var bodyPath = Path.Combine(tempDirectory.FullName, "pr_body.md"); 589var commitsPath = Path.Combine(tempDirectory.FullName, "commits.txt"); 590var outputPath = Path.Combine(tempDirectory.FullName, "release_notes.md"); 792var binDirectory = Path.Combine(rootDirectory, "bin"); 795var callLogPath = Path.Combine(rootDirectory, "gh-call-log.txt"); 796var fakeGhPath = Path.Combine(binDirectory, "gh");
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (1)
392var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\MonitorScheduledWorkflowsTests.cs (1)
245var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\OrganizationFundedCopilotReviewsTests.cs (1)
148var scriptPath = Path.Combine(workspace.Path, "review-script.js");
WorkflowScripts\PrDocsCheckWorkflowTests.cs (3)
231var outcomeFile = Path.Combine(workspace.Path, "outcome.json"); 240var requestPath = Path.Combine(workspace.Path, "request.json"); 241var resultPath = Path.Combine(workspace.Path, "result.json");
WorkflowScripts\ReportCiFailureIntegrationTests.cs (1)
284var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportCiFailureTests.cs (1)
81var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportPipelineFailureIntegrationTests.cs (1)
290var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportPipelineFailureTests.cs (1)
139var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportSpecializedTestFailuresTests.cs (1)
228var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\SelectTestsCommentScriptTests.cs (4)
105var missingPath = Path.Combine(_workspace.Path, "does-not-exist.md"); 180var path = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.md"); 230var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json"); 231var outputPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.result.json");
WorkflowScripts\SpecializedTestFailureRunnerTests.cs (1)
228var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\SyncMainToRelease14Tests.cs (1)
100var scriptPath = Path.Combine(workspace.Path, "sync-script.js");
WorkflowScripts\TrackingIssueTests.cs (1)
286var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ValidateAgenticWorkflowsTests.cs (2)
106=> Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 116using var reader = File.OpenText(Path.Combine(RepoRoot.Path, WorkflowRelativePath));
WorkflowScripts\VerifyTelemetryHookChangesWorkflowTests.cs (3)
148var scriptPath = Path.Combine(workspace.Path, "verify-telemetry-hook-changes.ps1"); 178=> Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 205using var reader = File.OpenText(Path.Combine(RepoRoot.Path, WorkflowRelativePath));
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
101using (var depsFileStream = File.Create(Path.Combine(SharedFrameworkDirectory, $"{sharedFxName}.deps.json")))
Microsoft.Agents.AI.ProjectTemplates.Tests (12)
test\ProjectTemplates\Infrastructure\Project.cs (1)
28StartupProjectFullPath = Path.Combine(rootPath, field);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (5)
42_sandboxInstallPath = Path.Combine(_sandboxOutput, "install"); 43_sandboxProjectsPath = Path.Combine(_sandboxOutput, "projects"); 84file.CopyTo(Path.Combine(testSandbox, file.Name)); 89CopySandboxDirectory(subDir.FullName, Path.Combine(testSandbox, subDir.Name)); 95var outputFolderPath = Path.Combine(_sandboxProjectsPath, projectName);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
test\ProjectTemplates\Infrastructure\TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (2)
35TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxSource, "nuget.config"); 46var gitPath = Path.Combine(directory, ".git");
Microsoft.Analyzers.Extra.Tests (3)
Resources\FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
Resources\RoslynTestUtils.cs (2)
42refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 43refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Analyzers.Local.Tests (3)
Resources\FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
Resources\RoslynTestUtils.cs (2)
42refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 43refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Arcade.Common (2)
CommandFactory.cs (1)
75var candidate = Path.Combine(path, executable + ".exe");
FileSystem.cs (1)
31public string PathCombine(string path1, string path2) => Path.Combine(path1, path2);
Microsoft.AspNetCore (1)
HostingPathResolver.cs (1)
27return Path.GetFullPath(Path.Combine(Path.GetFullPath(basePath), contentRootPath));
Microsoft.AspNetCore.Components.Testing (11)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\StartupHook.g.cs (1)
16var candidatePath = Path.Combine(testBinDirectory, assemblyName.Name + ".dll");
Infrastructure\E2EManifest.cs (1)
22var manifestPath = Path.Combine(AppContext.BaseDirectory, $"{assemblyName}.e2e-manifest.json");
Infrastructure\ServerInstance.cs (5)
153var stdoutPath = Path.Combine(directory, $"{AppName}-{Id}.stdout.log"); 154var stderrPath = Path.Combine(directory, $"{AppName}-{Id}.stderr.log"); 169var startupPath = Path.Combine(directory, $"{AppName}-{Id}.startup.log"); 276workingDir = Path.Combine(AppContext.BaseDirectory, appEntry.WorkingDirectory); 281executable = Path.Combine(workingDir, executable);
Infrastructure\TestArtifactDirectory.cs (3)
53return Path.Combine(s_root, sanitizedTestName); 69: Path.Combine(AppContext.BaseDirectory, configuredPath); 72return Path.Combine(AppContext.BaseDirectory, DefaultFolderName);
Infrastructure\TracingSession.cs (1)
85var tracePath = Path.Combine(_artifactDir, "trace.zip");
Microsoft.AspNetCore.Components.Testing.Tasks (6)
GenerateE2EManifest.cs (6)
112entry.WorkingDirectory = Path.Combine(E2EAppsRelativeDir, name); 127? Path.Combine("publish", name) 129var relativeDir = Path.Combine(E2EAppsRelativeDir, subPath); 130var absoluteDir = Path.Combine(E2EAppsOutputDir, subPath); 135var appHostPath = Path.Combine(absoluteDir, name + exeSuffix); 136var appDllPath = Path.Combine(absoluteDir, name + ".dll");
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
402var profilePath = Path.Combine(Path.GetTempPath(), "blazor-chrome-debug"); 428var profilePath = Path.Combine(Path.GetTempPath(), "blazor-edge-debug");
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
308return Path.Combine(Path.GetDirectoryName(assembly.Location)!, $"{name}.staticwebassets.runtime.json");
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
BlazorWebView.cs (1)
186 var hostPageFullPath = Path.GetFullPath(Path.Combine(appRootDir, HostPage!)); // HostPage is nonnull because RequiredStartupPropertiesSet is checked above
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
415 var result = Path.Combine(
Microsoft.AspNetCore.Components.WebView.Wpf (3)
BlazorWebView.cs (1)
269 var hostPageFullPath = Path.GetFullPath(Path.Combine(appRootDir, HostPage));
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
415 var result = Path.Combine(
Microsoft.AspNetCore.DataProtection (2)
Repositories\FileSystemXmlRepository.cs (2)
140var tempFilename = Path.Combine(Directory.FullName, Guid.NewGuid().ToString() + ".tmp"); 141var finalFilename = Path.Combine(Directory.FullName, filename + ".xml");
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
367Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
114var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 242var certPath = Path.Combine(certDir, nickname) + ".pem"; 361? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 405Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 471var certPath = Path.Combine(certDir, nickname) + ".pem"; 610if (File.Exists(Path.Combine(searchFolder, command))) 1050var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
Microsoft.AspNetCore.Hosting (6)
Internal\HostingEnvironmentExtensions.cs (4)
30var wwwroot = Path.Combine(hostingEnvironment.ContentRootPath, "wwwroot"); 38hostingEnvironment.WebRootPath = Path.Combine(hostingEnvironment.ContentRootPath, webRoot); 81var wwwroot = Path.Combine(hostingEnvironment.ContentRootPath, "wwwroot"); 89hostingEnvironment.WebRootPath = Path.Combine(hostingEnvironment.ContentRootPath, webRoot);
StaticWebAssets\StaticWebAssetsLoader.cs (1)
78return Path.Combine(basePath!, $"{environment.ApplicationName}.staticwebassets.runtime.json");
WebHostBuilder.cs (1)
374return Path.Combine(Path.GetFullPath(basePath), contentRootPath);
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
329return Path.Combine(_path, FormattableString.Invariant($"{_fileName}{date.Year:0000}{date.Month:00}{date.Day:00}.{_fileNumber:0000}.txt"));
Microsoft.AspNetCore.InternalTesting (13)
AssemblyTestLog.cs (4)
120logOutputDirectory = Path.Combine(_baseDirectory, className); 140var testOutputFile = Path.Combine(logOutputDirectory, $"{testName}{LogFileExtension}"); 148testOutputFile = Path.Combine(logOutputDirectory, $"{testName}.{i}{LogFileExtension}"); 191var globalLogFileName = Path.Combine(baseDirectory, "global.log");
CollectDumpAttribute.cs (1)
30var path = Path.Combine(context.FileOutput.TestClassOutputDirectory, context.FileOutput.GetUniqueFileName(context.FileOutput.TestName, ".dmp"));
HelixHelper.cs (2)
20? Path.Combine(Path.GetTempPath(), uploadFileName) 21: Path.Combine(uploadRoot, uploadFileName);
TestFileOutputContext.cs (3)
43TestClassOutputDirectory = Path.Combine(AssemblyOutputDirectory, TestClassName); 64var path = Path.Combine(TestClassOutputDirectory, $"{prefix}{extension}"); 69path = Path.Combine(TestClassOutputDirectory, $"{prefix}{i++}{extension}");
TestPathUtilities.cs (3)
19var projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, $"{solution}.slnf")); 25projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "AspNetCore.slnx")); 29directoryInfo = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "src"));
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\RelatedAssemblyAttribute.cs (1)
90var relatedAssemblyLocation = Path.Combine(assemblyDirectory, attribute.AssemblyFileName + ".dll");
Microsoft.AspNetCore.Mvc.Testing (3)
WebApplicationFactory.cs (3)
463var contentRootCandidate = Path.Combine( 467var contentRootMarker = Path.Combine( 572var depsFile = new FileInfo(Path.Combine(AppContext.BaseDirectory, depsFileName));
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\FileUtilities.cs (1)
72uniquePath = Path.Combine(directoryName, $"{baseFileName}{identifier}{extension}");
Microsoft.AspNetCore.Server.IntegrationTesting (17)
CachingApplicationPublisher.cs (1)
70var destFileName = Path.Combine(target.FullName, fileInfo.Name);
Common\DotNetCommands.cs (4)
27var result = Path.Combine(Directory.GetCurrentDirectory(), _dotnetFolderName); 50result = Path.Combine(userProfile, _dotnetFolderName); 63var archSpecificDir = Path.Combine(dotnetDir, arch.ToString()); 83return Path.Combine(dotnetDir, dotnetFile);
Deployers\NginxDeployer.cs (3)
138var pidFile = Path.Combine(DeploymentParameters.ApplicationPath, $"{Guid.NewGuid()}.nginx.pid"); 139var errorLog = Path.Combine(DeploymentParameters.ApplicationPath, "nginx.error.log"); 140var accessLog = Path.Combine(DeploymentParameters.ApplicationPath, "nginx.access.log");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (8)
91_deployedFolderPathInFileShare = Path.Combine(_deploymentParameters.RemoteServerFileSharePath, folderId); 153var webConfigFilePath = Path.Combine(_deploymentParameters.PublishedApplicationRootPath, "web.config"); 163Path.Combine(_deploymentParameters.DotnetRuntimePath, "dotnet.exe")); 204executableParameters = Path.Combine(_deployedFolderPathInFileShare, applicationName + ".dll"); 208executablePath = Path.Combine(_deployedFolderPathInFileShare, applicationName + ".exe"); 289var temppath = Path.Combine(destDirName, file.Name); 297var temppath = Path.Combine(destDirName, subdir.Name); 318var physicalFilePath = Path.Combine(Path.GetTempPath(), embeddedFileName);
Deployers\SelfHostDeployer.cs (1)
103var executable = Path.Combine(workingDirectory, DeploymentParameters.ApplicationName + executableExtension);
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\CertificatePathWatcher.cs (2)
115var path = Path.Combine(_contentRootDir, certificateConfig.Path); 218var path = Path.Combine(_contentRootDir, certificateConfig.Path);
Internal\Certificates\CertificateConfigLoader.cs (3)
40var certificatePath = Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!); 46var certificateKeyPath = Path.Combine(HostEnvironment.ContentRootPath, certInfo.KeyPath); 75return (new X509Certificate2(Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!), certInfo.Password), fullChain);
ListenOptionsHttpsExtensions.cs (3)
43return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName))); 57return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName), password)); 72return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName), password), configureOptions);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
367Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
114var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 242var certPath = Path.Combine(certDir, nickname) + ".pem"; 361? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 405Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 471var certPath = Path.Combine(certDir, nickname) + ".pem"; 610if (File.Exists(Path.Combine(searchFolder, command))) 1050var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
TlsConfigurationLoader.cs (1)
194path = basePath != null ? Path.Combine(basePath, $"{applicationName}.pfx") : null;
Microsoft.AspNetCore.SpaProxy (5)
SpaHostingStartup.cs (1)
20var spaProxyConfigFile = Path.Combine(AppContext.BaseDirectory, "spa.proxy.json");
SpaProxyLaunchManager.cs (4)
197WorkingDirectory = Path.Combine(AppContext.BaseDirectory, _options.WorkingDirectory) 243WorkingDirectory = Path.Combine(AppContext.BaseDirectory, _options.WorkingDirectory) 268var scriptPath = Path.Combine(AppContext.BaseDirectory, fileName); 305WorkingDirectory = Path.Combine(AppContext.BaseDirectory, _options.WorkingDirectory)
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
31var absoluteRootPath = Path.Combine(
Microsoft.AspNetCore.StaticAssets (3)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (2)
60return Path.Combine(AppContext.BaseDirectory, $"{environment.ApplicationName}.staticwebassets.endpoints.json"); 63return Path.IsPathRooted(staticAssetsManifestPath) ? staticAssetsManifestPath : Path.Combine(AppContext.BaseDirectory, staticAssetsManifestPath);
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
34Path.Combine(AppContext.BaseDirectory, staticAssetsManifestPath) :
Microsoft.AspNetCore.StaticFiles (1)
StaticFileMiddleware.cs (1)
49_logger.WebRootPathNotFound(Path.GetFullPath(Path.Combine(hostingEnv.ContentRootPath, hostingEnv.WebRootPath ?? "wwwroot")));
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
199builder.UseContentRoot(Path.GetFullPath(Path.Combine(directoryInfo.FullName, solutionRelativePath)));
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingReadStream.cs (1)
243_tempFileName = Path.Combine(_tempFileDirectory, "ASPNETCORE_" + Guid.NewGuid().ToString() + ".tmp");
FileBufferingWriteStream.cs (1)
270var tempFileName = Path.Combine(tempFileDirectory, "ASPNETCORE_" + Guid.NewGuid() + ".tmp");
Microsoft.Build (84)
BackEnd\BuildManager\BuildManager.cs (1)
1791submission.BuildRequestData.ProjectFullPath = Path.Combine(
BackEnd\BuildManager\CoordinatorClient.cs (2)
489string coordinatorDll = Path.Combine(msbuildDir, "MSBuild.Coordinator.dll"); 490string coordinatorExe = Path.Combine(msbuildDir, "MSBuild.Coordinator.exe");
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (1)
75string sentinelDirectory = Path.Combine(temporaryDirectory, SentinelDirectoryName);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
161_debugDumpFilePath = Path.Combine(_debugDumpDirectory, $"EngineTrace_{EnvironmentUtilities.CurrentProcessId}.txt");
BackEnd\Components\Communications\CurrentHost.cs (2)
31string dotnetExe = Path.Combine( 51dotnetExe = Path.Combine(
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
261msbuildLocation = Path.Combine(msbuildExeName, ".exe"); 620string dllPath = Path.Combine(Path.GetDirectoryName(msbuildLocation), Constants.MSBuildAssemblyName);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (8)
752? Path.Combine(GetOrInitializeX64Clr2Path(toolName, basePath64), toolName) 753: Path.Combine(GetOrInitializeX32Clr2Path(toolName, basePath), toolName); 758return Path.Combine(s_pathToX64Clr4 ??= basePath64, toolName); 763return Path.Combine(s_pathToArm64Clr4 ??= basePathArm64, toolName); 766return Path.Combine(s_pathToX32Clr4 ??= basePath, toolName); 878string fullPath = Path.Combine(envPath, toolName); 1135string appHostPath = Path.Combine(msbuildAssemblyPath, Constants.MSBuildExecutableName); 1138: (Path.Combine(msbuildAssemblyPath, Constants.MSBuildAssemblyName), false);
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
64return pipeNames.Contains(Path.Combine(NamedPipeRoot, _pipeName));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
187string pluginPath = FileUtilities.NormalizePath(Path.Combine(item.Project.Directory, item.EvaluatedInclude));
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
684outputItemFromTarget.ItemSpec = Path.Combine(projectDirectory[i], outputItemFromTarget.ItemSpec);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
353projectFiles[i] = Path.Combine(_requestEntry.ProjectRootDirectory, projectFiles[i]);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
984string oldestOutputFullPath = Path.Combine(projectDirectory, oldestOutput); 1009string candidateOutputFullPath = Path.Combine(projectDirectory, candidateOutput); 1044string unescapedInputFullPath = Path.Combine(projectDirectory, unescapedInput); 1199path1 = Path.Combine(_project.Directory, path1); 1202path2 = Path.Combine(_project.Directory, path2);
BackEnd\Components\Scheduler\Scheduler.cs (2)
272_debugDumpTraceFilePath = Path.Combine(_debugDumpDirectory, $"SchedulerTrace_{EnvironmentUtilities.CurrentProcessId}.txt"); 273_debugDumpStateFilePath = Path.Combine(_debugDumpDirectory, $"SchedulerState_{EnvironmentUtilities.CurrentProcessId}.txt");
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (4)
68Path.Combine(BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32, "SdkResolvers"), location); 95Path.Combine(BuildEnvironmentHelper.Instance.MSBuildToolsDirectoryRoot, "SdkResolvers"), location); 131var manifest = Path.Combine(subfolder.FullName, $"{subfolder.Name}.xml"); 132var assembly = Path.Combine(subfolder.FullName, $"{subfolder.Name}.dll");
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
86manifest.Path = System.IO.Path.Combine(manifestFolder, manifest.Path);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1125string filename = Path.Combine(FileUtilities.GetCacheDirectory(), String.Format(CultureInfo.InvariantCulture, "Configuration{0}.cache", _configId));
BackEnd\Shared\TargetResult.cs (2)
282string filename = Path.Combine(FileUtilities.GetCacheDirectory(), String.Format(CultureInfo.InvariantCulture, Path.Combine("Results{0}", "{1}.cache"), configId, targetToCache));
BuildCheck\Checks\DoubleWritesCheck.cs (1)
104CheckWrite(context, Path.Combine(destinationFolderPath, Path.GetFileName(sourceFilePath)));
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
104return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
BuildCheck\Utilities\BuildCheckUtilities.cs (1)
15path = Path.Combine(Path.GetDirectoryName(projectFilePath)!, path);
Construction\Solution\ProjectInSolution.cs (1)
188_absolutePath = Path.Combine(ParentSolution.SolutionFileDirectory, _relativePath);
Construction\Solution\SolutionFile.cs (2)
1143string fullPathToEtpProj = Path.Combine(SolutionFileDirectory, etpProj.RelativePath); 1197RelativePath = Path.Combine(etpProjectRelativeDir, fileElementValue)
Construction\Solution\SolutionProjectGenerator.cs (4)
1082string localFile = Path.Combine(escapedSolutionDirectory, $"before.{escapedSolutionFileName}.targets"); 1086localFile = Path.Combine(escapedSolutionDirectory, $"after.{escapedSolutionFileName}.targets"); 1361baseName = Path.Combine(_solutionFile.SolutionFileDirectory, MakeIntoSafeItemName(project.GetUniqueProjectName())); 2361globalProperties.AddProperty(SolutionPathPropertyName, EscapingUtilities.Escape(Path.Combine(_solutionFile.SolutionFileDirectory, Path.GetFileName(_solutionFile.FullPath))));
Definition\ToolsetLocalReader.cs (1)
40System.IO.Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "Roslyn"),
Definition\ToolsetReader.cs (3)
204var xbuildToolsetsDir = Path.Combine(libraryPath, $"xbuild{Path.DirectorySeparatorChar}"); 211var binPath = Path.Combine(d, "bin"); 635Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, trimmedValue));
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
174list.Add(Path.GetFullPath(Path.Combine(state.EvaluationDirectory, item.ItemSpec)));
Evaluation\Evaluator.cs (5)
1334string projectFullPath = Path.Combine(projectDirectory, projectFile); 1999ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project), 2012ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project), 2049string dotnetExe = Path.Combine(FileUtilities.GetFolderAbove(sdkResult.Path, 5), Constants.DotnetProcessName); 2265importFileUnescaped = Path.Combine(directoryOfImportingFile, importFileUnescaped);
Evaluation\Expander.ItemExpander.Transforms.cs (4)
186rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 224string combinedPath = Path.Combine(unescapedPath, relativePath); 276rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 361rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath);
Evaluation\Expander\WellKnownFunctions.cs (3)
38var logFile = Path.Combine(Directory.GetCurrentDirectory(), fileName); 69returnVal = Path.Combine(arg0, arg1); 109? Path.GetFullPath(Path.Combine(FileUtilities.CurrentThreadWorkingDirectory, arg0))
Evaluation\IntrinsicFunctions.cs (1)
296return Path.Combine(NativeMethodsShared.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
Globbing\MSBuildGlob.cs (2)
145var rootedInput = Path.Combine(_state.Value.GlobRoot, stringToMatch); 250var parentedFixedPart = Path.Combine(globRoot, fixedDirPart);
Graph\GraphBuilder.cs (1)
317solutionGlobalPropertiesBuilder[SolutionProjectGenerator.SolutionPathPropertyName] = EscapingUtilities.Escape(Path.Combine(Solution.SolutionFileDirectory, Path.GetFileName(Solution.FullPath)));
Instance\TaskRegistry.cs (5)
80private static readonly string s_potentialTasksV4Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV4Filename); 99private static readonly string s_potentialTasksV12Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV12Filename); 118private static readonly string s_potentialTasksCoreLocation = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksCoreFilename); 361assemblyFile = Strings.WeakIntern(Path.Combine(directoryOfImportingFile, assemblyFile)); 376string replacedAssemblyFile = Path.Combine(Path.GetDirectoryName(assemblyFile), s_tasksCoreFilename);
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1254: FileUtilities.GetFullPathNoThrow(Path.Combine(projectDirectory, itemSpec));
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
70_archiveFilePath = Path.Combine(
Logging\TerminalLogger\TerminalLogger.cs (1)
980projectDisplayPathSpan = Path.Combine(relativePathFromWorkingDirToSourceRoot.ToString(), outputPathSpan.Slice(sourceRootSpan.Length).ToString()).AsSpan();
parent\Shared\TypeLoader.cs (1)
78microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
77var fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 83fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 138s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
Utilities\FileSpecMatchTester.cs (2)
69fileToMatch = FileUtilities.GetFullPathNoThrow(Path.Combine(_currentDirectory, fileToMatch)); 129var absoluteFixedDirPart = Path.Combine(currentDirectory, fixedDirPart);
Utilities\Utilities.cs (1)
577string userExtensionsPath = Path.Combine(localAppData, ReservedPropertyNames.userExtensionsPathSuffix);
Microsoft.Build.Framework (61)
BackEnd\CommunicationsUtilities.cs (1)
809string filePath = Path.Combine(s_debugDumpPath, fileName);
BackEnd\NamedPipeUtil.cs (1)
31return Path.Combine("/tmp", pipeName);
BuildEnvironmentHelper.cs (9)
165return TryFromStandaloneMSBuildExe(Path.Combine(sdkRoot, Constants.MSBuildExecutableName)) 166?? TryFromStandaloneMSBuildExe(Path.Combine(sdkRoot, Constants.MSBuildAssemblyName)); 240var msBuildExecutableCandidate = Path.Combine(Path.GetDirectoryName(buildAssembly), Constants.MSBuildExecutableName); 368return TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, Constants.MSBuildExecutableName)) 370?? TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, Constants.MSBuildAssemblyName)); 656MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 660MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : CurrentMSBuildToolsDirectory; 667? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 725defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
DebugUtils.cs (3)
75debugDirectory = System.IO.Path.Combine(debugDirectory, ".MSBuild_Logs"); 79debugDirectory = System.IO.Path.Combine(Directory.GetCurrentDirectory(), ".MSBuild_Logs"); 83debugDirectory = System.IO.Path.Combine(FileUtilities.TempFileDirectory, ".MSBuild_Logs");
FileUtilities_TempFiles.cs (4)
193string file = Path.Combine(directory, $"{fileName}{extension}"); 217string destFile = Path.Combine(dest, fileInfo.Name); 222string destDir = Path.Combine(dest, subdirInfo.Name); 235: System.IO.Path.Combine(TempFileDirectory, name);
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)); 468string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 712return NormalizePath(Path.Combine(directory, file)); 869return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 969string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 1047var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1512return paths.Aggregate(root, Path.Combine); 1685string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
ItemSpecModifiers.cs (2)
86Directory = Path.Combine(rootDir, directory); 679_ = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
Loader\MSBuildLoadContext.cs (1)
108var assemblyNameInExecutableDirectory = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
MultiThreadedTaskEnvironmentDriver.cs (1)
113systemTempDirectory = Path.Combine(GetWindowsDirectory(), "SystemTemp");
NativeMethods.cs (1)
573string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"INTCASESENSITIVETEST{Guid.NewGuid():N}");
PathHelpers\AbsolutePath.cs (2)
112string combined = Path.Combine(basePath.Value, path); 156return Path.Combine(basePath, combined.Substring(2));
Utilities\FileMatcher.cs (8)
621longPath = Path.Combine(longPath, parts[i]); 2244fixedDirectoryPart = Path.Combine(projectDirectoryUnescaped, fixedDirectoryPart); 2618fixedDirectoryPart = Path.Combine(projectRoot, fixedDirectoryPart); 2821includeBaseDirectory = Path.Combine(projectDirectory, includeBaseDirectory); 2822excludeBaseDirectory = Path.Combine(projectDirectory, excludeBaseDirectory); 2931: Path.Combine(projectDirectory, includeBaseDirectory.ToString()); 2934: Path.Combine(projectDirectory, excludeBaseDirectory.ToString()); 3268: Path.Combine(parentRelativeDirectory, directoryName);
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); 1468(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, Constants.MSBuildExecutableName)) && 1469!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll")))) 1501frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Utilities\TaskFactoryUtilities.cs (2)
270path = Path.Combine(directory, assemblyName.Name + ".dll"); 304return Path.Combine(projectDirectory, path);
Microsoft.Build.NuGetSdkResolver (5)
GlobalJsonReader.cs (1)
145candidatePath = new FileInfo(Path.Combine(currentDirectory.FullName, file));
NuGetSdkResolver.cs (2)
305installedPath = Path.Combine(packageInfo.PathResolver.GetInstallPath(packageInfo.Id, packageInfo.Version), "Sdk"); 311installedPath = Path.Combine(packageInfo.PathResolver.GetInstallPath(packageInfo.Id, packageInfo.Version), "sdk");
RestoreRunnerEx.cs (2)
48var projectDirectory = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), Guid.NewGuid().ToString("N", null)); 52var projectFullPath = Path.Combine(projectDirectory, $"{projectName}.proj");
Microsoft.Build.Tasks.CodeAnalysis (12)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (5)
75internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 86_useAppHost = useAppHost = TaskEnvironment.FileExists(Path.Combine(GetToolDirectory(), AppHostToolName)); 179return Path.Combine(ToolPath ?? "", ToolExe); 268return Path.Combine(buildTaskDirectory, "bincore"); 309return Path.Combine(sdkDirectory, "Roslyn");
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
117combined = Path.Combine(path1, path2);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
461var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 818var result = Path.Combine(tempPath, ".roslyn"); 826FilePath = Path.Combine(mutexDirectory, name); 827GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
182loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
Microsoft.Build.Tasks.Core (106)
AddToWin32Manifest.cs (1)
183string originalPath = Path.Combine(OutputDirectory, manifestName);
AssemblyDependency\Reference.cs (1)
573_fullPathWithoutExtension = Path.Combine(DirectoryName, FileNameWithoutExtension);
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));
AssemblyDependency\Resolver.cs (2)
332fullPath = Path.Combine(fullPathToDirectory, baseName); 388string fullPath = Path.Combine(fullPathToDirectory, weakNameBase);
BootstrapperUtil\BootstrapperBuilder.cs (21)
176string strOutputExe = System.IO.Path.Combine(settings.OutputPath, SETUP_EXE); 363string setupSourceFile = System.IO.Path.Combine(bootstrapperPath, SETUP_BIN); 505private string BootstrapperPath => System.IO.Path.Combine(Path, ENGINE_PATH); 507private string PackagePath => System.IO.Path.Combine(Path, PACKAGE_PATH); 509private string SchemaPath => System.IO.Path.Combine(Path, SCHEMA_PATH); 530string startDirectory = System.IO.Path.Combine(BootstrapperPath, RESOURCES_PATH); 537string resourceDirectory = System.IO.Path.Combine(startDirectory, subDirectory); 538string resourceFilePath = System.IO.Path.Combine(resourceDirectory, SETUP_RESOURCES_FILE); 882string strSubDirectoryFullPath = System.IO.Path.Combine(packagePath, strSubDirectory); 885string strBaseManifestFilename = System.IO.Path.Combine(strSubDirectoryFullPath, ROOT_MANIFEST_FILE); 886string strBaseManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA); 924UpdatePackageFileNodes(packageFilesNode, System.IO.Path.Combine(packagePath, strSubDirectory), strSubDirectory); 937string strLangManifestFilename = System.IO.Path.Combine(strLanguageDirectory, CHILD_MANIFEST_FILE); 938string strLangManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA); 1174string strSourceFile = System.IO.Path.Combine(strSourcePath, relativePath); 1178targetPathAttribute.Value = System.IO.Path.Combine(strTargetPath, relativePath); 1181string newNameValue = System.IO.Path.Combine(strTargetPath, relativePath); 1470string strDestinationFileName = System.IO.Path.Combine(settings.OutputPath, packageFileDestination.Value); 2005using (var xmlwriter = new XmlTextWriter(System.IO.Path.Combine(s_logPath, fileName), Encoding.UTF8)) 2047using (var fileWriter = new StreamWriter(System.IO.Path.Combine(s_logPath, fileName), append)) 2208string logPath = System.IO.Path.Combine(
BootstrapperUtil\Util.cs (1)
225string msbuildExtensionPackagesPath = Path.Combine(BuildEnvironmentHelper.Instance.MSBuildExtensionsPath, BOOTSTRAPPER_MSBUILD_ADDITIONAL_PACKAGES_PATH);
CombinePath.cs (1)
70combinedPath.ItemSpec = Path.Combine(BasePath, path.ItemSpec);
Copy.cs (2)
830() => Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec)), 869() => Path.Combine(src, file),
CreateManifestResourceName.cs (2)
196AbsolutePath dependentPath = TaskEnvironment.GetAbsolutePath(Path.Combine(Path.GetDirectoryName(fileName), conventionDependentUpon)); 221AbsolutePath pathToDependent = TaskEnvironment.GetAbsolutePath(Path.Combine(Path.GetDirectoryName(fileName), dependentUpon));
Culture.cs (1)
79info.cultureNeutralFilename = Path.Combine(baseFolder, fileName);
DownloadFile.cs (1)
185var destinationFile = new FileInfo(Path.Combine(destinationDirectory.FullName, filename));
FileIO\WriteLinesToFile.cs (1)
179temporaryFilePath = Path.Combine(directoryPath, Path.GetRandomFileName() + "~");
GenerateLauncher.cs (1)
106string outputEntryPoint = Path.Combine(Path.GetDirectoryName(EntryPoint.ItemSpec), results.KeyFile);
GenerateResource.cs (6)
578commandLineBuilder.AppendFileNameIfNotNull(Path.Combine(_resgenPath, "resgen.exe")); 2747string priDirectory = Path.Combine(outFileOrDir ?? String.Empty, 2749currentOutputDirectory = Path.Combine(priDirectory, 2757currentOutputFile = Path.Combine(currentOutputDirectory, currentOutputFileNoPath); 2921string shorterPath = Path.Combine(outputDirectory ?? String.Empty, cultureName ?? String.Empty); 2926currentOutputFile = Path.Combine(shorterPath, currentOutputFileNoPath);
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");
LC.cs (1)
180outputPath = Path.Combine(OutputDirectory, outputPath);
ManifestUtil\AssemblyIdentity.cs (2)
534string path = Path.Combine(searchPath, file); 541path = Path.Combine(searchPath, file);
ManifestUtil\DeployManifest.cs (3)
182string redistListPath = Path.Combine(referenceAssemblyPath, _redistListFolder); 183return Path.Combine(redistListPath, _redistListFile); 588manifestPath = Path.Combine(Path.GetDirectoryName(SourcePath), _entryPoint.TargetPath);
ManifestUtil\LauncherBuilder.cs (2)
71Path.Combine(outputPath.Value, launcherFilename), 72Path.Combine(outputPath.OriginalValue, launcherFilename),
ManifestUtil\Manifest.cs (4)
225defaultDir = Path.Combine(Directory.GetCurrentDirectory(), defaultDir); 334string resolvedPath = Path.Combine(searchPath, path); 523f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), f.TargetPath); 527f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), AssemblyName);
ManifestUtil\ManifestWriter.cs (1)
146File.Copy(temp, Path.Combine(Util.logPath, n + ".trust-file.xml"), true);
ManifestUtil\SecurityUtil.cs (2)
897toolPath = Path.Combine(Directory.GetCurrentDirectory(), ToolName); 962return versionIndependentToolPath != null ? Path.Combine(versionIndependentToolPath, toolName) : null;
ManifestUtil\Util.cs (4)
267string logPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Microsoft\VisualStudio\8.0\VSPLOG"); 481s_logFileWriter = new StreamWriter(Path.Combine(logPath, "Microsoft.Build.Tasks.log"), false); 512string path = Path.Combine(logPath, filename); 542string path = Path.Combine(logPath, filename);
Move.cs (1)
131destinationFile = Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec));
MSBuild.cs (1)
626outputItemFromTarget.ItemSpec = Path.Combine(projectDirectory[i], outputItemFromTarget.ItemSpec);
NativeMethods.cs (2)
230private static readonly string s_gacPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, "gac"); 489var path = Path.Combine(s_gacPath, assemblyNameVersion.Name);
RedistList.cs (3)
306string redistDirectory = Path.Combine(frameworkDirectory, RedistListFolder); 1103string subsetDirectory = Path.Combine(frameworkDirectory, subsetListFolder); 1110string subsetFilePath = Path.Combine(subsetDirectory, subsetName + ".xml");
ResolveCodeAnalysisRuleSet.cs (3)
90string fullName = Path.Combine(MSBuildProjectDirectory, CodeAnalysisRuleSet); 103string fullName = Path.Combine(directory, CodeAnalysisRuleSet); 117string fullName = Path.Combine(MSBuildProjectDirectory, CodeAnalysisRuleSet);
ResolveManifestFiles.cs (2)
390targetPath = Path.Combine(itemCulture.ToString(), targetPath); 878fusionName = Path.Combine(destSubDir, Path.GetFileNameWithoutExtension(item.ItemSpec));
ResolveSDKReference.cs (1)
1015_sdkManifestPath = Path.Combine(ResolvedPath, "SDKManifest.xml");
ResourceHandling\MSBuildResXReader.cs (1)
237fileName = Path.Combine(
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
624Path.Combine(ThisAssemblyDirectoryLazy.Value, ReferenceAssemblyDirectoryName), 627.FirstOrDefault(p => FileSystems.Default.FileExists(Path.Combine(p, assemblyFileName))); 631resolvedAssemblyReferences.Add(Path.Combine(resolvedDir, assemblyFileName));
SdkToolsPathUtility.cs (5)
60pathToTool = Path.Combine(processorSpecificToolDirectory, toolName); 67pathToTool = Path.Combine(sdkToolsPath, toolName); 126ProcessorArchitecture.ARM => Path.Combine(sdkToolsPath, "arm"), 127ProcessorArchitecture.AMD64 => Path.Combine(sdkToolsPath, "x64"), 128ProcessorArchitecture.IA64 => Path.Combine(sdkToolsPath, "ia64"),
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
77var fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 83fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 138s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
SystemState.cs (2)
468string pathFromRedistList = Path.Combine(a.FrameworkDirectory, filename); 622AbsolutePath fullPath = taskEnvironment.GetAbsolutePath(Path.Combine(stateFileDirectory, relativePath)).GetCanonicalForm();
Untar.cs (1)
283AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, entryName)).GetCanonicalForm();
Unzip.cs (1)
189AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName)).GetCanonicalForm();
WriteCodeFragment.cs (2)
117OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, OutputFile.ItemSpec)); 128OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, Path.GetFileName(outputFilePath.Value)));
Microsoft.Build.Tasks.Git (23)
GitDataReader\GitConfig.Reader.cs (6)
103return Path.Combine(xdgConfigHome, "git"); 130var systemConfig = Path.Combine(systemDir, "gitconfig"); 141var xdgConfig = Path.Combine(xdgDir, "config"); 151var globalConfig = Path.Combine(_environment.HomeDirectory, ".gitconfig"); 159var localConfig = Path.Combine(_commonDirectory, "config"); 288return Path.GetFullPath(Path.Combine(root, relativePath));
GitDataReader\GitEnvironment.cs (1)
121return Path.Combine(gitInstallDir, "etc");
GitDataReader\GitReferenceResolver.cs (6)
70var packedRefsPath = Path.Combine(commonDirectory, PackedRefsFileName); 186var refTableDirectory = Path.Combine(commonDirectory, RefTableDirectoryName); 187var tablesFilePath = Path.Combine(refTableDirectory, TablesListFileName); 198var path = Path.Combine(refTableDirectory, fileName); 311ReferenceStorageFormat.LooseFiles => ParseObjectNameOrReference(ReadReferenceFromFile(Path.Combine(_gitDirectory, GitRepository.GitHeadFileName))), 354path = Path.Combine(_commonDirectory, referenceName);
GitDataReader\GitRepository.cs (9)
139return Path.GetFullPath(Path.Combine(location.GitDirectory, value)); 182var dotGitPath = Path.Combine(submoduleWorkingDirectoryFullPath, GitDirName); 244fullPath = Path.GetFullPath(Path.Combine(workingDirectory, path)); 281var submodulesConfigFile = Path.Combine(workingDirectory, GitModulesFileName); 391var dotGitPath = Path.Combine(directory, GitDirName); 449return Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path)!, link)); 460if (!File.Exists(Path.Combine(directory, GitHeadFileName))) 467var commonLinkPath = Path.Combine(directory, CommonDirFileName); 472commonDirectory = Path.Combine(directory, File.ReadAllText(commonLinkPath).TrimEnd(CharUtils.AsciiWhitespace));
GitOperations.cs (1)
355var fullPath = Path.GetFullPath(Path.Combine(projectDirectory, file.ItemSpec));
Microsoft.Build.Utilities.Core (47)
PlatformManifest.cs (1)
95string platformManifestPath = Path.Combine(_pathToManifest, "Platform.xml");
SDKManifest.cs (1)
311string sdkManifestPath = Path.Combine(_pathToSdk, "SDKManifest.xml");
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
77var fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 83fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 138s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
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);
ToolTask.cs (3)
527pathToTool = Path.Combine(ToolPath, ToolExe); 540pathToTool = Path.Combine(directory, ToolExe); 1435.Select(folderPath => Path.Combine(folderPath, filename))
Microsoft.CodeAnalysis (26)
AssemblyUtilities.cs (1)
38string satelliteAssemblyPath = Path.Combine(subDirectory, resourcesNameWithExtension);
CommandLine\CommandLineArguments.cs (2)
345return Path.Combine(OutputDirectory, outputFileName); 365return PdbPath ?? Path.Combine(OutputDirectory, Path.ChangeExtension(outputFileName, ".pdb"));
CommandLine\CommandLineParser.cs (2)
469pdbPath = Path.ChangeExtension(Path.Combine(outputDirectory, outputFileName), ".pdb"); 494genericPath = Path.Combine(outputDirectory!, outputFileName);
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
81var newFilePath = Path.Combine(Path.GetDirectoryName(_filePath)!, Guid.NewGuid().ToString() + "_" + Path.GetFileName(_filePath));
CommandLine\CommonCompiler.cs (1)
1836var filePath = Path.Combine(Arguments.OutputDirectory, Arguments.OutputFileName + ".key");
Compilation.EmitStream.cs (1)
147tempFilePath = Path.Combine(tempDir, Guid.NewGuid().ToString("N"));
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (3)
118var assemblyPath = Path.Combine(directory, simpleName + ".dll"); 135var analyzerFilePath = Path.Combine(directory, analyzerFileName); 204var assemblyPath = Path.Combine(Directory, unmanagedDllName + ".dll");
DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
35DotNetPath = Path.Combine(programFilesPath, "dotnet");
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (7)
123var versionDirectory = Path.Combine(baseDirectory, DirectoryVersion); 124ShadowDirectory = Path.Combine(versionDirectory, "shadow"); 125CacheDirectory = Path.Combine(versionDirectory, "cache"); 128SessionDirectory = Path.Combine(ShadowDirectory, sessionDirectoryName); 306var analyzerShadowPath = Path.Combine(analyzerShadowDir, Path.GetFileName(originalAnalyzerPath)); 334return Path.Combine(SessionDirectory, shadowDirName); 399? Path.Combine(@this.CacheDirectory, cacheKey)
DiaSymReader\SymUnmanagedFactory.cs (1)
120var moduleHandle = LoadLibrary(Path.Combine(dir, DiaSymReaderModuleName));
FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
MetadataReference\AssemblyMetadata.cs (1)
170return new AssemblyMetadata(manifestModule, moduleName => ModuleMetadata.CreateFromFile(Path.Combine(Path.GetDirectoryName(path) ?? "", moduleName)));
SourceGeneration\GeneratorDriver.cs (2)
518var tree = ParseGeneratedSourceText(source, Path.Combine(prefix, source.HintName), cancellationToken); 564var tree = ParseGeneratedSourceText(source, Path.Combine(prefix, source.HintName), cancellationToken);
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.BuildClient.Package (7)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
461var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 818var result = Path.Combine(tempPath, ".roslyn"); 826FilePath = Path.Combine(mutexDirectory, name); 827GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
182loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\StandardBuildEnvironment.cs (1)
21public string GetFullyQualifiedPath(string path) => Path.Combine(CurrentDirectory, path);
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1439metadataReferences.Insert(0, new CommandLineReference(Path.Combine(sdkDirectory, "mscorlib.dll"), MetadataReferenceProperties.Assembly));
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
1070var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 1200var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (3)
173return Path.Combine(GetTempSubdirectory(dotNetSubdirectory), name); 255var fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(includeOrExcludeDirective.Info.SourceFile.Path)!, expandedPath)); 406var compilePath = Path.GetFullPath(Path.Combine(
Microsoft.CodeAnalysis.Features (13)
EditAndContinue\TraceLog.cs (5)
44path = Path.Combine(_logDirectory, _traceLog._name + ".log"); 74var directory = CreateSessionDirectory(updateId.SessionId, Path.Combine(document.Project.Name, relativeDir)); 75return Path.Combine(directory, $"{fileName}.{updateId.Ordinal}.{generation?.ToString() ?? "-"}.{suffix}{extension}"); 83path = Path.Combine(CreateSessionDirectory(sessionId, directory), fileName); 97path = Path.Combine(CreateSessionDirectory(sessionId, directory), fileName);
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
75TryOpenFileStream(Path.Combine(Path.GetDirectoryName(AssemblyFilePath)!, PathUtilities.GetFileName(pdbPath)));
MetadataAsSource\MetadataAsSourceFileService.cs (3)
54private readonly string _rootTemporaryPath = Path.Combine(Path.GetTempPath(), MetadataAsSource); 64_rootTemporaryPathWithGuid = Path.Combine(_rootTemporaryPath, guidString); 109var providerTempPath = Path.Combine(_rootTemporaryPathWithGuid, provider.GetType().Name);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
81dllPath = Path.Combine(basePath, $"{assemblyName}.dll");
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
46var filePath = Path.Combine(tempFilePath, Path.GetFileName(sourceDocument.FilePath));
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
230var tempFilePath = Path.Combine(tempPath, projectId.Id.ToString());
SemanticSearch\SemanticSearchWorkspace.cs (1)
21public static readonly string ReferenceAssembliesDirectory = Path.Combine(Path.GetDirectoryName(typeof(SemanticSearchWorkspace).Assembly.Location)!, "SemanticSearchRefs");
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
34editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.Scripting (12)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
329string pathWithoutExtension = Path.Combine(directory, simpleName); 344string pathWithoutExtension = Path.Combine(directory, identity.Name);
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (7)
87_baseDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 410string shadowCopyPath = Path.Combine(assemblyCopyDir, Path.GetFileName(originalPath)); 472originalPath: Path.Combine(originalDirectory, moduleName), 473shadowCopyPath: Path.Combine(shadowCopyDirectory, moduleName)); 512string dir = Path.Combine(basePath, Guid.NewGuid().ToString()); 560Directory.CreateDirectory(Path.Combine(assemblyCopyDirectory, xmlSubdirectory)); 603if (File.Exists(Path.Combine(assemblyDirectory, docFileName)))
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (3)
45var corlibFriendPath = Path.Combine(s_corlibDirectory, fileName); 70var gacAssemblyRootDir = new DirectoryInfo(Path.Combine(gacPath, name)); 88var assemblyPath = Path.Combine(assemblyDir.ToString(), fileName);
Microsoft.CodeAnalysis.Workspaces (20)
Rename\ConflictEngine\MutableConflictResolution.cs (2)
106var newDocumentFilePath = Path.Combine(directory, newName); 121newDocumentFilePath = Path.Combine(directory, newName);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (3)
118var assemblyPath = Path.Combine(directory, simpleName + ".dll"); 135var analyzerFilePath = Path.Combine(directory, analyzerFileName); 204var assemblyPath = Path.Combine(Directory, unmanagedDllName + ".dll");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
35DotNetPath = Path.Combine(programFilesPath, "dotnet");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (7)
123var versionDirectory = Path.Combine(baseDirectory, DirectoryVersion); 124ShadowDirectory = Path.Combine(versionDirectory, "shadow"); 125CacheDirectory = Path.Combine(versionDirectory, "cache"); 128SessionDirectory = Path.Combine(ShadowDirectory, sessionDirectoryName); 306var analyzerShadowPath = Path.Combine(analyzerShadowDir, Path.GetFileName(originalAnalyzerPath)); 334return Path.Combine(SessionDirectory, shadowDirName); 399? Path.Combine(@this.CacheDirectory, cacheKey)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Workspace\CommandLineProject.cs (1)
153: Path.GetFullPath(Path.Combine(projectDirectory, fileArg.Path));
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
192? Path.Combine(_commandLineArgumentsForCommandLine.OutputDirectory, _commandLineArgumentsForCommandLine.OutputFileName)
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
74referenceDirectories.Add(Path.Combine(dotnetRoot, "packs"));
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\BuildHostProcessManager.cs (1)
163dotnetPath = Path.GetFullPath(Path.Combine(msbuildLocation.Path, $"../../{DotnetExecutable}"));
MSBuild\MSBuildProjectLoader.cs (2)
364? Path.Combine(_directory, _filename + _extension) 365: Path.Combine(_directory, $"{_filename}-{suffix}{_extension}");
MSBuild\MSBuildWorkspace.cs (1)
492? Path.Combine(Path.Combine([.. info.Folders]), fileName)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (3)
MonoMSBuildDiscovery.cs (3)
77.Select(p => Path.Combine(p, "mono")) 141var monoMSBuildDirPath = Path.Combine(monoLibDirPath, "msbuild"); 178var monoMSBuildPath = Path.Combine(monoMSBuildDirectory, "Microsoft.Build.dll");
Microsoft.Data.Analysis.Tests (2)
parent\Microsoft.ML.TestFramework\BaseTestClass.cs (2)
57OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput"); 108return Path.GetFullPath(Path.Combine(DataDir, name));
Microsoft.Diagnostics.NETCore.Client (2)
DiagnosticsClient\DiagnosticsClient.cs (1)
517string crossNsDir = Path.Combine(PidIpcEndpoint.GetProcessRootPath(hostPid), targetTmpDir.TrimStart(Path.DirectorySeparatorChar));
DiagnosticsIpc\IpcTransport.cs (1)
519searchDirectory = Path.Combine(GetProcessRootPath(pid), targetTmpDir.TrimStart(Path.DirectorySeparatorChar));
Microsoft.DiaSymReader (1)
SymUnmanagedFactory.cs (1)
135var moduleHandle = LoadLibraryW(Path.Combine(dir, DiaSymReaderModuleName));
Microsoft.DotNet.ApiCompat.Task (3)
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\RoslynResolver.cs (3)
50Assembly asm = loadFromPath(Path.Combine(_roslynAssembliesPath!, $"{name.Name}.dll")); 60loadFromPath(Path.Combine(_roslynAssembliesPath!, $"{codeAnalysisCSharpName}.dll")); 62loadFromPath(Path.Combine(_roslynAssembliesPath!, $"{codeAnalysisName}.dll"));
Microsoft.DotNet.ApiSymbolExtensions (3)
AssemblySymbolLoader.cs (3)
310string possiblePath = Path.Combine(directory, name); 456using FileStream resolvedStream = File.OpenRead(Path.Combine(fullReferencePath, assemblyReferenceName)); 467string potentialPath = Path.Combine(referencePathDirectory, assemblyReferenceName);
Microsoft.DotNet.Arcade.Sdk (6)
src\CheckRequiredDotNetVersion.cs (1)
36var globalJsonPath = TaskEnvironment.GetAbsolutePath(Path.Combine(RepositoryRoot, "global.json"));
src\ExtractNgenMethodList.cs (1)
88var outputFilePath = Path.Combine(outputDirectory, outputFileName);
src\InstallDotNetCore.cs (1)
297dotnetRoot = Path.Combine(dotnetRoot, architecture.ToLowerInvariant());
src\LocateDotNet.cs (3)
35var globalJsonPath = TaskEnvironment.GetAbsolutePath(Path.Combine(RepositoryRoot, "global.json")); 76var dotNetDir = paths.Split(new[] { Path.PathSeparator }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(p => File.Exists(TaskEnvironment.GetAbsolutePath(Path.Combine(p, fileName)))); 87DotNetPath = TaskEnvironment.GetAbsolutePath(Path.Combine(dotNetDir, fileName)).GetCanonicalForm();
Microsoft.DotNet.Build.Tasks.Installers (30)
src\CreateLightCommandPackageDrop.cs (2)
34string packageDropOutputFolder = Path.Combine(LightCommandWorkingDir, Path.GetFileName(InstallerFile)); 56AbsolutePath destinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, Path.GetFileName(WixProjectFile)));
src\CreateWixBuildWixpack.cs (20)
124AbsolutePath destPathAbsolute = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, Path.GetFileName(projectPath))); 157OutputFile = Path.Combine(OutputFolder, $"{_installerFilename}{_packageExtension}"); 195AbsolutePath destinationDir = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, randomDirName)); 219var tempFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 300_defineConstantsDictionary["TargetPath"] = Path.Combine("%outputfolder%", Path.GetFileName(targetPath)); 304InstallerFile = Path.Combine("%outputfolder%", Path.GetFileName(InstallerFile)); 312PdbFile.ItemSpec = Path.Combine("%outputfolder%", Path.GetFileName(PdbFile.ItemSpec)); 318BindTrackingFile.ItemSpec = Path.Combine("%outputfolder%", Path.GetFileName(BindTrackingFile.ItemSpec)); 452AbsolutePath responseFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, "create.rsp")); 467AbsolutePath commandFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(wixpackWorkingDir, "create.cmd")); 541var copiedXmlPath = Path.Combine(WixpackWorkingDir, Path.GetFileName(xmlPath)); 622var filePath = Path.Combine(dir, Path.GetFileName(source)); 1042AbsolutePath destDir = TaskEnvironment.GetAbsolutePath(Path.Combine(WixpackWorkingDir, fileId)); 1050AbsolutePath destPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destDir, Path.GetFileName(source))); 1069Extensions[i] = new TaskItem(Path.Combine(filename, filename)); 1113LocalizationFiles[i] = new TaskItem(Path.Combine(filename, filename)); 1123Path.Combine(_wixprojDir, source) : 1124Path.Combine(relativeRoot, source); 1137AbsolutePath destinationFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(destDir, Path.GetFileName(file))); 1144AbsolutePath destinationSubdirectoryPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destDir, Path.GetFileName(dir)));
src\CreateWixCommandPackageDropBase.cs (8)
74OutputFile = Path.Combine(OutputFolder, $"{Path.GetFileName(InstallerFile)}{_packageExtension}"); 90AbsolutePath commandFilename = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, $"create.cmd")); 153AbsolutePath newWixSrcFilePath = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, Path.GetFileName(wixSrcFile.ItemSpec))); 185AbsolutePath destinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(packageDropDir, Path.GetFileName(locItem.ItemSpec))); 301AbsolutePath possiblePath = TaskEnvironment.GetAbsolutePath(Path.Combine(additionalBasePath.ItemSpec, oldPath)); 319newRelativePath = Path.Combine(id, Path.GetFileName(oldPath)); 334AbsolutePath newFolder = TaskEnvironment.GetAbsolutePath(Path.Combine(outputPath, id)); 340File.Copy(TaskEnvironment.GetAbsolutePath(oldPath), TaskEnvironment.GetAbsolutePath(Path.Combine(outputPath, newRelativePath)), true);
Microsoft.DotNet.Build.Tasks.Packaging (4)
HarvestPackage.cs (1)
252version = VersionUtility.GetAssemblyVersion(Path.Combine(packagePath, refAssm))?.ToString() ?? version;
NuGetPack.cs (2)
263return Path.Combine(nupkgOutputDirectory, $"{id}.{version}{nupkgExtension}"); 394string packedPackageSourcePath = Path.Combine(Path.GetDirectoryName(fileName), string.Join(".", _packageNamePrefix, Path.GetFileName(fileName)));
PackageItem.cs (1)
52TargetPath = Path.Combine(TargetPath, sourceFile);
Microsoft.DotNet.Build.Tasks.VisualStudio (6)
OptProf\GenerateTrainingInputFiles.cs (4)
86var jsonManifest = ReadVsixJsonManifest(TaskEnvironment.GetAbsolutePath(Path.Combine(insertionDirectory, product.Name))); 126WriteEntries(ibcEntries, Path.Combine(configurationsDir, fullyQualifiedName)); 136WriteEntries(filteredIbcEntries, Path.Combine(configurationsDir, fullyQualifiedName)); 151string basePath = Path.Combine(outDirPath, entry.RelativeDirectoryPath.Replace("\\", "") + Path.GetFileNameWithoutExtension(entry.RelativeInstallationPath));
OptProf\GenerateTrainingPropsFile.cs (1)
59File.WriteAllText(Path.Combine(outputDirectory, outputFileNameNoExt + ".props"),
OptProf\IbcEntry.cs (1)
48ngenApplicationPath: Path.Combine(VSInstallationRootVar, args.InstrumentationExecutable.Replace("/", "\\")));
Microsoft.DotNet.Build.Tasks.Workloads (14)
EmbeddedTemplates.cs (1)
41string destinationPath = Path.Combine(destinationFolder, destinationFilename);
Swix\ComponentSwixProject.cs (1)
63Path.Combine(base.GetRelativePackagePath(), "_package.json");
Swix\SwixProjectBase.cs (1)
59SourcePath = Path.Combine(SourcePath, "swix");
Wix\WixToolTask.cs (1)
101public string GetWixCommandLine() => Path.Combine(ToolPath, ToolExe) + " " +
Wix\WixToolTaskBase.cs (1)
60protected override string GenerateFullPathToTool() => Path.Combine(ToolPath, ToolName);
WorkloadPackageBase.cs (7)
210DestinationDirectory = Path.Combine(destinationBaseDirectory, Path.GetRandomFileName()); 246File.Copy(PackagePath, Path.Combine(DestinationDirectory, Path.GetFileName(PackagePath)), overwrite: true); 254Utils.DeleteDirectory(Path.Combine(DestinationDirectory, "_rels")); 255Utils.DeleteDirectory(Path.Combine(DestinationDirectory, "package")); 257Utils.DeleteFile(Path.Combine(DestinationDirectory, ".signature.p7s")); 258Utils.DeleteFile(Path.Combine(DestinationDirectory, "[Content_Types].xml")); 259Utils.DeleteFile(Path.Combine(DestinationDirectory, $"{Id}.nuspec"));
WorkloadTemplateBase.cs (2)
78SourcePath = Path.Combine(OutputPath, "src"); 79IntermediateOutputPath = Path.Combine(OutputPath, "obj");
Microsoft.DotNet.Cli.CoreUtils (1)
DotnetFiles.cs (1)
18public static string VersionFile => Path.GetFullPath(Path.Combine(SdkPaths.SdkDirectory, ".version"));
Microsoft.DotNet.Cli.Definitions (5)
Commands\Test\TestCommandDefinition.cs (1)
112string globalJsonPath = Path.Combine(directory, "global.json");
Common\TargetPlatformOptions.cs (3)
114var sdkPath = dotnetRootPath is not null ? Path.Combine(dotnetRootPath, "sdk") : "sdk"; 117string runtimeIdentifierChainPath = string.IsNullOrEmpty(Product.Version) || !Directory.Exists(Path.Combine(sdkPath, Product.Version)) ? 118Path.Combine(Directory.GetDirectories(sdkPath)[0], ridFileName) :
src\sdk\src\Resolvers\Microsoft.DotNet.NativeWrapper\EnvironmentProvider.cs (1)
46.Select(p => Path.Combine(p, commandNameWithExtension))
Microsoft.DotNet.Cli.Utils (10)
DependencyProvider.cs (1)
127using RegistryKey dependentsKey = BaseKey.CreateSubKey(Path.Combine(DependentsKeyPath, dependent), writable: true);
EnvironmentProvider.cs (3)
63return Path.Combine(_userHomeDirectory.Value, path.Substring(tildeSlash.Length)); 81(p, s) => Path.Combine(p, commandName + s)) 94var commandPath = extensions.Select(e => Path.Combine(rootPath, commandName + e))
MSBuildForwardingAppWithoutLogging.cs (2)
284return Path.Combine( 303return Path.Combine(
Muxer.cs (2)
46string muxerPathMaybe = Path.Combine(rootPath, muxerFileName); 75processPath = Path.Combine(root, muxerFileName);
PathUtility.cs (2)
301result = Path.Combine(result, component); 382var filePath = Path.Combine(directory.FullName, relativeFilePath);
Microsoft.DotNet.CMake.Sdk (5)
src\CreateCMakeFileApiQuery.cs (1)
34string queryFile = Path.Combine(queryDir, "codemodel-v2");
src\GetCMakeArtifactsFromFileApi.cs (4)
86string codeModelFile = Path.Combine(replyDir, index.Reply.ClientReply.CodemodelV2.JsonFile); 140dirSource = Path.Combine(sourceRoot, dirSource); 173string targetFile = Path.Combine(replyDir, target.JsonFile); 193string fullPath = Path.Combine(CMakeOutputDir, artifact.Path);
Microsoft.DotNet.Configurer (10)
AspNetCertificateSentinel.cs (1)
16private string SentinelPath => Path.Combine(_dotnetUserProfileFolderPath, SENTINEL);
CliFolderPathCalculator.cs (5)
18Path.Combine(new DirectoryInfo(AppContext.BaseDirectory).Parent?.FullName ?? string.Empty, "NuGetFallbackFolder"); 20public static string ToolsShimPath => Path.Combine(DotnetUserProfileFolderPath, ToolsShimFolderName); 28Path.Combine(DotnetProfileDirectoryName, ToolsShimFolderName)); 41Path.Combine(DotnetHomePath, DotnetProfileDirectoryName); 43public static string ToolsResolverCachePath => Path.Combine(DotnetUserProfileFolderPath, ToolsResolverCacheFolderName);
FirstTimeUseNoticeSentinel.cs (1)
16private string SentinelPath => Path.Combine(_dotnetUserProfileFolderPath, SENTINEL);
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
38return Path.Combine(homePath, DotnetProfileDirectoryName);
ToolPackageFolderPathCalculator.cs (1)
11return Path.Combine(toolsShimPath, NestedToolPackageFolderName);
UserLevelCacheWriter.cs (1)
72return Path.Combine(_dotnetUserProfileFolderPath, $"{Product.Version}_{cacheKey}.dotnetUserLevelCache");
Microsoft.DotNet.GenFacades (3)
RoslynBuildTask.cs (3)
45Assembly asm = loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{name.Name}.dll")); 55loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{codeAnalysisCsharpName}.dll")) : 56loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{codeAnalysisName}.dll"));
Microsoft.DotNet.HotReload.Watch (12)
Browser\BrowserToolsBuildOutputs.cs (3)
60PublicKeyPath = Path.Combine(directory, PublicKeyFileName); 61PrivateKeyPath = Path.Combine(directory, PrivateKeyFileName); 100Path.Combine(intermediateOutputDirectory, DirectoryName),
Build\EvaluationResult.cs (2)
180StaticWebAssetsManifest.TryParseFile(Path.Combine(outputDir, StaticWebAsset.ManifestFileName), logger) is { } manifest) 213var filePath = Path.GetFullPath(Path.Combine(projectDirectory, relativePath));
Build\ProjectGraphUtilities.cs (2)
59=> project.GetPropertyValue(PropertyNames.TargetPath) is { Length: >0 } path ? Path.GetDirectoryName(Path.Combine(project.Directory, NormalizeSeparators(path))) : null; 68=> project.GetPropertyValue(PropertyNames.IntermediateOutputPath) is { Length: >0 } path ? Path.Combine(project.Directory, NormalizeSeparators(path)) : null;
Context\EnvironmentOptions.cs (1)
100? $"{Path.Combine(WorkingDirectory, options.BinaryLogPath)[..^".binlog".Length]}-dotnet-watch.{operationName}.{Path.GetFileName(projectPath)}.{Interlocked.Increment(ref _uniqueLogId)}.binlog"
FileWatcher\EventBasedDirectoryWatcher.cs (1)
68var oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1));
HotReload\HotReloadDotNetWatcher.cs (2)
719var outputDir = Path.Combine(Path.GetDirectoryName(projectPath)!, relativeOutputDir); 726var targetPath = Path.Combine(outputDir, item.GetMetadata(MetadataNames.TargetPath));
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAsset.cs (1)
87var webRootDir = Path.Combine(Path.GetDirectoryName(containingProjectFilePath)!, webRoot);
Microsoft.DotNet.InternalAbstractions (3)
DirectoryPath.cs (3)
35return new FilePath(Path.Combine(Value, fileName)); 93CopyDirectoryAcrossMounts(dir, Path.Combine(destPath, Path.GetFileName(dir))); 98new FileInfo(file).CopyTo(Path.Combine(destPath, Path.GetFileName(file)), true);
Microsoft.DotNet.MacOsPkg.Core (4)
AppBundle.cs (1)
28bool containsAppBundleContents = Directory.Exists(Path.Combine(path, "Contents")) &&
Package.cs (3)
63string packageName = Path.Combine(dstPath, package.Value.Substring(1)); 64string tempDest = Path.Combine(dstPath, Path.GetRandomFileName()); 184string tempDir = Path.Combine(dstPath, Path.GetRandomFileName());
Microsoft.DotNet.NativeWrapper (2)
EnvironmentProvider.cs (1)
46.Select(p => Path.Combine(p, commandNameWithExtension))
src\sdk\src\Common\HostFxrPathResolver.cs (1)
77string hostfxrPath = Path.Combine(latestFxr, hostfxrName);
Microsoft.DotNet.NuGetRepack.Tasks (5)
src\NuGetVersionUpdater.cs (2)
107tempPathOpt = new FileInfo(Path.Combine(tempDirectoryOpt.FullName, Guid.NewGuid().ToString())); 361string finalPath = Path.Combine(outDirectory.FullName, package.Id + "." + package.NewVersion + ".nupkg");
src\ReplacePackageParts.cs (2)
117string tempPackagePath = Path.Combine(tempDirectory.FullName, "package.nupkg"); 232NewPackage = Path.Combine(DestinationFolder, packageId + "." + packageVersion + ".nupkg");
src\UpdatePackageVersionTask.cs (1)
87File.WriteAllLines(Path.Combine(outputDirectory.FullName, "PreReleaseDependencies.txt"), preReleaseDependencies.Distinct());
Microsoft.DotNet.ProjectTools (6)
LaunchSettings\ExecutableLaunchProfileParser.cs (1)
72workingDirectory = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(launchSettingsPath)!, expandedValue));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
1070var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 1198var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\VirtualProjectBuilder.cs (3)
172return Path.Combine(GetTempSubdirectory(dotNetSubdirectory), name); 254var fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(includeOrExcludeDirective.Info.SourceFile.Path)!, expandedPath)); 405var compilePath = Path.GetFullPath(Path.Combine(
Microsoft.DotNet.SdkResolver (1)
NETCoreSdkResolver.cs (1)
137string minimumVersionFilePath = Path.Combine(netcoreSdkDir, "minimumMSBuildVersion");
Microsoft.DotNet.SharedFramework.Sdk (3)
src\CreateFrameworkListFile.cs (1)
128string path = Path.Combine(f.TargetPath, f.Filename).Replace('\\', '/');
src\GenerateSharedFrameworkDepsFile.cs (2)
72resourceAssemblies.Add(new ResourceAssembly(Path.Combine(cultureMaybe, fileName), cultureMaybe)); 124var depsFilePath = Path.Combine(IntermediateOutputPath, depsFileName);
Microsoft.DotNet.SourceBuild.Tasks (3)
src\UsageReport\WritePackageUsageData.cs (2)
171using (var stream = File.OpenRead(Path.Combine(AbsoluteRootDir, relativePath))) 192using (var file = File.OpenRead(Path.Combine(AbsoluteRootDir, assetFile)))
src\UsageReport\WriteUsageReports.cs (1)
176Path.Combine(outputDirectory, "annotated-usage.xml"),
Microsoft.DotNet.TemplateLocator (18)
parent\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");
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
23string? workloadManifestPath = Path.Combine(workloadManifestDirectory, "WorkloadManifest.json");
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (2)
26var catalog = Path.Combine(localizationDir, $"WorkloadManifest.{culture.Name}.json"); 65string localizationDir = Path.Combine(manifestDir, "localize");
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
100if (File.Exists(Path.Combine(path, "baseline.workloadset.json")))
Microsoft.DotNet.XliffTasks (15)
Model\Document.cs (1)
70string tempPath = Path.Combine(path.Directory.FullName, Path.GetRandomFileName());
Model\ResxDocument.cs (1)
67string absolutePath = Path.Combine(Path.GetDirectoryName(sourceFullPath), resourceRelativePath);
Model\VsctDocument.cs (1)
87string absolutePath = Path.Combine(Path.GetDirectoryName(sourceFullPath), resourceRelativePath);
Tasks\GatherTranslatedSource.cs (3)
70relativePath = Path.Combine(language, relativePath); 80link = Path.Combine(linkDirectory, relativePath); 115dependentUpon = TaskEnvironment.GetAbsolutePath(Path.Combine(sourceDirectory, dependentUpon)).GetCanonicalForm();
Tasks\GatherXlf.cs (1)
72Path.Combine(TranslatedOutputDirectory, $"{translatedFileName}.{language}{extension}");
Tasks\TransformTemplates.cs (8)
77? Path.Combine(TranslatedOutputDirectory, $"{templateName}.default.1033") 78: Path.Combine(TranslatedOutputDirectory, $"{templateName}.{language}"); 80string cultureSpecificTemplateFile = Path.Combine(localizedTemplateDirectory, Path.GetFileName(template.ItemSpec)); 86string projectFileFullPath = Path.Combine(templateDirectory, projectNode.Attribute("File").Value); 87File.Copy(TaskEnvironment.GetAbsolutePath(projectFileFullPath), TaskEnvironment.GetAbsolutePath(Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value))), overwrite: true); 93string templateItemFullPath = Path.Combine(templateDirectory, templateItem.Value); 94string templateItemDestinationPath = Path.Combine(localizedTemplateDirectory, templateItem.Value); 116File.Copy(TaskEnvironment.GetAbsolutePath(Path.Combine(TranslatedOutputDirectory, localizedFileName)), templateItemDestinationAbsolutePath, overwrite: true);
Microsoft.Extensions.AI.Abstractions (2)
Contents\DataContent.cs (1)
233path = path.Length == 0 ? name! : Path.Combine(path, name);
Files\HostedFileClientExtensions.cs (1)
122finalPath = destinationPath.Length == 0 ? fileName! : Path.Combine(destinationPath, fileName);
Microsoft.Extensions.AI.Abstractions.Tests (33)
Contents\DataContentTests.cs (25)
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"); 602string expectedAbsolute = Path.Combine(cwdBefore, filename); 660string expectedAbsolute = Path.Combine(cwdBefore, content.Name!); 710string tempDir = Path.Combine(Path.GetTempPath(), $"test_subdir_{Guid.NewGuid()}"); 711string subDir = Path.Combine(tempDir, "subdir"); 716string filePath = Path.Combine(subDir, "nested.html"); 743string tempDir = Path.Combine(Path.GetTempPath(), $"test_dir_noname_{Guid.NewGuid()}"); 770string tempPath = Path.Combine(Path.GetTempPath(), $"test_cancel_{Guid.NewGuid()}.txt"); 801string tempPath = Path.Combine(Path.GetTempPath(), $"test_save_cancel_{Guid.NewGuid()}.bin"); 841string tempDir = Path.Combine(Path.GetTempPath(), $"test_dir_name_{Guid.NewGuid()}"); 843string expectedPath = Path.Combine(tempDir, content.Name); 869string tempDir = Path.Combine(Path.GetTempPath(), $"test_nonexist_{Guid.NewGuid()}"); 871string filePath = Path.Combine(tempDir, "newfile"); 898string tempPath = Path.Combine(Path.GetTempPath(), $"test_large_{Guid.NewGuid()}.bin"); 927string tempPath = Path.Combine(Path.GetTempPath(), $"test_save_large_{Guid.NewGuid()}.bin"); 950string tempPath = Path.Combine(Path.GetTempPath(), $"test_existing_{Guid.NewGuid()}.bin");
Files\HostedFileClientExtensionsTests.cs (8)
63var tempFile = Path.Combine(Path.GetTempPath(), $"test-{Guid.NewGuid()}.txt"); 123var tempFile = Path.Combine(Path.GetTempPath(), $"download-{Guid.NewGuid()}.bin"); 150var tempDir = Path.Combine(Path.GetTempPath(), $"dldir-{Guid.NewGuid()}"); 162Assert.Equal(Path.Combine(tempDir, "result.bin"), savedPath); 175var tempDir = Path.Combine(Path.GetTempPath(), $"dldir2-{Guid.NewGuid()}"); 187Assert.Equal(Path.Combine(tempDir, "file-id-fallback"), savedPath); 210string expectedAbsolute = Path.Combine(cwdBefore, fileName); 232var tempFile = Path.Combine(Path.GetTempPath(), $"existing-{Guid.NewGuid()}.bin");
Microsoft.Extensions.AI.Evaluation.Console (3)
Telemetry\DeviceIdHelper.cs (3)
91string cacheFilePath = Path.Combine(cacheFileDirectoryPath, CacheFileName); 123string cacheFilePath = Path.Combine(cacheFileDirectoryPath, CacheFileName); 141cacheFileDirectoryPath = Path.Combine(userProfilePath, ".cache");
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
ResultsTests.cs (1)
31Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()),
Microsoft.Extensions.AI.Evaluation.Reporting (10)
Storage\DiskBasedResponseCache.cs (4)
288=> Path.Combine(storageRootPath, "cache"); 291=> Path.Combine(keyPath, "entry.json"); 294=> Path.Combine(keyPath, "contents.data"); 300string keyPath = PathValidation.EnsureWithinRoot(_iterationPath, Path.Combine(_iterationPath, key));
Storage\DiskBasedResultStore.cs (6)
49_resultsRootPath = Path.Combine(storageRootPath, "results"); 106var resultFile = new FileInfo(Path.Combine(resultDir.FullName, $"{result.IterationName}.json")); 139Path.Combine(_resultsRootPath, executionName))); 293Path.Combine(_resultsRootPath, executionName))); 326var scenarioDir = new DirectoryInfo(Path.Combine(executionDir.FullName, scenarioName)); 362var resultFile = new FileInfo(Path.Combine(scenarioDir.FullName, $"{iterationName}.json"));
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (14)
DiskBased\PathValidationTests.cs (14)
112string root = Path.Combine(Path.GetTempPath(), "testroot"); 123string root = Path.Combine(Path.GetTempPath(), "testroot"); 134string root = Path.Combine(Path.GetTempPath(), "testroot") + Path.DirectorySeparatorChar; 135string child = Path.Combine(root, "file.txt"); 149string root = Path.Combine(Path.GetTempPath(), "testroot"); 169string root = Path.Combine(Path.GetTempPath(), "testroot"); 180string root = Path.Combine(Path.GetTempPath(), "testroot"); 190string root = Path.Combine(Path.GetTempPath(), "testroot"); 337string longRoot = Path.Combine(Path.GetTempPath(), "LongDirectoryName_ForTesting"); 348string longChild = Path.Combine(longRoot, "file.txt"); 385string longRoot = Path.Combine(Path.GetTempPath(), "LongDirectoryName_ForTesting"); 397string child = Path.Combine(shortRoot, "file.txt"); 398File.WriteAllText(Path.Combine(longRoot, "file.txt"), string.Empty); 431string root = Path.Combine(Path.GetTempPath(), "TestRoot");
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIHostedFileClientIntegrationTests.cs (1)
241tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
OpenAIResponseClientIntegrationTests.cs (1)
182string tempPath = Path.Combine(Path.GetTempPath(), $"image_gen_test_{imageModel}{extension}");
Microsoft.Extensions.AI.Templates.Tests (12)
test\ProjectTemplates\Infrastructure\Project.cs (1)
28StartupProjectFullPath = Path.Combine(rootPath, field);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (5)
42_sandboxInstallPath = Path.Combine(_sandboxOutput, "install"); 43_sandboxProjectsPath = Path.Combine(_sandboxOutput, "projects"); 84file.CopyTo(Path.Combine(testSandbox, file.Name)); 89CopySandboxDirectory(subDir.FullName, Path.Combine(testSandbox, subDir.Name)); 95var outputFolderPath = Path.Combine(_sandboxProjectsPath, projectName);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
test\ProjectTemplates\Infrastructure\TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (2)
35TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxSource, "nuget.config"); 46var gitPath = Path.Combine(directory, ".git");
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownReader.cs (1)
106string inputFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.Extensions.DataIngestion.Tests (5)
IngestionPipelineTests.cs (2)
34_withTable = new(Path.Combine("TestFiles", "withTable.md")); 55_withImage = new(Path.Combine("TestFiles", "withImage.md"));
Readers\DocumentReaderConformanceTests.cs (2)
48string filePath = Path.Combine(Path.GetTempPath(), Path.GetTempFileName() + ".txt"); 192FileInfo file = new(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + extension));
Readers\MarkItDownMcpReaderTests.cs (1)
45var nonExistentFile = new FileInfo(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
Microsoft.Extensions.DependencyModel (7)
Resolution\AppBaseCompilationAssemblyResolver.cs (2)
61string refsPath = Path.Combine(_basePath, RefsDirectoryName); 87string sharedRefs = Path.Combine(sharedDirectory, RefsDirectoryName);
Resolution\ReferenceAssemblyPathResolver.cs (2)
69string relativeToReferenceAssemblies = Path.Combine(_defaultReferenceAssembliesPath, path); 81string fallbackFile = Path.Combine(fallbackPath, name);
Resolution\ResolverUtils.cs (3)
15path = Path.Combine(library.Name, library.Version); 18packagePath = Path.Combine(basePath, path); 29fullName = Path.Combine(basePath, assemblyPath);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\LinuxUtilizationParserCgroupV2.cs (1)
319FileInfo memoryUsageInBytesFile = new(Path.Combine(path, "memory.current"));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Linux\OSFileSystemTests.cs (1)
26Path.Combine(Directory.GetCurrentDirectory(), "fixtures"), "*.slice");
Linux\Resources\HardcodedValueFileSystem.cs (1)
41.Select(x => Path.Combine(directory, x.Value))
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
60var path = Path.Combine(processDir, args.Name + ".dll");
Microsoft.Extensions.FileProviders.Physical (6)
PhysicalFileProvider.cs (1)
232fullPath = Path.GetFullPath(Path.Combine(Root, path));
PhysicalFilesWatcher.cs (4)
233var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 357string oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1)); 987while (Path.Combine(watchDir, _expectedName) is var childPath && Directory.Exists(childPath)) 1023string nextDir = Path.Combine(watchDir, _expectedName);
PollingWildCardChangeToken.cs (1)
182string filePath = Path.Combine(_directoryInfo.FullName, path);
Microsoft.Extensions.FileSystemGlobbing (6)
Abstractions\DirectoryInfoWrapper.cs (2)
79new DirectoryInfo(Path.Combine(_directoryInfo.FullName, name)), 89=> new FileInfoWrapper(new FileInfo(Path.Combine(_directoryInfo.FullName, name)));
InMemoryDirectoryInfo.cs (3)
75fileList.Add(Path.GetFullPath(Path.Combine(normalizedRoot, fileWithNormalSeparators))); 156string combinedPath = Path.Combine(FullName, path); 170string combinedPath = Path.Combine(FullName, path);
MatcherExtensions.cs (1)
67result.Add(Path.GetFullPath(Path.Combine(directoryPath, match.Path)));
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
263return Path.Combine(Path.GetFullPath(basePath), contentRootPath);
Microsoft.Extensions.Http.Resilience.Tests (2)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (2)
230var tempDirectory = Path.Combine(Path.GetTempPath(), $"GrpcNetClientFactoryTargetTests_{Guid.NewGuid():N}"); 235var projectPath = Path.Combine(tempDirectory, "test.proj");
Microsoft.Extensions.Logging.AzureAppServices (2)
FileLoggerProvider.cs (1)
66return Path.Combine(_path, $"{_fileName}{group.Year:0000}{group.Month:00}{group.Day:00}.txt");
SiteConfigurationProvider.cs (1)
14var settingsFile = Path.Combine(settingsFolder, "settings.json");
Microsoft.Extensions.ML.Tests (4)
FileLoaderTests.cs (1)
48loaderUnderTest.Start(Path.Combine("TestModels", "SentimentModel.zip"), false);
PredictionEnginePoolTests.cs (3)
35.FromFile(modelName: "model1", filePath: Path.Combine("TestModels", "SentimentModel.zip"), watchForChanges: false); 85using var stream = File.OpenRead(Path.Combine("TestModels", "SentimentModel.zip")); 113using var stream = File.OpenRead(Path.Combine("TestModels", "SentimentModel.zip"));
Microsoft.Extensions.ServiceDiscovery.Dns (3)
DnsSrvServiceEndpointProviderFactory.cs (3)
19private static readonly string s_resolveConfPath = Path.Combine($"{Path.DirectorySeparatorChar}etc", "resolv.conf"); 133var tokenPath = Path.Combine(s_serviceAccountPath, "token"); 139var certPath = Path.Combine(s_serviceAccountPath, "ca.crt");
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
112File.WriteAllText(Path.Combine(_directory, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
GeneratorTests.cs (2)
141var fullReportPath = Path.Combine(projectDir, outputPath); 155Assert.True(File.Exists(Path.Combine(fullReportPath, "ComplianceReport.json")));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.Logging.Unit.Tests (7)
AttributeParserTests.cs (1)
117.UseDirectory(Path.Combine("..", "Verified"));
CompilationHelper.cs (2)
30refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 31refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
ParserTests.cs (1)
684.UseDirectory(Path.Combine("..", "Verified"));
ParserTests.LogProperties.cs (1)
490.UseDirectory(Path.Combine("..", "Verified"));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.MetadataExtractor (4)
MetadataReportsGenerator.cs (1)
110File.WriteAllText(Path.Combine(path, _fileName), reportStringBuilder.ToString(), Encoding.UTF8);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
112File.WriteAllText(Path.Combine(_directory, _fileName), report, Encoding.UTF8);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
86File.WriteAllText(Path.Combine(path, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
GeneratorTests.cs (5)
80var goldenReportPath = Path.Combine("GoldenReports", goldenFileName); 82var generatedReportPath = Path.Combine(Directory.GetCurrentDirectory(), ReportFilename); 133Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 169var fullReportPath = Path.Combine(projectDir, outputPath); 183Assert.True(File.Exists(Path.Combine(fullReportPath, ReportFilename)));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (1)
86File.WriteAllText(Path.Combine(path, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.MetricsReports.Unit.Tests (7)
GeneratorTests.cs (5)
45var goldenReportPath = Path.Combine("GoldenReports", goldenFileName); 47var generatedReportPath = Path.Combine(Directory.GetCurrentDirectory(), ReportFilename); 93Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 122var fullReportPath = Path.Combine(projectDir, outputPath); 136Assert.True(File.Exists(Path.Combine(fullReportPath, ReportFilename)));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Maui (1)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
56 var filePath = Path.Combine(rootPath, font.FontName!);
Microsoft.Maui.Controls.Build.Tasks (1)
XamlCTask.cs (1)
116 xamlFilePath = IOPath.Combine(prefix, xamlFilePath);
Microsoft.Maui.Resizetizer (32)
AndroidAdaptiveIconGenerator.cs (7)
66 var dir = Path.Combine(fullIntermediateOutputPath.FullName, dpi.Path); 67 var destination = Path.Combine(dir, backgroundDestFilename); 110 var dir = Path.Combine(fullIntermediateOutputPath.FullName, dpi.Path); 111 var destination = Path.Combine(dir, foregroundDestFilename); 143 var dir = Path.Combine(fullIntermediateOutputPath.FullName, "mipmap-anydpi-v26"); 144 var adaptiveIconDestination = Path.Combine(dir, AppIconName + ".xml"); 145 var adaptiveIconRoundDestination = Path.Combine(dir, AppIconName + "_round.xml");
AppleIconAssetsGenerator.cs (4)
29 var outputAppIconSetDir = Path.Combine(IntermediateOutputPath, DpiPath.Ios.AppIconPath.Replace("{name}", AppIconName)); 30 var outputAssetsDir = Path.Combine(outputAppIconSetDir, ".."); 36 var assetContentsFile = Path.Combine(outputAssetsDir, "Contents.json"); 37 var appIconSetContentsFile = Path.Combine(outputAppIconSetDir, "Contents.json");
CreatePartialInfoPlistTask.cs (1)
34 var plistFilename = Path.Combine(IntermediateOutputPath, PlistName ?? "PartialInfo.plist");
GeneratePackageAppxManifest.cs (1)
51 var filename = Path.Combine(IntermediateOutputPath, GeneratedFilename ?? "Package.appxmanifest");
GenerateSplashAndroidResources.cs (6)
86 var dir = Path.Combine(IntermediateOutputPath, "values"); 89 var colorsFile = Path.Combine(dir, "maui_colors.xml"); 110 var dir = Path.Combine(IntermediateOutputPath, "drawable"); 113 var drawableFile = Path.Combine(dir, "maui_splash_image.xml"); 136 var dir = Path.Combine(IntermediateOutputPath, "drawable-v31"); 139 var drawableFile = Path.Combine(dir, "maui_splash_image.xml");
GenerateSplashStoryboard.cs (2)
78 var storyboardFile = Path.Combine(IntermediateOutputPath, "MauiSplash.storyboard"); 99 var storyboardFile = Path.Combine(IntermediateOutputPath, "MauiSplash.storyboard");
GenerateTizenManifest.cs (2)
61 _tizenManifestFilePath = Path.Combine(Environment.CurrentDirectory, TizenManifestFile); 63 var targetFilename = Path.Combine(IntermediateOutputPath, GeneratedFilename);
GetMauiAssetPath.cs (1)
63 path = Path.Combine(FolderName, path);
Resizer.cs (2)
48 var destination = Path.Combine(dpi.Path, info.OutputName + (includeScale ? dpi.FileSuffix : dpi.NameSuffix) + info.OutputExtension); 53 destination = Path.Combine(fullIntermediateOutputPath.FullName, destination);
TizenResourceXmlGenerator.cs (3)
56 string outputResourceDir = Path.Combine(IntermediateOutputPath, "res"); 57 string outputContentsDir = Path.Combine(outputResourceDir, "contents"); 58 string destination = Path.Combine(outputResourceDir, "res.xml");
TizenSplashUpdater.cs (2)
30 var splashFullPath = Path.Combine(IntermediateOutputPath, splashDirectoryName); 55 UpdateColorAndMoveFile(splashInfo, GetScreenSize(resolution, orientation), destination, Path.Combine(splashFullPath, newImage));
WindowsIconGenerator.cs (1)
28 string destination = Path.Combine(destinationFolder, $"{fileName}.ico");
Microsoft.ML.AutoML (3)
API\AutoMLExperimentExtension.cs (1)
328var csvFilePath = Path.Combine(folder, csvFileName);
Experiment\Runners\RunnerUtil.cs (1)
58new FileInfo(Path.Combine(modelDirectory.FullName, $"Model{iterationNum}_{foldNum}.zip"));
Experiment\Runners\TrainValidateRunner.cs (1)
66new FileInfo(Path.Combine(modelDirectory.FullName, $"Model{iterationNum}.zip"));
Microsoft.ML.AutoML.Samples (2)
Cifar10.cs (2)
11public static string cifar10FolderPath = Path.Combine(Path.GetTempPath(), "cifar10"); 12public static string cifar10ZipPath = Path.Combine(Path.GetTempPath(), "cifar10.zip");
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");
DatasetUtil.cs (7)
27public static string TrivialMulticlassDatasetPath = Path.Combine("TestData", "TrivialMulticlassDataset.txt"); 139string fullImagesetFolderPath = Path.Combine( 191UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 203string relativeFilePath = Path.Combine(destDir, destFileName); 228if (File.Exists(Path.Combine(destFolder, flag))) 232File.Create(Path.Combine(destFolder, flag)); 236Path.Combine(new FileInfo(typeof(
TrialResultManagerTest.cs (1)
53var tempFilePath = Path.Combine(OutDir, Path.GetRandomFileName() + ".txt");
Microsoft.ML.CodeGenerator (9)
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachCodeGenenrator.cs (1)
50var folder = Path.Combine(_settings.OutputBaseDir, _settings.OutputName);
CodeGenerator\CSharp\CodeGenerator.cs (3)
69var modelprojectDir = Path.Combine(_settings.OutputBaseDir, $"{_settings.OutputName}.Model"); 84var consoleAppProjectDir = Path.Combine(_settings.OutputBaseDir, $"{_settings.OutputName}.ConsoleApp"); 95var solutionPath = Path.Combine(_settings.OutputBaseDir, $"{_settings.OutputName}.sln");
CodeGenerator\CSharp\CSharpSolution.cs (2)
23project.WriteToDisk(Path.Combine(folder, project.Name)); 28var solutionPath = Path.Combine(folder, $"{Name}.sln");
Utils.cs (3)
196var projectPaths = projects.Select((name) => $"\"{Path.Combine(Path.GetDirectoryName(solutionPath), name).ToString()}\""); 225proc.StartInfo.Arguments = $"sln \"{solutionPath}\" add \"{Path.Combine(consoleAppProjectDir, consoleAppProjectName)}\" \"{Path.Combine(modelprojectDir, modelProjectName)}\"";
Microsoft.ML.Core (17)
ComponentModel\AssemblyLoadingUtils.cs (2)
113return Path.GetFullPath(Path.Combine(Path.GetTempPath(), "MLNET_" + guid.ToString())); 275path = Path.Combine(path, "AutoLoad");
Data\ModelLoading.cs (3)
60var dir = Path.Combine(Directory ?? "", name); 136return LoadModelOrNull<TRes, TSig>(env, out result, Repository, Path.Combine(Directory ?? "", name), extra); 308string path = Path.Combine(Directory, dir);
Data\ModelSaving.cs (2)
22SaveModel(Repository, value, Path.Combine(Directory ?? "", name)); 84using (var ctx = new ModelSaveContext(Repository, Path.Combine(Directory ?? "", dir), ModelLoadContext.ModelStreamName))
Data\Repository.cs (3)
131path = Path.Combine(Path.GetFullPath(tempPath), $"ml_dotnet_{Path.GetFileNameWithoutExtension(Path.GetRandomFileName())}"); 251string tempPath = Path.Combine(root, Path.GetRandomFileName()); 267_ectx.Check(entityPath == Path.Combine(root, pathEnt));
Utilities\PathUtils.cs (2)
92assemblyDir = Path.Combine(assemblyDir, customSearchDir); 105var candidate = Path.Combine(dir, fileName);
Utilities\ResourceManagerUtils.cs (5)
114if (!Uri.TryCreate(Path.Combine(MlNetResourcesUrl, relativeUrl), UriKind.Absolute, out var absoluteUrl)) 206var appDataDir = Path.Combine(appDataBaseDir, "mlnet-resources"); 207var absDir = Path.Combine(string.IsNullOrEmpty(envDir) ? appDataDir : envDir, dir); 208var filePath = Path.Combine(absDir, fileName); 263string tempPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path), "temp-resource-" + guid.ToString()));
Microsoft.ML.Core.Tests (16)
UnitTests\FileSource.cs (7)
32var file1 = Path.Combine(dirName, "a.txt"); 33var file2 = Path.Combine(dirName, "b.txt"); 41fileSource = new MultiFileSource(Path.Combine(dirName, "...")); 57var fileDataA = Path.Combine(dataDir, "a.txt"); 58var fileDataB = Path.Combine(dataDir, "b.txt"); 67var fileDataSA = Path.Combine(subFolder1Dir, "a.txt"); 68var fileDataSB = Path.Combine(subFolder2Dir, "b.txt");
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=+",
UnitTests\TestModelLoad.cs (2)
27using (var modelStream = File.OpenRead(Path.Combine("TestModels", "BinaryLoader-v3.11.0.0.zip"))) 45using (var modelStream = File.OpenRead(Path.Combine("TestModels", "ConcatTransform.zip")))
UnitTests\TestResourceDownload.cs (4)
67if (File.Exists(Path.Combine(saveToDir, fileName))) 68Fail($"File '{Path.Combine(saveToDir, fileName)}' should have been deleted."); 96if (File.Exists(Path.Combine(saveToDir, fileName))) 97Fail($"File '{Path.Combine(saveToDir, fileName)}' should have been deleted.");
Microsoft.ML.Data (3)
Commands\CrossValidationCommand.cs (1)
581return Path.Combine(Path.GetDirectoryName(outputModelFile),
Commands\TrainTestCommand.cs (1)
191var tempFilePath = hasOutfile ? null : Path.Combine(((IHostEnvironmentInternal)Host).TempFilePath, Path.GetRandomFileName());
Utilities\ModelFileUtils.cs (1)
188ent = rep.OpenEntryOrNull(dir = Path.Combine(DirDataLoaderModel, "Loader"), ModelLoadContext.ModelStreamName);
Microsoft.ML.DnnImageFeaturizer.AlexNet (1)
AlexNetExtension.cs (1)
28return AlexNet(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.DnnImageFeaturizer.ResNet101 (1)
ResNet101Extension.cs (1)
28return ResNet101(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.DnnImageFeaturizer.ResNet18 (1)
ResNet18Extension.cs (1)
28return ResNet18(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.DnnImageFeaturizer.ResNet50 (1)
ResNet50Extension.cs (1)
28return ResNet50(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
472: Path.Combine(ctx.Directory, "PredictorModels"); 504var dir = Path.Combine(ctx.Directory, "PredictorModels");
Microsoft.ML.GenAI.Core.Tests (1)
CausalLMDatasetTest.cs (1)
25using Stream remoteStream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model"));
Microsoft.ML.GenAI.Mistral (1)
MistralTokenizerHelper.cs (1)
97var modelPath = Path.Combine(modelWeightFolder, modelName);
Microsoft.ML.GenAI.Phi (2)
Phi2\Phi2TokenizerHelper.cs (2)
23var vocabPath = Path.Combine(folder, vocabFile); 24var mergesPath = Path.Combine(folder, mergesFile);
Microsoft.ML.GenAI.Samples (8)
Llama\LlamaSample.cs (1)
31var originalWeightFolder = Path.Combine(weightFolder, "original");
Llama\SFT_Llama_3_2_1B.cs (1)
88var originalWeightFolder = Path.Combine(weightFolder, "original");
MEAI\Llama3_1.cs (1)
32var originalWeightFolder = Path.Combine(weightFolder, "original");
MEAI\Phi3.cs (1)
28var tokenizerPath = Path.Combine(weightFolder, "tokenizer.model");
Mistral\Mistral_7B_Instruct.cs (1)
76var mistralConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(Path.Combine(weightFolder, configName))) ?? throw new ArgumentNullException(nameof(configName));
Phi3Mini\AutoGenSample.cs (1)
30var tokenizerPath = Path.Combine(weightFolder, "tokenizer.model");
Phi3Mini\SemanticKernelSample.cs (2)
26var tokenizerPath = Path.Combine(weightFolder, "tokenizer.model"); 57var tokenizerPath = Path.Combine(weightFolder, "tokenizer.model");
Microsoft.ML.ImageAnalytics (2)
ImageLoader.cs (2)
248path = Path.Combine(_parent.ImageFolder, path); 279path = Path.Combine(_parent.ImageFolder, path);
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
49OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput");
Microsoft.ML.Maml (2)
MAML.cs (2)
136var dumpFileDir = Path.Combine( 139var dumpFilePath = Path.Combine(dumpFileDir,
Microsoft.ML.OnnxTransformer (2)
OnnxUtils.cs (2)
408var tempModelFile = Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, Path.GetRandomFileName()); 433var tempModelFile = Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, Path.GetRandomFileName());
Microsoft.ML.PerformanceTests (11)
BenchmarkBase.cs (1)
35return Path.GetFullPath(Path.Combine(DataDir, name));
ImageClassificationBench.cs (6)
50string fullImagesetFolderPath = Path.Combine( 145UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 156string relativeFilePath = Path.Combine(destDir, destFileName); 197if (File.Exists(Path.Combine(destFolder, flag))) return; 201File.Create(Path.Combine(destFolder, flag)); 213string fullPath = Path.Combine(assemblyFolderPath, relativePath);
Numeric\Ranking.cs (1)
88_modelPathMslr = Path.Combine(Path.GetDirectoryName(typeof(RankingTest).Assembly.Location), "FastTreeRankingModel.zip");
Text\MultiClassClassification.cs (2)
105_modelPathWiki = Path.Combine(Path.GetDirectoryName(typeof(MulticlassClassificationTest).Assembly.Location), @"WikiModel.zip"); 123string modelpath = Path.Combine(Path.GetDirectoryName(typeof(MulticlassClassificationTest).Assembly.Location), @"WikiModel.fold000.zip");
TextPredictionEngineCreation.cs (1)
43_trainedModelOldFormat = _context.Model.Load(Path.Combine("TestModels", "SentimentModel.zip"), out inputSchema);
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)
Dynamic\DataOperations\LoadingSvmLight.cs (1)
18var fileName = Path.Combine(dataDirectoryName, $"SVM_Data.csv");
Dynamic\DataOperations\LoadingText.cs (3)
22var fileName = Path.Combine(dataDirectoryName, $"Data_{i}.csv"); 69loader.Load(Path.Combine(dataDirectoryName, "Data_*.csv")); 120var sparseDataFileName = Path.Combine(dataDirectoryName, "saved_data.tsv");
Dynamic\TensorFlow\TextClassification.cs (1)
45var lookupMap = mlContext.Data.LoadFromTextFile(Path.Combine(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (6)
32string fullImagesetFolderPath = Path.Combine( 249UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 262string relativeFilePath = Path.Combine(destDir, destFileName); 296if (File.Exists(Path.Combine(destFolder, flag))) return; 301File.Create(Path.Combine(destFolder, flag)); 314string fullPath = Path.Combine(assemblyFolderPath, relativePath);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (7)
34string fullImagesetFolderPathTrain = Path.Combine( 38string fullImagesetFolderPathTest = Path.Combine( 280UnZip(Path.Combine(imagesDownloadFolder, fileName), 294string relativeFilePath = Path.Combine(destDir, destFileName); 328if (File.Exists(Path.Combine(destFolder, flag))) return; 342File.Create(Path.Combine(destFolder, flag)); 355string fullPath = Path.Combine(assemblyFolderPath, relativePath);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (6)
32string fullImagesetFolderPath = Path.Combine( 237UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 250string relativeFilePath = Path.Combine(destDir, destFileName); 284if (File.Exists(Path.Combine(destFolder, flag))) return; 298File.Create(Path.Combine(destFolder, flag)); 311string fullPath = Path.Combine(assemblyFolderPath, relativePath);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (6)
32string fullImagesetFolderPath = Path.Combine( 258UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 271string relativeFilePath = Path.Combine(destDir, destFileName); 305if (File.Exists(Path.Combine(destFolder, flag))) return; 319File.Create(Path.Combine(destFolder, flag)); 332string fullPath = Path.Combine(assemblyFolderPath, relativePath);
Microsoft.ML.Samples.GPU (26)
parent\6a273e5f1a281752\LearningRateSchedulingCifarResnetTransferLearning.cs (7)
34string fullImagesetFolderPathTrain = Path.Combine( 38string fullImagesetFolderPathTest = Path.Combine( 280UnZip(Path.Combine(imagesDownloadFolder, fileName), 294string relativeFilePath = Path.Combine(destDir, destFileName); 328if (File.Exists(Path.Combine(destFolder, flag))) return; 342File.Create(Path.Combine(destFolder, flag)); 355string fullPath = Path.Combine(assemblyFolderPath, relativePath);
parent\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
45var lookupMap = mlContext.Data.LoadFromTextFile(Path.Combine(
parent\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (6)
32string fullImagesetFolderPath = Path.Combine( 249UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 262string relativeFilePath = Path.Combine(destDir, destFileName); 296if (File.Exists(Path.Combine(destFolder, flag))) return; 301File.Create(Path.Combine(destFolder, flag)); 314string fullPath = Path.Combine(assemblyFolderPath, relativePath);
parent\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (6)
32string fullImagesetFolderPath = Path.Combine( 237UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 250string relativeFilePath = Path.Combine(destDir, destFileName); 284if (File.Exists(Path.Combine(destFolder, flag))) return; 298File.Create(Path.Combine(destFolder, flag)); 311string fullPath = Path.Combine(assemblyFolderPath, relativePath);
parent\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (6)
32string fullImagesetFolderPath = Path.Combine( 258UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 271string relativeFilePath = Path.Combine(destDir, destFileName); 305if (File.Exists(Path.Combine(destFolder, flag))) return; 319File.Create(Path.Combine(destFolder, flag)); 332string fullPath = Path.Combine(assemblyFolderPath, relativePath);
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)
TestBase.cs (2)
41return Path.Combine(testDataDir.FullName, fileName).Replace(cwd, "."); 53return Path.Combine(testDataDir.FullName, folderName).Replace(cwd, ".");
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (2)
94return Path.Combine(SweepCommand.LocalExePath, "../Win/maml.exe"); 96return Path.Combine(SweepCommand.LocalExePath, "../Linux/maml");
Microsoft.ML.TensorFlow (5)
TensorflowTransform.cs (4)
154var tempDirPath = Path.GetFullPath(Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, nameof(TensorFlowTransformer) + "_" + Guid.NewGuid())); 166string fullFilePath = Path.Combine(tempDirPath, relativeFile); 472Path.Combine(_savedModelPath, DefaultModelFileNames.Graph), 475modelFilePaths.AddRange(Directory.GetFiles(Path.Combine(_savedModelPath, DefaultModelFileNames.VariablesFolder), DefaultModelFileNames.Data, SearchOption.TopDirectoryOnly));
TensorflowUtils.cs (1)
642string tempDirectory = Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, Path.GetRandomFileName());
Microsoft.ML.TensorFlow.Tests (20)
TensorflowTests.cs (20)
34tempFolder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 35assetsPath = Path.Combine(tempFolder, "assets"); 36parentWorkspacePath = Path.Combine(assetsPath, "cached"); 73_fullImagesetFolderPath = Path.Combine( 750var varDir = Path.Combine(modelLocation, "variables"); 1433if (Directory.Exists(workspacePath) && File.Exists(Path.Combine(workspacePath, trainSetBottleneckCachedValuesFileName)) 1434&& File.Exists(Path.Combine(workspacePath, validationSetBottleneckCachedValuesFileName))) 1449string workspacePath = Path.Combine(TensorFlowScenariosTestsFixture.parentWorkspacePath, finalImagesFolderName + "_" + (int)arch); 1734Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.TrainSetBottleneckCachedValuesFileName))); 1735Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.ValidationSetBottleneckCachedValuesFileName))); 1834string fullImagesetFolderPath = Path.Combine( 1942UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 1944if (!Directory.Exists(Path.Combine(imagesDownloadFolder, filenameAlias))) 1945Directory.Move(Path.Combine(imagesDownloadFolder, Path.GetFileNameWithoutExtension(fileName)), Path.Combine(imagesDownloadFolder, "FPTSUT")); 1955UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 1967string relativeFilePath = Path.Combine(destDir, destFileName); 1983if (File.Exists(Path.Combine(destFolder, flag))) 1987File.Create(Path.Combine(destFolder, flag)); 2010string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.ML.TestFramework (9)
BaseTestBaseline.cs (5)
37private readonly string _logRootRelPath = Path.Combine("Logs", BuildString); // Relative to OutDir. 97_baselineCommonDir = Path.Combine(baselineRootDir, "Common"); 100string logDir = Path.Combine(OutDir, _logRootRelPath); 103string logPath = Path.Combine(logDir, FullTestName + LogSuffix); 414string relPath = Path.Combine(dir, name);
BaseTestClass.cs (2)
57OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput"); 108return Path.GetFullPath(Path.Combine(DataDir, name));
CopyAction.cs (2)
52var dir = new DirectoryInfo(Path.Combine(deploymentDirectory, copyfolder)); 54CopyAll(Path.Combine(deploymentDirectory, "AutoLoad"), testDirectory.FullName);
Microsoft.ML.TestFrameworkCommon (6)
TestCommon.cs (4)
18return Path.Combine(outDir, name); 34return Path.GetFullPath(Path.Combine(dataDir, name)); 76while (!Directory.Exists(Path.Combine(directory, ".git")) && directory != null) 293Directory.CreateDirectory(Path.Combine(outDir, subDir));
Utility\PathResolver.cs (2)
46yield return Path.Combine(AppContext.BaseDirectory, name); 97appLocalNativePath = Path.Combine(
Microsoft.ML.Tests (14)
DatabaseLoaderTests.cs (5)
363var databaseFile = Path.Combine(_temporaryDatabaseDirectory, $"{databaseName}.mdf"); 364File.Copy(Path.Combine(sourceDirectory, $"{databaseName}.mdf"), databaseFile); 367var logFile = Path.Combine(_temporaryDatabaseDirectory, $"{databaseName}_log.ldf"); 368File.Copy(Path.Combine(sourceDirectory, $"{databaseName}_log.ldf"), logFile); 376var databaseFile = Path.GetFullPath(Path.Combine("TestDatabases", $"{databaseName}.sqlite"));
ImagesTests.cs (2)
1149var imagePath = Path.Combine(imageFolder, fileName); 1282string imageTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + extension);
OnnxConversionTest.cs (2)
1172var subDir = Path.Combine("Onnx", "Transforms"); 1901var subDir = Path.Combine("Onnx", "Transforms");
TextLoaderTests.cs (1)
595var combinedPath = Path.Combine(directoryName, "*");
Transformers\ConcatTests.cs (2)
85var subdir = Path.Combine("Transform", "Concat"); 149var subdir = Path.Combine("Transform", "Concat");
Transformers\NormalizerTests.cs (1)
1005var modelPath = Path.Combine("TestModels", "normalizer_verwrit-00010001.zip");
Transformers\TextFeaturizerTests.cs (1)
750var modelPath = Path.Combine("TestModels", "SentimentModel.zip");
Microsoft.ML.TimeSeries.Tests (4)
TimeSeries.cs (3)
31TestCore(GetDataPath(Path.Combine("Timeseries", "real_1.csv")), 47TestCore(GetDataPath(Path.Combine("Timeseries", "real_11.csv")), 63TestCore(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS2.csv")),
TimeSeriesDirectApi.cs (1)
536var dataPath = GetDataPath(Path.Combine("Timeseries", "anomaly_detection.csv"));
Microsoft.ML.Tokenizers.Data.Tests (1)
parent\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Tokenizers.Tests (35)
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"));
CodeGenTests.cs (4)
28using Stream vocabStream = File.OpenRead(Path.Combine(@"Codegen-350M-mono", "vocab.json")); 29using Stream mergesStream = File.OpenRead(Path.Combine(@"Codegen-350M-mono", "merges.txt")); 39using Stream vocabStream = File.OpenRead(Path.Combine(@"Phi-2", "vocab.json")); 40using Stream mergesStream = File.OpenRead(Path.Combine(@"Phi-2", "merges.txt"));
EnglishRobertaTests.cs (6)
91Path.Combine(@"Gpt-2", "vocab.json"), 92Path.Combine(@"Gpt-2", "merges.txt"), 93Path.Combine(@"Gpt-2", "dict.txt"), 109string vocabFile = Path.Combine(@"Gpt-2", "vocab.json"); 110string mergeFile = Path.Combine(@"Gpt-2", "merges.txt"); 111string translationFile = Path.Combine(@"Gpt-2", "dict.txt");
LlamaTests.cs (3)
32using Stream remoteStream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model")); 39using Stream remoteStream = File.OpenRead(Path.Combine(@"Mistral", "tokenizer.model")); 46using Stream remoteStream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model"));
SentencePieceTests.cs (7)
44using Stream stream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model")); 57byte[] modelBytes = File.ReadAllBytes(Path.Combine(@"Llama", "tokenizer.model")); 71using Stream stream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model")); 92using Stream stream = File.OpenRead(Path.Combine( 108using Stream stream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model")); 142using Stream bpeStream = File.OpenRead(Path.Combine(@"Llama", "tokenizer.model")); 146using Stream unigramStream = File.OpenRead(Path.Combine(
UnigramTests.cs (5)
26using Stream remoteStream = File.OpenRead(Path.Combine(@"Paraphrase-multilingual-MiniLM-L12-v2", "sentencepiece.bpe.model")); 58using Stream remoteStream = File.OpenRead(Path.Combine(@"Paraphrase-multilingual-MiniLM-L12-v2", "sentencepiece.bpe.model")); 616using Stream jsonStream = File.OpenRead(Path.Combine("Paraphrase-multilingual-MiniLM-L12-v2", "tokenizer.json")); 654using Stream jsonStream = File.OpenRead(Path.Combine("Paraphrase-multilingual-MiniLM-L12-v2", "tokenizer.json")); 1191using JsonDocument bundled = JsonDocument.Parse(File.ReadAllText(Path.Combine("Paraphrase-multilingual-MiniLM-L12-v2", "tokenizer.json")));
Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.TorchSharp (6)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
261var destDir = Path.Combine(((IHostEnvironmentInternal)Parent.Host).TempFilePath, "mlnet"); 266string relativeFilePath = Path.Combine(destDir, destFileName);
Roberta\QATrainer.cs (2)
245var destDir = Path.Combine(((IHostEnvironmentInternal)Parent.Host).TempFilePath, "mlnet"); 250string relativeFilePath = Path.Combine(destDir, destFileName);
TorchSharpBaseTrainer.cs (2)
171var destDir = Path.Combine(((IHostEnvironmentInternal)Parent.Host).TempFilePath, "mlnet"); 176string relativeFilePath = Path.Combine(destDir, destFileName);
Microsoft.ML.Transforms (2)
Text\TextFeaturizingEstimator.cs (1)
754var mapperDirName = Path.Combine(dirName, "Mapper");
Text\WordEmbeddingsExtractor.cs (1)
632string dir = kind == WordEmbeddingEstimator.PretrainedModelKind.SentimentSpecificWordEmbedding ? Path.Combine("Text", "Sswe") : "WordVectors";
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 (5)
ContentStore.cs (1)
40string descriptorPath = Path.Combine(ContentRoot, digestValue) + extension;
LocalDaemons\ArchiveFileRegistry.cs (1)
37fullPath = Path.Combine(fullPath, destinationReference.Repository + ".tar.gz");
LocalDaemons\ContainerRuntimeOperations.cs (2)
97string archivePath = Path.Combine(temporaryDirectory.FullName, "image.tar"); 161string fullPath = Path.Combine(
LocalDaemons\DockerCli.cs (1)
58string fullPath = Path.Combine(directory, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"{command}.exe" : command);
Microsoft.NET.Build.Extensions.Tasks (1)
parent\Common\ItemUtilities.cs (1)
148return Path.Combine(destinationSubDirectory, fileName);
Microsoft.NET.Build.Tasks (62)
AssetsFileResolver.cs (3)
57string sourcePath = Path.Combine(libraryPath, runtimeTarget.Path); 76string sourcePath = Path.Combine(libraryPath, resourceAssembly.Path); 98string srcpath = Path.Combine(libraryPath, item.Path);
DependencyContextBuilder.cs (2)
656string libraryPath = !string.IsNullOrWhiteSpace(library.Path) ? Path.Combine(mainProjectDirectory, library.Path) : null; 859string fullProjectPath = Path.GetFullPath(Path.Combine(mainProjectDirectory, projectPath));
FrameworkPackages\FrameworkPackages.cs (3)
128var packsFolder = Path.Combine(targetingPackRoot, frameworkName + ".Ref"); 129var originalPacksFolder = Path.Combine(targetingPackRoot.OriginalValue, frameworkName + ".Ref"); 135log.LogMessage("Pack directories found: {0}", string.Join(Environment.NewLine, packDirectories.Select(d => Path.Combine(originalPacksFolder, Path.GetFileName(d)))));
GenerateDepsFile.cs (1)
270string destinationSubPath = string.IsNullOrEmpty(destinationSubDir) ? null : Path.Combine(destinationSubDir, Path.GetFileName(i.ItemSpec));
GenerateShims.cs (2)
83var packagedShimOutputDirectoryAndRid = Path.Combine( 87var appHostDestinationFilePath = Path.Combine(
GetEmbeddedApphostPaths.cs (2)
40var packagedShimOutputDirectoryAndRid = Path.Combine( 44var appHostDestinationFilePath = Path.Combine(
NugetContentAssetPreprocessor.cs (2)
19_preprocessedOutputDirectory = Path.Combine(outputDirectoryBase, BuildPreprocessedContentHash(_preprocessorValues)); 31pathToFinalAsset = Path.Combine(_preprocessedOutputDirectory, relativeOutputPath);
NuGetPackageResolver.cs (1)
54return Path.Combine(packagePath, NormalizeRelativePath(relativePath));
parent\Common\ItemUtilities.cs (1)
148return Path.Combine(destinationSubDirectory, fileName);
parent\parent\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");
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
23string? workloadManifestPath = Path.Combine(workloadManifestDirectory, "WorkloadManifest.json");
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (2)
26var catalog = Path.Combine(localizationDir, $"WorkloadManifest.{culture.Name}.json"); 65string localizationDir = Path.Combine(manifestDir, "localize");
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
100if (File.Exists(Path.Combine(path, "baseline.workloadset.json")))
PrepareForReadyToRunCompilation.cs (5)
170var outputR2RImage = Path.Combine(OutputPath, outputR2RImageRelativePath); 250r2rFileToPublish.ItemSpec = Path.Combine(OutputPath, Path.GetFileName(outputR2RImageRelativePath)); 259r2rFileToPublish.ItemSpec = Path.Combine(OutputPath, Path.GetFileName(outputR2RImageRelativePath)); 375intermediateR2RImage = Path.Combine(OutputPath, r2rImageRelativePath); 376var r2rImageFinal = Path.Combine(OutputPath, r2rFinalImageRelativePath);
ProcessFrameworkReferences.cs (2)
1146yield return Path.Combine(packRoot, "packs"); 1156yield return Path.Combine(userProfileDir, "packs");
ReferenceInfo.cs (1)
169string destinationSubPath = string.IsNullOrEmpty(destinationSubDirectory) ? null : Path.Combine(destinationSubDirectory, Path.GetFileName(fullPath));
ResolveAppHosts.cs (1)
306appHostItem.SetMetadata(MetadataKeys.Path, Path.Combine(appHostPackPath, hostRelativePathInPackage));
ResolvedFile.cs (1)
42Path.Combine(DestinationSubDirectory, FileName);
ResolvePackageAssets.cs (1)
1954Path.Combine(destinationSubDirectory, assetsFileName));
ResolvePackageDependencies.cs (1)
465return Path.Combine(resolvedPackagePath, relativePath);
ResolveRuntimePackAssets.cs (4)
152AbsolutePath absoluteRuntimeListPath = new(Path.Combine("data", "RuntimeList.xml"), absoluteRuntimePackRoot); 233throw new BuildErrorException($"Culture not set in runtime manifest for {Path.GetFullPath(Path.Combine(runtimePack.GetMetadata(MetadataKeys.PackageDirectory), fileElement.Attribute("Path").Value))}"); 243throw new BuildErrorException($"Unrecognized file type '{typeAttributeValue}' in {Path.Combine(absoluteRuntimePackRoot.OriginalValue, absoluteRuntimeListPath.OriginalValue)}"); 285assetItem.SetMetadata(MetadataKeys.DestinationSubPath, Path.Combine(culture, Path.GetFileName(assetPath)));
ResolveTargetingPackAssets.cs (8)
223string targetingPackOriginalDataPath = Path.Combine(targetingPackRoot.OriginalValue, "data"); 226Path.Combine(targetingPackOriginalDataPath, "PlatformManifest.txt")); 229Path.Combine(targetingPackOriginalDataPath, "PackageOverrides.txt")); 232Path.Combine(targetingPackOriginalDataPath, "FrameworkList.xml")); 313string itemSpec = Path.Combine(targetingPackAssetPath.OriginalValue, Path.GetFileName(dll)); 410Path.Combine(definition.TargetingPackRoot.OriginalValue, fileElement.Attribute("Path").Value) : 467string dllPath = Path.Combine(targetingPackDllFolder, assemblyName + ".dll"); 477var dllPath = Path.Combine(targetingPackDllFolder, assemblyName + ".dll");
ResourceAssemblyInfo.cs (1)
26string relativePath = Path.Combine(destinationSubDirectory, Path.GetFileName(referenceSatellitePath.ItemSpec));
RunCsWinRTGenerator.cs (1)
192return Path.Combine(CsWinRTToolsDirectory!, ToolName);
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
38return Path.Combine(homePath, DotnetProfileDirectoryName);
Microsoft.NET.HostModel (1)
Bundle\Bundler.cs (1)
315string bundlePath = Path.Combine(_outputDir, _hostName);
Microsoft.NET.ProjectData (19)
CachePathResolver.cs (3)
226 string objDir = Path.Combine(projectDirectory, "obj"); 236 return Path.Combine(objDir, "NuGet"); 315 string candidate = Path.Combine(hashDir, nativeSuffix);
Donor\ProjectDataDonorIndex.cs (4)
198 string gitPath = Path.Combine(currentDirectory, ".git"); 234 : Path.GetFullPath(Path.Combine(Path.GetDirectoryName(gitFilePath)!, value)); 245 string commonDirFilePath = Path.Combine(gitDirectory, "commondir"); 253 : Path.GetFullPath(Path.Combine(gitDirectory, commonDir));
Donor\ProjectDataDonorIndex.Git.cs (5)
42 string gitPath = Path.Combine(workspaceRoot, ".git"); 63 string headPath = Path.Combine(gitDirectory, "HEAD"); 80 AppendFileFingerprint(fingerprint, Path.Combine(commonGitDirectory, "packed-refs"), gitQueryContext); 269 string worktreeRefPath = Path.Combine(gitDirectory, relativePath); 274 : Path.Combine(commonGitDirectory, relativePath),
Donor\ProjectDataDonorIndex.Reader.cs (1)
76 string donorProjectFilePath = Path.GetFullPath(Path.Combine(entry.Path, relativeProjectPath));
ProjectDataBuildAttemptManifest.cs (1)
34 return Path.Combine(receiptDirectory, FileName);
ProjectDataBuildReceipt.cs (2)
29 return Path.Combine(receiptDirectory, fileName); 35 return Path.Combine(receiptDirectory, AggregateCompletionFileName);
SdkKnownFrameworkReferenceResolver.cs (1)
63 string propsPath = Path.Combine(sdkPath, "Microsoft.NETCoreSdk.BundledVersions.props");
UnsupportedProjectDataMarker.cs (1)
156 string candidate = Path.Combine(directory, fileName);
UserFolderCachePath.cs (1)
109 return Path.Combine(xdgCacheHome!, CacheDirectoryName);
Microsoft.NET.ProjectData.Tasks (14)
CachePathResolver.cs (3)
81 : Path.GetFullPath(Path.Combine(this.projectDir, inputPath)); 320 if (!string.IsNullOrEmpty(programFiles)) Add(Path.Combine(programFiles, "dotnet")); 329 if (!string.IsNullOrEmpty(userHome)) Add(Path.Combine(userHome, ".dotnet"));
ProjectDataWriter.cs (2)
540 string tempPath = Path.Combine(tempDir, Path.GetFileName(outputPath) + "." + Guid.NewGuid().ToString("N") + ".tmp"); 732 : Path.GetFullPath(Path.Combine(projectDirectory, item.ItemSpec));
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.cs (4)
198 string gitPath = Path.Combine(currentDirectory, ".git"); 234 : Path.GetFullPath(Path.Combine(Path.GetDirectoryName(gitFilePath)!, value)); 245 string commonDirFilePath = Path.Combine(gitDirectory, "commondir"); 253 : Path.GetFullPath(Path.Combine(gitDirectory, commonDir));
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildAttemptManifest.cs (1)
34 return Path.Combine(receiptDirectory, FileName);
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildReceipt.cs (2)
29 return Path.Combine(receiptDirectory, fileName); 35 return Path.Combine(receiptDirectory, AggregateCompletionFileName);
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UnsupportedProjectDataMarker.cs (1)
156 string candidate = Path.Combine(directory, fileName);
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UserFolderCachePath.cs (1)
109 return Path.Combine(xdgCacheHome!, CacheDirectoryName);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
BrotliCompress.cs (1)
87var outputRelativePath = Path.Combine(OutputDirectory, CalculateTargetPath(inputFullPath, ".br"));
GZipCompress.cs (2)
50var outputRelativePath = Path.Combine(OutputDirectory, targetFileName); 51var outputFullPath = Path.Combine(outputDirectory.Value, targetFileName);
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1237var destPath = Path.Combine(fxDir, Normalize(fileSystemRelativePath));
Microsoft.NET.Sdk.Publish.Tasks (24)
AppSettingsTransform.cs (1)
13string tempFileFullPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
MsDeploy\CommonUtility.cs (1)
1747return Path.Combine(sourceRootPath, source);
MsDeploy\VSMSDeployHostObject.cs (1)
54srcSkipRuleItem.SetMetadata("AbsolutePath", Regex.Escape(Path.Combine(rootFolderOfFileToPublish, p.SourceFilePath)) + "$");
Tasks\GenerateEnvTransform.cs (1)
43string generatedTransformFileName = Path.Combine(PublishTempDirectory, Path.GetFileName(envTransformTemplatePath));
Tasks\Kudu\KuduDeploy.cs (1)
168string zipFileFullPath = Path.Combine(Path.GetTempPath(), string.Format("Publish{0}.zip", new Random().Next(int.MaxValue)));
Tasks\MsDeploy\MSDeploy.cs (6)
266string msdeployExePath = Path.Combine("IIS", "Microsoft Web Deploy V3"); 267m_exePath = Path.Combine(programFiles, msdeployExePath); 268if (!File.Exists(Path.Combine(m_exePath, ToolName))) 275m_exePath = Path.Combine(programFiles, msdeployExePath); 281m_exePath = Path.Combine(programFiles, msdeployExePath); 1039string result = ExePath is null ? string.Empty : Path.Combine(ExePath, ToolName);
Tasks\OneDeploy\CreatePackageFile.cs (1)
49var packageFilePath = Path.Combine(IntermediateTempPath, packageFileName);
Tasks\TransformAppSettings.cs (2)
65sourceAppSettingsFilePath = Path.Combine(ProjectDirectory, SourceAppSettingsName); 74destinationAppSettingsFilePath = Path.Combine(PublishDirectory, DestinationAppSettingsName);
Tasks\TransformWebConfig.cs (3)
83publishWebConfigPath = Path.Combine(PublishDir, defaultWebConfigPath); 90publishWebConfigPath = Path.Combine(PublishDir, Path.GetFileName(projectWebConfigPath)); 166var projectWebConfigPath = Path.Combine(projectDirectory, webConfigFileName);
Tasks\WebJobs\GenerateRunCommandFile.cs (2)
27bool isRunCommandFilePresent = ProjectDirectory is not null && File.Exists(Path.Combine(ProjectDirectory, runCmdFileName)); 33File.WriteAllText(Path.Combine(WebJobsDirectory, runCmdFileName), command);
Tasks\ZipDeploy\CreateZipFile.cs (1)
30CreatedZipPath = Path.Combine(PublishIntermediateTempPath, zipFileName);
WebConfigTelemetry.cs (1)
107string projectFullPathConstructed = Path.Combine(solutionFileDirectory, projectRelativePath);
WebConfigTransform.cs (3)
93var appPath = Path.Combine(".", appName).Replace("/", "\\"); 131var logPath = Path.Combine(configureForAzure ? @"\\?\%home%\LogFiles" : @".\logs", "stdout").Replace("/", "\\"); 152projectWebConfigPath = Path.Combine(projectFolder, "web.config");
Microsoft.NET.Sdk.Razor.Tasks (6)
parent\Tool\ServerProtocol\ServerConnection.cs (4)
73return Path.Combine(workingDir, tmp); 78return Path.Combine(workingDir, temp); 304var dotnetPath = Path.Combine(path, exeName); 320var expectedCompilerPath = Path.Combine(clientDir, ServerName);
parent\Tool\ServerProtocol\ServerLogger.cs (1)
48loggingFileName = Path.Combine(loggingFileName, $"razorserver.{GetCurrentProcessId()}.log");
SdkRazorGenerate.cs (1)
122var outputPath = Path.Combine(ProjectRoot, input.GetMetadata(GeneratedOutput));
Microsoft.NET.Sdk.StaticWebAssets.Tasks (13)
CollectStaticWebAssetsToCopy.cs (1)
48fileOutputPath = Path.Combine(normalizedOutputPath, asset.ComputeTargetPath("", Path.DirectorySeparatorChar, StaticWebAssetTokenResolver.Instance));
Compression\ResolveCompressedAssets.cs (1)
196return Path.Combine(outputPath, $"{pathHash}-{{0}}-{asset.Fingerprint}");
Data\StaticWebAsset.cs (1)
1237var destPath = Path.Combine(fxDir, Normalize(fileSystemRelativePath));
DefineStaticWebAssetEndpoints.cs (2)
233var finalRoute = asset.IsProject() || asset.IsPackage() ? StaticWebAsset.Normalize(Path.Combine(asset.BasePath, route)) : route; 352var finalRoute = asset.IsProject() || asset.IsPackage() ? StaticWebAsset.Normalize(Path.Combine(asset.BasePath, route)) : route;
DefineStaticWebAssets.cs (2)
285identity = Path.Combine(Path.GetDirectoryName(identity) ?? string.Empty, expanded); 436var assetIdentity = Path.GetFullPath(Path.Combine(normalizedContentRoot, stem));
FingerprintPatternMatcher.cs (2)
60var result = Path.Combine(directoryName.ToString(), $"{fileNamePrefix}{DefaultFingerprintExpression}{extension}"); 79var simpleExtensionResult = Path.Combine(directoryName.ToString(), $"{stem}{expression}{matchExtension}");
Legacy\ValidateStaticWebAssetsUniquePaths.cs (1)
70private static string GetWebRootPath(string webRoot, string basePath, string relativePath) => $"{webRoot}/{Path.Combine(basePath, relativePath.TrimStart('.').TrimStart('/')).Replace("\\", "/").Trim('/')}";
OverrideHtmlAssetPlaceholders.cs (1)
95string outputPath = Path.Combine(OutputPath, FileHasher.HashString(item.ItemSpec) + item.GetMetadata("Extension"));
ReadPackageAssetsManifest.cs (1)
194return Path.GetFullPath(Path.Combine(packageRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
ScopedCss\ConcatenateCssFiles.cs (1)
70var importPath = NormalizePath(Path.Combine(prefix, ProjectBundles[i].ItemSpec));
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");
TempDirectoryWorkloadManifestProvider.cs (1)
23string? workloadManifestPath = Path.Combine(workloadManifestDirectory, "WorkloadManifest.json");
WorkloadManifestReader.Localization.cs (2)
26var catalog = Path.Combine(localizationDir, $"WorkloadManifest.{culture.Name}.json"); 65string localizationDir = Path.Combine(manifestDir, "localize");
WorkloadSet.cs (1)
100if (File.Exists(Path.Combine(path, "baseline.workloadset.json")))
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (9)
CachingWorkloadResolver.cs (5)
75string sentinelPath = Path.Combine(SdkPaths.SdkDirectory, "DisableWorkloadResolver.sentinel"); 182string sdkPackSdkFolder = Path.Combine(sdkPackInfo.Path, "Sdk"); 183string autoImportPath = Path.Combine(sdkPackSdkFolder, "AutoImport.props"); 200var workloadManifestTargetPath = Path.Combine(manifestDirectory, "WorkloadManifest.targets"); 216return new SinglePathResolutionResult(Path.Combine(packInfo.Path, "Sdk"));
parent\parent\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (2)
21.Where(band => Directory.Exists(Path.Combine(band, InstalledWorkloadDir)) && Directory.GetFiles(Path.Combine(band, InstalledWorkloadDir)).Any())
parent\parent\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
41using RegistryKey? workloadKey = baseKey.OpenSubKey(Path.Combine(basePath, $"{sdkFeatureBand}"));
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
38return Path.Combine(homePath, DotnetProfileDirectoryName);
Microsoft.TemplateEngine.Cli (10)
Alias\AliasRegistry.cs (1)
20_aliasesFilePath = Path.Combine(_environmentSettings.Paths.HostVersionSettingsDir, "aliases.json");
CliTemplateEngineHost.cs (1)
32OutputPath = outputPath != null ? Path.Combine(workingPath, outputPath) : workingPath;
Commands\CliPathInfo.cs (2)
29HostSettingsDir = Path.Combine(GlobalSettingsDir, host.HostIdentifier); 44? Path.Combine(CliFolderPathCalculator.DotnetHomePath, ".templateengine")
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (4)
48if (fileSystem.FileExists(Path.Combine(currentDirectory, "global.json")) || 49fileSystem.FileExists(Path.Combine(currentDirectory, ".git")) || 50fileSystem.DirectoryExists(Path.Combine(currentDirectory, ".git"))) 134string newJsonFilePath = Path.Combine(repoRoot ?? outputBasePath, jsonFileName);
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
100string executableCombinedFileName = Path.Combine(Path.GetFullPath(outputBasePath), executableFileName);
TemplateInvoker.cs (1)
126Path.Combine(_cliTemplateEngineHost.OutputPath, targetPath),
Microsoft.TemplateEngine.Core (3)
Util\Orchestrator.cs (3)
130string targetPath = Path.Combine(targetDir, targetRel); 170string targetPath = Path.Combine(targetDir, targetRel); 279string targetPath = Path.Combine(targetDir, targetRel);
Microsoft.TemplateEngine.Edge (16)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (2)
27string packagesFolder = Path.Combine(settings.Paths.GlobalSettingsDir, "packages"); 44string globalSettingsFilePath = Path.Combine(environmentSettings.Paths.GlobalSettingsDir, "packages.json");
DefaultPathInfo.cs (2)
103return Path.Combine(userDir, ".templateengine"); 116return Path.Combine(globalDir ?? GetDefaultGlobalSettingsDir(userDir!), host.HostIdentifier);
Installers\NuGet\NugetApiPackageManager.cs (1)
113string filePath = Path.Combine(downloadPath, packageMetadata.Identity.Id + "." + packageMetadata.Identity.Version + ".nupkg");
Installers\NuGet\NuGetInstaller.cs (1)
411string targetPackageLocation = Path.Combine(_installPath, packageInfo.PackageIdentifier + "." + packageInfo.PackageVersion + ".nupkg");
Mount\FileSystem\FileSystemMountPoint.cs (3)
43string fullPath = Path.Combine(MountPointRootPath, path.TrimStart('/')); 55string fullPath = Path.Combine(MountPointRootPath, path.TrimStart('/')); 61string fullPath = Path.Combine(MountPointRootPath, path.TrimStart('/'));
ReflectionLoadProbingPath.cs (3)
215DirectoryInfo info = new DirectoryInfo(Path.Combine(selector._path, stringName)); 231else if (File.Exists(Path.Combine(selector._path, stringName + ".dll"))) 233FileInfo f = new FileInfo(Path.Combine(selector._path, stringName + ".dll"));
Settings\Scanner.cs (1)
203string targetPath = Path.Combine(targetBasePath, Path.GetFileName(sourceLocation));
Settings\SettingsFilePaths.cs (3)
56string wholeTargetPath = Path.Combine(targetPath, localPath); 139current = Path.Combine(current, parts[i]); 156return Path.Combine(_environmentSettings.Paths.UserProfileDir, path.Substring(1));
Microsoft.TemplateEngine.IDE (1)
Bootstrapper.cs (1)
53string hostSettingsDir = Path.Combine(hostSettingsLocation, host.HostIdentifier);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (4)
RunnableProjectGenerator.cs (4)
146string target = Path.Combine(targetDirectory, source.Target); 158Path.Combine(source.Source, fileChange.SourceRelativePath), 159Path.Combine(source.Target, fileChange.TargetRelativePath), 321string target = Path.Combine(targetDirectory, source.Target);
Microsoft.TemplateEngine.Utils (14)
FileSystemInfoExtensions.cs (2)
16using Stream f = source.MountPoint.EnvironmentSettings.Host.FileSystem.CreateFile(Path.Combine(target, file.Name)); 24dir.CopyTo(Path.Combine(target, dir.Name));
IFileSystemInfoExtensions.cs (1)
26result = Path.Combine(fileSystemInfo.MountPoint.MountPointUri, fileSystemInfo.FullPath.Trim('/', '\\'));
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);
InstallRequestPathResolution.cs (1)
63string searchTarget = Path.Combine(environmentSettings.Host.FileSystem.GetCurrentDirectory(), baseDir.Trim());
Microsoft.TemplateSearch.Common (2)
Providers\NuGetMetadataSearchProvider.cs (1)
105string preferredMetadataLocation = Path.Combine(_environmentSettings.Paths.HostVersionSettingsDir, TemplateDiscoveryMetadataFile);
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (1)
57string pathToConfig = Path.Combine(environmentSettings.Paths.HostVersionSettingsDir, filePath);
Microsoft.TestPlatform.CoreUtilities (7)
Helpers\DotnetHostHelper.cs (7)
116string exeFullPath = Path.Combine(path.Trim(), executableBaseName); 198muxerPath = Path.Combine(envVar, _muxerName); 281? Path.Combine("/usr/local/share/dotnet/x64", _muxerName) 282: Path.Combine("/usr/local/share/dotnet", _muxerName); 286muxerPath = Path.Combine("/usr/share/dotnet", _muxerName); 339string path = Path.Combine(installLocation.Trim(), _muxerName); 368string path = Path.Combine(content, _muxerName);
Microsoft.TestPlatform.CrossPlatEngine (13)
Constants.cs (1)
26internal static string DefaultAdapterLocation = Path.Combine(new ProcessHelper().GetCurrentProcessLocation(), "Extensions");
DataCollection\DefaultDataCollectionLauncher.cs (1)
68: Path.Combine(dataCollectorDirectory, dataCollectorProcessName);
DataCollection\DotnetDataCollectionLauncher.cs (3)
67var dataCollectorAssemblyPath = Path.Combine(dataCollectorDirectory, DataCollectorProcessName); 73var runtimeConfigPath = Path.Combine(dataCollectorDirectory, string.Concat(dataCollectorFileName, ".runtimeconfig.json")); 87var depsFilePath = Path.Combine(dataCollectorDirectory, string.Concat(dataCollectorFileName, ".deps.json"));
DataCollection\InProcDataCollectionExtensionManager.cs (1)
255var assemblyPath = Path.Combine(extensionPath, codeBase);
DataCollection\ProxyDataCollectionManager.cs (1)
350var extensionsFolder = Path.Combine(Path.GetDirectoryName(typeof(ITestPlatform).Assembly.GetAssemblyLocation())!, "Extensions");
Discovery\DiscoveryManager.cs (2)
257string src = !Path.IsPathRooted(source) ? Path.Combine(Directory.GetCurrentDirectory(), source) : source; 275src = !Path.IsPathRooted(source) ? Path.Combine(Path.GetDirectoryName(package)!, source) : source;
PostProcessing\ArtifactProcessingManager.cs (4)
68_processArtifactFolder = Path.Combine(_fileHelper.GetTempPath(), _testSessionCorrelationId); 76_testSessionProcessArtifactFolder = Path.Combine(_processArtifactFolder, $"{pid}_{Guid.NewGuid()}"); 113_fileHelper.WriteAllTextToFile(Path.Combine(_testSessionProcessArtifactFolder, RunsettingsFileName), runSettingsXml); 116_fileHelper.WriteAllTextToFile(Path.Combine(_testSessionProcessArtifactFolder, ExecutionCompleteFileName), serializedExecutionComplete);
Microsoft.TestPlatform.Extensions.BlameDataCollector (10)
BlameCollector.cs (3)
166var dumpPath = Path.Combine(dumpDirectory, $"%e_%p_%t_crashdump.dmp"); 516var filepath = Path.Combine(GetTempDirectory(), Constants.AttachmentFileName + "_" + _attachmentGuid); 714_tempDirectory = Path.Combine(temp, Guid.NewGuid().ToString());
NetClientHangDumper.cs (1)
67var outputFile = Path.Combine(outputDirectory, $"{p.ProcessName}_{p.Id}_{DateTime.Now:yyyyMMddTHHmmss}_hangdump.dmp");
ProcDumpDumper.cs (2)
120var outputFile = Path.Combine(outputDirectory, $"{_outputFilePrefix}.dmp"); 292var outputFile = Path.Combine(outputDirectory, $"{process.ProcessName}_{processId}_{DateTime.Now:yyyyMMddTHHmmss}_hangdump.dmp");
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
WindowsHangDumper.cs (1)
89var outputFile = Path.Combine(outputDirectory, $"{p.ProcessName}_{p.Id}_{DateTime.Now:yyyyMMddTHHmmss}_hangdump.dmp");
Microsoft.TestPlatform.PlatformAbstractions (5)
common\System\ProcessHelper.cs (1)
362: Path.Combine(GetCurrentProcessLocation(), GetFormattedCurrentProcessArchitecture());
common\Tracing\PlatformEqtTrace.cs (3)
342LogFile ??= Path.Combine(logsDirectory, runnerLogFileName); 356runnerLogFileName = Path.Combine(LogFile, runnerLogFileName); 357LogFile = Path.Combine(LogFile, $"{Path.GetFileNameWithoutExtension(process.MainModule.FileName)}_{process.Id}.diag");
common\Tracing\RollingFileTraceListener.cs (1)
197string archiveFileName = Path.Combine(directory, fileNameBuilder.ToString());
Microsoft.TestPlatform.TestHostRuntimeProvider (15)
Hosting\DefaultTestHostManager.cs (4)
186var testhostProcessPath = Path.Combine(currentWorkingDirectory, testHostProcessName); 195testHostProcessName = Path.Combine("TestHostNetFramework", originalTestHostProcessName); 343actualSources.Add(Path.Combine(Path.GetDirectoryName(uwpSource)!, GetUwpSources(uwpSource)!)); 598appxManifestPath = Path.Combine(Path.GetDirectoryName(uwpSource)!, appxManifestPath);
Hosting\DotnetTestHostManager.cs (11)
269var dotnetExeArchitecture = GetExecutableArchitecture(Path.Combine(dotnetRoot, "dotnet.exe")); 310var runtimeConfigPath = Path.Combine(sourceDirectory, string.Concat(sourceFile, ".runtimeconfig.json")); 325var depsFilePath = Path.Combine(sourceDirectory, string.Concat(sourceFile, ".deps.json")); 337var runtimeConfigDevPath = Path.Combine(sourceDirectory, string.Concat(sourceFile, ".runtimeconfig.dev.json")); 361var fullExePath = Path.Combine(sourceDirectory, exeName); 419var testHostNextToRunner = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "testhost.dll"); 442var testhostDeps = Path.Combine(Path.GetDirectoryName(testHostNextToRunner)!, "testhost.deps.json"); 471var testhostRuntimeConfig = Path.Combine(Path.GetDirectoryName(testHostNextToRunner)!, "testhost-latest.runtimeconfig.json"); 1023testHostPath = Path.Combine(testhostPackage.Path, testHostPath); 1064testHostFullPath = Path.Combine(x.GetString()!, testHostPath); 1131var testHostNextToTestProject = Path.Combine(sourceDirectory, "testhost.dll");
Microsoft.TestPlatform.Utilities (2)
ClientUtilities.cs (1)
71fileName = Path.Combine(root, fileName);
CodeCoverageDataAttachmentsHandler.cs (1)
179var assemblyPath = Path.Combine(Path.GetDirectoryName(dataAttachmentAssemblyLocation)!, CodeCoverageIoAssemblyName + ".dll");
Microsoft.VisualStudio.TestPlatform.Client (1)
TestPlatform.cs (1)
270string extensionsFolder = Path.Combine(
Microsoft.VisualStudio.TestPlatform.Common (9)
DataCollection\DataCollectionAttachmentManager.cs (3)
115SessionOutputDirectory = Path.Combine(absolutePath, id.Id.ToString()); 249var directoryPath = Path.Combine( 252var localFilePath = Path.Combine(directoryPath, Path.GetFileName(fileTransferInfo.FileName));
Utilities\AssemblyResolver.cs (1)
136var assemblyPath = Path.Combine(dir, requestedName.Name + extension);
Utilities\InstallationContext.cs (4)
30var pathToDevenv = Path.Combine(vsInstallPath, DevenvExe); 45return Path.Combine(visualStudioDirectory, DevenvExe); 53Path.Combine(visualStudioDirectory, PrivateAssembliesDirName), 54Path.Combine(visualStudioDirectory, PublicAssembliesDirName),
Utilities\RunSettingsProviderExtensions.cs (1)
188var defaultResultsDirectory = Path.Combine(Directory.GetCurrentDirectory(), Constants.ResultsDirectoryName);
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (3)
HtmlLogger.cs (3)
294HtmlFilePath = Path.Combine(TestResultsDirPath!, logFilePrefixValue); 300HtmlFilePath = Path.Combine(TestResultsDirPath!, logFileNameValue); 354var fullFilePath = Path.Combine(TestResultsDirPath!, $"TestResult_{fileNameWithIter}.{fileExtension}");
Microsoft.VisualStudio.TestPlatform.Extensions.TestIds.TestLogger (4)
TestIdsLogger.cs (4)
433return Path.IsPathRooted(logFileNameValue) ? logFileNameValue! : Path.Combine(_testResultsDirPath!, logFileNameValue!); 476? Path.Combine(directory, fileName) 477: Path.Combine(directory, stem + "(" + iteration.ToString(CultureInfo.InvariantCulture) + ")" + extension); 504return Path.Combine(directory, fileName);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (17)
ObjectModel\TestRun.cs (1)
166return Path.Combine(GetResultsDirectory(), result.RelativeTestResultsDirectory);
ObjectModel\TestRunConfiguration.cs (1)
82return Path.Combine(_runDeploymentRoot, DeploymentInDirectorySuffix);
TrxLogger.cs (2)
187testRunDirectory = Path.Combine(testRunDirectory, logFileDir); 589filePath = Path.Combine(_testResultsDirPath, Path.GetFileName(logFileNameValue!));
Utility\Converter.cs (10)
440string runDirectoryName = Path.Combine(trxFileDirectory, testRun.RunConfiguration!.RunDeploymentRootDirectory); 441string inDirectory = Path.Combine(runDirectoryName, "In"); 446targetDirectory = Path.Combine(inDirectory, testResultExecutionId.ToString()); 449targetDirectory = Path.Combine(targetDirectory, Environment.MachineName); 474string fileName = Path.Combine(Environment.MachineName, Path.GetFileName(targetFileName)); 497string runDirectoryName = Path.Combine(trxFileDirectory, testRun.RunConfiguration!.RunDeploymentRootDirectory); 498string testResultDirectory = Path.Combine(runDirectoryName, "In"); 502testResultDirectory = Path.Combine(testResultDirectory, testResultExecutionId.ToString()); 505testResultDirectory = Path.Combine(testResultDirectory, Environment.MachineName); 529string fileName = Path.Combine(Environment.MachineName, Path.GetFileName(targetFileName));
Utility\TrxFileHelper.cs (3)
150string tryMePath = Path.Combine(directoryName, tryMe); 181path = Path.Combine(basePath, path); 316string tryMePath = Path.Combine(baseDirectoryName, tryMe);
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Constants.cs (1)
206public static readonly string DefaultResultsDirectory = Path.Combine(Directory.GetCurrentDirectory(), ResultsDirectoryName);
Navigation\DiaSession.cs (1)
119? Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(pdbFilePath)!)
Navigation\FullSymbolReader.cs (1)
131filename = Path.Combine(Directory.GetCurrentDirectory(), filename);
Navigation\NativeMethods.cs (1)
562IntPtr modHandle = LoadLibraryEx(Path.Combine(nativeDllDirectory, "msdia140.dll"), IntPtr.Zero, 0);
Microsoft.Web.XmlTransform (1)
NamedTypeFactory.cs (1)
39path = Path.Combine(Path.GetDirectoryName(relativePathRoot), path);
Mono.Cecil (2)
Mono.Cecil\AssemblyReader.cs (1)
686 return Path.Combine (path, name);
Mono.Cecil\BaseAssemblyResolver.cs (1)
215 string file = Path.Combine (directory, name.Name + extension);
MSBuild (13)
CommandLine\CommandLineParser.cs (1)
662string autoResponseFile = Path.Combine(path, autoResponseFileName);
OutOfProcTaskHostNode.cs (1)
1506? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(FileUtilities.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), EnvironmentUtilities.CurrentProcessId))
parent\Shared\TypeLoader.cs (1)
78microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
PerformanceLogEventListener.cs (1)
84string logFilePath = Path.Combine(logDirectory, $"perf-{_processIDStr}-{Guid.NewGuid():N}.log");
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
77var fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 83fullPath = Path.Combine(FrameworkDebugUtils.DebugPath, fileName); 138s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
XMake.cs (4)
2752Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}"); 3724string rebasedProjectFile = Path.GetFullPath(Path.Combine(logicalCurrentDirectory, projectFile)); 4207$"logFile={Path.Combine(Directory.GetCurrentDirectory(), logFileName)}"); 4224fileParameters += $"logFile={Path.Combine(Directory.GetCurrentDirectory(), msbuildLogFileName)}";
MSBuild.Coordinator (1)
CoordinatorServer.DefaultDebugOutput.cs (1)
37_debugDumpTraceFilePath = Path.Combine(_debugDumpDirectory, $"MSBuild_CoordinatorTrace_PID_{EnvironmentUtilities.CurrentProcessId}.txt");
NuGet.Build.Tasks (11)
BuildTasksUtility.cs (4)
252FileUtility.Delete(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName)); 264FileUtility.Delete(Path.Combine(project.RestoreMetadata.OutputPath, DependencyGraphSpec.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath)))); 733string packagesConfigPath = Path.Combine(projectDirectory, NuGetConstants.PackageReferenceFile); 740packagesConfigPath = Path.Combine(projectDirectory, "packages." + projectName + ".config");
GetRestoreProjectReferencesTask.cs (1)
74var combinedPath = Path.Combine(parentDirectory, project.ItemSpec);
GetRestoreSolutionProjectsTask.cs (1)
62var combinedPath = Path.Combine(parentDirectory, project.ItemSpec);
RestoreSettingsUtils.cs (1)
31var solutionSettingsFile = Path.Combine(
RestoreTask.cs (2)
319restoredProjectOutputPaths.Add(new TaskItem(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName))); 326restoredProjectOutputPaths.Add(new TaskItem(Path.Combine(project.RestoreMetadata.OutputPath, DependencyGraphSpec.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath)))));
StaticGraphRestoreTaskBase.cs (2)
247yield return Path.Combine(ThisAssemblyLazy.Value.DirectoryName, Path.ChangeExtension(ThisAssemblyLazy.Value.Name, ".Console.dll")); 256yield return Path.Combine(MSBuildBinPath, "MSBuild.dll");
NuGet.Build.Tasks.Console (5)
MSBuildStaticGraphRestore.cs (5)
637return outputPath == null ? null : Path.GetFullPath(Path.Combine(project.Directory, outputPath)); 644return outputPath == null ? null : Path.GetFullPath(Path.Combine(projectDirectory, outputPath)); 932outputPath ??= Path.Combine(projectDirectory, "obj"); 1487LoggingQueue.Enqueue(new ConsoleOutLogEmbedInBinlog(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName))); 1494LoggingQueue.Enqueue(new ConsoleOutLogEmbedInBinlog(Path.Combine(project.RestoreMetadata.OutputPath, DependencyGraphSpec.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath)))));
NuGet.Build.Tasks.Pack (15)
GetPackOutputItemsTask.cs (4)
61outputs.Add(new TaskItem(Path.Combine(PackageOutputPath, nupkgFileName))); 62outputs.Add(new TaskItem(Path.Combine(NuspecOutputPath, nuspecFileName))); 68outputs.Add(new TaskItem(Path.Combine(PackageOutputPath, nupkgSymbolsFileName))); 69outputs.Add(new TaskItem(Path.Combine(NuspecOutputPath, nuspecSymbolsFileName)));
GetProjectReferencesFromAssetsFileTask.cs (2)
43assetsFilePath = Path.Combine(RestoreOutputAbsolutePath, LockFileFormat.AssetsFileName); 71.Select(library => new TaskItem(Path.GetFullPath(Path.Combine(
PackTaskLogic.cs (9)
108var assetsFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 344string assetsFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 620packArgs.CurrentDirectory = Path.Combine( 645packArgs.PackTargetArgs.NuspecOutputPath = Path.Combine( 724: Path.Combine(targetPath, recursiveDir)); 785var newTargetPath = Path.Combine(targetPath, identity); 807currentPath = Path.Combine(targetPath, fileName); 829sourcePath = Path.Combine(sourceProjectFile.Replace(Path.GetFileName(sourceProjectFile), string.Empty), identity); 923library => Path.GetFullPath(Path.Combine(
NuGet.CommandLine.XPlat (3)
Commands\Package\Update\PackageUpdateIO.cs (1)
603var assetsFilePath = Path.Combine(packageSpec.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName);
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (1)
378var nuspecFilePath = Path.GetFullPath(Path.Combine(packageDirectory, nuspecFile));
Commands\Why\DependencyGraphFinder.cs (1)
110.ToDictionary(l => Path.GetFullPath(Path.Combine(projectDirectory, l.Path)), l => l, StringComparer.OrdinalIgnoreCase);
NuGet.Commands (30)
CommandRunners\PackCommandRunner.cs (6)
87var result = BuildPackage(Path.GetFullPath(Path.Combine(_packArgs.CurrentDirectory, _packArgs.Path))); 204string resolvedNuSpecOutputPath = Path.Combine( 230string tempOutputPath = Path.Combine( 256string tempOutputPath = Path.Combine( 876return Path.Combine(finalOutputDirectory, outputFile); 987return Path.Combine(packArgs.CurrentDirectory, result);
MSBuildProjectFactory.cs (6)
148Target = IsTool ? Path.Combine(targetFolders[i], targetPath) : Path.Combine(targetFolders[i], tfm, targetPath) 196? Path.Combine(target, Path.GetFileName(sourcePath)) 210includePath = Path.Combine(includePath, Path.GetFileName(sourcePath)); 259var targetPath = Path.Combine(SourcesFolder, projectName); 282targetPath = Path.Combine(targetPath, relativePath); 285var finalTargetPath = Path.Combine(targetPath, Path.GetFileName(sourcePath));
RestoreCommand\ContentFiles\ContentFileUtils.cs (1)
131absolutePaths.Add(Path.Combine(MatcherRoot, key));
RestoreCommand\RequestFactory\RestoreArgs.cs (2)
117return Path.GetFullPath(Path.Combine(rootDirectory, globalPath)); 191request.LockFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName);
RestoreCommand\RestoreCommand.cs (1)
1812projectLockFilePath = Path.Combine(_request.RestoreOutputPath, LockFileFormat.AssetsFileName);
RestoreCommand\Utility\BuildAssetsUtils.cs (4)
434path = Path.Combine(project.RestoreMetadata.OutputPath, $"{projFileName}.nuget.g{extension}"); 440path = Path.Combine(dir, $"{project.Name}.nuget{extension}"); 450return Path.Combine(project.RestoreMetadata.OutputPath, $"{projFileName}.nuget.g{extension}"); 846return Path.Combine(package.Value.Package.ExpandedPath, LockFileUtils.ToDirectorySeparator(item.Path));
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
314pcRestoreMetadata.RepositoryPath = Path.Combine( 355outputPath = Path.Combine(Path.GetDirectoryName(projectPath), "obj");
RestoreCommand\Utility\NoOpRestoreUtilities.cs (4)
43return cacheRoot == null ? null : Path.Combine(cacheRoot, NoOpCacheFileName); 69return Path.Combine( 152var metadataFile = Path.Combine(packageDirectory, PackagingCoreConstants.NupkgMetadataFileExtension); 211return Path.Combine(outputRoot, dgFileName);
RestoreCommand\Utility\PackageSpecFactory.cs (3)
439string packagesConfigPath = Path.Combine(projectDirectory, NuGetConstants.PackageReferenceFile); 446packagesConfigPath = Path.Combine(projectDirectory, "packages." + projectName + ".config"); 938return outputPath == null ? null : Path.GetFullPath(Path.Combine(project.Directory, outputPath));
SignCommand\SignCommandRunner.cs (1)
127outputPath = Path.Combine(outputDirectory, Path.GetFileName(packagePath));
NuGet.Common (27)
ConcurrencyUtilities.cs (2)
252basePath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), "lock"); 268return Path.Combine(BasePath, FilePathToLockName(filePath));
LocalResourceUtils.cs (1)
104var filePath = Path.Combine(folderPath, Path.GetFileName(file));
Migrations\Migration1.cs (4)
21string nugetPath = Path.Combine(localAppDataPath, "NuGet"); 37var v3cachePath = Path.Combine(nugetBaseDirectory, "v3-cache"); 43var pluginsCachePath = Path.Combine(nugetBaseDirectory, "plugins-cache"); 111return Path.Combine(xdgConfigHome, "NuGet");
Migrations\MigrationRunner.cs (1)
31var expectedMigrationFilename = Path.Combine(migrationsDirectory, MaxMigrationFilename);
PathUtil\FileUtility.cs (1)
26return Path.GetFullPath(Path.Combine(directory, fileName));
PathUtil\NuGetEnvironment.cs (8)
68nuGetScratch = Path.Combine(tempPath, 113return Path.Combine(machineWideBaseDir, 117return Path.Combine( 122return Path.Combine( 127return Path.Combine( 238return Path.Combine(_getHome.Value, ".nuget"); 363var fullPath = Path.Combine(dir, executable); 397var fullPath = Path.Combine(localBin, DotNet);
PathUtil\PathResolver.cs (5)
70return Path.Combine(basePath, wildcard); 133Regex searchRegex = WildcardToRegex(Path.Combine(basePath, searchPath)); 186basePathToEnumerate = Path.Combine(basePath, searchRoot); 201basePathToEnumerate = Path.Combine(basePath, nonWildcardPortion); 220basePath = Path.Combine(basePath, parentDirectoryPath);
PathUtil\ProjectJsonPathUtilities.cs (4)
39var configPath = Path.Combine(directoryPath, GetProjectConfigWithProjectName(projectName)); 44configPath = Path.Combine(directoryPath, ProjectConfigFileName); 96lockFilePath = Path.Combine(dir, ProjectLockFileName); 101lockFilePath = Path.Combine(dir, lockFileWithProject);
UriUtility.cs (1)
131: Path.GetFullPath(Path.Combine(rootDirectory, local));
NuGet.Configuration (15)
Settings\ConfigurationDefaults.cs (1)
38if (File.Exists(Path.Combine(directory, configFile)))
Settings\Settings.cs (10)
577var defaultSettingsFilePath = Path.Combine(userSettingsDir, DefaultSettingsFileName); 609Path.Combine(rootDirectory, configFileName)); 623? Path.Combine(rootDirectory, "TestingGlobalPath") 629return Path.Combine(userSettingsDirectory, ConfigurationConstants.Config); 713var fullPath = Path.Combine(root ?? string.Empty, settingsPath); 769var rawPath = Path.Combine(originDirectoryPath, ResolvePath(Path.GetDirectoryName(originFilePath)!, path)); 803return Path.Combine(Path.GetPathRoot(configDirectory)!, value.Substring(1)); 805return Path.Combine(configDirectory, value); 816settingsPath = Path.Combine(settingsRoot, settingsPath); 865var file = Path.Combine(directory, nugetConfigCasing);
Settings\SettingsFile.cs (1)
108ConfigFilePath = Path.GetFullPath(Path.Combine(DirectoryPath, FileName));
Utility\FileSystemUtility.cs (2)
62return File.Exists(Path.Combine(root, file)); 67path = EnsureTrailingSlash(Path.Combine(root, path));
Utility\SettingsUtility.cs (1)
303path = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.NuGetHome), DefaultGlobalPackagesFolderPath);
NuGet.PackageManagement (27)
BuildIntegration\DependencyGraphRestoreUtility.cs (1)
289var persistedDGSpecPath = Path.Combine(outputPath, dgFileName);
NuGetPackageManager.cs (2)
3582readmeFilePath = Path.Combine(packageFolderPath, Constants.ReadmeFileName); 3591readmeFilePath = Path.Combine(Path.GetDirectoryName(packagePath), Constants.ReadmeFileName);
Projects\FolderNuGetProject.cs (3)
432var installPath = Path.GetFullPath(Path.Combine(packageDirectory, packageName)); 488var installPath = Path.GetFullPath(Path.Combine(packageDirectory, manifestName)); 517var filePath = Path.GetFullPath(Path.Combine(packageDirectory, fileName));
Projects\MSBuildNuGetProject.cs (3)
320var referenceItemFullPath = Path.Combine(packageInstallPath, referenceItem); 362var fullImportFilePath = Path.Combine(packageInstallPath, buildImportFile); 565var fullImportFilePath = Path.Combine(FolderNuGetProject.GetInstalledPath(packageIdentity), buildImportFile);
Projects\PackagesConfigNuGetProject.cs (2)
76PackagesConfigPath = Path.Combine(folderPath, "packages.config"); 79PackagesProjectNameConfigPath = Path.Combine(folderPath, "packages." + projectName + ".config");
Utility\FileSystemUtility.cs (5)
46return Path.Combine(root, path); 170path = PathUtility.EnsureTrailingSlash(Path.Combine(root, path)); 285var dirPath = Path.Combine(packagesDir, directory); 294var path = Path.Combine(packagesDir, file); 303DeleteDirectorySafe(Path.Combine(packagesDir, dirPath), recursive: false, nuGetProjectContext: nuGetProjectContext);
Utility\MSBuildNuGetProjectSystemUtility.cs (5)
27if (File.Exists(Path.Combine(msBuildNuGetProjectSystem.ProjectFullPath, path))) 31return Shared.XmlUtility.Load(Path.Combine(msBuildNuGetProjectSystem.ProjectFullPath, path), LoadOptions.PreserveWhitespace); 246if (!Directory.Exists(Path.Combine(projectFullPath, directory))) 394var fullPath = Path.Combine(projectSystem.ProjectFullPath, path); 434var fullPath = Path.Combine(projectSystem.ProjectFullPath, path);
Utility\PackagesConfigContentHashProvider.cs (2)
49var metadataPath = Path.Combine(Path.GetDirectoryName(nupkgPath), PackagingCoreConstants.NupkgMetadataFileExtension); 61return Path.Combine(Path.GetDirectoryName(nupkgPath), PackagingCoreConstants.NupkgMetadataFileExtension);
Utility\PackagesConfigLockFileUtility.cs (1)
78return Path.Combine(projectPath, nuGetLockFilePath);
Utility\PackagesFolderPathUtility.cs (1)
53return Path.Combine(solutionDirectory, string.IsNullOrEmpty(path) ? DefaultRepositoryPath : path);
Utility\XmlUtility.cs (2)
15if (File.Exists(Path.Combine(root, path))) 19return Shared.XmlUtility.Load(Path.Combine(root, path), LoadOptions.PreserveWhitespace);
NuGet.Packaging (32)
PackageArchiveReader.cs (2)
313var targetFilePath = Path.Combine(destination, normalizedPath); 347var packageFileFullPath = Path.Combine(packageDirectory, packageFile);
PackageCreation\Authoring\EmptyFrameworkFolderFile.cs (1)
25TargetPath = System.IO.Path.Combine(directoryPathInPackage, PackagingConstants.PackageEmptyFileName);
PackageCreation\Authoring\PackageBuilder.cs (1)
1062return Path.Combine(targetPath ?? string.Empty, packagePath);
PackageExtraction\PackagePathHelper.cs (2)
22path = PathUtility.EnsureTrailingSlash(Path.Combine(root, path)); 49path = PathUtility.EnsureTrailingSlash(Path.Combine(root, path));
PackageExtractor.cs (11)
96var targetNuspecPath = Path.Combine( 125var nupkgFilePath = Path.Combine( 222var nupkgFilePath = Path.Combine(packageDirectory, packagePathResolver.GetPackageFileName(packageIdentityFromNuspec)); 331var nupkgFilePath = Path.Combine(packageDirectory, packagePathResolver.GetPackageFileName(packageIdentityFromNuspec)); 448var targetTempNupkg = Path.Combine(targetPath, Path.GetRandomFileName()); 449var tempHashPath = Path.Combine(targetPath, Path.GetRandomFileName()); 450var tempNupkgMetadataPath = Path.Combine(targetPath, Path.GetRandomFileName()); 724var targetTempNupkg = Path.Combine(targetPath, Path.GetRandomFileName()); 725var tempHashPath = Path.Combine(targetPath, Path.GetRandomFileName()); 726var tempNupkgMetadataFilePath = Path.Combine(targetPath, Path.GetRandomFileName()); 799var tempNuspecFilePath = Path.Combine(packageDirectoryPath, Path.GetRandomFileName());
PackageFolderReader.cs (3)
96var file = new FileInfo(Path.Combine(_root.FullName, path)); 123searchFolder = new DirectoryInfo(Path.Combine(_root.FullName, folder)); 210var targetPath = Path.Combine(destination, packageFile);
PackagePathResolver.cs (1)
85return Path.Combine(_rootDirectory, GetPackageDirectoryName(packageIdentity));
PackageReaderBase.cs (1)
556var fullPath = Path.GetFullPath(Path.Combine(normalizedDestination, normalizedFilePath));
PackagesConfigWriter.cs (2)
526var configFileCopyPath = Path.Combine(directorypath, 554var configFileNewPath = Path.Combine(directorypath,
Rules\PathTooLongRule.cs (1)
26if (Path.Combine(installedPath, file).Length > _pathLenghtWarningThreshold)
VersionFolderPathResolver.cs (7)
53return Path.Combine( 65return Path.Combine( 78return Path.Combine( 92return Path.Combine( 105return Path.Combine( 129return Path.Combine( 152return Path.Combine(
NuGet.ProjectModel (6)
ProjectLockFile\PackagesLockFileUtilities.cs (3)
43return Path.Combine(project.BaseDirectory, path); 54var path = Path.Combine(baseDirectory, "packages." + projectName.Replace(' ', '_') + ".lock.json"); 62return Path.Combine(baseDirectory, PackagesLockFileFormat.LockFileName);
ToolPathResolver.cs (3)
34return Path.Combine(toolDirectory, LockFileFormat.AssetsFileName); 74return Path.Combine( 103var toolBasePath = Path.Combine(GetPackagesToolsBasePath(), _isLowercase ? packageId.ToLowerInvariant() : packageId);
NuGet.Protocol (22)
HttpSource\HttpCacheUtility.cs (4)
30var cacheFolder = Path.Combine(httpCacheDirectory, baseFolderName); 31var cacheFile = Path.Combine(cacheFolder, baseFileName); 41var temporaryFile = Path.Combine(context.RootTempFolder!, Path.GetRandomFileName()); 42var newTemporaryFile = Path.Combine(context.RootTempFolder!, Path.GetRandomFileName());
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (2)
119var nupkgPath = Path.Combine(rootDirInfo.FullName, $"{name}{PackagingCoreConstants.NupkgExtension}"); 147var nupkgPath = Path.Combine(root.FullName, $"{name}{PackagingCoreConstants.NupkgExtension}");
LocalRepositories\LocalPackageInfo.cs (1)
53var directoryName = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Path)!, System.IO.Path.GetFileNameWithoutExtension(Path));
PackagesFolder\LocalPackageFileCache.cs (1)
231var runtimeGraphFile = Path.Combine(expandedPath, RuntimeGraph.RuntimeGraphFileName);
Plugins\Logging\PluginLogger.cs (1)
164var filePath = Path.Combine(logDirectoryPath, fileName);
Plugins\PluginCacheEntry.cs (2)
25RootFolder = Path.Combine(rootCacheFolder, CachingUtility.RemoveInvalidFileNameChars(CachingUtility.ComputeHash(pluginFilePath, addIdentifiableCharacters: false))); 26CacheFileName = Path.Combine(RootFolder, CachingUtility.RemoveInvalidFileNameChars(CachingUtility.ComputeHash(requestKey, addIdentifiableCharacters: false)) + ".dat");
Plugins\PluginDiscoveryUtility.cs (2)
57Path.Combine( 91var expectedPluginName = Path.Combine(pluginDirectory, Path.GetFileName(pluginDirectory) + ".dll");
Plugins\PluginPackageReader.cs (2)
1109var filePath = Path.Combine(directory, fileName); 1116var tempDirectoryPath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), Path.GetRandomFileName());
Resources\PackageUpdateResource.cs (3)
416return Path.Combine(packageDir, symbolPath); 696var fullPath = Path.Combine(root, packageFileName); 806var nupkgFilePath = Path.Combine(root, packageFileName);
SourceCacheContext.cs (1)
102var newTempFolder = Path.Combine(
Utility\GetDownloadResultUtility.cs (1)
188var directDownloadPath = Path.Combine(downloadContext.DirectDownloadDirectory!, fileName);
Utility\LocalFolderUtility.cs (2)
473var nupkgPath = Path.Combine( 1291var tempNupkgMetadataFilePath = Path.Combine(installPath, Path.GetRandomFileName());
Pipelines.Library (2)
DistributedApplicationPipelineExtensions.cs (2)
69var publishDir = Path.Combine(Path.GetTempPath(), $"aspire-publish-{Guid.NewGuid()}"); 113var zipPath = Path.Combine(Path.GetTempPath(), $"aspire-deploy-{Guid.NewGuid()}.zip");
PresentationBuildTasks (4)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
861return Path.Combine(OutputPath, fileName);
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
55string absoluteFilePath = Path.Combine(
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
358return Path.Combine(_backupPath, Path.ChangeExtension(Path.GetFileName(fileName), "uidtemp")); 363return Path.Combine(_backupPath, Path.ChangeExtension(Path.GetFileName(fileName), "uidbackup"));
PresentationCore (4)
MS\Internal\FontCache\FamilyCollection.cs (1)
238FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension), UriKind.RelativeOrAbsolute),
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (2)
101string subFolderPath = Path.Combine(folderPath, subFolder); 115string path = Path.Combine(folderPath, Path.GetRandomFileName());
System\Windows\Media\ColorContext.cs (1)
579profilePath = new Uri(Path.Combine(buffer.ToString(), profilePathString));
PresentationFramework (2)
MS\Internal\AppModel\ContentFilePart.cs (1)
68_fullPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(location), filePath);
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
123_moduleHandle = Platform.LoadLibraryExW(System.IO.Path.Combine(_currentModuleDirectory, fileName), IntPtr.Zero, /* LOAD_WITH_ALTERED_SEARCH_PATH */ 8);
PresentationUI (2)
MS\Internal\Documents\RightsManagementManager.cs (1)
860string msdrmdllPath = Path.Combine(systemPath, msdrmDLLName);
MS\Internal\Documents\RightsManagementProvider.cs (1)
1353string applicationManifestFileLocation = Path.Combine( Path.GetDirectoryName(fileName),
ProjectResourceExtensions.AppHost (1)
AppHost.cs (1)
54var projectPath = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, relativeProjectPath));
RepoTasks (14)
BatchHelixWorkItems.cs (6)
51var batchRoot = Path.Combine(OutputDirectory, "batched"); 78File.WriteAllText(Path.Combine(payloadDirectory, "targets.txt"), testAssembly); 102var batchDirectory = Path.Combine(batchRoot, $"batch_{batchNumber}"); 117var destPath = Path.Combine(batchDirectory, Path.GetFileName(file)); 131var targetDirectory = Path.Combine(batchDirectory, assemblyName); 147File.WriteAllLines(Path.Combine(batchDirectory, "targets.txt"), targets);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
367Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
114var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 242var certPath = Path.Combine(certDir, nickname) + ".pem"; 361? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 405Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 471var certPath = Path.Combine(certDir, nickname) + ".pem"; 610if (File.Exists(Path.Combine(searchFolder, command))) 1050var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
105var path = Path.Combine(parentPath, directoryName); 475/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 484/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
rzc (18)
CompilerHost.cs (1)
31Loader = new DefaultExtensionAssemblyLoader(Path.Combine(Path.GetTempPath(), "Razor-Server"));
DiscoverCommand.cs (4)
138extensionFilePaths.Values[i] = Path.Combine(currentDirectory, RazorCompilerFileName); 174outputFilePath = Path.Combine(projectDirectory, outputFilePath); 204outputFilePath = Path.Combine(projectDirectory, outputFilePath); 212var syntheticPath = Path.Combine(projectDirectory, "__rzc_discover__.cshtml");
GenerateCommand.cs (1)
191tagHelperManifest = Path.Combine(projectDirectory, tagHelperManifest);
Program.cs (1)
71var loadedAssembly = context.LoadFromAssemblyPath(Path.Combine(roslynPath, assembly.Name + ".dll"));
ServerCommand.cs (1)
153var path = Path.Combine(directoryPath, fileName);
ServerProtocol\ServerConnection.cs (4)
73return Path.Combine(workingDir, tmp); 78return Path.Combine(workingDir, temp); 304var dotnetPath = Path.Combine(path, exeName); 320var expectedCompilerPath = Path.Combine(clientDir, ServerName);
ServerProtocol\ServerLogger.cs (1)
48loggingFileName = Path.Combine(loggingFileName, $"razorserver.{GetCurrentProcessId()}.log");
ShadowCopyManager.cs (4)
27UniqueDirectory = Path.Combine(BaseDirectory, guid); 42var destination = Path.Combine(assemblyDirectory, Path.GetFileName(filePath)); 53var resourcesPath = Path.Combine(directory, resourcesNameWithExtension); 85var directory = Path.Combine(UniqueDirectory, id.ToString(CultureInfo.InvariantCulture));
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
38return Path.Combine(homePath, DotnetProfileDirectoryName);
sdk-tasks (17)
CopyPreservingRelativeSymlinks.cs (1)
110var resolvedTarget = Path.GetFullPath(Path.Combine(sourceDir, sourceInfo.LinkTarget));
Crossgen.cs (3)
46string tempDirPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 48TempOutputPath = Path.Combine(tempDirPath, Path.GetFileName(DestinationPath)); 59File.Copy(file, Path.Combine(destination, Path.GetFileName(file)), overwrite: true);
ExtractArchiveToDirectory.cs (2)
93string destinationPath = Path.GetFullPath(Path.Combine(DestinationDirectory, entry.FullName)); 128string destinationPath = Path.GetFullPath(Path.Combine(DestinationDirectory, entryName));
GenerateMSBuildExtensionsSWR.cs (4)
42string sourceFolder = Path.Combine(MSBuildExtensionsLayoutDirectory, relativeSourcePath); 55sb.Append(Path.Combine(relativeSourcePath, Path.GetFileName(file))); 72string newRelativeSourcePath = Path.Combine(relativeSourcePath, subfolderName); 73string newSwrInstallDir = Path.Combine(swrInstallDir, subfolderName);
GenerateRuntimeAnalyzersSWR.cs (5)
59string sourceFolder = Path.Combine(RuntimeAnalyzersLayoutDirectory, relativeSourcePath); 66var path = Path.Combine(sourceFolder, file); 95sb.Append(Path.Combine(relativeSourcePath, fileName)); 118string newRelativeSourcePath = Path.Combine(relativeSourcePath, subfolderName); 119string newSwrInstallDir = Path.Combine(swrInstallDir, subfolderName);
GetRuntimePackRids.cs (1)
20string runtimeJsonPath = Path.Combine(MetapackagePath, "runtime.json");
ReplaceFilesWithSymbolicLinks.cs (1)
83string targetFile = Path.Combine(LinkToFilesFrom, fileName);
SelectTests (4)
ChangedFileFilter.cs (1)
47var patternsPath = Path.Combine(repoRoot, prefilter.PatternsFile);
GraphAffectedProjects.cs (2)
179var normalizedTestsDir = NormalizeFullPath(Path.Combine(repoRoot, "tests")); 508NormalizeFullPath(Path.Combine(repoRoot, rel.Replace('/', Path.DirectorySeparatorChar)))))
Program.cs (1)
104?? Path.Combine(repoRoot, "Aspire.slnx");
Stress.ApiService (2)
Program.cs (2)
338var xmlLarge = File.ReadAllText(Path.Combine("content", "books.xml")); 345var jsonLarge = File.ReadAllText(Path.Combine("content", "example.json"));
Stress.AppHost (12)
CommandResources.cs (12)
500var processCommandScriptsDirectory = Path.Combine(builder.AppHostDirectory, "process-command-scripts"); 501var processCommandStdinScriptPath = Path.Combine(processCommandScriptsDirectory, "stdin.js"); 502var processCommandEnvironmentScriptPath = Path.Combine(processCommandScriptsDirectory, "environment.js"); 503var processCommandWorkingDirectoryScriptPath = Path.Combine(processCommandScriptsDirectory, "working-directory.js"); 504var processCommandStderrFailureScriptPath = Path.Combine(processCommandScriptsDirectory, "stderr-failure.js"); 505var processCommandOutputLimitScriptPath = Path.Combine(processCommandScriptsDirectory, "output-limit.js"); 506var processCommandBackupRestoreScriptPath = Path.Combine(processCommandScriptsDirectory, "backup-restore.js"); 507var processCommandContainerExecScriptPath = Path.Combine(processCommandScriptsDirectory, "container-exec.js"); 508var processCommandSampleBackupPath = Path.Combine(processCommandScriptsDirectory, "sample-backup.dump"); 510var processCommandCSharpArgumentsAndStdinAppPath = Path.Combine(processCommandFileAppsDirectory, "arguments-and-stdin.cs"); 511var processCommandCSharpWorkingDirectoryFailureAppPath = Path.Combine(processCommandFileAppsDirectory, "working-directory-failure.cs"); 512var processCommandIssueToolAppPath = Path.Combine(processCommandFileAppsDirectory, "issue-tool.cs");
SuperFileCheck (3)
Program.cs (3)
51Directory.EnumerateFiles(Path.Combine(superFileCheckDir, "runtimes/"), "FileCheck*", SearchOption.AllDirectories) 59FileCheckPath = Path.Combine(superFileCheckDir, "FileCheck"); 727tmpFilePath = Path.Combine(tmpDirName, tmpFileName);
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
132_basePath = Path.Combine(
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
90var path = Path.Combine(location, probingPath);
System.Configuration.ConfigurationManager (12)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
132_basePath = Path.Combine(
System\Configuration\AppSettingsSection.cs (1)
102: Path.Combine(Path.GetDirectoryName(configFile), File);
System\Configuration\ClientConfigPaths.cs (4)
67ApplicationUri = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, exeAssembly.ManifestModule.Name); 102externalConfigPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, externalConfigPath); 226return Path.Combine(path1, path2); 263else if (Uri.TryCreate(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, assembly.ManifestModule.Name), UriKind.Absolute, out Uri codeBase))
System\Configuration\ClientConfigurationHost.cs (2)
49s_machineConfigFilePath = Path.Combine(Path.Combine(directory, MachineConfigSubdirectory),
System\Configuration\Internal\InternalConfigHost.cs (1)
201string result = Path.Combine(dirStream, configSource);
System\Configuration\LocalFileSettingsProvider.cs (1)
327file = Path.Combine(previousDirectory.FullName, ConfigurationManagerInternalFactory.Instance.UserConfigFilename);
System\Configuration\NameValueFileSectionHandler.cs (1)
41string sourceFileFullPath = Path.Combine(directory, filename);
System\Diagnostics\TraceUtils.cs (1)
83initializeData = Path.Combine(dirPath, initializeData);
System.Diagnostics.EventLog (4)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
230dllDir = Path.Combine(installRoot, version);
System\Diagnostics\EventLog.cs (3)
699string dllPath = Path.Combine(NetFrameworkUtils.GetLatestBuildDllDirectory(machineName), DllName); 707dllPath = Path.Combine(Path.GetDirectoryName(assmLocation)!, AltDllName); 711dllPath = Path.Combine(AppContext.BaseDirectory, AltDllName);
System.Diagnostics.PerformanceCounter (1)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
230dllDir = Path.Combine(installRoot, version);
System.Diagnostics.Process (1)
System\Diagnostics\ProcessUtils.Unix.cs (1)
239string filenameInWorkingDirectory = Path.Combine(workingDirectory, filename);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\TextWriterTraceListener.cs (1)
242fullPath = Path.Combine(dirPath, fileNameOnly);
System.Formats.Tar (3)
System\Formats\Tar\TarEntry.cs (2)
464current = Path.Combine(current, component); 510current = Path.Combine(current, component);
System\Formats\Tar\TarHelpers.Unix.cs (1)
25string filename = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
194fileDestinationPath = Path.GetFullPath(Path.Combine(fullDestination, sanitizedEntryPath));
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\Helper.NonMobile.cs (1)
26dataDirectory = Path.Combine(dataDirectory, IsolatedStorageDirectoryName);
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
556return Path.Combine(RootDirectory, partialPath);
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
310string path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.cs (1)
275path = Path.Combine(path, partNameWithoutExtension); // Adding the last segment without ".rels" extension
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
33private static readonly string s_pipePrefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_");
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
406pathAndFilename = Path.Combine(pickupDirectory, filename);
System.Net.Ping (2)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\UnixCommandLinePing.cs (2)
30string pathv4v6 = Path.Combine(folder, s_ipv4v6PingFile); 31string path = Path.Combine(folder, fileName);
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
103path = System.IO.Path.Combine(path, Interop.Libraries.MsQuic);
System.Private.CoreLib (21)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (4)
142return Path.Combine(home, ".fonts"); 160config = Path.Combine(home, ".config"); 184string userDirsPath = Path.Combine(GetXdgConfig(homeDir), "user-dirs.dirs"); 248return Path.Combine(homeDir, fallback);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
83string newPath = Path.GetFullPath(Path.Combine(FullPath, path));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
62path = Combine(Interop.Sys.GetCwd(), path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (4)
193string sharedMemoryFilePath = Path.Combine(sessionDirectory, id.Name); 367string sharedMemoryFilePath = Path.Combine(sessionDirectoryPath, _id.Name); 829string runtimeTempDirectory = Path.Combine( 835string sharedMemoryDirectory = Path.Combine(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
345string requestedAssemblyPath = Path.Combine(Path.GetDirectoryName(requestorPath)!, requestedAssemblyName.Name + ".dll");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
71string path = Path.Combine(_mediator.ModuleDir, fileName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (2)
441string sessionDirectory = Path.Combine(lockFileDirectory, Id.GetSessionDirectoryName()); 448string lockFilePath = Path.Combine(sessionDirectory, Id.Name);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (6)
88string timeZoneFilePath = Path.Combine(timeZoneDirectory, id); 162var fileName = Path.Combine(GetTimeZoneDirectory(), TimeZoneFileName); 314string localtimeFilePath = Path.Combine(timeZoneDirectory, "localtime"); 315string posixrulesFilePath = Path.Combine(timeZoneDirectory, "posixrules"); 436TryLoadTzFile(Path.Combine(GetTimeZoneDirectory(), "localtime"), ref rawData, ref id); 453tzFilePath = Path.Combine(GetTimeZoneDirectory(), tzVariable);
System\Runtime\InteropServices\NativeLibrary.NativeAot.cs (1)
106ret = LoadLibraryHelper(Path.Combine(AppContext.BaseDirectory, currLibNameVariation), flags, ref errorTracker);
System.Private.Xml (3)
System\Xml\Serialization\Compilation.cs (3)
237path = Path.Combine(Path.GetDirectoryName(type.Assembly.Location)!, $"{assemblyName}.dll"); 242path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll"); 247path = Path.Combine(Path.GetDirectoryName(AppContext.BaseDirectory)!, $"{assemblyName}.dll");
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
45string modulePath = Path.Combine(directoryPath!, moduleName);
testhost (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
testhost.arm64 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
testhost.x86 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
vbc (7)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
461var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 818var result = Path.Combine(tempPath, ".roslyn"); 826FilePath = Path.Combine(mutexDirectory, name); 827GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
182loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\StandardBuildEnvironment.cs (1)
21public string GetFullyQualifiedPath(string path) => Path.Combine(CurrentDirectory, path);
VBCSCompiler (24)
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)); 459var path = Path.Combine(entryDir, LastUsedFileName); 555var lastUsedPath = Path.Combine(entryDir, LastUsedFileName); 583var createdPath = Path.Combine(entryDir, CreatedFileName);
src\roslyn\src\Compilers\Server\VBCSCompiler\CSharpCompilerServer.cs (1)
24: this(metadataProvider, Path.Combine(buildPaths.ClientDirectory, ResponseFileName), args, buildPaths, libDirectory, analyzerLoader, driverCache, logger)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
461var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 818var result = Path.Combine(tempPath, ".roslyn"); 826FilePath = Path.Combine(mutexDirectory, name); 827GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
182loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\StandardBuildEnvironment.cs (1)
21public string GetFullyQualifiedPath(string path) => Path.Combine(CurrentDirectory, path);
vbi (1)
Vbi.vb (1)
27responseFile:=Path.Combine(vbiDirectory, InteractiveResponseFileName),
vstest.console (8)
Internal\FilePatternParser.cs (2)
55filePattern = Path.Combine(_fileHelper.GetCurrentDirectory(), filePattern); 87matchingFiles.Add(Path.Combine(splitPattern.Item1, match.Path));
Processors\AeDebuggerArgumentProcessor.cs (1)
145procDumpPath = Path.Combine(procDumpToolDirectoryPath.FullName, ProcDumpExecutableHelper.ProcDumpFileName(_environment.Architecture));
Processors\CollectArgumentProcessor.cs (1)
128string collectorPath = Path.Combine(adapterPath, CoverletConstants.CoverletDataCollectorCodebase);
Publisher\TextFileTelemetryPublisher.cs (1)
63string path = Path.Combine(resultDirectory, resultFileName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
vstest.console.arm64 (8)
parent\vstest.console\Internal\FilePatternParser.cs (2)
55filePattern = Path.Combine(_fileHelper.GetCurrentDirectory(), filePattern); 87matchingFiles.Add(Path.Combine(splitPattern.Item1, match.Path));
parent\vstest.console\Processors\AeDebuggerArgumentProcessor.cs (1)
145procDumpPath = Path.Combine(procDumpToolDirectoryPath.FullName, ProcDumpExecutableHelper.ProcDumpFileName(_environment.Architecture));
parent\vstest.console\Processors\CollectArgumentProcessor.cs (1)
128string collectorPath = Path.Combine(adapterPath, CoverletConstants.CoverletDataCollectorCodebase);
parent\vstest.console\Publisher\TextFileTelemetryPublisher.cs (1)
63string path = Path.Combine(resultDirectory, resultFileName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
107var path = Path.Combine(p, exeName);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
88var candidatePath = Path.Combine(procdumpDirectory!, filename); 117string exeFullPath = Path.Combine(path.Trim(), executable);
Yarp.AppHost (1)
AppHost.cs (1)
21.WithStaticFiles(Path.Combine("..", "static-content"))