7889 references to Combine
aspire (389)
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)
119var manifestPath = Path.Combine(bundleDirectory.FullName, ManifestFileName); 565var destinationPath = Path.GetFullPath(Path.Combine(destinationRoot, normalizedEntryName.Replace('/', Path.DirectorySeparatorChar))); 577var rootManifestPath = Path.Combine(extractionDirectory, ManifestFileName); 583var packageDirectory = Path.Combine(extractionDirectory, "package"); 584var packageManifestPath = Path.Combine(packageDirectory, ManifestFileName); 592.Where(directory => File.Exists(Path.Combine(directory, ManifestFileName))) 615var 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, "skills")) || 1068File.Exists(Path.Combine(versionCacheDirectory, "skill-manifest.json")) || 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, "skills")); 1080TryDeleteFile(Path.Combine(versionCacheDirectory, "skill-manifest.json")); 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\CopilotCli\CopilotCliAgentEnvironmentScanner.cs (3)
20private static readonly string s_skillBaseDirectory = Path.Combine(".github", "skills"); 123return Path.Combine(homeDirectory.FullName, CopilotFolderName); 132return Path.Combine(GetCopilotConfigDirectory(homeDirectory), McpConfigFileName);
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\TelemetryHookConfigurator.cs (4)
120var filePath = Path.Combine(hooksDirectory, CopilotHookFileName); 155var claudeDirectory = Path.Combine(_executionContext.HomeDirectory.FullName, ClaudeFolderName); 156var settingsPath = Path.Combine(claudeDirectory, ClaudeSettingsFileName); 303return Path.Combine(copilotHome, 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 (19)
112var lockPath = Path.Combine(extractDir, ".aspire-bundle-lock"); 157var lockPath = Path.Combine(destinationPath, ".aspire-bundle-lock"); 235var versionsRoot = Path.Combine(destinationPath, VersionsDirectoryName); 240var activeVersionDir = Path.Combine(versionsRoot, versionId); 319var tempDir = Path.Combine(versionsRoot, $"{versionId}{TempSuffixPrefix}{Guid.NewGuid():N}"); 471var sidecarPath = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName); 500var linkPath = Path.Combine(layoutPath, dir); 515var linkPath = Path.Combine(layoutPath, dir); 566var linkPath = Path.Combine(layoutPath, dir); 598var managedDir = Path.Combine(versionDir, BundleDiscovery.ManagedDirectoryName); 599var managedExe = Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)); 619var dcpDir = Path.Combine(versionDir, BundleDiscovery.DcpDirectoryName); 670var bundlePath = Path.Combine(extractDir, BundleDiscovery.BundleDirectoryName); 706: Path.Combine(layoutPath, target)); 739var legacyPath = Path.Combine(layoutPath, dir); 836var markerPath = Path.Combine(extractDir, VersionMarkerFileName); 846var markerPath = Path.Combine(extractDir, VersionMarkerFileName); 891var fullPath = Path.GetFullPath(Path.Combine(destinationPath, relativePath)); 928var 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")); 106var 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 (6)
129var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 266var certPath = Path.Combine(certDir, nickname) + ".pem"; 385? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 429Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 495var certPath = Path.Combine(certDir, nickname) + ".pem"; 1047var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
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)
708var relativeSkillPath = Path.Combine(relativeSkillDirectory, skill.Name); 709var fullSkillDirectoryPath = Path.Combine(rootDirectory.FullName, relativeSkillPath);
Commands\AppHostLauncher.cs (1)
976return Path.Combine(logsDirectory, fileName);
Commands\InitCommand.cs (5)
275var appHostPath = Path.Combine(workingDirectory.FullName, "apphost.cs"); 348var appHostDirPath = Path.Combine(solutionDir.FullName, appHostDirName); 488.FirstOrDefault(pattern => File.Exists(Path.Combine(workingDirectory.FullName, pattern))); 534var configPath = Path.Combine(directory.FullName, AspireConfigFile.FileName); 793var 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)
360var 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)
147var sidecarPath = Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName); 765var targetExePath = Path.Combine(installDir, exeName); 783var newExePath = Path.Combine(tempExtractDir, exeName);
Configuration\AspireConfigFile.cs (7)
132var filePath = Path.Combine(directory, FileName); 159var filePath = Path.Combine(directory, FileName); 188var profiles = ReadApphostRunProfiles(Path.Combine(directory, "apphost.run.json")); 198var legacySettingsDir = Path.Combine(directory, AspireJsonConfiguration.SettingsFolder); 200Path.Combine(legacySettingsDir, migratedPath)); 377var absolutePath = Path.GetFullPath(Path.Combine(configDirectory, trimmedValue)); 393return 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)
46return 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)
333: Path.GetFullPath(Path.Combine(workingDirectory.FullName, binlogDirectory)); 337var binlogPath = Path.Combine(fullBinlogDirectory, CreateBinlogFileName(dotnetCommand, projectFile, workingDirectory)); 469var dotnetExecutablePath = Path.Combine( 652var cliAssemblyPath = Path.Combine(cliDirectory, "aspire.dll"); 667return File.Exists(Path.Combine(cliDirectory, ".aspire-install.json")); 672return HasBundleRoot(cliDirectory) || HasBundleRoot(Path.Combine(cliDirectory, "bundle")); 1418: Path.Combine(workingDirectory.FullName, configPath); 1727: 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 (2)
70return relativePath is not null ? Path.Combine(LayoutPath, relativePath) : null; 90return Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName));
Layout\LayoutDiscovery.cs (9)
250var bundlePath = Path.Combine(layoutPath, BundleDiscovery.BundleDirectoryName); 251var bundleManagedPath = Path.Combine(bundlePath, BundleDiscovery.ManagedDirectoryName); 252var bundleDcpPath = Path.Combine(bundlePath, BundleDiscovery.DcpDirectoryName); 262var bundleManagedExe = Path.Combine(bundleManagedPath, managedExeName); 274Dcp = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName), 275Managed = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName), 282var managedPath = Path.Combine(layoutPath, BundleDiscovery.ManagedDirectoryName); 283var dcpPath = Path.Combine(layoutPath, BundleDiscovery.DcpDirectoryName); 296var managedExePath = Path.Combine(managedPath, managedExeName);
Mcp\Tools\SelectAppHostTool.cs (1)
66resolvedPath = Path.GetFullPath(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 (6)
105var restoreDir = Path.Combine(restoreCacheDirectory, packageHash); 106var objDir = Path.Combine(restoreDir, "obj"); 107var manifestPath = Path.Combine(restoreDir, IntegrationPackageProbeManifest.FileName); 108var assetsPath = Path.Combine(objDir, "project.assets.json"); 109var lockPath = Path.Combine(restoreDir, "restore.lock"); 354return Path.Combine(integrationCacheDirectory.FullName, "package-restore");
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)
187var managedExecutable = Path.Combine(managedPath, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName));
Program.cs (7)
133var logsDirectory = Path.Combine(GetUsersAspirePath(processPath), "logs"); 169var newPath = Path.Combine(usersAspirePath, Configuration.AspireConfigFile.FileName); 174var legacyPath = Path.Combine(usersAspirePath, "globalsettings.json"); 689var hivesDirectory = Path.Combine(homeDirectory, "hives"); 696var sdksPath = Path.Combine(homeDirectory, "sdks"); 763var cacheDirectoryPath = Path.Combine(homeDirectory, "cache"); 770var 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)
299var filePath = Path.Combine(current.FullName, fileName); 727var filePath = Path.Combine(current.FullName, fileName); 906fullPath = Path.GetFullPath(Path.Combine(containingDirectory, normalized)); 1944=> Path.IsPathFullyQualified(path) ? path : Path.GetFullPath(Path.Combine(baseDirectory.FullName, path)); 2071var runJsonPath = Path.Combine(directory, $"{Path.GetFileNameWithoutExtension(projectFile.Name)}.run.json"); 2282var resolvedAppHostPath = Path.GetFullPath(Path.Combine(directoryName, config.AppHost.Path));
Projects\DotNetBasedAppHostServerProject.cs (15)
100public string BuildPath => Path.Combine(_projectModelPath, BuildFolder); 107public string GetProjectFilePath() => Path.Combine(_projectModelPath, ProjectFileName); 111var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName); 123var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName); 282File.WriteAllText(Path.Combine(_projectModelPath, "Program.cs"), programCs); 385var repoDirectoryPackagesProps = Path.Combine(_repoRoot, "Directory.Packages.props"); 397var projectFileName = Path.Combine(_projectModelPath, ProjectFileName); 464if (!File.Exists(Path.Combine(_projectModelPath, fileName))) 484var objPath = Path.Combine(_projectModelPath, "obj"); 506File.WriteAllText(Path.Combine(_projectModelPath, fileName), content); 509projectDocument.Save(Path.Combine(_projectModelPath, ProjectFileName)); 515var staleNugetConfig = Path.Combine(_projectModelPath, "nuget.config"); 546var projectFile = new FileInfo(Path.Combine(_projectModelPath, ProjectFileName)); 597var assemblyPath = Path.Combine(BuildPath, ProjectDllName); 752var globalNuGetPath = Path.Combine(userProfile, ".nuget");
Projects\FallbackProjectParser.cs (1)
268: Path.GetFullPath(Path.Combine(projectFile.DirectoryName!, include));
Projects\GuestAppHostProject.cs (8)
924var apphostRunPath = Path.Combine(directory.FullName, "apphost.run.json"); 1647var outputPath = Path.Combine(appPath, LanguageInfo.GeneratedFolderName); 1655outputPath = Path.Combine(appPath, LanguageInfo.LegacyGeneratedFolderName); 1671var filePath = Path.Combine(outputPath, fileName); 1930var manifestPath = Path.Combine(outputPath, GeneratedManifestFileName); 1978var fullPath = Path.GetFullPath(Path.Combine(outputPath, recordedRelativePath)); 2003var hashPath = Path.Combine(generatedPath, ".codegen-hash"); 2260var bundlePath = Path.Combine(bundleDirectory, $"{cacheFilePrefix}-{bundleHash}.pem");
Projects\GuestRuntime.cs (3)
296return new FileInfo(Path.Combine(directory.FullName, resolved)); 325var path = Path.IsPathRooted(trimmed) ? trimmed : Path.Combine(directory.FullName, trimmed); 588var filePath = Path.Combine(directory.FullName, fileName);
Projects\ILanguageDiscovery.cs (1)
66internal static string GeneratedFolderName { get; } = Path.Combine(".aspire", "modules");
Projects\JavaAppHostToolchainResolver.cs (18)
131if (File.Exists(Path.Combine(candidate.FullName, MavenPomFileName))) 138if (File.Exists(Path.Combine(candidate.FullName, gradleBuildFileName))) 189var candidate = Path.Combine(directory.FullName, wrapperName); 204var gitPath = Path.Combine(directory.FullName, ".git"); 221JavaAppHostToolchain.Gradle => File.Exists(Path.Combine(directory, GradleSettingsFileName)) 222|| File.Exists(Path.Combine(directory, GradleKotlinSettingsFileName)), 225JavaAppHostToolchain.Maven => File.Exists(Path.Combine(directory, MavenPomFileName)), 402var scriptPath = Path.Combine(resolution.ProjectDirectory.FullName, GradleInitScriptPath); 461var dependencyDirectory = Path.Combine( 500return projectPath is null ? path : Path.Combine(projectPath, path); 517JavaAppHostToolchain.Maven => ["-f", Path.Combine(projectPath, MavenPomFileName)], 531JavaAppHostToolchain.Maven => Path.Combine("target", "classes"), 541JavaAppHostToolchain.Maven => Path.Combine("target", DependencyDirectoryName), 542JavaAppHostToolchain.Gradle => Path.Combine("build", DependencyDirectoryName), 631Path.Combine("gradle", "libs.versions.toml") 655"-classpath", Path.Combine(dependencyDirectory, "*"), 703StampFile = Path.Combine(classesDirectory, Path.GetFileName(baseCompile.UpToDateCheck.StampFile)) 713var 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 (21)
199_integrationProbeManifestPath = Path.Combine(_workingDirectory, IntegrationPackageProbeManifest.FileName); 514references.Add(Path.Combine(projectDirectory, include.Replace('\\', Path.DirectorySeparatorChar))); 546var candidate = Path.Combine(directory, fileName); 647var objDir = Path.Combine(restoreDir, "obj"); 649await File.WriteAllTextAsync(Path.Combine(objDir, RestoreStampFileName), fingerprint, cancellationToken).ConfigureAwait(false); 740var restoreDir = Path.Combine(_workingDirectory, "integration-restore"); 762var projectFilePath = Path.Combine(restoreDir, IntegrationProjectFileName); 774Path.Combine(restoreDir, "Directory.Packages.props"), directoryPackagesProps, cancellationToken); 778Path.Combine(restoreDir, "Directory.Build.props"), "<Project />", cancellationToken); 780Path.Combine(restoreDir, "Directory.Build.targets"), "<Project />", cancellationToken); 818var closureSourcesPath = Path.Combine(restoreDir, ClosureSourcesFileName); 819var closureMetadataPath = Path.Combine(restoreDir, ClosureMetadataFileName); 820var closureTargetsPath = Path.Combine(restoreDir, ClosureTargetsFileName); 832Path.Combine(restoreDir, ProjectRefAssemblyNamesFileName), 857Path.Combine(restoreDir, ClosureManifestFileName), 882new XElement("AspireClosureMetadataFile", Path.Combine(restoreDir, ClosureMetadataFileName)), 883new XElement("AspireClosureSourcesFile", Path.Combine(restoreDir, ClosureSourcesFileName)), 884new XElement("AspireClosureTargetsFile", Path.Combine(restoreDir, ClosureTargetsFileName)), 885new XElement("AspireProjectRefAssemblyNamesFile", Path.Combine(restoreDir, ProjectRefAssemblyNamesFileName))); 1233return Path.Combine( 1710Path.Combine(contentRootPath, "appsettings.json"),
Projects\ProjectLocator.cs (6)
707var configFilePath = Path.Combine(searchDirectory.FullName, AspireConfigFile.FileName); 721: Path.Combine(searchDirectory.FullName, configAppHostPath); 776var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath); 1241Path.IsPathRooted(existingPath) ? existingPath : Path.Combine(settingsFile.Directory!.FullName, existingPath)); 1312targetSettingsFilePath = Path.Combine(parentDirectory.FullName, AspireConfigFile.FileName); 1328var newConfigPath = Path.Combine(configRoot.FullName, AspireConfigFile.FileName);
Projects\ProjectUpdater.cs (2)
216var globalNuGetFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget"); 1033var directoryPackagesPropsPath = Path.Combine(current.FullName, "Directory.Packages.props");
Projects\TypeScriptAppHostToolchainResolver.cs (7)
59if (File.Exists(Path.Combine(candidateDirectory.FullName, BunLockFileName))) 64if (File.Exists(Path.Combine(candidateDirectory.FullName, BunBinaryLockFileName))) 69if (File.Exists(Path.Combine(candidateDirectory.FullName, PnpmLockFileName))) 74var yarnLockFilePath = Path.Combine(candidateDirectory.FullName, YarnLockFileName); 85if (File.Exists(Path.Combine(candidateDirectory.FullName, YarnConfigFileName))) 90if (File.Exists(Path.Combine(candidateDirectory.FullName, PackageLockFileName))) 302var 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))); 485var outputPath = Path.Combine(directoryPath, LanguageInfo.GeneratedFolderName); 490var filePath = Path.Combine(outputPath, fileName); 509!File.Exists(Path.Combine(directory.FullName, PackageJsonFileName)) || 549var filePath = Path.Combine(rootDirectory, fileName);
src\Shared\AspireHomeDirectory.cs (1)
32? Path.Combine(userProfileDirectory, ".aspire")
src\Shared\BackchannelConstants.cs (3)
257var socketPath = Path.Combine(dir, $"{appHostId}{instanceId}.{processId.ToString(CultureInfo.InvariantCulture)}"); 275var socketPath = Path.Combine(dir, socketName); 313return Path.Combine(dir, appHostId);
src\Shared\BundleDiscovery.cs (6)
135var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 141dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 142dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 166var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 167var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 295return Path.Combine(dcpDirectory, exeName);
src\Shared\BundleVersionLease.cs (3)
104var leasesDirectory = Path.Combine(fullVersionDirectory, LeasesDirectoryName); 107var leasePath = Path.Combine(leasesDirectory, CreateLeaseFileName()); 179var leasesDirectory = Path.Combine(versionDirectory, LeasesDirectoryName);
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
src\Shared\PathNormalizer.cs (6)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = Path.Combine(current, segments[j]);
Telemetry\InternalMicrosoftDetector.cs (5)
338var tempPath = Path.Combine(directory, $"{Path.GetRandomFileName()}.tmp"); 593var copilotHome = Path.Combine(_executionContext.HomeDirectory.FullName, ".copilot"); 1053var path = Path.Combine(directory, fileName); 1097var configHome = string.IsNullOrWhiteSpace(xdgConfigHome) ? Path.Combine(home, ".config") : xdgConfigHome; 1161var 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)
325var 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)
36var newSettingsPath = Path.Combine(currentDirectory.FullName, AspireConfigFile.FileName); 135return new DirectoryInfo(Path.Combine(configRoot.FullName, AspireJsonConfiguration.SettingsFolder)); 141return new DirectoryInfo(Path.Combine(workspaceAspireDirectory.FullName, IntegrationCacheFolderName)); 154var 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 (18)
NuGet\Commands\LayoutCommand.cs (1)
105var destPath = Path.Combine(outputPath, asset.RelativePath.Replace('/', Path.DirectorySeparatorChar));
NuGet\Commands\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));
NuGet\Commands\RestoreCommand.cs (3)
218var assetsPath = Path.Combine(outputPath, "project.assets.json"); 273var projectPath = Path.Combine(outputPath, "project.json"); 334var graphPath = Path.Combine(outputPath, RuntimeIdentifierGraphFileName);
src\Shared\BundleDiscovery.cs (6)
135var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 141dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 142dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 166var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 167var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 295return Path.Combine(dcpDirectory, exeName);
src\Shared\BundleVersionLease.cs (3)
104var leasesDirectory = Path.Combine(fullVersionDirectory, LeasesDirectoryName); 107var leasePath = Path.Combine(leasesDirectory, CreateLeaseFileName()); 179var leasesDirectory = Path.Combine(versionDirectory, LeasesDirectoryName);
Aspire.Acquisition.Tests (252)
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")); 62var fullScriptPath = Path.Combine(repoRoot, _scriptPath); 88var tempScript = Path.Combine(_testEnvironment.TempDirectory, $"test-func-{Guid.NewGuid():N}.sh"); 128var 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")); 68var 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\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 (60)
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"); 120var brewPath = Path.Combine(mockBinDir, "brew"); 194var curlPath = Path.Combine(mockBinDir, "curl"); 227var mockBinDir = Path.Combine(env.TempDirectory, "mock-winget-bin"); 228var wingetLog = Path.Combine(env.TempDirectory, "winget.log"); 234var implPath = Path.Combine(mockBinDir, "winget-impl.ps1"); 369var wingetCmd = Path.Combine(mockBinDir, "winget.cmd"); 375var aspireCmd = Path.Combine(mockBinDir, "aspire.cmd"); 388await File.WriteAllTextAsync(Path.Combine(root, "aspire-cli-osx-arm64-13.3.0.tar.gz"), "fake arm64 archive"); 389await File.WriteAllTextAsync(Path.Combine(root, "aspire-cli-osx-x64-13.3.0.tar.gz"), "fake x64 archive"); 399await WriteRealAspireWinGetZipAsync(Path.Combine(archiveDir, "aspire-cli-win-x64-13.3.0.zip"), "stub-x64-13.3.0"); 400await WriteRealAspireWinGetZipAsync(Path.Combine(archiveDir, "aspire-cli-win-arm64-13.3.0.zip"), "stub-arm64-13.3.0"); 524var localDir = await CreateHomebrewInstallerArtifactAsync(Path.Combine(env.TempDirectory, "homebrew-artifact")); 563var localDir = await CreateHomebrewInstallerArtifactAsync(Path.Combine(env.TempDirectory, "homebrew-artifact")); 568var result = await cmd.ExecuteAsync(Path.Combine(localDir, "aspire.rb")); 580var caskPath = Path.Combine(env.TempDirectory, "aspire.rb"); 599var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 609"--output-dir", Path.Combine(env.TempDirectory, "homebrew-output"), 616var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 626var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 629var outputDir = Path.Combine(env.TempDirectory, "homebrew-output"); 642var cask = await File.ReadAllTextAsync(Path.Combine(outputDir, "aspire.rb")); 646Assert.Contains((await GetSha256HexAsync(Path.Combine(archiveRoot, "aspire-cli-osx-arm64-13.3.0.tar.gz"))).ToLowerInvariant(), cask); 647Assert.Contains((await GetSha256HexAsync(Path.Combine(archiveRoot, "aspire-cli-osx-x64-13.3.0.tar.gz"))).ToLowerInvariant(), cask); 649Assert.True(File.Exists(Path.Combine(outputDir, "dogfood.sh"))); 658var brewLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "brew.log")); 720var localDir = await CreateWinGetInstallerArtifactAsync(Path.Combine(env.TempDirectory, "winget-artifact")); 759var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 761var outputDir = Path.Combine(env.TempDirectory, "winget-output"); 772var installerManifest = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.installer.yaml")); 781var localeManifest = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.locale.en-US.yaml")); 783Assert.True(File.Exists(Path.Combine(outputDir, "Microsoft.Aspire.yaml"))); 784Assert.True(File.Exists(Path.Combine(outputDir, "dogfood.ps1"))); 793var localDir = await CreateWinGetInstallerArtifactAsync(Path.Combine(env.TempDirectory, "winget-artifact")); 801var wingetLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "winget.log")); 812var localDir = await CreateWinGetInstallerArtifactAsync(Path.Combine(env.TempDirectory, "winget-artifact")); 848var wingetLog = await File.ReadAllTextAsync(Path.Combine(env.TempDirectory, "winget.log")); 853var originalInstaller = await File.ReadAllTextAsync(Path.Combine(manifestDir, "Microsoft.Aspire.installer.yaml")); 902var archiveRoot = Path.Combine(env.TempDirectory, "archives"); 905var x64Zip = Path.Combine(archiveDir, "aspire-cli-win-x64-13.3.0.zip"); 906var arm64Zip = Path.Combine(archiveDir, "aspire-cli-win-arm64-13.3.0.zip"); 910var outputDir = Path.Combine(env.TempDirectory, "winget-output"); 921var installerYaml = await File.ReadAllTextAsync(Path.Combine(outputDir, "Microsoft.Aspire.installer.yaml")); 927var extractDir = Path.Combine(env.TempDirectory, $"extract-{Path.GetFileNameWithoutExtension(archive)}"); 931var expected = Path.Combine(extractDir, rel.Replace('/', Path.DirectorySeparatorChar));
Scripts\PRScriptPowerShellTests.cs (12)
101var mockGhPath = Path.Combine(mockBinPath, OperatingSystem.IsWindows() ? "gh.cmd" : "gh"); 115var mockGhPath = Path.Combine(mockBinPath, OperatingSystem.IsWindows() ? "gh.cmd" : "gh"); 129var mockGhPath = Path.Combine(mockBinPath, OperatingSystem.IsWindows() ? "gh.cmd" : "gh"); 142var customPath = Path.Combine(env.TempDirectory, "custom"); 187var localDir = Path.Combine(env.TempDirectory, "local artifacts"); 212var localDir = Path.Combine(env.TempDirectory, "raw-build"); 215await File.WriteAllTextAsync(Path.Combine(localDir, "aspire"), "#!/bin/sh\necho fake\n"); 295var customPath = Path.Combine(env.TempDirectory, "custom"); 420var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 516var customPath = Path.Combine(env.TempDirectory, "custom-prefix"); 601var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 624var 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)
92var mockGhPath = Path.Combine(mockBinPath, "gh"); 106var mockGhPath = Path.Combine(mockBinPath, "gh"); 119var customPath = Path.Combine(env.TempDirectory, "custom"); 145var localDir = Path.Combine(env.TempDirectory, "local artifacts"); 170var localDir = Path.Combine(env.TempDirectory, "raw-build"); 173await File.WriteAllTextAsync(Path.Combine(localDir, "aspire"), "#!/bin/sh\necho fake\n"); 349var customPath = Path.Combine(env.TempDirectory, "custom"); 496var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 581var customPath = Path.Combine(env.TempDirectory, "custom-prefix"); 664var localDir = Path.Combine(env.TempDirectory, "local-artifacts"); 689var 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 (8)
66var customPath = Path.Combine(env.TempDirectory, "custom"); 113var customPath = Path.Combine(env.TempDirectory, "custom"); 187var installPath = Path.Combine(env.TempDirectory, "install"); 198await File.ReadAllBytesAsync(Path.Combine(installPath, ".aspire-install.json"))); 216var installPath = Path.Combine(env.TempDirectory, "install"); 218var sidecarPath = Path.Combine(installPath, ".aspire-install.json"); 247var installPath = Path.Combine(env.TempDirectory, "install"); 276await 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)
78var customPath = Path.Combine(env.TempDirectory, "custom-bin"); 142var installPath = Path.Combine(env.TempDirectory, "install"); 153await File.ReadAllBytesAsync(Path.Combine(installPath, ".aspire-install.json"))); 169var installPath = Path.Combine(env.TempDirectory, "install"); 182Assert.True(File.Exists(Path.Combine(installPath, ".aspire-install.json"))); 189var installPath = Path.Combine(env.TempDirectory, "install"); 212await 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 (305)
AgentCommandTests.cs (3)
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");
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"));
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 (2)
55var appHostCs = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 56var 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");
DockerDeploymentTests.cs (6)
57var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 58var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 59var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 157var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 158var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 159var 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)
607if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx"))) 1113var configPath = Path.Combine(projectRoot, "aspire.config.json"); 1143destDir = Path.Combine(destDir, label); 1146using var logWriter = new StreamWriter(Path.Combine( 1168var destFile = Path.Combine(destDir, captureFileName); 1180? Path.Combine(githubWorkspace, "testresults") 1181: Path.Combine(AppContext.BaseDirectory, "TestResults"); 1194var destFile = Path.Combine(destDir, Path.GetFileName(file)); 1212CopyDirectory(dir, Path.Combine(destDir, destDirName), log);
Helpers\CliInstallStrategyTests.cs (7)
480File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.3.0-preview.1.25175.1.nupkg"), ""); 481File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.linux-x64.13.3.0-preview.1.25175.1.nupkg"), ""); 777File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.3.0-preview.1.12345.1.nupkg"), ""); 795File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.linux-x64.13.3.0.nupkg"), ""); 813File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.3.0.nupkg"), ""); 814File.WriteAllText(Path.Combine(tempDir.FullName, "Aspire.Cli.13.4.0.nupkg"), ""); 833File.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 (5)
336var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 337var apiDir = Path.Combine(projectDir, $"{projectName}.ApiService"); 339output.WriteLine($"Writing AppHost.cs to: {Path.Combine(appHostDir, "AppHost.cs")}"); 340File.WriteAllText(Path.Combine(appHostDir, "AppHost.cs"), appHostCode); 341File.WriteAllText(Path.Combine(apiDir, "Program.cs"), apiProgramCode);
Helpers\TerminalRun.cs (3)
86var diagnosticsSource = Path.Combine(_workspace.WorkspaceRoot.FullName, CliE2EAutomatorHelpers.DiagnosticsDirectoryName); 129File.Copy(file, Path.Combine(destination, Path.GetFileName(file)), overwrite: true); 134CopyDirectoryIfExists(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"); 155var yarnConfigPath = Path.Combine(projectRoot, YarnConfigurationFileName); 162var 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)
96Path.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)
90var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 91var 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)
129Path.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)
27File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "LaunchProfile.sln"), "Fake solution file"); 39var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "LaunchProfile.AppHost"); 40var appHostSourcePath = Path.Combine(appHostDirectory, "AppHost.cs"); 42var 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"),
RadiusPublishTests.cs (2)
114var appBicepPath = Path.Combine(outputDir, "app.bicep"); 126var bicepConfigPath = Path.Combine(outputDir, "bicepconfig.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)
166var projectPath = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 167var configPath = Path.Combine(projectPath, "aspire.config.json"); 169var appHostPath = Path.Combine(projectPath, appHostFileName);
StartStopTests.cs (4)
111var bothInstancesPath = Path.Combine(workspace.WorkspaceRoot.FullName, "both-instances.json"); 112var remainingInstancePath = Path.Combine(workspace.WorkspaceRoot.FullName, "remaining-instance.json"); 113var stoppedInstancesPath = Path.Combine(workspace.WorkspaceRoot.FullName, "stopped-instances.json"); 249var 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)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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 (22)
80var viteProjectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "viteapp"); 96var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 119var appHostLockFilePath = Path.Combine( 126var viteLockFilePath = Path.Combine( 195var viteProjectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "viteapp"); 206var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 225var appHostLockFilePath = Path.Combine( 232var guestLockFilePath = Path.Combine( 281var lockFilePath = Path.Combine( 331Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), 353var packageJson = JsonNode.Parse(File.ReadAllText(Path.Combine(projectRoot, "package.json")))!.AsObject(); 359originalTsConfig = File.ReadAllText(Path.Combine(projectRoot, "tsconfig.json")); 361File.WriteAllText(Path.Combine(projectRoot, "package.json"), packageJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true })); 384packageJson = JsonNode.Parse(File.ReadAllText(Path.Combine(projectRoot, "package.json")))!.AsObject(); 401Assert.Equal(originalTsConfig, File.ReadAllText(Path.Combine(projectRoot, "tsconfig.json"))); 402Assert.False(File.Exists(Path.Combine(projectRoot, "tsconfig.apphost.json"))); 403Assert.False(File.Exists(Path.Combine(projectRoot, "apphost.mts"))); 405var appHostDirectory = Path.Combine(projectRoot, "aspire-apphost"); 406var appHostPath = Path.Combine(appHostDirectory, "apphost.mts"); 409var appHostPackageJson = JsonNode.Parse(File.ReadAllText(Path.Combine(appHostDirectory, "package.json")))!.AsObject(); 421Assert.True(File.Exists(Path.Combine(appHostDirectory, "tsconfig.apphost.json"))); 424var 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 (2290)
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 (51)
85var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 107var cacheLockPath = Path.Combine(cacheRoot, $".{AspireSkillsInstaller.Version}.lock"); 229Assert.True(File.Exists(Path.Combine( 282Assert.False(File.Exists(Path.Combine( 345await File.ReadAllTextAsync(Path.Combine( 350await File.ReadAllTextAsync(Path.Combine( 407await File.ReadAllTextAsync(Path.Combine( 457Assert.False(File.Exists(Path.Combine(cachedBundleDirectory, "skill-manifest.json"))); 458Assert.False(Directory.Exists(Path.Combine(cachedBundleDirectory, "skills"))); 464await File.ReadAllTextAsync(Path.Combine( 487await File.WriteAllTextAsync(Path.Combine(cachedBundleDirectory, "skill-manifest.json"), "{"); 520Directory.CreateDirectory(Path.Combine(cachedBundleDirectory, ".lastused")); 561Path.Combine(staleCacheDirectory, ".lastused"), 592var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 593var staleVersionDirectory = Path.Combine(cacheRoot, "9.9.9"); 637var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 638var staleVersionDirectory = Path.Combine(cacheRoot, "9.9.9"); 640var staleCacheDirectory = Path.Combine(staleVersionDirectory, staleArchiveSha512); 684var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 717var staleVersionLockPath = Path.Combine(cacheRoot, $".{staleVersion}.lock"); 753var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 761var staleVersionLockPath = Path.Combine(cacheRoot, $".{staleVersion}.lock"); 897var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 900Path.Combine(cacheRoot, $".{AspireSkillsInstaller.Version}.lock"), 944var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 951var staleDirectory = Directory.CreateDirectory(Path.Combine(cacheRoot, $"{prefix}stale")).FullName; 954recentDirectories.Add(Directory.CreateDirectory(Path.Combine(cacheRoot, $"{prefix}recent")).FullName); 1016var cacheRoot = Path.Combine(executionContext.CacheDirectory.FullName, "aspire-skills"); 1417var bundleDirectory = new DirectoryInfo(Path.Combine(rootDirectory, "bundle")); 1448var stageDirectory = new DirectoryInfo(Path.Combine(rootDirectory, ".stage-test")); 1449var targetDirectory = Path.Combine(rootDirectory, "cached"); 1460Assert.True(File.Exists(Path.Combine(targetDirectory, "skill-manifest.json"))); 1476var archivePath = Path.Combine(rootDirectory, "bundle.tgz"); 1481var bundleDirectory = new DirectoryInfo(Path.Combine(rootDirectory, "bundle")); 1506var archivePath = Path.Combine(rootDirectory, "bundle.tgz"); 1510var bundleDirectory = Path.Combine(rootDirectory, "bundle"); 1535var bundleDirectory = new DirectoryInfo(Path.Combine(rootDirectory, "bundle")); 1609await File.ReadAllTextAsync(Path.Combine( 1614await File.ReadAllTextAsync(Path.Combine( 1776Assert.False(File.Exists(Path.Combine( 2014var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 2048await File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), manifestJson); 2052await File.WriteAllTextAsync(Path.Combine(bundleDirectory, AspireSkillsInstaller.ArchiveSha512FileName), archiveSha512); 2058Path.Combine(bundleDirectory, AspireSkillsInstaller.GitHubArchiveSha256FileName), 2065Path.Combine(bundleDirectory, AspireSkillsInstaller.GitHubAttestationVerifiedFileName), 2073Path.Combine(cacheDirectory, ".lastused"), 2097var bundleDirectory = Path.Combine(rootDirectory, $"aspire-skills-v{AspireSkillsInstaller.Version}"); 2102Path.Combine(bundleDirectory, AspireSkillsInstaller.GitHubAttestationVerifiedFileName), 2107await File.WriteAllTextAsync(Path.Combine(bundleDirectory, "skill-manifest.json"), "{"); 2154return Path.Combine( 2283var 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\CopilotCliAgentEnvironmentScannerTests.cs (6)
57var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 110var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 150var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 208var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 236var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 261var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json");
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 (11)
58Assert.False(Directory.Exists(Path.Combine(home.FullName, ".copilot"))); 117var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 118var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 156var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 157var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 175var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 176var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 192var claudeDirectory = Directory.CreateDirectory(Path.Combine(home.FullName, ".claude")); 193var settingsPath = Path.Combine(claudeDirectory.FullName, "settings.json"); 222Assert.False(Directory.Exists(Path.Combine(home.FullName, ".copilot"))); 223Assert.False(Directory.Exists(Path.Combine(home.FullName, ".claude")));
Agents\TelemetryHookInstallerTests.cs (3)
23Assert.Equal(Path.Combine(expectedDirectory, "track-telemetry.sh"), scripts.ShellScriptPath); 24Assert.Equal(Path.Combine(expectedDirectory, "track-telemetry.ps1"), scripts.PowerShellScriptPath); 73var shellPath = Path.Combine(hooksDirectory, "track-telemetry.sh");
Agents\TelemetryHookScriptTests.cs (4)
382var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "capture.txt"); 394var capturePath = Path.Combine(workspace.WorkspaceRoot.FullName, "capture.txt"); 413var path = Path.Combine(directory, "recorder.sh"); 427var 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 (10)
56string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("TestAppHost", "TestAppHost.csproj")), 90string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("TestAppHost", "TestAppHost.csproj")), 291var realProjectFile = new FileInfo(Path.Combine(realDirectory.FullName, "TestAppHost.csproj")); 295var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 297var projectFileViaSymlink = new FileInfo(Path.Combine(symlinkDirectory, "TestAppHost.csproj")); 334Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 445Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 504var commonGitDirectory = Path.Combine(primaryCheckout.FullName, ".git"); 514var projectFile = new FileInfo(Path.Combine(directory.FullName, fileName)); 526var socketPath = Path.Combine(
Backchannel\AuxiliaryBackchannelMonitorTests.cs (14)
24var realDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "real")); 25var symlinkDirectory = Path.Combine(tempRoot.FullName, "link"); 29var appHostPathViaReal = Path.Combine(realDirectory.FullName, "apphost.cs"); 33var appHostPathViaSymlink = Path.Combine(symlinkDirectory, "apphost.cs"); 48var workingDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "wd")).FullName; 73Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 75TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 77var primaryAppHost = Path.Combine(primaryRoot, "AppHost.csproj"); 78var nestedAppHost = Path.Combine(worktreeRoot, "AppHost.csproj"); 98Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 104var submoduleAppHost = Path.Combine(submoduleRoot, "AppHost.csproj"); 120Directory.CreateDirectory(Path.Combine(primaryRoot, ".git")); 122var adminDirectory = TestGitWorktree.WriteLinkedWorktreeMetadata(worktreeRoot, Path.Combine(primaryRoot, ".git")); 125var submoduleAppHost = Path.Combine(submoduleRoot, "AppHost.csproj");
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 (41)
49var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 55var bundleLink = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 116var v1BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v1", "cli-v1"); 117var v2BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v2", "cli-v2-longer"); 130var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 171var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 175Directory.CreateDirectory(Path.Combine(versionsDir, "stale-aaaaaaaaaaaaaaaa")); 176Directory.CreateDirectory(Path.Combine(versionsDir, $"stale{BundleService.TempSuffixPrefix}deadbeef")); 177Directory.CreateDirectory(Path.Combine(versionsDir, $"stale{BundleService.BadSuffixPrefix}99999")); 212Assert.False(Directory.Exists(Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName))); 221var destinationPath = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 222var lockedFilePath = Path.Combine(sourcePath, "locked.dll"); 251var binDir = Path.Combine(layoutRoot, ".fake-bins"); 259File.WriteAllText(Path.Combine(binDir, ".aspire-install.json"), "{\"source\":\"script\"}"); 265var versionsDir = Path.Combine(layoutRoot, BundleService.VersionsDirectoryName); 300var versionsDir = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 301var staleVersionDir = Path.Combine(versionsDir, "stale-version"); 315var versionsDir = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 316var staleVersionDir = Path.Combine(versionsDir, "stale-version"); 317var leasesDir = Path.Combine(staleVersionDir, BundleVersionLease.LeasesDirectoryName); 319File.WriteAllText(Path.Combine(leasesDir, "orphan.lease"), "{}"); 363File.WriteAllText(Path.Combine(ridDir, ".aspire-install.json"), "{\"source\":\"dotnet-tool\"}"); 371var bundleLink = Path.Combine(ridDir, BundleDiscovery.BundleDirectoryName); 437var bundleLink = Path.Combine(aspireHome, BundleDiscovery.BundleDirectoryName); 448Directory.Exists(Path.Combine(binaryDir, BundleDiscovery.BundleDirectoryName)), 451Directory.Exists(Path.Combine(Path.GetDirectoryName(binaryDir)!, BundleDiscovery.BundleDirectoryName)), 457var versionsDir = Path.Combine(aspireHome, BundleService.VersionsDirectoryName); 498Assert.True(Directory.Exists(Path.Combine(dest, BundleDiscovery.DcpDirectoryName))); 513var v1BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v1", "cli-v1"); 514var v2BinaryPath = CreateFakeCliBinary(Path.Combine(layoutRoot, ".fake-bins"), "aspire-v2", "cli-v2-longer"); 522var bundleLink = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 594var linkPath = Path.Combine(layoutRoot, dir); 614var path = Path.Combine(directory, name); 627var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 628var managedDir = Path.Combine(bundleDir, BundleDiscovery.ManagedDirectoryName); 629var dcpDir = Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName); 631var managedExe = Path.Combine(managedDir, managedExeName); 644Managed = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName), 645Dcp = Path.Combine(BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName), 652var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 657LayoutComponent.Dcp => Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName),
BundleServiceTests.cs (13)
77var processPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 148Directory.Delete(Path.Combine(dir, BundleDiscovery.DcpDirectoryName), recursive: true); 159File.Delete(BundleDiscovery.GetDcpExecutablePath(Path.Combine(dir, BundleDiscovery.DcpDirectoryName))); 196var versionsRoot = Path.Combine(workspace.WorkspaceRoot.FullName, BundleService.VersionsDirectoryName); 200Directory.CreateDirectory(Path.Combine(versionsRoot, active)); 201Directory.CreateDirectory(Path.Combine(versionsRoot, "stale-bbbbbbbbbbbbbbbb")); 202Directory.CreateDirectory(Path.Combine(versionsRoot, $"active{BundleService.TempSuffixPrefix}deadbeef")); 203Directory.CreateDirectory(Path.Combine(versionsRoot, $"active{BundleService.BadSuffixPrefix}99999")); 207Assert.True(Directory.Exists(Path.Combine(versionsRoot, active))); 224Directory.CreateDirectory(Path.Combine(dir, BundleDiscovery.BundleDirectoryName)); 231var managedDir = Path.Combine(root, BundleDiscovery.ManagedDirectoryName); 234Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 237var 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 (17)
23var nssDbDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "nssdb")); 24var parentPidFile = Path.Combine(tempDirectory.FullName, "certutil-parent.pid"); 25var childPidFile = Path.Combine(tempDirectory.FullName, "certutil-child.pid"); 75var nssDbDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.FullName, "nssdb")); 117["PATH"] = Path.Combine(openSslDirectory.FullName, "missing-tools"), 119["DOTNET_DEV_CERTS_NSSDB_PATHS"] = Path.Combine(openSslDirectory.FullName, "missing-nss-db") 125var certificatePath = Path.Combine(openSslDirectory.FullName, $"aspnetcore-localhost-{certificate.Thumbprint}.pem"); 152["PATH"] = Path.Combine(corruptOpenSslDirectory.FullName, "missing-tools"), 154["DOTNET_DEV_CERTS_NSSDB_PATHS"] = Path.Combine(corruptOpenSslDirectory.FullName, "missing-nss-db") 161File.WriteAllText(Path.Combine(corruptOpenSslDirectory.FullName, certificateFileName), "not a certificate"); 162File.WriteAllText(Path.Combine(validOpenSslDirectory.FullName, certificateFileName), certificate.ExportCertificatePem()); 187["PATH"] = Path.Combine(openSslDirectory.FullName, "missing-tools"), 188["DOTNET_DEV_CERTS_NSSDB_PATHS"] = Path.Combine(openSslDirectory.FullName, "missing-nss-db"), 196var certificatePath = Path.Combine(openSslDirectory.FullName, $"aspnetcore-localhost-{savedCertificate.Thumbprint}.pem"); 222["PATH"] = Path.Combine(nssDbDirectory.FullName, "missing-certutil"), 249var certUtilFile = new FileInfo(Path.Combine(directory.FullName, "certutil")); 273var certUtilFile = new FileInfo(Path.Combine(directory.FullName, "certutil"));
CliBootstrapTests.cs (13)
122var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-pr-test"); 127Assert.Equal(Path.Combine(installPrefix, "logs"), loggingOptions.LogsDirectory); 135var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-pr-test"); 138var logsDirectory = Path.Combine(installPrefix, "logs"); 139var logFilePath = Path.Combine(logsDirectory, "aspire.log"); 156Assert.Equal(Path.Combine(installPrefix, "hives"), context.HivesDirectory.FullName); 157Assert.Equal(Path.Combine(installPrefix, "cache"), context.CacheDirectory.FullName); 158Assert.Equal(Path.Combine(installPrefix, "sdks"), context.SdksDirectory.FullName); 159Assert.Equal(Path.Combine(installPrefix, "packages"), context.PackagesDirectory?.FullName); 185logsDirectory: Path.Combine(workspace.WorkspaceRoot.FullName, "logs"), 207logsDirectory: Path.Combine(workspace.WorkspaceRoot.FullName, "logs"), 264var binaryPath = Path.Combine(binaryDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 267File.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 (27)
102var blockedSkillParentPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".agents"); 162Path.Combine(".agents", "skills"), 163Path.Combine(".claude", "skills"), 164Path.Combine(".github", "skills"), 165Path.Combine(".opencode", "skill") 384AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 385AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".claude", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 386AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".github", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 387AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".opencode", "skill"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 475var agentsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".agents"); 513AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireSkillName); 514AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireDeploymentSkillName); 515AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireInitSkillName); 516AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 517AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireOrchestrationSkillName); 558AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), skillName); 580AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireOrchestrationSkillName); 616AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireSkillName); 617AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireDeploymentSkillName); 618AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireInitSkillName); 619AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireMonitoringSkillName); 620AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), FakeAspireSkillsInstaller.AspireOrchestrationSkillName); 718AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireifySkillName); 826AssertSkillFileExists(workspace.WorkspaceRoot, Path.Combine(".agents", "skills"), CommonAgentApplicators.AspireSkillName); 841var bundleDirectory = new DirectoryInfo(Path.Combine(workspaceRoot.FullName, $".test-aspire-skills-bundle-{Guid.NewGuid():N}")); 849var skillPath = Path.Combine(skillDirectory, "SKILL.md"); 886var manifestPath = Path.Combine(bundleDirectory.FullName, "skill-manifest.json");
Commands\AppHostLauncherTests.cs (11)
61var logsDirectory = Path.Combine(Path.GetTempPath(), "aspire-cli-tests"); 85var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 88var realProjectPath = Path.Combine(realDirectory.FullName, "AppHost.csproj"); 90var appHostPathViaSymlink = Path.Combine(symlinkDirectory, "AppHost.csproj"); 961var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 989var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1012var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1074var childLogFile = Path.Combine(workspace.WorkspaceRoot.FullName, "child.log"); 1166var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1175Path.Combine(logsDirectory.FullName, "parent.log"), 1255var socketPath = Path.Combine(
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\ConfigCommandTests.cs (7)
798var settingsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 800var settingsPath = Path.Combine(settingsDir, "settings.json"); 831var settingsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 833var settingsPath = Path.Combine(settingsDir, "settings.json"); 873var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 903var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1000var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Commands\DashboardRunCommandTests.cs (4)
600var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [dashboard].log"); 630var layoutDir = Path.Combine(workspace.WorkspaceRoot.FullName, "layout"); 631var managedDir = Path.Combine(layoutDir, "managed"); 633var managedPath = Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName("aspire-managed"));
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 (72)
66var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 69var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectFileName)); 109Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"))); 117var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 150Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"))); 166Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 168var config = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")))!.AsObject(); 193var runJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json"); 220var aspireConfig = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")))!.AsObject(); 263File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), existingAspireConfig); 274var runJson = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json")))!.AsObject(); 313var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 338Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.run.json"))); 362Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 397Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"))); 399var config = JsonNode.Parse(File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")))!.AsObject(); 410var existingAppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 413File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), """{ "type": "commonjs" }"""); 428Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"))); 429Assert.Equal("""{ "type": "commonjs" }""", File.ReadAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"))); 436File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{}"); 445File.WriteAllText(Path.Combine(scaffoldDirectory.FullName, context.Language.AppHostFileName!), string.Empty); 475Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"))); 587Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 609Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 629Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 653var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 671var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 704var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 723var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 743var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 787File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")), 796var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 873var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 939var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 988var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1058Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 1060var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1093Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 1095var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1130var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1154var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1203var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1247var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1362var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1469var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1548var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1636var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1639var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1697var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1726var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1744var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1748var appHostDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.AppHost")); 1750Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1771var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1789var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"); 1791Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1808var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1827var solutionFile = new FileInfo(Path.Combine(solutionDir.FullName, "Test.sln")); 1857Assert.True(File.Exists(Path.Combine(solutionDir.FullName, "nuget.config")), 1859Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")), 1861AssertNuGetConfigHasChannelShape(Path.Combine(solutionDir.FullName, "nuget.config"), contextChannel); 1877var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1889var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1938var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1970var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1993var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 2038File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config")), 2054var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.slnx")); 2084var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 2188File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, appHostFileName), string.Empty); 2198File.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)
260File.WriteAllText(Path.Combine(outputPath, $"{name}.generated"), templateName); 296var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, outputDirectoryName); 301var appHostFile = Path.Combine(outputDirectory, "apphost.cs"); 310var csharpNuGetConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, "nuget.config")); 334var dotNetNuGetConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, "nuget.config")); 409var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, outputDirectoryName); 521var installPrefix = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "custom-aspire-prefix")); 527File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{s_prVersion}.nupkg"), string.Empty);
Commands\NewCommandTests.cs (76)
148var outputDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "TemplateOut"); 149var nugetConfigPath = Path.Combine(outputDirectory, "nuget.config"); 554var config = AspireConfigFile.Load(Path.Combine(workspace.WorkspaceRoot.FullName, "output")); 767var doc = XDocument.Load(Path.Combine(outputPath, "nuget.config")); 966File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.mts"), "// test apphost"); 1132File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "AppHost.java"), "package aspire;"); 1157File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"), """ 1195File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "AppHost.java"), "package aspire;"); 1223File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.mts"), "// test apphost"); 1300AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), expectedSource); 1310var expectedSource = Path.Combine(workspace.WorkspaceRoot.FullName, "relative-feed"); 1312File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1343AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), expectedSource); 1355var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 1357File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1380File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, scaffoldFileName), "// test apphost"); 1392AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 1403var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 1405File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1416AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 1451Assert.False(Directory.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "output"))); 1483var expectedSource = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.org"); 1486Assert.False(Directory.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "output"))); 1506File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.mts"), "// test apphost"); 1545File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "AppHost.java"), "package aspire;"); 1581File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.py"), "# test apphost"); 1664var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 1665var aspireConfigPath = Path.Combine(outputDir, "aspire.config.json"); 1666var appHostRunJsonPath = Path.Combine(outputDir, "apphost.run.json"); 1698var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 1699var aspireConfigPath = Path.Combine(outputDir, "aspire.config.json"); 1700var appHostRunJsonPath = Path.Combine(outputDir, "apphost.run.json"); 1773var outputRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 1775var aspireConfigPath = Path.Combine(outputRoot, "aspire.config.json"); 1782var appHostRunJsonPath = Path.Combine(outputRoot, "apphost.run.json"); 1907var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestApp"); 1952await File.WriteAllTextAsync(Path.Combine(context.TargetDirectory.FullName, "aspire.config.json"), """ 2046var modulesDir = Directory.CreateDirectory(Path.Combine(directory.FullName, LanguageInfo.GeneratedFolderName)); 2047File.WriteAllText(Path.Combine(modulesDir.FullName, "aspire.mts"), "// generated sdk"); 2132var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 2136File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 2171File.WriteAllText(Path.Combine(modulesDir.FullName, "aspire.ts"), "// generated sdk"); 2184AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 2232AssertSourceOverrideNuGetConfig(Path.Combine(workspace.WorkspaceRoot.FullName, "output"), sourceOverride); 2242var sourceOverride = Path.Combine(workspace.WorkspaceRoot.FullName, "source-feed"); 2246File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 2341var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 2366var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 2463Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-starter"), capturedOutputPath); 2498var result = command.Parse($"new aspire-starter --name MyProject --output {Path.Combine(workspace.WorkspaceRoot.FullName, "my-project")} --use-redis-cache --test-framework None"); 2540var outputDir = Path.Combine(workspace.WorkspaceRoot.FullName, "output"); 2659Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2775Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2806var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2871workspaceRoot => Path.Combine(workspaceRoot, "source") + Path.DirectorySeparatorChar, 2876workspaceRoot => Path.Combine(workspaceRoot, projectName) + Path.DirectorySeparatorChar, 2877workspaceRoot => Path.Combine(workspaceRoot, projectName)); 2903Path.Combine(workspace.WorkspaceRoot.FullName, "source"); 2914File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 2930Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 2940File.WriteAllText(Path.Combine(selectedParent.FullName, "existing.txt"), "existing content"); 2977File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 2992var expectedPath = Path.Combine(selectedParent.FullName, projectName); 2994Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 3004var collidingProject = Directory.CreateDirectory(Path.Combine(collidingParent.FullName, projectName)); 3005File.WriteAllText(Path.Combine(collidingProject.FullName, "existing.txt"), "existing content"); 3070Assert.Equal(Path.Combine(validParent.FullName, projectName), capturedOutputPath); 3130File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 3145var expectedPath = Path.Combine(selectedParent.FullName, projectName); 3147Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 3199File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 3215Assert.True(File.Exists(Path.Combine(selectedOutputPath.FullName, "apphost.ts"))); 3253File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 3269Assert.True(File.Exists(Path.Combine(expectedPath, "apphost.ts"))); 3361File.WriteAllText(Path.Combine(existingDir.FullName, "file.txt"), "content"); 3410File.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")); 217Path.Combine(workspace.WorkspaceRoot.FullName, "socket1"), 221Path.Combine(workspace.WorkspaceRoot.FullName, "socket2"),
Commands\RestoreCommandTests.cs (2)
18var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 52var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Commands\RunCommandTests.cs (43)
157var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 158File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 206var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 207File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), $$""" 373var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 437var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 525var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 630var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 787await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "fake"); 790await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "fake"); 921Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 1087var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1160var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1161File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 1312var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1388var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1452var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1514var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1572var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1634var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1695var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1758var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1819var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 1881var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 2441var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [run].log"); 2565var appHostProjectPath = Path.Combine(appHostDirectory.FullName, "MyApp.AppHost.csproj"); 3206var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3254var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3298var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3346var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3389var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3433var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3477var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 3771var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 3833var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log"); 3890var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 3939var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 3941var relativeCapturePath = Path.Combine("Profile Output", "profile.zip"); 4006var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4034var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4282var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4323var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 4337var socketPath = Path.Combine(
Commands\SdkDumpCommandTests.cs (2)
266var outputPath = Path.Combine(tempDirectory, "capabilities.txt"); 384if (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)
216var propertiesDirectory = Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 217File.WriteAllText(Path.Combine(propertiesDirectory.FullName, "launchSettings.json"), """ 268await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "fake"); 271await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "fake"); 299await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "fake"); 302await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "fake"); 330var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 383var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 650Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".git")); 667var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.csproj")); 681var 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"); 474var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 498Assert.Contains(interactionService.DisplayedMessages, message => message.Message == string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "AppHost.csproj"))); 508var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 540var runningAppHostFile = new FileInfo(Path.Combine(runningAppHostDirectory.FullName, "Running.AppHost.csproj")); 543var discoveredAppHostFile = new FileInfo(Path.Combine(discoveredAppHostDirectory.FullName, "Discovered.AppHost.csproj")); 582Path.Combine("RunningAppHost", "Running.AppHost.csproj")); 592var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 624var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 659var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 699var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 734var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 774var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 814var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 853var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "apphost.ts")); 889string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "apphost.ts")), 899var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 936var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 981var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1019var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1057var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1125var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1298var homeDirectory = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".home")); 1306var socketPath = Path.Combine(
Commands\TypeScriptAppHostToolingCheckTests.cs (3)
156Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), 173var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"); 175File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), packageJsonContent);
Commands\UpdateCommandTests.cs (91)
88var appHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 186var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe"); 187var oldBackup1 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890"); 188var oldBackup2 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.9876543210"); 189var otherFile = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.something"); 210var oldBackup = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890"); 235FileDeleteHelper.TryCleanupOldItems(Path.Combine("C:", "NonExistent"), "aspire.exe"); 307return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 376var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 439var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 494var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 564return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 627var toolPath = Path.Combine(installDir.FullName, "custom tool path"); 643return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 720return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 793return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 836return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 877return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 961return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1014Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), pendingMigration.DetectedContext.AppHostFile.FullName); 1042Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), pendingMigration.DetectedContext.AppHostFile.FullName); 1044Assert.Equal(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"), pendingMigration.AppliedContext.AppHostFile.FullName); 1119return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1258var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"); 1301UseOrFindAppHostProjectFileAsyncCallback = (_, _, _) => Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))) 1383var toolPath = Path.Combine(installDir.FullName, "custom tool path"); 1466var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1492var processPath = Path.Combine(installDirectory.FullName, "aspire"); 1496var sidecarPath = Path.Combine(installDirectory.FullName, InstallSidecarReader.SidecarFileName); 1534var processPath = Path.Combine(installDirectory.FullName, "aspire"); 1539var sidecarPath = Path.Combine(installDirectory.FullName, InstallSidecarReader.SidecarFileName); 1591var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1632var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1666return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1731return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1795return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1853return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1930return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 1975return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2031var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2050var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2052var globalSettingsPath = Path.Combine(globalDir, "settings.global.json"); 2070var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2088var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2090File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "daily" }"""); 2092var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2112var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2114File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "staging" }"""); 2133var localConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2142return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2195Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))) 2248var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2249var projectConfigPath = Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName); 2254updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2268Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2271var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2273File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "staging" }"""); 2275var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2279updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2296Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2299var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2301Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), 2306updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2322Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2325var globalDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 2327File.WriteAllText(Path.Combine(globalDir, "settings.global.json"), """{ "channel": "staging" }"""); 2329var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2331Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), 2336updateArgs: $"update --apphost {Path.Combine(projectDirectory.FullName, "AppHost.csproj")}", 2379Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2416return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2502var resolved = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2587return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 2629var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "elsewhere")); 2630var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "AppHost.csproj")); 2633Path.Combine(projectDirectory.FullName, AspireConfigFile.FileName), 2776Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), 2828return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(projectDirectory.FullName, "AppHost.csproj"))); 2959var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3004var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3049var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3082var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3115return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 3269var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 3291var executablePath = Path.Combine(contentDirectory.FullName, "aspire"); 3309var tarPath = Path.Combine(archiveDirectory.FullName, "aspire.tar"); 3312var archivePath = Path.Combine(archiveDirectory.FullName, "aspire.tar.gz"); 3339var processPath = Path.Combine(toolPath, GetAspireExecutableName()); 3365var processPath = Path.Combine(binaryDir, GetAspireExecutableName()); 3367File.WriteAllText(Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName), """{"source":"nix"}"""); 3435var 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 (14)
17var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 21var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 118var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 151File.WriteAllText(Path.Combine(configRoot.FullName, AspireConfigFile.FileName), "{}"); 170Path.Combine(workspace.WorkspaceRoot.FullName, AspireJsonConfiguration.SettingsFolder), 191var legacySettingsPath = Path.Combine(legacyDir.FullName, AspireJsonConfiguration.FileName); 199var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 203var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 229var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 239var legacySettingsPath = Path.Combine(legacyDir.FullName, AspireJsonConfiguration.FileName); 245var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 263var legacySettingsPath = Path.Combine(legacyDir.FullName, AspireJsonConfiguration.FileName); 267var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName)); 276var 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 (83)
35return Path.Combine(dotnetRoot, OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 45var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 94var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, appHostFileName)); 133var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 167var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 169var runWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "run-cwd")); 209var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 211var runWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "run-cwd")); 250var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 278var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 312var cliPath = Path.Combine(cliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 314File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 325var cliPath = Path.Combine(cliDirectory.FullName, "aspire"); 327File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 329var linkDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 330var linkPath = Path.Combine(linkDirectory.FullName, "aspire"); 340var dotnetDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "dotnet")); 341var dotnetPath = Path.Combine(dotnetDirectory.FullName, OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 351var cliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 352var cliPath = Path.Combine(cliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 354File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 355File.WriteAllText(Path.Combine(cliDirectory.FullName, ".aspire-install.json"), """{"source":"script"}"""); 364var cliDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "bin")); 365var cliPath = Path.Combine(cliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 367File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 368Directory.CreateDirectory(Path.Combine(cliDirectory.FullName, "dcp")); 369Directory.CreateDirectory(Path.Combine(cliDirectory.FullName, "managed")); 380var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 408var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 445var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 474var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 503var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 576var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 613var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 654var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 699var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 754var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 851var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 891var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 933var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 980var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1022[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1043var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1077[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1089var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1115[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1131var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1157[KnownConfigNames.UnixSocketPath] = Path.Combine(workspace.WorkspaceRoot.FullName, "cli.sock") 1173var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1226var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1293var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1359var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1432var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 1437var project1File = new FileInfo(Path.Combine(project1Dir.FullName, "Project1.csproj")); 1441var project2File = new FileInfo(Path.Combine(project2Dir.FullName, "Project2.csproj")); 1479var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1482var referencedProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Service.csproj")); 1512var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1559var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1605var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1642var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1679var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1720var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1765var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1817var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1866var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1914var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1951var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1986var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2029var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2071var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2111var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2150var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, "RunPropertiesApp")); 2151var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "RunPropertiesApp.csproj")); 2162await File.WriteAllTextAsync(Path.Combine(projectDirectory.FullName, "Program.cs"), "Console.WriteLine(\"Hello\");"); 2188Assert.Equal(Path.Combine(projectDirectory.FullName, "relative-working-directory"), properties.GetProperty("RunWorkingDirectory").GetString()); 2196var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2417var packagePath = Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{packageVersion}.nupkg"); 2487var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2525var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2563var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2603var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2642var 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"));
Interaction\ConsoleInteractionServiceTests.cs (2)
710var logFilePath = Path.Combine(s_logsDirectory.FullName, "cli [dev team].log"); 738var logFilePath = Path.Combine(s_logsDirectory.FullName, "cli [dev team].log");
Interaction\ExtensionInteractionServiceTests.cs (5)
34var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [extension].log"); 112var invalidPath = Path.Combine(workspace.WorkspaceRoot.FullName, "invalid"); 113var validPath = Path.Combine(workspace.WorkspaceRoot.FullName, "valid"); 154var invalidPath = Path.Combine(workspace.WorkspaceRoot.FullName, "invalid"); 222var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "cli [extension].log");
Layout\LayoutDiscoveryReparsePointTests.cs (23)
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 versionedDcp = Path.Combine(versionsDir, BundleDiscovery.DcpDirectoryName); 103Path.Combine(versionedManaged, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 108var bundleLink = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 141var binaryPath = Path.Combine(binaryDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 182var relativeLayoutRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "colocated"); 183var binDir = Path.Combine(relativeLayoutRoot, "bin"); 185var binaryPath = Path.Combine(binDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 223? Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName) 225var managedDir = Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.ManagedDirectoryName)); 226Directory.CreateDirectory(Path.Combine(componentRoot, BundleDiscovery.DcpDirectoryName)); 228Path.Combine(managedDir.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 230var binaryPath = Path.Combine(layoutRoot, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 245var bundleDir = Path.Combine(layoutRoot, BundleDiscovery.BundleDirectoryName); 246var managedDir = Path.Combine(bundleDir, BundleDiscovery.ManagedDirectoryName); 247var dcpDir = Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName); 251Path.Combine(managedDir, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)),
Mcp\ApiDocs\ApiDocsCacheTests.cs (2)
114new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), 115new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")),
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");
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 (16)
24var managedPath = Path.Combine( 51Assert.Equal(Path.Combine(restoreDirectory, "obj"), GetArgumentValue(invocations[0], "--output")); 65var managedPath = Path.Combine( 99var managedPath = Path.Combine( 104var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 136var managedPath = Path.Combine( 180var managedPath = Path.Combine( 233var managedPath = Path.Combine( 264var firstAppHost = workspace.CreateDirectory(Path.Combine("apps", "api")); 265var secondAppHost = workspace.CreateDirectory(Path.Combine("apps", "web")); 268var managedPath = Path.Combine( 312var managedPath = Path.Combine( 383var managedPath = Path.Combine( 391var legacyLibsDirectory = Path.Combine(restoreDirectory, "libs"); 393var lockedFilePath = Path.Combine(legacyLibsDirectory, "Microsoft.Extensions.DependencyInjection.xml"); 413Assert.Equal(Path.Combine(restoreDirectory, "integration-package-probe-manifest.json"), result);
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 expectedManagedPath = Path.Combine( 138var expectedManagedPath = Path.Combine(
ProfileCaptureServiceTests.cs (6)
93var managedPath = Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)); 463var managedPath = Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)); 476var missingPath = Path.Combine(workspace.WorkspaceRoot.FullName, "missing"); 488var logPath = Path.Combine(workspace.WorkspaceRoot.FullName, "profile-service.log"); 675var path = Path.Combine(workspace.WorkspaceRoot.FullName, fileName); 686outputPath ?? 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 (15)
63var appSettingsPath = Path.Combine(project.ProjectModelPath, "appsettings.json"); 84var programCsPath = Path.Combine(project.ProjectModelPath, "Program.cs"); 106var programCs = Path.Combine(project.ProjectModelPath, "Program.cs"); 129var appSettingsPath = Path.Combine(project.ProjectModelPath, "appsettings.json"); 211Path.Combine("src", "Aspire.Hosting.Redis")); 212var integrationProjectPath = Path.Combine(integrationDirectory.FullName, "Aspire.Hosting.Redis.csproj"); 259var expectedRoot = Path.Combine(CliPathHelper.GetAspireHomeDirectory(), "hosts"); 260var expectedPath = Path.Combine(expectedRoot, pathDir); 320var aspireConfigPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 368var projectModelPath = Path.Combine(appPath, ".aspire_server"); 399var projectFilePath = Path.Combine(project.ProjectModelPath, DotNetBasedAppHostServerProject.ProjectFileName); 424var aspireConfigPath = Path.Combine(appPath, AspireConfigFile.FileName); 442var projectModelPath = Path.Combine(appPath, ".aspire_server"); 478var aspireConfigPath = Path.Combine(appPath, AspireConfigFile.FileName); 496var 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 (77)
266File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "apphost.run.json"), """ 450Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 482var customDcpDirectory = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, "custom-dcp")); 484var customDashboardPath = Path.Combine( 535var inheritedDcpDirectory = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, "inherited-dcp")).FullName; 537var inheritedDashboardPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "inherited-dashboard"); 598: Path.Combine(_workspace.WorkspaceRoot.FullName, "missing-dcp"); 601: Path.Combine(_workspace.WorkspaceRoot.FullName, "missing-dashboard"); 870var repoLocalManaged = Path.Combine(_workspace.WorkspaceRoot.FullName, "repo-local-aspire-managed"); 928var customTerminalHost = Path.Combine(_workspace.WorkspaceRoot.FullName, "my-custom-terminal-host"); 981var runWorkingDirectory = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, "run-cwd")); 985Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1080Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1122"--log-file", Path.Combine(_workspace.WorkspaceRoot.FullName, "child.log"), 1164Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1250Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1292Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1336Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1383Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1428Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1548var targetPath = Path.Combine(outputDirectory.FullName, "AppHost.dll"); 1632Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1699Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1803File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "AppHost.run.json"), """ 1868Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "My Project")); 1929Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 1994Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 2051Directory.CreateDirectory(Path.Combine(appHostFile.DirectoryName!, "Properties")); 2149Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 2176File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "apphost.run.json"), """ 2378File.WriteAllText(Path.Combine(appHostFile.DirectoryName!, "apphost.run.json"), """ 2532var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.cs"); 2553var socketPath = Path.Combine( 2563var targetPath = Path.Combine(outputDirectory.FullName, fileName); 2572var commandPath = Path.Combine(outputDirectory.FullName, fileName); 2946WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3038WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3043WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.targets"), """ 3232WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3267WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 3272WriteIsLikelyAppHostProject(Path.Combine("repo", "Custom.props"), """ 3302WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 3337WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3369WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3409WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3452WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3490WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3518WriteIsLikelyAppHostProject(Path.Combine("outer", "directory.build.props"), """ 3542WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.targets"), """ 3573WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.targets"), """ 3635WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3659WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3718var projectFile = WriteIsLikelyAppHostProject(Path.Combine("proj", "MyApp.csproj"), """ 3727WriteIsLikelyAppHostProject(Path.Combine("proj", "Directory.Build.props"), $""" 3732WriteIsLikelyAppHostProject(Path.Combine("external", "Directory.Build.props"), """ 3808WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3826WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3844WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3865WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3887WriteIsLikelyAppHostProject(Path.Combine("src", "Directory.Build.props"), """ 3938WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 3976WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4009WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 4028WriteIsLikelyAppHostProject(Path.Combine("repo", "Directory.Build.props"), """ 4060WriteIsLikelyAppHostProject(Path.Combine("outer", "Repo.marker"), "<Project />"); 4061WriteIsLikelyAppHostProject(Path.Combine("outer", "Directory.Build.props"), """ 4137var projectFile = new FileInfo(Path.Combine(repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar))); 4155while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "Aspire.slnx"))) 4171Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, ".git")); 4173var path = Path.Combine(_workspace.WorkspaceRoot.FullName, fileName); 4208var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, fileName); 4225var projectPath = Path.Combine(_workspace.WorkspaceRoot.FullName, fileName); 4239var bundleRoot = Directory.CreateDirectory(Path.Combine(_workspace.WorkspaceRoot.FullName, Guid.NewGuid().ToString())); 4240var dcpDirectory = Directory.CreateDirectory(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName)); 4241var managedDirectory = Directory.CreateDirectory(Path.Combine(bundleRoot.FullName, BundleDiscovery.ManagedDirectoryName)); 4244Path.Combine(managedDirectory.FullName, BundleDiscovery.GetExecutableFileName(BundleDiscovery.ManagedExecutableName)), 4299=> 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\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 (47)
52Directory.CreateDirectory(Path.Combine(outputPath, "aspire")); 61[Path.Combine("aspire", "Kept.java"), Path.Combine("aspire", "RemovedResource.java")], 69[Path.Combine("aspire", "Kept.java")], 81var handWritten = Path.Combine(outputPath, "HandWritten.java"); 95var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "Generated.java"); 111var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "Generated.java"); 125var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "New.java"); 136var filePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire_app.py"); 178var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 198var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 384var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 444var launchSettingsPath = Path.Combine(propertiesDir.FullName, "launchSettings.json"); 533var aspireConfigPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 725var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 733var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 778var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 786var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 819var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 843var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 852var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 899var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 907var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 954var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 963var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1024var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1041var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1138var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1180var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1229var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1259var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1267var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1348var configPath = Path.Combine(_workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1356var appHostPath = Path.Combine(_workspace.WorkspaceRoot.FullName, "apphost.ts"); 1443var socketPath = Path.Combine( 1471var logFilePath = Path.Combine(_workspace.WorkspaceRoot.FullName, $"test-guest-{Guid.NewGuid()}.log"); 1536var devCertificatePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire-dev-cert.pem"); 1552Assert.False(Directory.Exists(Path.Combine(_workspace.WorkspaceRoot.FullName, "bundles"))); 1558var devCertificatePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire-dev-cert.pem"); 1579var lowerCaseDirectory = Path.Combine(_workspace.WorkspaceRoot.FullName, "certificates"); 1580var upperCaseDirectory = Path.Combine(_workspace.WorkspaceRoot.FullName, "CERTIFICATES"); 1583var devCertificatePath = Path.Combine(lowerCaseDirectory, "aspire.pem"); 1584var existingBundlePath = Path.Combine(upperCaseDirectory, "ASPIRE.PEM"); 1633var existingBundlePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "existing-ca-certs.pem"); 1634var inheritedBundlePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "inherited-ca-certs.pem"); 1636var devCertificatePath = Path.Combine(devCertificateDirectory, "aspire-dev-cert.pem"); 1708var devCertificatePath = Path.Combine(_workspace.WorkspaceRoot.FullName, "aspire-dev-cert.pem");
Projects\GuestRuntimeTests.cs (25)
285var appHostFile = new FileInfo(Path.Combine(directory.FullName, "apphost.ts")); 702var appHostFile = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.ts")); 725var logFilePath = Path.Combine(Path.GetTempPath(), $"guest-output-test-{Guid.NewGuid()}.log"); 971var appHostFile = new FileInfo(Path.Combine(tempDir, "apphost.ts")); 975var migrationFilePath = Path.Combine(tempDir, migrationFileName); 997var migrationFilePath = Path.Combine(tempDir, migrationFileName); 1019var appHostFile = new FileInfo(Path.Combine(tempDir, "apphost.ts")); 1089var input = Path.Combine(workspace.WorkspaceRoot.FullName, relativeInput.Replace('/', Path.DirectorySeparatorChar)); 1110var classFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.class"); 1138File.Delete(Path.Combine(workspace.WorkspaceRoot.FullName, relativeInput.Replace('/', Path.DirectorySeparatorChar))); 1153var pom = Path.Combine(workspace.WorkspaceRoot.FullName, "pom.xml"); 1177File.WriteAllText(Path.Combine(dependencies, "guava-32.0.0.jar"), ""); 1188File.Delete(Path.Combine(dependencies, "guava-32.0.0.jar")); 1189File.WriteAllText(Path.Combine(dependencies, "guava-33.0.0.jar"), ""); 1191var runtime = CreateRuntime(CreateUpToDateSpec(extraInputs: [Path.Combine("target", "dependency")])); 1206var jar = Path.Combine(dependencies, "guava-32.0.0.jar"); 1215var runtime = CreateRuntime(CreateUpToDateSpec(extraInputs: [Path.Combine("target", "dependency")])); 1251StampFile = Path.Combine("classes", ".aspire-compile-stamp") 1348File.WriteAllText(Path.Combine(unreadable, "Hidden.java"), "class Hidden { }"); 1406StampFile = Path.Combine("classes", ".aspire-compile-stamp") 1414var appHostFile = new FileInfo(Path.Combine(root.FullName, "AppHost.java")); 1416File.WriteAllText(Path.Combine(root.FullName, "Helper.java"), "class Helper { }"); 1420File.WriteAllText(Path.Combine(generated, "Generated.java"), "class Generated { }"); 1424File.WriteAllText(Path.Combine(sources, "Service.java"), "class Service { }"); 1426Directory.CreateDirectory(Path.Combine(root.FullName, "classes"));
Projects\JavaAppHostToolchainResolverTests.cs (42)
13var path = Path.Combine(directory, wrapperName); 81File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 92File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 101File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 102File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 111File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 135File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 145["-B", "-q", "dependency:copy-dependencies", $"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", "-DincludeScope=runtime"], 158"-d", Path.Combine("target", "classes"), 168["-cp", $"{Path.Combine("target", "classes")}{Path.PathSeparator}{Path.Combine("target", "aspire-deps", "*")}", "AppHost"], 183File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 208StampFile = Path.Combine(".java-build", ".aspire-compile-stamp") 226Assert.Contains(Path.Combine(outputDirectoryName, "aspire-deps"), inputs); 234File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 272File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 306var wrapperPath = Path.Combine(workspace.Path, expectedWrapper); 343var rootWrapperPath = Path.Combine(workspace.Path, expectedWrapper); 346var moduleDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "apphost")); 347File.WriteAllText(Path.Combine(moduleDirectory.FullName, useMaven ? "pom.xml" : "build.gradle"), ""); 353Assert.Equal(["/c", "call", Path.Combine("..", expectedWrapper)], invocation.PrefixArgs); 372File.WriteAllText(Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? windowsWrapperName : wrapperName), ""); 374var innerCheckout = Directory.CreateDirectory(Path.Combine(workspace.Path, "inner")); 375Directory.CreateDirectory(Path.Combine(innerCheckout.FullName, ".git")); 376File.WriteAllText(Path.Combine(innerCheckout.FullName, useMaven ? "pom.xml" : "build.gradle"), ""); 388File.WriteAllText(Path.Combine(directory, "pom.xml"), ""); 392File.WriteAllText(Path.Combine(directory, "settings.gradle"), ""); 400File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 419File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 435File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 439await File.WriteAllTextAsync(Path.Combine(dependencyDirectory, "library-1.0.jar"), ""); 452File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 456Assert.False(Directory.Exists(Path.Combine(workspace.Path, "target"))); 463File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 468await File.WriteAllTextAsync(Path.Combine(dependencyDirectory, "library-1.0.jar"), ""); 485File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 502File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 517File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 527File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 538Assert.Contains(Path.Combine(toProjectRoot, "pom.xml"), spec.InstallDependencies.Args); 543Assert.Contains($"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", spec.InstallDependencies.Args); 569File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 583Assert.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 (61)
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")), 1372var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1402var appSettingsPath = Path.Combine(workingDirectory, "appsettings.json"); 1563var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1622var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1682var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1741var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1801var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1852var missingPackageSource = Path.Combine(workspace.WorkspaceRoot.FullName, "this-hive-was-deleted"); 1856var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1921var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2004var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2093var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2175var aspireConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2402Assert.Equal(Path.Combine(layoutPath, "libs"), startInfo.Environment[KnownConfigNames.IntegrationLibsPath]); 2465var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories) 2466.Select(path => Path.GetRelativePath(Path.Combine(layoutPath, "libs"), path).Replace('\\', '/')) 2519var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories) 2520.Select(path => Path.GetRelativePath(Path.Combine(layoutPath, "libs"), path).Replace('\\', '/')) 2675var firstSourcePath = Path.Combine(firstPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2676var secondSourcePath = Path.Combine(secondPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2720var firstPackagePath = Path.Combine(firstPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2721var secondPackagePath = Path.Combine(secondPackageRoot.FullName, "Aspire.Hosting.Redis.dll"); 2722var projectPath = Path.Combine(projectRoot.FullName, "MyIntegration.dll"); 2859Path.Combine( 2880var sourcePath = Path.Combine(sourceRoot.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar)); 2900File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ClosureMetadataFileName), metadataLines); 2901File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ClosureSourcesFileName), sourcePaths); 2902File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ClosureTargetsFileName), targetPaths); 2903File.WriteAllLines(Path.Combine(restoreDirectory.FullName, PrebuiltAppHostServer.ProjectRefAssemblyNamesFileName), projectReferenceAssemblyNames); 2946File.WriteAllText(Path.Combine(objDirectory.FullName, "project.assets.json"), projectAssetsContent);
Projects\ProcessGuestLauncherTests.cs (3)
205var descendantPidFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "descendant.pid")); 332var scriptFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "spawn-descendant.ps1")); 346var shellFile = new FileInfo(Path.Combine(workspaceRoot.FullName, "spawn-descendant.sh"));
Projects\ProjectLocatorTests.cs (211)
38var appHostFile = new FileInfo(Path.Combine(directory.FullName, "apphost.cs")); 64var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 68var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 71var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 95var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 99var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 102var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 124var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 128var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 131var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 157var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 161var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 164var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 190var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 194var firstAlternative = new FileInfo(Path.Combine(alternativesDirectory.FullName, "FirstAlternative.csproj")); 196var secondAlternative = new FileInfo(Path.Combine(alternativesDirectory.FullName, "SecondAlternative.csproj")); 199var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 223var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 227var alternativeAppHost = new FileInfo(Path.Combine(alternativeDirectory.FullName, "Alternative.csproj")); 230var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 252var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 255var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 276var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 279var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 301var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, $"AppHost{index}.csproj")); 306var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 371var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 375var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 378var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 402var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 406var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 409var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 438var firstAppHostProjectFile = new FileInfo(Path.Combine(firstAppHostDirectory.FullName, "FirstAppHost.csproj")); 442var secondAppHostProjectFile = new FileInfo(Path.Combine(secondAppHostDirectory.FullName, "SecondAppHost.csproj")); 445var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 487var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 508var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 529Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 540var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 544var decoyAppHost = new FileInfo(Path.Combine(decoyDirectory.FullName, "HealthyAppHost.csproj")); 547var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 549var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 579Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 590var outsideAppHost = new FileInfo(Path.Combine(outsideDirectory.FullName, "OutsideAppHost.csproj")); 594var configPath = Path.Combine(workingDirectory.FullName, AspireConfigFile.FileName); 628var appHostFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 660var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Missing.csproj")); 691var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebApp.csproj")); 720var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 724var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 728var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 753var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 757var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 784var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 788var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 811var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 816var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 852var staleProjectFile = new FileInfo(Path.Combine(staleProjectDirectory.FullName, "StaleProject.csproj")); 855var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 859var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 905var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 928var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 963var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 967var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj")); 970var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1001var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 1005var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj")); 1008var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1038var guestAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 1041var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1075var configuredAppHostProjectFile = new FileInfo(Path.Combine(configuredAppHostDirectory.FullName, "ConfiguredAppHost.csproj")); 1078var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 1081var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1128var configuredAppHostProjectFile = new FileInfo(Path.Combine(configuredAppHostDirectory.FullName, "ConfiguredAppHost.csproj")); 1131var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 1134var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1180var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 1184var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 1187var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1217var settingsAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SettingsAppHost.csproj")); 1223var configPath = Path.Combine(workingDirectory.FullName, AspireConfigFile.FileName); 1256var settingsAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.custom")); 1259var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1291var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 1295var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 1321var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 1324var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 1339var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1342var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj")); 1385var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectFileExtension}")); 1403var onDiskProjectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj")); 1432var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1447var legacyAppHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts")); 1448var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts")); 1451await File.WriteAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), JsonSerializer.Serialize(new 1486var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 1506var settingsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName)); 1523var appHostFile = new FileInfo(Path.Combine(srcDirectory.FullName, "apphost.ts")); 1526var adjacentConfigPath = Path.Combine(srcDirectory.FullName, AspireConfigFile.FileName); 1571Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 1590var appHost1File = new FileInfo(Path.Combine(appHost1Directory.FullName, "apphost.ts")); 1592var appHost1ConfigPath = Path.Combine(appHost1Directory.FullName, AspireConfigFile.FileName); 1602var appHost2File = new FileInfo(Path.Combine(appHost2Directory.FullName, "apphost.ts")); 1604var appHost2ConfigPath = Path.Combine(appHost2Directory.FullName, AspireConfigFile.FileName); 1641Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 1660var appHostFile = new FileInfo(Path.Combine(srcDirectory.FullName, "apphost.ts")); 1695Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 1709var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "MyAppHost.csproj")); 1716var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 1717var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 1739var aspireConfigFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 1753var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1778var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 1804var appHostFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "apphost.cs")); 1814var csprojFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "RegularProject.csproj")); 1819var validAppHostFile = new FileInfo(Path.Combine(dirWithOnlyAppHost.FullName, "apphost.cs")); 1859var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1879var csprojFile = new FileInfo(Path.Combine(subDir1.FullName, "AppHost.csproj")); 1884var appHostFile = new FileInfo(Path.Combine(subDir2.FullName, "apphost.cs")); 1920var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1947var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1971var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1992var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1995var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2018var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 2029var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SomeProject.csproj")); 2044var txtFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "readme.txt")); 2064var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2069var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 2142: Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName); 2256var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj")); 2311var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "UnbuildableAppHost.csproj")); 2329Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName))); 2341var first = new FileInfo(Path.Combine(firstProjectDirectory.FullName, "FirstAppHost.csproj")); 2344var second = new FileInfo(Path.Combine(secondProjectDirectory.FullName, "SecondAppHost.csproj")); 2381var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 2386var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2423var healthyAppHost = new FileInfo(Path.Combine(healthyDirectory.FullName, "HealthyAppHost.csproj")); 2428var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 2431var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2464var configuredAppHost = new FileInfo(Path.Combine(configuredDirectory.FullName, "ConfiguredAppHost.csproj")); 2469var firstAppHost = new FileInfo(Path.Combine(firstDirectory.FullName, "FirstAppHost.csproj")); 2472var secondAppHost = new FileInfo(Path.Combine(secondDirectory.FullName, "SecondAppHost.csproj")); 2475var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2509var unsupportedAppHost = new FileInfo(Path.Combine(unsupportedDirectory.FullName, "UnsupportedAppHost.csproj")); 2514var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2563var brokenAppHost = new FileInfo(Path.Combine(brokenDirectory.FullName, "BrokenAppHost.csproj")); 2567var firstHealthy = new FileInfo(Path.Combine(firstHealthyDirectory.FullName, "FirstHealthyAppHost.csproj")); 2571var secondHealthy = new FileInfo(Path.Combine(secondHealthyDirectory.FullName, "SecondHealthyAppHost.csproj")); 2574var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 2613var projectFile1 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project1.csproj")); 2615var projectFile2 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project2.csproj")); 2650var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "apphost.cs")); 2678var projectFile = new FileInfo(Path.Combine(subDirectory.FullName, "Mongo.AppHost.csproj")); 2717var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 2722var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.cs")); 2760var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 2764var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 2802var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 2825var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2846var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2868var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 2928var cachedProject = new FileInfo(Path.Combine(nugetCacheDir, "Aspire.AppHost1.csproj")); 2993var customCacheDir = Path.Combine(workspace.WorkspaceRoot.FullName, "custom-nuget-cache"); 2996var cachedProject = new FileInfo(Path.Combine(cachedProjectDir, "Aspire.AppHost1.csproj")); 3025var customCacheDir = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget-cache"); 3030var siblingProject = new FileInfo(Path.Combine(siblingDir, "AppHost.csproj")); 3036var cachedProject = new FileInfo(Path.Combine(cachedProjectDir, "Aspire.AppHost1.csproj")); 3066var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyAppHost.csproj")); 3089var appHost1File = new FileInfo(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj")); 3095var appHost2File = new FileInfo(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj")); 3119var appHostFile = new FileInfo(Path.Combine(appHostDir.FullName, "RealAppHost.csproj")); 3143await File.WriteAllTextAsync(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj"), "Not a real apphost"); 3146await File.WriteAllTextAsync(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj"), "Not a real apphost"); 3164var appHost1File = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 3167var appHost2File = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 3170var slowValidationFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SlowValidation.csproj")); 3223var appHost1File = new FileInfo(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj")); 3227var appHost2File = new FileInfo(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj")); 3231var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 3233var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 3256var appHost1File = new FileInfo(Path.Combine(appHost1Dir.FullName, "AppHost1.csproj")); 3260var appHost2File = new FileInfo(Path.Combine(appHost2Dir.FullName, "AppHost2.csproj")); 3264var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 3266var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 3455var configuredAppHost = new FileInfo(Path.Combine(configuredDirectory.FullName, "ConfiguredAppHost.csproj")); 3459var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3619var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 3623var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3657var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3686var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.unknown")); 3690var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3719var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 3723var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3767var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3802var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3833var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3860var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3885var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 3910var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 3940var settingsPath = Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"); 3967var settingsPath = Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"); 3994var settingsPath = Path.Combine(workspaceSettingsDirectory.FullName, "settings.json"); 4032var realAppHost = new FileInfo(Path.Combine(realAppDirectory.FullName, "AppHost.csproj")); 4039var linkDirectory = Path.Combine(nodeModulesDir.FullName, "link"); 4053var pathThroughLink = Path.Combine(linkDirectory, "AppHost.csproj"); 4061var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 4094var appHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 4097var differentlyCasedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "APPHOST.csproj"); 4105var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 4132var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName);
Projects\ProjectUpdaterTests.cs (74)
31var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 34var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 37var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 141var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 144var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 147var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 160var aspireConfigFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json")); 305var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 308var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 311var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 323var aspireConfigFile = new FileInfo(Path.Combine(appHostFolder.FullName, "aspire.config.json")); 412var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 415var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 418var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 428var aspireConfigFile = new FileInfo(Path.Combine(appHostFolder.FullName, "aspire.config.json")); 582var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 702var sharedProjectFile = new FileInfo(Path.Combine(sharedProjectFolder.FullName, "SharedProject.csproj")); 705var projectAFile = new FileInfo(Path.Combine(projectAFolder.FullName, "ProjectA.csproj")); 708var projectBFile = new FileInfo(Path.Combine(projectBFolder.FullName, "ProjectB.csproj")); 711var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "DiamondTest.AppHost.csproj")); 835var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 838var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 840var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 971var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 973var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1073var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1075var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1195var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1197var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1306var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1385var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1462var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1463var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1562Assert.False(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1563Assert.False(File.Exists(Path.Combine(appHostProjectFile.DirectoryName!, "nuget.config"))); 1577var nugetConfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"); 1631Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "nuget.config"))); 1637var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1774var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1776var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1887var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1889var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2011var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2013var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2125var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2127var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2236var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2330var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2332var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2432var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2511var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2593var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2686var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2780var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2856var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 2938var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3024var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3102var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3180var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3304var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3306var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 3431var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3464var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3496var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3533var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3569var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3602var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3639var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectExtension}"); 3657var directoryPackagesPropsFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props"); 3710var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "Issue15891.AppHost.csproj")); 3824var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3901var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 3955var existingConfigFile = new FileInfo(Path.Combine(executionContext.WorkingDirectory.FullName, "nuget.config")); 3991var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj"));
Projects\RunningInstanceManagerTests.cs (1)
42var socketPath = Path.Combine(socketDirectory.FullName, "a.sock");
Projects\TypeScriptAppHostToolchainResolverTests.cs (31)
18File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }"); 29File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 30File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "pnpm-lock.yaml"), "lockfileVersion: '9.0'"); 41var packageJsonPath = Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"); 53File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"yarn@4.14.1\" }"); 64File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 65var yarnLockPath = Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"); 79File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 80File.WriteAllText(Path.Combine(parentDirectory.FullName, "package.json"), "{ \"name\": \"workspace\" }"); 81var yarnLockPath = Path.Combine(parentDirectory.FullName, "yarn.lock"); 95File.WriteAllText(Path.Combine(parentDirectory.FullName, "package.json"), "{ \"name\": \"workspace\" }"); 96File.WriteAllText(Path.Combine(parentDirectory.FullName, "yarn.lock"), string.Empty); 97File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 98File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package-lock.json"), "{}"); 110File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 111File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package-lock.json"), "{}"); 112File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), string.Empty); 124File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 125Directory.CreateDirectory(Path.Combine(workspace.WorkspaceRoot.FullName, ".yarn")); 136File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 147File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 148File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), string.Empty); 167File.WriteAllText(Path.Combine(appHostDirectory.Parent!.FullName, "package.json"), "{ \"packageManager\": \"pnpm@10.12.1\" }"); 168File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 181File.WriteAllText(Path.Combine(appHostDirectory.Parent!.FullName, "package.json"), "{ \"packageManager\": \"pnpm@10.12.1\" }"); 182File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }"); 187Assert.Equal($"packageManager 'bun@1.2.0' found in {Path.Combine(appHostDirectory.FullName, "package.json")}", resolution.Reason); 196File.WriteAllText(Path.Combine(appHostDirectory.Parent!.FullName, "package.json"), "{ \"packageManager\": \"yarn@4.14.1\" }"); 197File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"name\": \"apphost\" }"); 198File.WriteAllText(Path.Combine(appHostDirectory.FullName, "pnpm-lock.yaml"), "lockfileVersion: '9.0'"); 210File.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"), "{}"); 140var appHostDirectory = Directory.CreateDirectory(Path.Combine(rootDirectory.FullName, ScaffoldingService.BrownfieldTypeScriptAppHostDirectoryName)); 141File.WriteAllText(Path.Combine(rootDirectory.FullName, "package.json"), "{ \"packageManager\": \"npm@10.0.0\" }"); 142File.WriteAllText(Path.Combine(appHostDirectory.FullName, "package.json"), "{ \"packageManager\": \"pnpm@10.0.0\" }"); 212var scaffoldDirectory = Directory.CreateDirectory(Path.Combine(rootDirectory.FullName, ScaffoldingService.BrownfieldTypeScriptAppHostDirectoryName)); 235File.WriteAllText(Path.Combine(rootDirectory.FullName, ".gitignore"), "node_modules/\n"); 236File.WriteAllText(Path.Combine(rootDirectory.FullName, "package.json"), "{}"); 237File.WriteAllText(Path.Combine(rootDirectory.FullName, "apphost.mts"), string.Empty); 274Directory.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\InternalMicrosoftDetectorTests.cs (4)
257await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 258await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 294await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 295await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), 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 (6)
81var apiDirectory = Path.Combine(GetJavaStarterDirectory(), "api"); 83var pomPath = Path.Combine(apiDirectory, "pom.xml"); 105var path = Path.Combine(GetJavaStarterDirectory(), "aspire.config.json"); 128var apiDirectory = Path.Combine(GetJavaStarterDirectory(), "api"); 132var path = Path.Combine(apiDirectory, relativePath); 160var path = Path.Combine(GetJavaStarterDirectory(), "AppHost.java");
Templating\JavaStarterScaffoldTests.cs (3)
61.EnumerateFiles(Path.Combine(outputDirectory, "api"), "*", SearchOption.AllDirectories) 79Assert.True(File.Exists(Path.Combine(outputDirectory, "AppHost.java"))); 113return 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\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)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
TestServices\FakePlaywrightServices.cs (5)
63_bundleDirectory = new DirectoryInfo(Path.Combine(executionContext.WorkingDirectory.FullName, ".fake-aspire-skills-bundle")); 97[(CommonAgentApplicators.AspireSkillName, Path.Combine("references", "app-commands.md"))] = "# App commands", 98[(CommonAgentApplicators.AspireSkillName, Path.Combine("evals", "evals.json"))] = "{}", 117[(CommonAgentApplicators.AspireDeploymentSkillName, Path.Combine("references", "preflight.md"))] = "# Preflight", 174await File.WriteAllTextAsync(Path.Combine(_bundleDirectory.FullName, "skill-manifest.json"), manifestJson, cancellationToken);
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 (24)
19var homeDirectory = Path.Combine(Path.GetTempPath(), "testuser"); 255var socket1 = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.12345"); 256var socket2 = Path.Combine(backchannelsDir, $"{appHostId}Z9y8X7w6.67890"); 260var otherSocket = Path.Combine(backchannelsDir, "differentId1a1b2C3d4.99999"); 282var oldFormatSocket = Path.Combine(legacyBackchannelsDir, $"auxi.sock.{hash}"); 285var legacyPidSocket = Path.Combine(legacyBackchannelsDir, $"auxi.sock.{hash}.12345"); 309var badSeparator = Path.Combine(backchannelsDir, $"{appHostId}AbCdEfGhX12345"); 313var badPid = Path.Combine(backchannelsDir, $"{appHostId}AbCdEfGh.notapid"); 332var otherSocket = Path.Combine(backchannelsDir, "differentId1a1b2C3d4.99999"); 352var oldFormatSocket = Path.Combine(backchannelsDir, appHostId); 356var orphanedSocket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.{deadPid}"); 360var liveSocket = Path.Combine(backchannelsDir, $"{appHostId}Z9y8X7w6.{currentPid}"); 390var orphanedSocket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.{deadPid}"); 391var liveSocket = Path.Combine(backchannelsDir, $"{appHostId}Z9y8X7w6.{currentPid}"); 392var pidlessSocket = Path.Combine(backchannelsDir, appHostId); 420var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 423var projectFileViaSymlink = Path.Combine(symlinkDirectory, "TestAppHost.csproj"); 457var symlinkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 460var realProjectPath = Path.Combine(realDirectory.FullName, "TestAppHost.csproj"); 462var projectFileViaSymlink = Path.Combine(symlinkDirectory, "TestAppHost.csproj"); 496var projectFile = new FileInfo(Path.Combine(Path.GetTempPath(), "test.csproj")); 569var socket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.12345"); 600var socket = Path.Combine(backchannelsDir, $"{appHostId}a1b2C3d4.12345"); 630var legacySocket = Path.Combine(backchannelsDir, $"auxi.sock.{legacyHash}.a1b2c3d4e5f6.99999");
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)
151var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 152var binDir = Path.Combine(installPrefix, "bin"); 164var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-pr-test"); 193var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "portable"); 218Assert.Equal(Path.Combine("/home/user", ".aspire"), result); 254var target = Path.Combine(workspace.WorkspaceRoot.FullName, "target-aspire"); 257var link = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire"); 329var realPath = Path.Combine(workspace.WorkspaceRoot.FullName, "binary-under-test"); 345var realPath = Path.Combine(workspace.WorkspaceRoot.FullName, "binary-under-test"); 365var installPrefix = Path.Combine(workspace.WorkspaceRoot.FullName, "portable"); 384var binaryPath = Path.Combine(binaryDir, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 386File.WriteAllText(Path.Combine(binaryDir, InstallSidecarReader.SidecarFileName), $$"""{"source":"{{source}}"}""");
Utils\CliTestHelper.cs (1)
656var 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)
189var kubeconfigPath = Path.Combine(workspace.WorkspaceRoot.FullName, "kubeconfig"); 234var certificatePath = Path.Combine(cacheDirectory, $"{lookup}.crt"); 235var 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)
28var toolPath = Path.Combine(workspace.Path, "custom tool path"); 29var processPath = Path.Combine(toolPath, GetAspireExecutableName()); 55var toolPath = Path.Combine(workspace.Path, "custom tool path"); 83var 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)
51File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "package.json"), "{ \"packageManager\": \"bun@1.2.0\" }");
Utils\PathNormalizerTests.cs (7)
19var file = new FileInfo(Path.Combine(subdir.FullName, "app.csproj")); 39var target = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "target.csproj")); 42var linkPath = Path.Combine(workspace.WorkspaceRoot.FullName, "link.csproj"); 64var file = new FileInfo(Path.Combine(nested.FullName, "app.csproj")); 67var linkDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "link"); 85var missingTarget = Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"); 86var linkPath = Path.Combine(workspace.WorkspaceRoot.FullName, "broken-link.csproj");
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 (14)
ServiceClient\DashboardRunStore.cs (13)
123DatabasePath = Path.Combine(RunDirectory, DatabaseFileName); 130_runsDirectory = Path.Combine(applicationDirectory, "runs"); 131RunDirectory = Path.Combine(_runsDirectory, runId); 132DatabasePath = Path.Combine(RunDirectory, DatabaseFileName); 137_metadataPath = Path.Combine(RunDirectory, "run.json"); 141DatabasePath = Path.Combine(RunDirectory, DatabaseFileName); 200!File.Exists(Path.Combine(directory, DatabaseFileName))) 267var metadataPath = Path.Combine(runDirectory, "run.json"); 352var metadataPath = Path.Combine(directory, "run.json"); 472var metadataPath = Path.Combine(runDirectory, "run.json"); 531Path.Combine(runDirectory, metadata.DatabaseFileName), 542dataRoot = Path.Combine(AspireHomeDirectory.GetDefault(), "dashboard"); 545return Path.Combine(Path.GetFullPath(dataRoot), GetApplicationDirectoryName(applicationName));
src\Shared\AspireHomeDirectory.cs (1)
32? Path.Combine(userProfileDirectory, ".aspire")
Aspire.Dashboard.Components.Tests (5)
Shared\FluentUISetupHelpers.cs (3)
157var databasePath = Path.Combine(context.Services.GetRequiredService<TemporaryWorkspace>().Path, "dashboard.db"); 190var databasePath = Path.Combine(services.GetRequiredService<TemporaryWorkspace>().Path, "dashboard.db"); 221databasePath: Path.Combine(services.GetRequiredService<TemporaryWorkspace>().Path, "dashboard.db")));
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var settingsPath = IOPath.Combine(aspireDir, "settings.json");
Aspire.Dashboard.Tests (43)
BlazorAssetsTests.cs (1)
29while (directory is not null && !File.Exists(Path.Combine(directory.FullName, "Aspire.slnx")))
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
56WebRootPath = Path.Combine(aspireAssemblyDirectory, "wwwroot"),
Integration\StartupTests.cs (4)
213var configFilePath = Path.Combine(tempDirectory.FullName, Path.GetRandomFileName()); 635var configFilePath = Path.Combine(tempDirectory.FullName, Path.GetRandomFileName()); 1072var runsDirectory = Path.Combine( 1145var browserTokenConfigFile = Path.Combine(fileConfigDirectory.FullName, DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName);
Model\DashboardDataSourceTests.cs (13)
111var metadataPath = Path.Combine(runStore.RunDirectory, "run.json"); 150using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(currentRunStore.RunDirectory, "run.json"))); 178Assert.False(File.Exists(Path.Combine(runStore.RunDirectory, "run.json"))); 297File.WriteAllText(Path.Combine(abandonedDirectory, "dashboard.db"), string.Empty); 334File.WriteAllText(Path.Combine(otherDirectory, "dashboard.db"), string.Empty); 475var databasePath = Path.Combine(workspace.Path, $"malformed-{Guid.NewGuid():N}.db"); 692using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(pinnedRunDirectories[^1], "run.json"))); 867using var metadata = JsonDocument.Parse(File.ReadAllText(Path.Combine(Path.GetDirectoryName(historicalRun.DatabasePath)!, "run.json"))); 961var historicalDirectory = Path.Combine(workspace.Path, "historical"); 962var historicalDatabasePath = Path.Combine(historicalDirectory, DashboardRunStore.DatabaseFileName); 967var malformedDirectory = Path.Combine(workspace.Path, "malformed"); 968var malformedDatabasePath = Path.Combine(malformedDirectory, DashboardRunStore.DatabaseFileName); 1027var 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); 102using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 125using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 142using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 161using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 181using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 202using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "observed.db"), pooling: false); 203using 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)
877private 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"),
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
947private static string GetDatabasePath(string workspacePath) => Path.Combine(workspacePath, "dashboard.db");
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
51Path.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)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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 (132)
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");
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 (3)
101var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 102var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 103var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
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)
179var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 180var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 181var 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");
AppServicePythonDeploymentTests.cs (2)
111var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 112var appHostFilePath = Path.Combine(projectDir, "apphost.mts");
AppServiceReactDeploymentTests.cs (3)
108var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 109var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 110var 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");
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)
87var 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");
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");
FoundryHostedAgentDeploymentTests.cs (7)
102var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 103var hostedAgentDir = Path.Combine(projectDir, "DotNetHostedAgent"); 104var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 114File.WriteAllText(Path.Combine(hostedAgentDir, "DotNetHostedAgent.csproj"), """ 138File.WriteAllText(Path.Combine(hostedAgentDir, "Program.cs"), """ 210File.WriteAllText(Path.Combine(hostedAgentDir, ".dockerignore"), """ 229var 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");
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)
325var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 326var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 327var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
tests\Shared\Hex1bTestHelpers.cs (1)
135return Path.Combine(recordingsDir, $"{testName}.cast");
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var settingsPath = IOPath.Combine(aspireDir, "settings.json");
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
126File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.mts"), """
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 (56)
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\ResourceExtensions.cs (1)
1435return Path.Combine(outputPath, fileName);
Dashboard\DashboardEventHandlers.cs (3)
134runtimeConfigPath = Path.Combine(directory, $"{baseName}.runtimeconfig.json"); 206originalRuntimeConfig = Path.Combine(directory, $"{baseName}.runtimeconfig.json"); 318dashboardDll = Path.Combine(directory, $"{baseName}.dll");
Dcp\DcpOptions.cs (2)
208options.ExtensionsPath = Path.Combine(dcpDir, "ext"); 215options.ExtensionsPath = Path.Combine(configDcpPath, "ext");
Dcp\Locations.cs (2)
20public string DcpKubeconfigPath => Path.Combine(DcpSessionDir, "kubeconfig"); 22public 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)
411return new AspireStore(Path.Combine(aspireDir, ".aspire"), directoryService);
DistributedApplicationOptions.cs (2)
183var csprojPath = Path.Combine(fullPath, $"{name}.csproj"); 204var csprojPath = Path.Combine(projectDirectory, $"{projectName}.csproj");
ExecutableResourceBuilderExtensions.cs (2)
59workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 218workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.ApplicationBuilder.AppHostDirectory, workingDirectory));
Pipelines\Internal\FileDeploymentStateManager.cs (2)
74aspireHome = Path.Combine( 85return Path.Combine(aspireDir, $"{environment}.json");
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)
318projectPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath)); 415path = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, path)); 1037var appSettingsPath = Path.Combine(projectDirectoryPath, "appsettings.json"); 1038var appSettingsEnvironmentPath = Path.Combine(projectDirectoryPath, $"appsettings.{env}.json"); 1041var appNameSettingsPath = Path.Combine(projectDirectoryPath, $"{appFileName}.settings.json"); 1042var 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)
378var resourceDockerfilePath = Path.Combine(manifestDirectory, $"{container.Name}.Dockerfile");
Publishing\ManifestPublishingExtensions.cs (1)
54outputPath = Path.Combine(outputPath, "aspire-manifest.json");
src\Shared\BackchannelConstants.cs (3)
257var socketPath = Path.Combine(dir, $"{appHostId}{instanceId}.{processId.ToString(CultureInfo.InvariantCulture)}"); 275var socketPath = Path.Combine(dir, socketName); 313return Path.Combine(dir, appHostId);
src\Shared\BundleDiscovery.cs (6)
135var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 141dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 142dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 166var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 167var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 295return 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\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
src\Shared\PathNormalizer.cs (6)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = 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\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)
158var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 390var resourceDockerfilePath = Path.Combine(outputPath, $"{resource.Name}.Dockerfile"); 402var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 528var 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 (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
264var kubeConfigPath = Path.Combine(kubeConfigDir.Path, "kubeconfig");
src\Shared\PathLookupHelper.cs (1)
194path = Path.Combine(directory, fileName);
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 (36)
AzureAppServiceTests.cs (3)
437File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 560var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 761Path.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");
AzureContainerAppsTests.cs (3)
68File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 1890await VerifyFile(Path.Combine(workspace.Path, "aspire-manifest.json")); 2684File.WriteAllText(Path.Combine(workspace.Path, "Dockerfile"), "FROM alpine");
AzureEnvironmentResourceTests.cs (10)
34var mainBicepPath = Path.Combine(workspace.FullName, "main.bicep"); 71var mainBicepPath = Path.Combine(workspace.FullName, "main.bicep"); 122var mainBicepPath = Path.Combine(workspace.FullName, "main.bicep"); 170var mainBicep = File.ReadAllText(Path.Combine(workspace.FullName, "main.bicep")); 218var mainBicep = File.ReadAllText(Path.Combine(workspace.Path, "main.bicep")); 250var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 281var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 305var bicepFilePath = Path.Combine(workspace, bicepFileName); 324var outputDir = Path.Combine(workspace, "output"); 341var 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"));
AzureStorageExtensionsTests.cs (1)
63Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Blazor (7)
BlazorGatewayExtensions.cs (5)
159var resolvedPath = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, projectPath)); 356var outputDir = Path.Combine(gatewayOutputRoot, "output"); 375var mergedRuntimePath = Path.Combine(outputDir, "merged.staticwebassets.runtime.json"); 396var solutionRoot = Path.GetFullPath(Path.Combine(appHostDirectory, "..")); 515var 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)
265var serverProjectPath = Path.Combine(tempDirectory.Path, "Server.csproj"); 567var serverDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.Path, "Server")); 568var clientDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.Path, "Client")); 569var serverProjectPath = Path.Combine(serverDirectory.FullName, "Server.csproj"); 570var clientProjectPath = Path.Combine(clientDirectory.FullName, "Client.csproj"); 603var 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 (2)
JavaLanguageSupport.cs (2)
126if (File.Exists(Path.Combine(directoryPath, relativePath))) 266stampFileProperty.SetValue(upToDateCheck, Path.Combine(classOutputDirectory, CompileStampFileName));
Aspire.Hosting.CodeGeneration.Java.Tests (7)
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 (1)
54Assert.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 (1)
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)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var settingsPath = IOPath.Combine(aspireDir, "settings.json");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
TypeScriptLanguageSupportTests.cs (5)
71File.WriteAllText(Path.Combine(workspace.Path, "package.json"), """ 136File.WriteAllText(Path.Combine(workspace.Path, "package.json"), """{ "name": "existing-app" }"""); 137var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "aspire-apphost")); 158File.WriteAllText(Path.Combine(workspace.Path, "package.json"), """ 195var 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.Docker (9)
DockerComposeEnvironmentResource.cs (4)
404var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"); 448var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"); 572var envFilePath = Path.Combine(outputPath, $".env.{environmentName}"); 581ComposeFilePath = 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 (57)
DockerComposePublisherTests.cs (42)
100var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 101var envPath = Path.Combine(workspace.Path, ".env"); 137var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 138var envPath = Path.Combine(workspace.Path, ".env"); 165var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 194var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 245var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 247var envPath = Path.Combine(workspace.Path, ".env"); 258var envFilePath = Path.Combine(workspace.Path, ".env"); 289var envFilePath = Path.Combine(workspace.Path, ".env"); 344var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 370var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 402var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 433var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 461var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 487var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 515var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 547var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 572var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 596var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 623var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 652var envFilePath = Path.Combine(workspace.Path, ".env.Staging"); 686var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 708var envFilePath = Path.Combine(workspace.Path, ".env.Production"); 742var envFilePath = Path.Combine(workspace.Path, ".env.Staging"); 775var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "docker-compose.yaml")); 776var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 808var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 834var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 859var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 860var envPath = Path.Combine(workspace.Path, ".env"); 886var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 917var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 918var envPath = Path.Combine(workspace.Path, ".env"); 956var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 957var envPath = Path.Combine(workspace.Path, ".env"); 1004var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1005var envPath = Path.Combine(workspace.Path, ".env"); 1038var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1039var envPath = Path.Combine(workspace.Path, ".env"); 1082var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1116var 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 (9)
DotnetProjectHostingExtensions.cs (1)
109path = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, path));
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\PathNormalizer.cs (6)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = Path.Combine(current, segments[j]);
Aspire.Hosting.Dotnet.Tests (24)
DotnetProjectResourceTests.cs (23)
61var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 165Assert.False(File.Exists(Path.Combine(workspace.Path, "aspire-manifest.json"))); 398await File.WriteAllTextAsync(Path.Combine(workspace.Path, "Dockerfile"), "FROM scratch"); 432var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 433var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 450var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "AmbiguousService")); 451File.WriteAllText(Path.Combine(projectDir.FullName, "First.csproj"), "<Project />"); 452File.WriteAllText(Path.Combine(projectDir.FullName, "Second.csproj"), "<Project />"); 476var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 477var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 480var propertiesDir = Directory.CreateDirectory(Path.Combine(projectDir.FullName, "Properties")); 481await File.WriteAllTextAsync(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """ 563var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 564var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 567var propertiesDir = Directory.CreateDirectory(Path.Combine(projectDir.FullName, "Properties")); 568await File.WriteAllTextAsync(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """ 633var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 634var projectPath = Path.Combine(projectDir.FullName, "MyService.csproj"); 637var propertiesDir = Directory.CreateDirectory(Path.Combine(projectDir.FullName, "Properties")); 638await File.WriteAllTextAsync(Path.Combine(propertiesDir.FullName, "launchSettings.json"), """ 879var appPath = Path.Combine(builder.AppHostDirectory, "service.cs"); 931var projectDirectory = Directory.CreateDirectory(Path.Combine(workspacePath, "MyService")); 938var path = Path.Combine(directory, fileName);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.EntityFrameworkCore (6)
EFMigrationResourceBuilderExtensions.cs (3)
242projectPath = Path.GetFullPath(Path.Combine(builder.ApplicationBuilder.AppHostDirectory, projectPath)); 314var buildContext = Path.Combine(ResolvePipelineOutputDirectory(builder), "efmigrations"); 358return Path.Combine(builder.ApplicationBuilder.AppHostDirectory, "aspire-output");
EFResourceBuilderExtensions.cs (3)
254? Path.Combine(outputDir, migrationResource.Name + ".sql") 298? Path.Combine(outputDir, GetBundleFileName(migrationResource)) 372var outputDir = Path.Combine(pipelineOutputService.GetOutputDirectory(), "efmigrations");
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
409Assert.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"))) 781var path = Path.Combine(appDirectory, fileName); 1076if (!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)); 1836var jarPath = Path.GetFullPath(Path.Combine(resource.WorkingDirectory, NormalizeJarPathForJava(jar.JarPath))); 1870JavaBuildTool.Maven => Path.Combine(resource.WorkingDirectory, "target"), 1990JavaBuildTool.Maven => TryReadMavenArtifactId(Path.Combine(resource.WorkingDirectory, "pom.xml")), 2057var settingsPath = Path.Combine(workingDirectory, fileName);
JavaVersionDetector.cs (6)
44DetectFromGradle(Path.Combine(appDirectory, "build.gradle")), 45DetectFromGradle(Path.Combine(appDirectory, "build.gradle.kts")), 46DetectFromPom(Path.Combine(appDirectory, "pom.xml")), 50DetectFromPom(Path.Combine(appDirectory, "pom.xml")), 51DetectFromGradle(Path.Combine(appDirectory, "build.gradle")), 52DetectFromGradle(Path.Combine(appDirectory, "build.gradle.kts")),
src\Shared\PathNormalizer.cs (6)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = Path.Combine(current, segments[j]);
Aspire.Hosting.Java.Tests (115)
AddJavaAppPublishTests.cs (69)
54var destination = Path.Combine(workspace.Path, "app.jar"); 234File.WriteAllText(Path.Combine(sourceDir.FullName, "build.gradle"), ""); 395File.WriteAllText(Path.Combine(source, ".dockerignore"), "secrets/\n"); 410File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 416Assert.False(File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile"))); 431File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 462File.WriteAllText(Path.Combine(sourceDir.FullName, "Dockerfile"), "FROM scratch\n"); 494var manifest = await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "aspire-manifest.json"), TestContext.Current.CancellationToken); 511File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), $""" 532File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 562File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 640File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), script); 650File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 653File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "sourceCompatibility = '21'"); 669File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 672File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "sourceCompatibility = '21'"); 686File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 689File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), "plugins { id 'java' }"); 701File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 724File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 746File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), """ 767File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), "<project>"); 799File.WriteAllText(Path.Combine(appDirectory.Path, fileName), ""); 816File.WriteAllText(Path.Combine(appDirectory.Path, "pom.xml"), "<project />"); 817File.WriteAllText(Path.Combine(appDirectory.Path, "build.gradle"), ""); 863File.WriteAllText(Path.Combine(sourceDir.FullName, "pom.xml"), "<project/>"); 988var wrapperDirectory = Path.Combine(source, "scripts"); 1012File.Delete(Path.Combine(sourceDir.FullName, "mvnw")); 1038Directory.Delete(Path.Combine(sourceDir.FullName, supportDirectory), recursive: true); 1060Directory.CreateDirectory(Path.Combine(source, "scripts")); 1061WriteWrapper(Path.Combine(source, "scripts"), "custom-mvnw"); 1065.WithWrapperPath(Path.Combine("scripts", "custom-mvnw"))); 1077Directory.CreateDirectory(Path.Combine(source, "target")); 1080jarPath: Path.Combine("target", "worker.jar")); 1097Directory.CreateDirectory(Path.Combine(source, "target")); 1100jarPath: Path.Combine("target", "worker.jar"), 1113Directory.CreateDirectory(Path.Combine(source, "target")); 1116jarPath: Path.Combine("target", "worker.jar")); 1130jarPath: Path.Combine("target", "api.jar")); 1148Path.Combine(sourceDir.FullName, "App.java"), 1169builder.AddJavaApp("api", sourceDir.FullName, Path.Combine("target", "app.jar"), ["--greeting", "hello"]); 1178await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "aspire-manifest.json"), TestContext.Current.CancellationToken)); 1188Path.Combine(outputDir.FullName, "api.Dockerfile"), 1189Path.Combine(sourceDir.FullName, "Dockerfile")); 1191Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"), 1192Path.Combine(sourceDir.FullName, ".dockerignore")); 1228Path.Combine(sourceDir.FullName, "pom.xml"), 1261Path.Combine(sourcePath.FullName, "App.java"), 1295Path.Combine(outputDir.FullName, "api.Dockerfile"), 1296Path.Combine(sourceDir.FullName, "Dockerfile")); 1298Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"), 1299Path.Combine(sourceDir.FullName, ".dockerignore")); 1431var stagingDirectory = Path.Combine(workspace.Path, "staged"); 1472Assert.Equal("runner", File.ReadAllText(Path.Combine(stagingDirectory, "quarkus-run.jar"))); 1477Assert.False(Directory.Exists(Path.Combine(stagingDirectory, "lib"))); 1695Path.Combine(source, "pom.xml"), 1696File.ReadAllText(Path.Combine(source, "pom.xml")).Replace( 1741var nested = Directory.CreateDirectory(Path.Combine(sourceDir.FullName, "build tools")); 1747.WithWrapperPath(Path.Combine("build tools", "mvnw")); 1779File.Exists(Path.Combine(outputDir.FullName, "api.Dockerfile")), 1805return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 2028return await File.ReadAllTextAsync(Path.Combine(outputDir.FullName, "api.Dockerfile"), TestContext.Current.CancellationToken); 2052var ignorePath = Path.Combine(outputDir.FullName, "api.Dockerfile.dockerignore"); 2063File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), $""" 2080File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), $""" 2097File.WriteAllText(Path.Combine(sourceDirectory, "pom.xml"), $""" 2125File.WriteAllText(Path.Combine(sourceDirectory, "build.gradle"), contents); 2131File.WriteAllText(Path.Combine(sourceDirectory, wrapperName), "#!/bin/sh\nexit 0\n"); 2149Path.Combine(supportDirectory, gradle ? "gradle-wrapper.properties" : "maven-wrapper.properties"),
AddJavaAppTests.cs (28)
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")); 1415var jarPath = Path.Combine(directory, fileName); 1546Assert.Equal(Path.Combine(tempDir.Path, "no-main.jar"), Assert.Single(noMainClassConfiguration.ClassPaths!)); 1550Assert.Equal(Path.Combine(tempDir.Path, "does-not-exist.jar"), Assert.Single(missingConfiguration.ClassPaths!)); 1566Path.Combine(outputDirectory, "catalog-0.0.1-SNAPSHOT.jar"), 1576Path.Combine(tempDir.Path, tool == "maven" ? "pom.xml" : "settings.gradle"), 1684File.WriteAllText(Path.Combine(tempDir.Path, "pom.xml"), """ 1714File.WriteAllText(Path.Combine(tempDir.Path, "settings.gradle"), "rootProject.name = 'orders'\n"); 1748Path.Combine(tempDir.Path, "settings.gradle"), 1769File.WriteAllText(Path.Combine(tempDir.Path, "pom.xml"), """ 1781Path.Combine("target", "worker-0.0.1-SNAPSHOT.jar"), 1785.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 (29)
JavaScriptHostingExtensions.cs (23)
177if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 281if (File.Exists(Path.Combine(appDirectory, "package.json"))) 520if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 706if (File.Exists(Path.Combine(appDirectory, "package.json"))) 801appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 1170if (File.Exists(Path.Combine(appDirectory, "Dockerfile"))) 1471appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 1672appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 1850var hasBunLock = File.Exists(Path.Combine(workingDirectory, "bun.lock")) || 1851File.Exists(Path.Combine(workingDirectory, "bun.lockb")); 1856if (File.Exists(Path.Combine(workingDirectory, "bun.lock"))) 1860if (File.Exists(Path.Combine(workingDirectory, "bun.lockb"))) 1900File.Exists(Path.Combine(resource.Resource.WorkingDirectory, "package-lock.json")) 1918var hasYarnLock = File.Exists(Path.Combine(workingDirectory, "yarn.lock")); 1919var hasYarnrc = File.Exists(Path.Combine(workingDirectory, ".yarnrc.yml")); 1920var hasYarnBerryDir = Directory.Exists(Path.Combine(workingDirectory, ".yarn")); 1997var hasPnpmLock = File.Exists(Path.Combine(workingDirectory, "pnpm-lock.yaml")); 1998var hasPnpmWorkspace = File.Exists(Path.Combine(workingDirectory, "pnpm-workspace.yaml")); 2052var packageJsonPath = Path.Combine(workingDirectory, "package.json"); 2441var configPath = Path.Combine(appDirectory, configFileName); 2566var nvmrcPath = Path.Combine(workingDirectory, ".nvmrc"); 2579var nodeVersionPath = Path.Combine(workingDirectory, ".node-version"); 2592var toolVersionsPath = Path.Combine(workingDirectory, ".tool-versions");
src\Shared\PathNormalizer.cs (6)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = Path.Combine(current, segments[j]);
Aspire.Hosting.JavaScript.Tests (171)
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"), "{}");
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"),
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 (1)
157File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}");
ResourceCreationTests.cs (1)
44Assert.Equal(Path.Combine(builder.AppHostDirectory, "test"), resource.WorkingDirectory);
Aspire.Hosting.Kafka.Tests (1)
AddKafkaTests.cs (1)
144Assert.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 (16)
CertManagerExtensions.cs (1)
451var manifestPath = Path.Combine(tempDir.FullName, $"{issuer.Name}.yaml");
Deployment\HelmDeploymentEngine.cs (4)
243var valuesFilePath = Path.Combine(outputPath, "values.yaml"); 362var overrideFilePath = Path.Combine(outputPath, GetDeployValuesFileName(environment.Name)); 434var valuesFilePath = Path.Combine(outputPath, "values.yaml"); 451var deployValuesFilePath = Path.Combine(outputPath, GetDeployValuesFileName(environment.Name));
KubernetesEnvironmentResource.cs (7)
1475var patchFilePath = Path.Combine(patchTempDir.FullName, "patch.json"); 1587var certPath = Path.Combine(tempDir.FullName, "tls.crt"); 1588var keyPath = Path.Combine(tempDir.FullName, "tls.key"); 1921var patchFilePath = Path.Combine(patchTempDir.FullName, "patch.json"); 2102var manifestPath = Path.Combine(tempDir.FullName, "gateway.json"); 2224var certPath = Path.Combine(tempDir.FullName, "tls.crt"); 2225var 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");
Aspire.Hosting.Kubernetes.Tests (64)
KubernetesDeployTests.cs (30)
878var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 909var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 972var outputPath = Path.Combine(workspace.Path, "env"); 983await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), valuesYaml); 1002var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1019var outputPath = Path.Combine(workspace.Path, "env"); 1022await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), "parameters: {}\nsecrets: {}\nconfig: {}"); 1031var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1039var outputPath = Path.Combine(workspace.Path, "env"); 1042await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), "parameters: {}\nsecrets: {}\nconfig: {}"); 1061var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1113var outputPath = Path.Combine(workspace.Path, "env"); 1116await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), "parameters: {}\nsecrets: {}\nconfig: {}"); 1137var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1270var outputPath = Path.Combine(workspace.Path, "env"); 1281await File.WriteAllTextAsync(Path.Combine(outputPath, "values.yaml"), valuesYaml); 1306var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1320var outputPath = Path.Combine(workspace.Path, "env"); 1330var deployValuesPath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1369var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1444var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1471var outputPath = Path.Combine(workspace.Path, "deploy"); 1503var overridePath = Path.Combine(outputPath, HelmDeploymentEngine.GetDeployValuesFileName("myenv")); 1561var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1622var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1667var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1707var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1708await Verify(await File.ReadAllTextAsync(Path.Combine(workspace.Path, "values.yaml")), "yaml") 1780var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1815var 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 (27)
71var filePath = Path.Combine(workspace.Path, expectedFile); 110var deploymentPath = Path.Combine(workspace.Path, "templates/service/deployment.yaml"); 168var filePath = Path.Combine(workspace.Path, expectedFile); 212var manifestPath = Path.Combine(workspace.Path, "templates/myapp/scaler.yaml"); 290var filePath = Path.Combine(workspace.Path, expectedFile); 346var filePath = Path.Combine(workspace.Path, expectedFile); 378var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 453var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 546var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 642var filePath = Path.Combine(workspace.Path, expectedFile); 688var filePath = Path.Combine(workspace.Path, expectedFile); 714var servicePath = Path.Combine(workspace.Path, "templates/database/service.yaml"); 750var filePath = Path.Combine(workspace.Path, expectedFile); 802var filePath = Path.Combine(workspace.Path, expectedFile); 847var filePath = Path.Combine(workspace.Path, expectedFile); 892var filePath = Path.Combine(workspace.Path, expectedFile); 1047var filePath = Path.Combine(workspace.Path, expectedFile); 1093var filePath = Path.Combine(workspace.Path, expectedFile); 1154var filePath = Path.Combine(workspace.Path, expectedFile); 1205var filePath = Path.Combine(workspace.Path, expectedFile); 1267var filePath = Path.Combine(workspace.Path, expectedFile); 1326var filePath = Path.Combine(workspace.Path, expectedFile); 1380var filePath = Path.Combine(workspace.Path, expectedFile); 1437var filePath = Path.Combine(workspace.Path, expectedFile); 1531var filePath = Path.Combine(workspace.Path, expectedFile); 1586var filePath = Path.Combine(workspace.Path, expectedFile); 1845var 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)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = Path.Combine(current, segments[j]);
Utilities\MauiEnvironmentHelper.cs (2)
70var targetsFilePath = Path.Combine(tempDirectory, $"{sanitizedName}-{uniqueId}.targets"); 246var targetsFilePath = Path.Combine(tempDirectory, $"{sanitizedName}-{uniqueId}.targets");
Aspire.Hosting.Maui.Tests (54)
MauiiOSValidationTests.cs (6)
23var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 48var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 73var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 93var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 111var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 129var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiOtlpTemplateTests.cs (3)
25var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 52var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 75var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiPlatformExtensionsTests.cs (27)
94var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 117var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 137var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 156var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 185var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 233var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 252var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 276var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 304var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 330var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 353var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 376var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 399var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 427var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 452var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 481var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 506var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 533var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 561var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 591var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 615var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 638var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 676var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 728var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 792var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 816var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 843var 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)
20var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 38var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 57var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 77var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 94var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 114var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 131var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 150var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 167var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 187var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 209var 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)
139bindMountPath = Path.Combine(Directory.CreateTempSubdirectory().FullName, "data"); 277var initFilePath = Path.Combine(bindMountPath, "mongo-init.js"); 374var 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)
886Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source); 913Assert.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 (6)
Publishing\RadiusBicepPublishingContext.cs (2)
94var bicepPath = Path.Combine(outputDir, "app.bicep"); 95var configPath = Path.Combine(outputDir, "bicepconfig.json");
Publishing\RadiusDeploymentPipelineStep.cs (2)
117var bicepPath = Path.Combine(outputDir, "app.bicep"); 284var 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 (8)
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)
593Assert.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 (53)
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 (2)
101: Path.Combine(Path.GetTempPath(), $"arh-{Guid.NewGuid():N}"[..12]); 110: Path.Combine(socketDirectory!, "rpc.sock");
LayoutCommandTests.cs (25)
34var assetsPath = Path.Combine(workspaceRoot, "project.assets.json"); 37var outputPath = Path.Combine(workspaceRoot, "out"); 49Assert.Equal(GetExpectedRuntimeContent(), await File.ReadAllTextAsync(Path.Combine(outputPath, "Test.Package.dll"))); 51Assert.Equal("runtime-native", await File.ReadAllTextAsync(Path.Combine(outputPath, GetNativeFileName()))); 84var assetsPath = Path.Combine(workspaceRoot, "project.assets.json"); 87var outputPath = Path.Combine(workspaceRoot, "out"); 99Assert.Equal(GetExpectedRuntimeContent(), await File.ReadAllTextAsync(Path.Combine(outputPath, "Test.Package.dll"))); 122var assetsPath = Path.Combine(workspaceRoot, "project.assets.json"); 125var outputPath = Path.Combine(workspaceRoot, "out"); 137Assert.Equal("base", await File.ReadAllTextAsync(Path.Combine(outputPath, "Test.Package.dll"))); 167var assetsPath = Path.Combine(workspaceRoot, "project.assets.json"); 170var outputPath = Path.Combine(workspaceRoot, "integration-package-probe-manifest.json"); 182Assert.False(Directory.Exists(Path.Combine(workspaceRoot, "libs"))); 191assembly.GetProperty("path").GetString() == Path.Combine(packageRoot, GetExpectedRuntimeAssemblyPath().Replace('/', Path.DirectorySeparatorChar))); 220var sourcePath = Path.Combine(workspaceRoot, "source"); 224var globalPackagesPath = Path.Combine(workspaceRoot, "global-packages"); 225var nugetConfigPath = Path.Combine(workspaceRoot, "nuget.config"); 243var assetsPath = Path.Combine(objPath, "project.assets.json"); 281var packagesPath = Path.Combine(rootPath, "packages") + Path.DirectorySeparatorChar; 283var outputPath = Path.Combine(rootPath, "obj") + Path.DirectorySeparatorChar; 368var packagePath = Path.Combine(sourcePath, "Test.Package.1.0.0.nupkg"); 427var packagesPath = Path.Combine(rootPath, "packages") + Path.DirectorySeparatorChar; 429var outputPath = Path.Combine(rootPath, "obj") + Path.DirectorySeparatorChar; 497var packagesPath = Path.Combine(rootPath, "packages") + Path.DirectorySeparatorChar; 499var outputPath = Path.Combine(rootPath, "obj") + Path.DirectorySeparatorChar;
RestoreCommandTests.cs (5)
21var sourcePath = Path.Combine(workspaceRoot, "source"); 22var outputPath = Path.Combine(workspaceRoot, "obj"); 44var assetsPath = Path.Combine(outputPath, "project.assets.json"); 45var manifestPath = Path.Combine(outputPath, "integration-package-probe-manifest.json"); 88var packagePath = Path.Combine(sourcePath, $"{packageId}.1.0.0.nupkg");
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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)
72return files.Length == 1 ? files[0] : Path.Combine(current, parts[i]); 77current = dirs.Length == 1 ? dirs[0] : Path.Combine(current, parts[i]); 162current = Path.Combine(current, segments[i]); 211current = Path.Combine(current, segments[j]); 250current = Path.Combine(current, segments[i]); 263current = 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 (99)
AppHostSdkTargetsTests.cs (97)
103var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 127var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 166var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 196var emptyPathDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-path")); 222var nonExecutableDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "non-executable")); 223var nonExecutableDnxPath = Path.Combine(nonExecutableDirectory.FullName, "dnx"); 230var executableDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "executable")); 251var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(project.ProjectDirectory, RelativeCliDirectory)); 270var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 291var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 306var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake cli !& (shim)^,;=+[]{}~@")); 324var emptyPathDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-path")); 331var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 349var appHostDirectory = Path.Combine(workspace.Path, "FileApp"); 351var appHostFile = Path.Combine(appHostDirectory, "apphost.cs"); 372var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 423var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "selected cli")); 424var captureFile = Path.Combine(workspace.Path, "aspire-args.txt"); 460var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "selected cli")); 461var captureFile = Path.Combine(workspace.Path, "dnx-args.txt"); 503var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "native aspire")); 504var captureFile = Path.Combine(workspace.Path, "aspire-native-args.txt"); 543var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake cli !& (shim)^,;=+[]{}~@")); 544var captureFile = Path.Combine(workspace.Path, "aspire-args.txt"); 580var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 581var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 596var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 603var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 629var staleCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "stale-cli")); 635var dnxDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, dnxDirectoryName)); 640var aspireHome = Path.Combine(workspace.Path, aspireHomeDirectoryName); 677Path.Combine(workspace.Path, "cli $HOME `aspire-test-command`")); 679var aspireHome = Path.Combine(workspace.Path, "empty-aspire-home"); 701var selectedCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "selected-cli")); 703var staleCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "stale-cli")); 706var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 732var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "native%ASPIRE_TEST_LITERAL%")); 734var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 750Assert.False(Directory.Exists(Path.Combine(workspace.Path, "nativeexpanded"))); 758var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 761var aspireHome = Path.Combine(workspace.Path, "aspire-home"); 786var fakeCommandDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-command")); 788var commandShimPath = Path.Combine(fakeCommandDirectory.FullName, "aspire.cmd"); 794var childPidPath = Path.Combine(workspace.Path, "child.pid"); 796var projectPath = Path.Combine(workspace.Path, "RunAspireCliCommand.proj"); 854var commandPath = Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "hang.cmd" : "hang"); 923var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 925var environmentAspireHome = Path.Combine(workspace.Path, "environment-aspire-home"); 926var propertyAspireHome = Path.Combine(workspace.Path, "property-aspire-home"); 940Assert.False(Directory.Exists(Path.Combine(propertyAspireHome, "bundle"))); 948var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 974var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 975var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 990var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 991var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1006var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1007var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1022var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1023var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1038var fakeCliDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "fake-cli")); 1039var cliPath = Path.Combine(fakeCliDirectory.FullName, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1054var emptyPathDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-path")); 1068var projectDirectory = Path.Combine(workspace.Path, "AppHost"); 1074await File.WriteAllTextAsync(Path.Combine(projectDirectory, "AppHost.csproj"), 1114var projectDirectory = Path.Combine(workspace, "AppHost"); 1118var projectFile = Path.Combine(projectDirectory, "AppHost.csproj"); 1149await File.WriteAllTextAsync(Path.Combine(projectDirectory, "Program.cs"), """ 1224var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1240var aspirePath = Path.Combine(fakeCliDirectory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1275File.WriteAllText(Path.Combine(bundle.DcpDirectory, OperatingSystem.IsWindows() ? "dcp.exe" : "dcp"), ""); 1282var bundleRoot = Path.Combine(layoutRoot, "bundle"); 1283var dcpDirectory = Path.Combine(bundleRoot, "dcp"); 1284var managedDirectory = Path.Combine(bundleRoot, "managed"); 1285var managedPath = Path.Combine(managedDirectory, OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"); 1291var aspirePath = Path.Combine(fakeCliDirectory, $"aspire{extension}"); 1327var dnxPath = Path.Combine(fakeCliDirectory, OperatingSystem.IsWindows() ? "dnx.cmd" : "dnx"); 1332await File.WriteAllTextAsync(Path.Combine(fakeSdkDirectory.FullName, "dotnet.dll"), ""); 1381await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "fail-version"), ""); 1395var aspirePath = Path.Combine(fakeCliDirectory, "aspire.exe"); 1406File.Copy(sourcePath, Path.Combine(destinationDirectory, Path.GetFileName(sourcePath)), overwrite: true); 1409return Path.Combine(destinationDirectory, Path.GetFileName(fakeCommandHostPath)); 1414var captureFile = Path.Combine(workingDirectory, $"{command}-shadow-invoked.txt"); 1418Path.Combine(workingDirectory, $"{command}.cmd"), 1433await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), $$""" 1445var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1461await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), $$""" 1474var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1495await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), """ 1508var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1525await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), """ 1542var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1563await File.WriteAllTextAsync(Path.Combine(fakeCliDirectory, "aspire.cmd"), """ 1579var aspirePath = Path.Combine(fakeCliDirectory, "aspire"); 1681=> OperatingSystem.IsWindows() ? Path.Combine(Path.GetDirectoryName(dnxPath)!, "dotnet.exe") : dnxPath; 1807return executableNames.Any(executableName => File.Exists(Path.Combine(directory.Trim().Trim('"'), executableName))); 1916while (directory is not null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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)
195var path = Path.Combine(source, dir);
Aspire.Hosting.Tasks (10)
CommandPathResolver.cs (1)
36var candidate = Path.Combine(directory, executableName);
ResolveAspireCliBundle.cs (8)
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"); 339var versionsRoot = Path.Combine(layoutPath, VersionsDirectoryName); 435var sidecarPath = Path.Combine(cliDirectory, InstallSidecarFileName); 462? 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 (267)
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)
1616producerUdsPath: Path.Combine(baseDir, $"{pseudoId}.dcp.sock"), 1617consumerUdsPath: Path.Combine(baseDir, $"{pseudoId}.host.sock"), 1618controlUdsPath: Path.Combine(baseDir, $"{pseudoId}.ctrl.sock"), 1619metadataPath: Path.Combine(baseDir, $"{pseudoId}.metadata.json"));
Backchannel\AuxiliaryBackchannelTests.cs (3)
629var realDirectory = Directory.CreateDirectory(Path.Combine(tempRoot.FullName, "real")); 630var symlinkDirectory = Path.Combine(tempRoot.FullName, "link"); 633var appHostFileViaSymlink = Path.Combine(symlinkDirectory, "apphost.cs");
Backchannel\GetTerminalInfoAsyncTests.cs (5)
294var producer = Path.Combine(baseDir, $"{pseudoId}.dcp.sock"); 295var consumer = Path.Combine(baseDir, $"{pseudoId}.host.sock"); 301: Path.Combine(baseDir, $"{pseudoId}.ctrl.sock"); 302var metadata = Path.Combine(baseDir, $"{pseudoId}.metadata.json"); 341var 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 (10)
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");
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"));
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 (2)
6741? Path.GetFullPath(Path.Combine("test-dotnet-root", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet")) 7333var projectPath = Path.Combine("src", "app.cs");
Dcp\DcpHostNotificationTests.cs (2)
872var appHostDirectory = Path.Combine(Path.GetTempPath(), "aspire-apphost-test"); 1046var appHostDirectory = Path.Combine(Path.GetTempPath(), "aspire-apphost-test");
Dcp\ExecutableLaunchPlanTests.cs (1)
100var projectPath = Path.Combine("tmp", "project.csproj");
DistributedApplicationBuilderTests.cs (2)
123Assert.Equal(Path.Combine(projectDirectory, "aspire-output"), outputService.GetOutputDirectory()); 146Assert.Equal(Path.Combine(Environment.CurrentDirectory, "aspire-output"), outputService.GetOutputDirectory());
ExecutableResourceBuilderExtensionTests.cs (2)
27var expectedPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 53var expectedPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory));
MSBuildTests.cs (96)
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 expectedManagedDir = EnsureTrailingSeparator(Path.Combine(bundleRoot, "managed")); 493Assert.Equal(Path.Combine(expectedManagedDir, OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"), 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.ManagedDirectoryName)), 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")); 1002File.WriteAllText(Path.Combine(dcpDir, OperatingSystem.IsWindows() ? "dcp.exe" : "dcp"), ""); 1003var managedPath = Path.Combine(managedDir, OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"); 1011var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.exe" : "aspire"); 1018var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1052var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1078var cliPath = Path.Combine(directory, OperatingSystem.IsWindows() ? "aspire.cmd" : "aspire"); 1133return executableNames.Any(executableName => File.Exists(Path.Combine(directory.Trim().Trim('"'), executableName))); 1148var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 1151File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 1180File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 1207var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 1210File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 1239File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 1260var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "MyHostingExtension"); 1263File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 1280File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 1309var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "MyHostingExtension"); 1312File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 1329File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 1358var packageOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "packages"); 1385var packageOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "packages"); 1431var packageOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "packages"); 1441var projectDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "MyHostingExtension"); 1443var nuGetConfigPath = Path.Combine(projectDirectory, "NuGet.config"); 1487File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 1510File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 1537File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"), 1549File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"), 1574var appHostDirectory = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost"); 1577File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 1605File.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 (6)
63var projectFilePath = Path.Combine(projectDirectoryPath, "Project.csproj"); 64var propertiesDirectoryPath = Path.Combine(projectDirectoryPath, "Properties"); 65var launchSettingsFilePath = Path.Combine(propertiesDirectoryPath, "launchSettings.json"); 103var projectFilePath = Path.Combine(projectDirectoryPath, "Project.csproj"); 104var propertiesDirectoryPath = Path.Combine(projectDirectoryPath, "Properties"); 105var launchSettingsFilePath = Path.Combine(propertiesDirectoryPath, "launchSettings.json");
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\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 (7)
274var tempOutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "NewFolder"); // tests that the folder is created if it doesn't exist 655.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"))) 693.WithAnnotation(new TestProjectMetadata(Path.Combine(workspace.WorkspaceRoot.FullName, "missing.csproj"))) 955var tempSecretFile = System.IO.Path.Combine(workspace.WorkspaceRoot.FullName, ".npmrc"); 1340ctx.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "archives"); 1464ctx.OutputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "archives"); 1531var dockerfilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "Dockerfile");
ResourceCommandServiceTests.cs (2)
1697var projectPath = Path.Combine(directoryPath, "BuildOutputProject.csproj"); 1698var programPath = Path.Combine(directoryPath, "Program.cs");
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}"),
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(
WithTerminalTests.cs (15)
434var orphanMetadataPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.MetadataSuffix}"); 435var orphanProducerPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 436var orphanConsumerPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.ConsumerSockPurpose}.sock"); 437var orphanControlPath = Path.Combine(trmnlDirectory, $"{orphanId}.{TerminalHostPaths.ControlSockPurpose}.sock"); 489var liveMetadataPath = Path.Combine(trmnlDirectory, $"{liveId}.{TerminalHostPaths.MetadataSuffix}"); 490var liveProducerPath = Path.Combine(trmnlDirectory, $"{liveId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 540var metadataPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.MetadataSuffix}"); 541var producerPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 572var metadataPath = Path.Combine(trmnlDirectory, $"{fileReplicaId}.{TerminalHostPaths.MetadataSuffix}"); 578var sentinelPath = Path.Combine(trmnlDirectory, maliciousPrefix + "-sentinel.tmp"); 707var metadataPath = Path.Combine(trmnlDirectory, $"{invalidReplicaId}.{TerminalHostPaths.MetadataSuffix}"); 708var producerPath = Path.Combine(trmnlDirectory, $"{invalidReplicaId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 737var metadataPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.MetadataSuffix}"); 738var producerPath = Path.Combine(trmnlDirectory, $"{replicaId}.{TerminalHostPaths.ProducerSockPurpose}.sock"); 920var publishDirectory = Path.Combine(_terminalDirectory, "publish");
Aspire.Hosting.TestUtilities (11)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
72var uniqueFolder = Path.Combine(baseDcpLogFolder, folderName);
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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 (20)
NuGet\RestoreCommandTests.cs (9)
19var customPackagesDir = Path.GetFullPath(Path.Combine(_workspace.Path, "custom-packages")); 20var nugetConfigPath = Path.Combine(_workspace.Path, "NuGet.config"); 40var outputDir = Path.Combine(tempDirPath, "obj"); 53var customPackagesDir = Path.GetFullPath(Path.Combine(_workspace.Path, "env-packages")); 63var outputDir = Path.Combine(tempDirPath, "obj"); 76var nugetConfigPath = Path.Combine(_workspace.Path, "NuGet.config"); 77var configSourcePath = Path.Combine(_workspace.Path, "config-source"); 78var cliSourcePath = Path.Combine(_workspace.Path, "cli-source"); 97var outputDir = Path.Combine(tempDirPath, "obj");
TerminalHostSignalTests.cs (9)
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 parentProducerPath = Path.Combine(socketDirectory.FullName, "pp.sock"); 100var parentConsumerPath = Path.Combine(socketDirectory.FullName, "ph.sock"); 101var parentControlPath = Path.Combine(socketDirectory.FullName, "pc.sock"); 103var producerPath = Path.Combine(socketDirectory.FullName, "p.sock"); 104var consumerPath = Path.Combine(socketDirectory.FullName, "h.sock"); 105var controlPath = Path.Combine(socketDirectory.FullName, "c.sock");
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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)
57var webProjectDirectory = Path.Combine(project.RootDir, $"{project.Id}.Web");
NewUpAndBuildSupportProjectTemplatesTests.cs (2)
14var topLevelDir = Path.Combine(BuildEnvironment.TestRootPath, id + "_root"); 43project.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 (8)
TerminalHostAppTests.cs (6)
26var dcpDir = Path.Combine(workspace.Path, "dcp"); 27var hostDir = Path.Combine(workspace.Path, "host"); 28var ctrlDir = Path.Combine(workspace.Path, "ctl"); 33var producer = Path.Combine(dcpDir, "r.sock"); 34var consumer = Path.Combine(hostDir, "r.sock"); 35var control = Path.Combine(ctrlDir, "c.sock");
tests\Shared\TemporaryWorkspace.cs (2)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var 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)
210return Path.Combine(Path.GetTempPath(), "unix1.txt"); 215return 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();
crossgen2 (2)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
219zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 338reproPackagePath = Path.Combine(reproFileDir, Path.GetFileName(originalPath));
Crossgen2Tasks (3)
PrepareForReadyToRunCompilation.cs (3)
167var outputR2RImage = Path.Combine(OutputPath, outputR2RImageRelativePath); 295var compositeR2RImage = Path.Combine(OutputPath, compositeR2RImageRelativePath); 296var compositeR2RImageFinal = Path.Combine(OutputPath, compositeR2RFinalImageRelativePath);
csc (8)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
452var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 784var result = Path.Combine(tempPath, ".roslyn"); 792FilePath = Path.Combine(mutexDirectory, name); 793GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
126loggingFilePath = 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\RuntimeHostInfo.cs (1)
101var filePath = Path.Combine(item, fileName);
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 (112)
CommandFactory\CommandResolution\AppBaseDllCommandResolver.cs (1)
21var localPath = Path.Combine(SdkPaths.SdkDirectory,
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));
CommandFactory\CommandResolution\MSBuildProject.cs (1)
192return Path.Combine(intermediateOutputPath, "project.assets.json");
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
85var filePath = Path.Combine(
CommandFactory\CommandResolution\PackagedCommandSpecFactoryWithCliRuntime.cs (1)
69var preferCliRuntimePath = Path.Combine(packageDirectory, "prefercliruntime");
CommandFactory\CommandResolution\ProjectFactory.cs (1)
34Path.Combine(AppContext.BaseDirectory, "MSBuild.dll") :
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (4)
287var depsJsonPath = Path.Combine( 331var tempDepsFile = Path.Combine(TemporaryDirectory.CreateSubdirectory(), Path.GetRandomFileName()); 362string platformLibraryBuildFolderPath = Path.Combine(platformLibraryPath, buildRelativePath); 379Path.Combine(AppContext.BaseDirectory, "MSBuild.dll") :
CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (2)
38var depsFilePath = Path.Combine(publishDirectory, $"{applicationName}.deps.json"); 48var runtimeConfigPath = Path.Combine(publishDirectory, $"{applicationName}.runtimeconfig.json");
CommandFactory\CommandResolution\WindowsExePreferredCommandSpecFactory.cs (1)
51var comSpec = Environment.GetEnvironmentVariable("ComSpec") ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
Commands\Format\FormatForwardingApp.cs (3)
14=> Path.Combine(AppContext.BaseDirectory, "DotnetTools/dotnet-format/dotnet-format.dll"); 17=> Path.Combine(AppContext.BaseDirectory, "DotnetTools/dotnet-format/dotnet-format.deps.json"); 20=> Path.Combine(AppContext.BaseDirectory, "DotnetTools/dotnet-format/dotnet-format.runtimeconfig.json");
Commands\Fsi\FsiForwardingApp.cs (2)
50var dllPath = Path.Combine(AppContext.BaseDirectory, FsiDllName); 57return Path.Combine(AppContext.BaseDirectory, FsiExeName);
Commands\Help\HelpCommand.cs (1)
52FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe"),
Commands\New\BuiltInTemplatePackageProvider.cs (3)
53string templatesRootFolder = Path.Combine(dotnetRootPath, "templates"); 60.Select(versionedFolder => Path.Combine(templatesRootFolder, versionedFolder))); 64string templatesDir = Path.Combine(sdkPath, "Templates");
Commands\New\SdkInfoProvider.cs (1)
58string sdkDir = Path.Combine(dotnetDir, "sdk");
Commands\Project\Convert\ProjectConvertCommand.cs (10)
68string entryPointOutputDir = hasRefs ? Path.Combine(targetDirectory, entryPointName) : targetDirectory; 244string targetItemFullPath = Path.Combine(outputDirectory, item.RelativePath); 284var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/'))); 293var refTargetDirectory = Path.Combine(targetDirectory, refName); 313var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/'))); 322var refTargetDirectory = Path.Combine(targetDirectory, refName); 420.Select(item => (item.ItemType, item.RelativePath, OutputFullPath: Path.GetFullPath(Path.Combine(outputDirectory, item.RelativePath)))) 517if (Directory.Exists(Path.Combine(sourceDirectory, project.ExpandedName))) 523project = project.WithName(Path.GetRelativePath(relativeTo: outputDirectory, path: Path.Combine(sourceDirectory, project.Name)), CSharpDirective.Project.NameKind.Final); 532var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/')));
Commands\Reference\FileBasedAppReferenceEditor.cs (2)
209var appRelativePath = Path.GetFullPath(Path.Combine(EntryPointFileDirectory, reference.Replace('\\', '/'))); 222=> Path.GetFullPath(Path.Combine(EntryPointFileDirectory, path.Replace('\\', '/')));
Commands\Run\CSharpCompilerCommand.cs (1)
355string runtimeConfigPath = Path.Combine(SdkPath, "dotnet.runtimeconfig.json");
Commands\Run\EnvironmentVariablesToMSBuild.cs (3)
103? Path.Combine(projectDirectory, Constants.ObjDirectoryName) 106: Path.Combine(projectDirectory, normalized); 110string propsFilePath = Path.GetFullPath(Path.Combine(objDir, propsFileName));
Commands\Run\RunCommand.cs (1)
1137if (Directory.Exists(Path.Combine(currentDir, ".git")))
Commands\Test\MTP\ArtifactPostProcessingManager.cs (2)
129string tempDirectory = Path.Combine( 138string manifestPath = Path.Combine(tempDirectory, "manifest.json");
Commands\Test\MTP\IPC\NamedPipeServer.cs (1)
222return Path.Combine("/tmp", name);
Commands\Test\MTP\Terminal\FileUtilities.cs (1)
22string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
Commands\Test\MTP\TestApplication.cs (1)
438string path = Path.Combine(Path.GetTempPath(), $"dotnet-test-http-{Guid.NewGuid():N}.rsp");
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));
Commands\Test\VSTest\TestCommand.cs (1)
287string expectedArtifactDirectory = Path.Combine(Path.GetTempPath(), testSessionCorrelationId);
Commands\Test\VSTest\VSTestForwardingApp.cs (1)
38return Path.Combine(AppContext.BaseDirectory, VstestAppName);
Commands\Workload\GlobalJsonWorkloadSetFile.cs (1)
14public string Path { get; } = System.IO.Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, dotnetDir), "globaljsonworkloadsets.json");
Commands\Workload\Install\FileBasedInstaller.cs (7)
138var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{WorkloadManifestUpdater.WorkloadSetManifestId}-{workloadSetPackageVersion}-extracted"); 180var packagePath = Path.Combine(offlineCache.Value.Value, $"{packInfo.ResolvedPackageId}.{packInfo.Version}.nupkg"); 208var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{packInfo.ResolvedPackageId}-{packInfo.Version}-extracted"); 322packagePath = Path.Combine(offlineCache.Value.Value, $"{packageId}.{packageVersion}.nupkg"); 332tempBackupDir = Path.Combine(_tempPackagesDir.Value, $"{packageId} - {packageVersion}-backup"); 594string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, _workloadRootDir), "default.json"); 638string logFile = Path.Combine(historyDirectory, $"{workloadHistoryRecord.TimeStarted:yyyy'-'MM'-'dd'T'HHmmss}_{workloadHistoryRecord.CommandName}.json");
Commands\Workload\Install\FileBasedManifestInstaller.cs (1)
56FileAccessRetrier.RetryOnMoveAccessFailure(() => DirectoryPath.MoveDirectory(Path.Combine(extractionPath, "data"), targetPath));
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); 291var manifestPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "WorkloadManifest.json"); 301var adManifestFeatureBandPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "AdvertisedManifestFeatureBand.txt"); 363private string GetAdvertisingManifestSentinelPath(SdkFeatureBand featureBand) => Path.Combine(_userProfileDir, $".workloadAdvertisingManifestSentinel{featureBand}"); 367internal static string GetAdvertisingWorkloadsFilePath(string userProfileDir, SdkFeatureBand featureBand) => Path.Combine(userProfileDir, $".workloadAdvertisingUpdates{featureBand}");
Commands\Workload\Install\WorkloadGarbageCollector.cs (1)
83var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _dotnetDir), "default.json");
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
240var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json");
Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (2)
21.Where(band => Directory.Exists(Path.Combine(band, InstalledWorkloadDir)) && Directory.GetFiles(Path.Combine(band, InstalledWorkloadDir)).Any())
Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
41using RegistryKey? workloadKey = baseKey.OpenSubKey(Path.Combine(basePath, $"{sdkFeatureBand}"));
Commands\Workload\InstallingWorkloadCommand.cs (4)
189string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 384tempPath = new DirectoryPath(Path.Combine(TempDirectoryPath, "dotnet-manifest-extraction")); 385string extractedManifestsPath = Path.Combine(tempPath.Value.Value, "manifests"); 413await _workloadInstaller.ExtractManifestAsync(downloadedPackagePath, Path.Combine(extractedManifestsPath, download.Id));
Commands\Workload\WorkloadCommandBase.cs (1)
118TempPackagesDirectory = new DirectoryPath(Path.Combine(TempDirectoryPath, "dotnet-sdk-advertising-temp"));
Commands\Workload\WorkloadInfoHelper.cs (1)
167var useWorkloadSets = InstallStateContents.FromPath(Path.Combine(WorkloadInstallType.GetInstallStateFolder(_currentSdkFeatureBand, UserLocalPath), "default.json")).ShouldUseWorkloadSets();
FirstRunExperience.cs (1)
64string toolPath = Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, s_toolPathSentinelFileName);
NuGetForwardingApp.cs (1)
40return Path.Combine(
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
309return Path.Combine( 352string fullPath = Path.GetFullPath(Path.Combine(targetFolder.Value, fileAndPermission.Path));
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");
ShellShim\AppHostShimMaker.cs (2)
25appHostSourcePath = Path.Combine(_appHostSourceDirectory, ApphostNameWithoutExtension + ".exe"); 29appHostSourcePath = Path.Combine(_appHostSourceDirectory, ApphostNameWithoutExtension);
ShellShim\ShellShimRepository.cs (1)
126var tempPath = Path.Combine(_fileSystem.Directory.CreateTemporarySubdirectory(), Path.GetRandomFileName());
ShellShim\ShellShimTemplateFinder.cs (1)
63return Path.Combine(AppContext.BaseDirectory, "AppHostTemplate");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildServerConnection.cs (4)
452var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 784var result = Path.Combine(tempPath, ".roslyn"); 792FilePath = Path.Combine(mutexDirectory, name); 793GuardPath = Path.Combine(mutexDirectory, ".guard");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\RuntimeHostInfo.cs (1)
101var filePath = Path.Combine(item, fileName);
SudoEnvironmentDirectoryOverride.cs (2)
64.Select(fileName => Path.Combine(userSettingsDir, fileName)) 68var overriddenNugetConfig = Path.Combine(overriddenSettingsDir, Settings.DefaultSettingsFileName);
Telemetry\TelemetryCommonProperties.cs (1)
73{ MachineId, _userLevelCacheWriter.RunWithCacheInFilePath(Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, $"{MachineIdCacheKey}.v1.dotnetUserLevelCache"), GetMachineId) },
ToolManifest\ToolManifestFinder.cs (1)
253string manifestFileLocation = Path.Combine(folderPath.Value, Constants.ToolManifestFileName);
ToolPackage\ToolPackageDownloaderBase.cs (5)
60_runtimeJsonPath = runtimeJsonPathForTests ?? Path.Combine(AppContext.BaseDirectory!, "PortableRuntimeIdentifierGraph.json"); 284CreateAssetFile(packageId, packageVersion, packageDownloadDir, Path.Combine(assetFileDirectory.Value, ToolPackageInstance.AssetsFileName), _runtimeJsonPath, verbosity, targetFramework); 294CreateAssetFile(ridSpecificPackage, packageVersion, packageDownloadDir, Path.Combine(assetFileDirectory.Value, ToolPackageInstance.RidSpecificPackageAssetsFileName), _runtimeJsonPath, verbosity, targetFramework); 311CreateAssetFile(packageId, packageVersion, _localToolDownloadDir, Path.Combine(_localToolAssetDir.Value, ToolPackageInstance.AssetsFileName), _runtimeJsonPath, verbosity, targetFramework); 321Path.Combine(_localToolAssetDir.Value, ToolPackageInstance.RidSpecificPackageAssetsFileName), _runtimeJsonPath, verbosity, targetFramework);
ToolPackage\ToolPackageInstance.cs (2)
104var toolsPackagePath = Path.Combine(installPath, "tools"); 182var toolsPackagePath = Path.Combine(installPath, "tools");
dotnet-aot (40)
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\AppBaseDllCommandResolver.cs (1)
21var localPath = Path.Combine(SdkPaths.SdkDirectory,
src\sdk\src\Cli\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));
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (2)
38var depsFilePath = Path.Combine(publishDirectory, $"{applicationName}.deps.json"); 48var runtimeConfigPath = Path.Combine(publishDirectory, $"{applicationName}.runtimeconfig.json");
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\WindowsExePreferredCommandSpecFactory.cs (1)
51var comSpec = Environment.GetEnvironmentVariable("ComSpec") ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
src\sdk\src\Cli\dotnet\Commands\Format\FormatForwardingApp.cs (3)
14=> Path.Combine(AppContext.BaseDirectory, "DotnetTools/dotnet-format/dotnet-format.dll"); 17=> Path.Combine(AppContext.BaseDirectory, "DotnetTools/dotnet-format/dotnet-format.deps.json"); 20=> Path.Combine(AppContext.BaseDirectory, "DotnetTools/dotnet-format/dotnet-format.runtimeconfig.json");
src\sdk\src\Cli\dotnet\Commands\Fsi\FsiForwardingApp.cs (2)
50var dllPath = Path.Combine(AppContext.BaseDirectory, FsiDllName); 57return Path.Combine(AppContext.BaseDirectory, FsiExeName);
src\sdk\src\Cli\dotnet\Commands\MSBuild\MSBuildForwardingApp.cs (1)
55string loggerTypeLocation = Path.Combine(SdkPaths.SdkDirectory, "dotnet.dll");
src\sdk\src\Cli\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (1)
38return Path.Combine(AppContext.BaseDirectory, VstestAppName);
src\sdk\src\Cli\dotnet\Commands\Workload\Install\FileBasedManifestInstaller.cs (1)
56FileAccessRetrier.RetryOnMoveAccessFailure(() => DirectoryPath.MoveDirectory(Path.Combine(extractionPath, "data"), targetPath));
src\sdk\src\Cli\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); 291var manifestPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "WorkloadManifest.json"); 301var adManifestFeatureBandPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "AdvertisedManifestFeatureBand.txt"); 363private string GetAdvertisingManifestSentinelPath(SdkFeatureBand featureBand) => Path.Combine(_userProfileDir, $".workloadAdvertisingManifestSentinel{featureBand}"); 367internal static string GetAdvertisingWorkloadsFilePath(string userProfileDir, SdkFeatureBand featureBand) => Path.Combine(userProfileDir, $".workloadAdvertisingUpdates{featureBand}");
src\sdk\src\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())
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
41using RegistryKey? workloadKey = baseKey.OpenSubKey(Path.Combine(basePath, $"{sdkFeatureBand}"));
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
167var useWorkloadSets = InstallStateContents.FromPath(Path.Combine(WorkloadInstallType.GetInstallStateFolder(_currentSdkFeatureBand, UserLocalPath), "default.json")).ShouldUseWorkloadSets();
src\sdk\src\Cli\dotnet\FirstRunExperience.cs (1)
64string toolPath = Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, s_toolPathSentinelFileName);
src\sdk\src\Cli\dotnet\NuGetForwardingApp.cs (1)
40return Path.Combine(
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (2)
309return Path.Combine( 352string fullPath = Path.GetFullPath(Path.Combine(targetFolder.Value, fileAndPermission.Path));
src\sdk\src\Cli\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");
src\sdk\src\Cli\dotnet\Telemetry\TelemetryCommonProperties.cs (1)
73{ MachineId, _userLevelCacheWriter.RunWithCacheInFilePath(Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, $"{MachineIdCacheKey}.v1.dotnetUserLevelCache"), GetMachineId) },
src\sdk\src\Cli\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 (9)
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)));
Program.cs (2)
33var dotnetSuggestFolder = Path.Combine(appData, "dotnet-suggest"); 37var logFile = Path.Combine(dotnetSuggestFolder, "debug.log");
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)
90Directory.CreateDirectory(Path.Combine(this_TestCaseOutputDir, "SvcutilBootstrapper")); 113File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.cs"), Path.Combine(this_TestCaseOutputDir, "FullFramework.cs"), true); 114File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.csproj"), Path.Combine(this_TestCaseOutputDir, "FullFramework.csproj"), true); 117var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 134this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testCaseName); 136this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 137this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{testCaseName}.log"); 138this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testCaseName); 141File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, "Program.cs"), Path.Combine(this_TestCaseOutputDir, "Program.cs"), true); 142File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, $"{testCaseName}.csproj"), Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), true); 143this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), null, CancellationToken.None); 149var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 162this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testClientFolder); 165this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 166this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{this_TestCaseName}.log"); 167this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testClientFolder); 170FileUtil.CopyDirectory(Path.Combine(g_TestCasesDir, this_TestCaseName), this_TestGroupOutputDir, true); 171this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None); 179var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 201var paramsFilePath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.params.json");
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)
121project = new ProjectRepresentation(projectPath: null, entryPointFilePath: Path.GetFullPath(Path.Combine(workingDirectory, options.FilePath))); 169entryPointPath = Path.GetFullPath(Path.Combine(workingDirectory, firstArg)); 190projectPath = Path.GetFullPath(Path.Combine(workingDirectory, projectPath)); 383var 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)
183string fullPath = Path.Combine(baseDir, path); 192fullPath = Path.Combine(includePath, path); 211string fullPath = Path.Combine(baseDir, path);
ilc (2)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
219zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 338reproPackagePath = Path.Combine(reproFileDir, Path.GetFileName(originalPath));
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\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 (4)
Compiler\ReadyToRunCodegenCompilation.cs (1)
464string 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);
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (1)
349candidatePath = Path.Combine(Path.GetDirectoryName(peFilePath), Path.GetFileName(candidatePath));
illink (11)
Infrastructure.Common (1)
CertificateManager.cs (1)
73return Path.Combine(Environment.CurrentDirectory, "wcfLocal.keychain");
Infrastructure.Tests (391)
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}");
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");
NuGetConfigTests.cs (1)
15var 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 (1)
58using var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, CallerWorkflowRelativePath)));
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")); 502=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar))); 506var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName()); 507var nodeModulesRoot = Path.Combine(testRoot, "node_modules"); 509var pointerBinRoot = Path.Combine(pointerPackageRoot, "bin"); 514Path.Combine(pointerBinRoot, "aspire.js")); 517Path.Combine(pointerPackageRoot, "package.json"), 531await File.WriteAllTextAsync(Path.Combine(pointerBinRoot, "aspire-package-map.json"), packageMap.ToJsonString()); 538var ridBinRoot = Path.Combine(ridPackageRoot, "bin"); 542Path.Combine(ridPackageRoot, "package.json"), 550await File.WriteAllTextAsync(Path.Combine(ridBinRoot, "aspire"), "native binary stub"); 551await File.WriteAllTextAsync(Path.Combine(ridBinRoot, "aspire.exe"), "native binary stub"); 571var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName()); 572var stagingRoot = Path.Combine(testRoot, "staging"); 573var outputPath = Path.Combine(testRoot, "output"); 574var nativeBinaryPath = Path.Combine(testRoot, "native-aspire-stub"); 595Path.Combine(stagingRoot, "rid"), 596Path.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\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"); 206var matrixFile = Path.Combine(_workspace.Path, "matrix.json"); 235var nonExistentFile = Path.Combine(_workspace.Path, "nonexistent.json"); 262var 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\TrustedExtensionReleasePrTests.cs (6)
38_githubOutputPath = Path.Combine(_workspace.Path, "github-output.txt"); 39_extensionPath = Path.Combine(_workspace.Path, "extension"); 84File.WriteAllText(Path.Combine(_workspace.Path, "base-only.txt"), "unrelated base change"); 115File.WriteAllText(Path.Combine(_workspace.Path, "unexpected.txt"), "unexpected"); 205private string PackageJsonPath => Path.Combine(_extensionPath, "package.json"); 206private string ChangelogPath => Path.Combine(_extensionPath, "CHANGELOG.md");
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\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)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire"); 239var settingsPath = IOPath.Combine(aspireDir, "settings.json");
TestTriggerMap\GraphAffectedProjectsTests.cs (8)
282var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 284return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath).AffectedProjects; 289var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 291return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath); 296var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 387var newFull = System.IO.Path.Combine(_workspace.Path, newRelativePath.Replace('/', System.IO.Path.DirectorySeparatorChar)); 392return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: baseSha, to: "HEAD", changedFilesPath: null).AffectedProjects; 397var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TestTriggerMap\SelectTestsAcceptanceTests.cs (6)
120var path = Path.Combine(NewMapDir(), "map.yml"); 784var mapPath = Path.Combine(NewMapDir(), "map.yml"); 928var srcDir = Path.Combine(RepoRoot.Path, "src"); 944if (File.Exists(baseline) && Directory.Exists(Path.Combine(polyglotRoot, name))) 970var testsDir = Path.Combine(RepoRoot.Path, "tests"); 980var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
TestTriggerMap\SelectTestsCliTests.cs (33)
94File.WriteAllText(Path.Combine(dir.FullName, "map.yml"), Map); 98var propsPath = Path.Combine(dir.FullName, "BeforeBuildProps.props"); 147var commentPath = Path.Combine(repoRoot, "comment.md"); 199var commentPath = Path.Combine(repoRoot, "comment.md"); 255var commentPath = Path.Combine(repoRoot, "comment.md"); 296var commentPath = Path.Combine(repoRoot, "comment.md"); 327var commentPath = Path.Combine(repoRoot, "comment.md"); 357var jsonPath = Path.Combine(repoRoot, "selection.json"); 401var missing = Path.Combine(repoRoot, "does-not-exist.txt"); 595var missing = Path.Combine(repoRoot, "does-not-exist.txt"); 602var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 640var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 678var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 687var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 710var commentPath = Path.Combine(repoRoot, "comment.md"); 711var jsonPath = Path.Combine(repoRoot, "selection.json"); 724var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 765var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 806var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 844var propsPath = Path.Combine(repoRoot, "BeforeBuildProps.props"); 860var changed = Path.Combine(repoRoot, "changed.txt"); 965File.WriteAllText(Path.Combine(repoRoot, "skip-patterns.txt"), "# docs\n**.md\n"); 971var summary = File.ReadAllText(Path.Combine(repoRoot, "summary")); 979File.WriteAllText(Path.Combine(repoRoot, "skip-patterns.txt"), ".github/workflows/**\n"); 1001MapPath: Path.Combine(repoRoot, "map.yml"), 1002SlnxPath: slnxPath ?? Path.Combine(repoRoot, "Aspire.slnx"), 1014var changed = Path.Combine(repoRoot, "changed.txt"); 1030File.WriteAllText(Path.Combine(dir.FullName, "Aspire.slnx"), slnx); 1031File.WriteAllText(Path.Combine(dir.FullName, "map.yml"), map); 1034body(dir.FullName, Path.Combine(dir.FullName, "BeforeBuildProps.props"), output)); 1068var outputPath = Path.Combine(dir, "output"); 1070Environment.SetEnvironmentVariable("GITHUB_STEP_SUMMARY", Path.Combine(dir, "summary")); 1113var fullPath = Path.Combine(repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar));
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (21)
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"), 91var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 96MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 97SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 127var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 131var commentPath = System.IO.Path.Combine(fixture.Path, "comment.md"); 132var jsonPath = System.IO.Path.Combine(fixture.Path, "selection.json"); 141MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 142SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 154var summary = File.ReadAllText(System.IO.Path.Combine(fixture.Path, "summary")); 190var propsPath = System.IO.Path.Combine(fixture.Path, "BeforeBuildProps.props"); 194var commentPath = System.IO.Path.Combine(fixture.Path, "comment.md"); 195var jsonPath = System.IO.Path.Combine(fixture.Path, "selection.json"); 204MapPath: System.IO.Path.Combine(fixture.Path, "map.yml"), 205SlnxPath: System.IO.Path.Combine(fixture.Path, "Aspire.slnx"), 320var changed = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 351var outputPath = System.IO.Path.Combine(_workspace.Path, "output"); 353Environment.SetEnvironmentVariable("GITHUB_STEP_SUMMARY", System.IO.Path.Combine(_workspace.Path, "summary")); 384var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TestTriggerMap\TestTriggerMapTests.cs (6)
142var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx")); 164var testsRoot = Path.Combine(RepoRoot.Path, "tests"); 170.Where(rel => File.Exists(Path.Combine(RepoRoot.Path, rel))) 270var testsYml = File.ReadAllText(Path.Combine(workflowsDir, "tests.yml")); 272bool WorkflowExists(string file) => File.Exists(Path.Combine(workflowsDir, file)); 427Assert.True(File.Exists(Path.Combine(RepoRoot.Path, s_map.Prefilter.PatternsFile!)),
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\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\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\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\TrackingIssueTests.cs (1)
286var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
101using (var depsFileStream = File.Create(Path.Combine(SharedFrameworkDirectory, $"{sharedFxName}.deps.json")))
Microsoft.Agents.AI.ProjectTemplates.Tests (12)
Project.cs (1)
28StartupProjectFullPath = Path.Combine(rootPath, field);
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);
TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
WellKnownPaths.cs (2)
35TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxSource, "nuget.config"); 46var gitPath = Path.Combine(directory, ".git");
Microsoft.Analyzers.Extra.Tests (3)
FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
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)
FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
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\0\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 (83)
BackEnd\BuildManager\BuildManager.cs (1)
1637submission.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\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)
255msbuildLocation = Path.Combine(msbuildExeName, ".exe"); 568string dllPath = Path.Combine(Path.GetDirectoryName(msbuildLocation), Constants.MSBuildAssemblyName);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (8)
488? Path.Combine(GetOrInitializeX64Clr2Path(toolName, basePath64), toolName) 489: Path.Combine(GetOrInitializeX32Clr2Path(toolName, basePath), toolName); 494return Path.Combine(s_pathToX64Clr4 ??= basePath64, toolName); 499return Path.Combine(s_pathToArm64Clr4 ??= basePathArm64, toolName); 502return Path.Combine(s_pathToX32Clr4 ??= basePath, toolName); 614string fullPath = Path.Combine(envPath, toolName); 855string appHostPath = Path.Combine(msbuildAssemblyPath, Constants.MSBuildExecutableName); 858: (Path.Combine(msbuildAssemblyPath, Constants.MSBuildAssemblyName), false);
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)
352projectFiles[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)
1065string 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)
92CheckWrite(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)
1266string projectFullPath = Path.Combine(projectDirectory, projectFile); 1933ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project), 1946ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project), 1983string dotnetExe = Path.Combine(FileUtilities.GetFolderAbove(sdkResult.Path, 5), Constants.DotnetProcessName); 2199importFileUnescaped = Path.Combine(directoryOfImportingFile, importFileUnescaped);
Evaluation\Expander.ItemExpander.Transforms.cs (4)
185rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 223string combinedPath = Path.Combine(unescapedPath, relativePath); 275rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 360rootedPath = 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)
1122: FileUtilities.GetFullPathNoThrow(Path.Combine(projectDirectory, itemSpec));
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
70_archiveFilePath = Path.Combine(
Logging\TerminalLogger\TerminalLogger.cs (1)
974projectDisplayPathSpan = Path.Combine(relativePathFromWorkingDirToSourceRoot.ToString(), outputPathSpan.Slice(sourceRootSpan.Length).ToString()).AsSpan();
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()}");
src\msbuild\src\Shared\TypeLoader.cs (1)
78microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
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 (60)
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)); 452string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 696return NormalizePath(Path.Combine(directory, file)); 853return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 953string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 1031var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1472return paths.Aggregate(root, Path.Combine); 1645string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
ItemSpecModifiers.cs (2)
86Directory = Path.Combine(rootDir, directory); 661_ = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
Loader\MSBuildLoadContext.cs (1)
108var assemblyNameInExecutableDirectory = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
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 (13)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (5)
74internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 85_useAppHost = useAppHost = File.Exists(Path.Combine(GetToolDirectory(), AppHostToolName)); 173return Path.Combine(ToolPath ?? "", ToolExe); 262return Path.Combine(buildTaskDirectory, "bincore"); 303return Path.Combine(sdkDirectory, "Roslyn");
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
126combined = Path.Combine(path1, path2);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
452var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 784var result = Path.Combine(tempPath, ".roslyn"); 792FilePath = Path.Combine(mutexDirectory, name); 793GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
101var filePath = Path.Combine(item, fileName);
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"); 476s_logFileWriter = new StreamWriter(Path.Combine(logPath, "Microsoft.Build.Tasks.log"), false); 507string path = Path.Combine(logPath, filename); 537string 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)
1835var 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.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)
558var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 666var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (3)
171return Path.Combine(GetTempSubdirectory(dotNetSubdirectory), name); 247var fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(includeOrExcludeDirective.Info.SourceFile.Path)!, expandedPath)); 398var 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)
test\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)
44var globalJsonPath = Path.Combine(RepositoryRoot, "global.json");
src\ExtractNgenMethodList.cs (1)
83var outputFilePath = Path.Combine(OutputDirectory, outputFileName);
src\InstallDotNetCore.cs (1)
284dotnetRoot = Path.Combine(dotnetRoot, architecture.ToLowerInvariant());
src\LocateDotNet.cs (3)
45var globalJsonPath = Path.Combine(RepositoryRoot, "global.json"); 71var dotNetDir = paths.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(p => File.Exists(Path.Combine(p, fileName))); 79DotNetPath = Path.GetFullPath(Path.Combine(dotNetDir, fileName));
Microsoft.DotNet.Build.Tasks.Installers (30)
src\CreateLightCommandPackageDrop.cs (2)
33string packageDropOutputFolder = Path.Combine(LightCommandWorkingDir, Path.GetFileName(InstallerFile)); 55var destinationPath = Path.Combine(packageDropOutputFolder, Path.GetFileName(WixProjectFile));
src\CreateWixBuildWixpack.cs (20)
114string destPath = Path.Combine(WixpackWorkingDir, Path.GetFileName(projectPath)); 147OutputFile = Path.Combine(OutputFolder, $"{_installerFilename}{_packageExtension}"); 182CopyDirectoryRecursive(fullSourceDir, Path.Combine(WixpackWorkingDir, randomDirName)); 201var tempFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 280_defineConstantsDictionary["TargetPath"] = Path.Combine("%outputfolder%", Path.GetFileName(targetPath)); 284InstallerFile = Path.Combine("%outputfolder%", Path.GetFileName(InstallerFile)); 292PdbFile.ItemSpec = Path.Combine("%outputfolder%", Path.GetFileName(PdbFile.ItemSpec)); 298BindTrackingFile.ItemSpec = Path.Combine("%outputfolder%", Path.GetFileName(BindTrackingFile.ItemSpec)); 432File.WriteAllText(Path.Combine(WixpackWorkingDir, "create.rsp"), string.Join(System.Environment.NewLine, commandLineArgs)); 446File.WriteAllText(Path.Combine(WixpackWorkingDir, "create.cmd"), createCmdFileContents.ToString()); 518var copiedXmlPath = Path.Combine(WixpackWorkingDir, Path.GetFileName(xmlPath)); 597var filePath = Path.Combine(dir, Path.GetFileName(source)); 1016var destDir = Path.Combine(WixpackWorkingDir, fileId); 1023var destPath = Path.Combine(destDir, Path.GetFileName(source)); 1042Extensions[i] = new TaskItem(Path.Combine(filename, filename)); 1085LocalizationFiles[i] = new TaskItem(Path.Combine(filename, filename)); 1095Path.Combine(_wixprojDir, source) : 1096Path.Combine(relativeRoot, source); 1108File.Copy(file, Path.Combine(destDir, Path.GetFileName(file)), overwrite: true); 1113CopyDirectoryRecursive(dir, Path.Combine(destDir, Path.GetFileName(dir)));
src\CreateWixCommandPackageDropBase.cs (8)
67OutputFile = Path.Combine(OutputFolder, $"{Path.GetFileName(InstallerFile)}{_packageExtension}"); 81string commandFilename = Path.Combine(packageDropOutputFolder, $"create.cmd"); 144string newWixSrcFilePath = Path.Combine(packageDropOutputFolder, Path.GetFileName(wixSrcFile.ItemSpec)); 176var destinationPath = Path.Combine(packageDropOutputFolder, Path.GetFileName(locItem.ItemSpec)); 292var possiblePath = Path.Combine(additionalBasePath.ItemSpec, oldPath); 310newRelativePath = Path.Combine(id, Path.GetFileName(oldPath)); 325string newFolder = Path.Combine(outputPath, id); 331File.Copy(oldPath, Path.Combine(outputPath, newRelativePath), true);
Microsoft.DotNet.Build.Tasks.Packaging (4)
HarvestPackage.cs (1)
252version = VersionUtility.GetAssemblyVersion(Path.Combine(packagePath, refAssm))?.ToString() ?? version;
NuGetPack.cs (2)
262return Path.Combine(nupkgOutputDirectory, $"{id}.{version}{nupkgExtension}"); 393string 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)
81string vsixFilePath = Path.Combine(InsertionDirectory, product.Name); 123WriteEntries(ibcEntries, Path.Combine(configurationsDir, fullyQualifiedName)); 133WriteEntries(filteredIbcEntries, Path.Combine(configurationsDir, fullyQualifiedName)); 147string basePath = Path.Combine(outDir, entry.RelativeDirectoryPath.Replace("\\", "") + Path.GetFileNameWithoutExtension(entry.RelativeInstallationPath));
OptProf\GenerateTrainingPropsFile.cs (1)
52var outputFilePath = 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)
51protected 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)
31string queryFile = Path.Combine(queryDir, "codemodel-v2");
src\GetCMakeArtifactsFromFileApi.cs (4)
82string codeModelFile = Path.Combine(replyDir, index.Reply.ClientReply.CodemodelV2.JsonFile); 132dirSource = Path.Combine(sourceRoot, dirSource); 165string targetFile = Path.Combine(replyDir, target.JsonFile); 184string 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 (9)
Build\EvaluationResult.cs (2)
182StaticWebAssetsManifest.TryParseFile(Path.Combine(outputDir, StaticWebAsset.ManifestFileName), logger) is { } manifest) 215var 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)
92? $"{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)
721var outputDir = Path.Combine(Path.GetDirectoryName(projectPath)!, relativeOutputDir); 728var targetPath = Path.Combine(outputDir, item.GetMetadata(MetadataNames.TargetPath));
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAsset.cs (1)
65var 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(Path.GetTempPath(), Path.GetRandomFileName()); 183string tempDir = Path.Combine(Path.GetTempPath(), 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 (6)
src\NuGetVersionUpdater.cs (3)
66tempDirectoryOpt = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 116tempPathOpt = Path.Combine(tempDirectoryOpt, Guid.NewGuid().ToString()); 370string finalPath = Path.Combine(outDirectory, package.Id + "." + package.NewVersion + ".nupkg");
src\ReplacePackageParts.cs (2)
110string tempPackagePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 224NewPackage = Path.Combine(DestinationFolder, packageId + "." + packageVersion + ".nupkg");
src\UpdatePackageVersionTask.cs (1)
78File.WriteAllLines(Path.Combine(OutputDirectory, "PreReleaseDependencies.txt"), preReleaseDependencies.Distinct());
Microsoft.DotNet.ProjectTools (6)
LaunchSettings\ExecutableLaunchProfileParser.cs (1)
56workingDirectory = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(launchSettingsPath)!, expandedValue));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
558var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 666var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\VirtualProjectBuilder.cs (3)
171return Path.Combine(GetTempSubdirectory(dotNetSubdirectory), name); 253var fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(includeOrExcludeDirective.Info.SourceFile.Path)!, expandedPath)); 404var 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)
119string path = Path.Combine(f.TargetPath, f.Filename).Replace('\\', '/');
src\GenerateSharedFrameworkDepsFile.cs (2)
68resourceAssemblies.Add(new ResourceAssembly(Path.Combine(cultureMaybe, fileName), cultureMaybe)); 115var depsFilePath = Path.Combine(IntermediateOutputPath, depsFileName);
Microsoft.DotNet.SourceBuild.Tasks (3)
src\UsageReport\WritePackageUsageData.cs (2)
163using (var stream = File.OpenRead(Path.Combine(RootDir, relativePath))) 184using (var file = File.OpenRead(Path.Combine(RootDir, assetFile)))
src\UsageReport\WriteUsageReports.cs (1)
162Path.Combine(OutputDirectory, "annotated-usage.xml"),
Microsoft.DotNet.TemplateLocator (18)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (14)
92string? userManifestsRoot = userProfileDir is null ? null : Path.Combine(userProfileDir, "sdk-manifests"); 93string dotnetManifestRoot = Path.Combine(_sdkRootPath, "sdk-manifests"); 205_installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json"); 302var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json"); 344var workloadManifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json"); 372var manifestVersionBandDirectory = Path.Combine(_manifestRoots[0], versionBandString); 387var manifestVersionBandDirectory = Path.Combine(manifestRoot, versionBandString); 488.Where(dir => File.Exists(Path.Combine(dir, "WorkloadManifest.json"))) 500else if (File.Exists(Path.Combine(manifestDirectory, "WorkloadManifest.json"))) 502var manifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json"); 559if (File.Exists(Path.Combine(specifiedManifestDirectory, "WorkloadManifest.json"))) 607var featureBandDirectory = Path.Combine(manifestRoot, workloadSetFeatureBand.Value.ToString()); 634var workloadSetsRoot = Path.Combine(featureBandDirectory, WorkloadSetsFolderName); 668string globalJsonPath = Path.Combine(directory, "global.json");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
23string? workloadManifestPath = Path.Combine(workloadManifestDirectory, "WorkloadManifest.json");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (2)
26var catalog = Path.Combine(localizationDir, $"WorkloadManifest.{culture.Name}.json"); 65string localizationDir = Path.Combine(manifestDir, "localize");
src\sdk\src\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.GetDirectoryName(path), 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)
69relativePath = Path.Combine(language, relativePath); 79link = Path.Combine(linkDirectory, relativePath); 112dependentUpon = Path.GetFullPath(Path.Combine(sourceDirectory, dependentUpon));
Tasks\GatherXlf.cs (1)
71Path.Combine(TranslatedOutputDirectory, $"{translatedFileName}.{language}{extension}");
Tasks\TransformTemplates.cs (8)
76? Path.Combine(TranslatedOutputDirectory, $"{templateName}.default.1033") 77: Path.Combine(TranslatedOutputDirectory, $"{templateName}.{language}"); 79string cultureSpecificTemplateFile = Path.Combine(localizedTemplateDirectory, Path.GetFileName(template.ItemSpec)); 85string projectFileFullPath = Path.Combine(templateDirectory, projectNode.Attribute("File").Value); 86File.Copy(projectFileFullPath, Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value)), overwrite: true); 92string templateItemFullPath = Path.Combine(templateDirectory, templateItem.Value); 93string templateItemDestinationPath = Path.Combine(localizedTemplateDirectory, templateItem.Value); 114File.Copy(Path.Combine(TranslatedOutputDirectory, localizedFileName), templateItemDestinationPath, 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)
110string root = Path.Combine(Path.GetTempPath(), "testroot"); 121string root = Path.Combine(Path.GetTempPath(), "testroot"); 132string root = Path.Combine(Path.GetTempPath(), "testroot") + Path.DirectorySeparatorChar; 133string child = Path.Combine(root, "file.txt"); 147string root = Path.Combine(Path.GetTempPath(), "testroot"); 167string root = Path.Combine(Path.GetTempPath(), "testroot"); 178string root = Path.Combine(Path.GetTempPath(), "testroot"); 188string root = Path.Combine(Path.GetTempPath(), "testroot"); 335string longRoot = Path.Combine(Path.GetTempPath(), "LongDirectoryName_ForTesting"); 346string longChild = Path.Combine(longRoot, "file.txt"); 383string longRoot = Path.Combine(Path.GetTempPath(), "LongDirectoryName_ForTesting"); 395string child = Path.Combine(shortRoot, "file.txt"); 396File.WriteAllText(Path.Combine(longRoot, "file.txt"), string.Empty); 429string 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)
Project.cs (1)
28StartupProjectFullPath = Path.Combine(rootPath, field);
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);
TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
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.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)
231var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 355string oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1)); 973while (Path.Combine(watchDir, _expectedName) is var childPath && Directory.Exists(childPath)) 1009string nextDir = Path.Combine(watchDir, _expectedName);
PollingWildCardChangeToken.cs (1)
171string 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)
GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
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);
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")));
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)
GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
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)
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"));
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)
ComplianceReportsGenerator.cs (1)
112File.WriteAllText(Path.Combine(_directory, _fileName), report, Encoding.UTF8);
GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
MetadataReportsGenerator.cs (1)
110File.WriteAllText(Path.Combine(path, _fileName), reportStringBuilder.ToString(), Encoding.UTF8);
MetricsReportsGenerator.cs (1)
86File.WriteAllText(Path.Combine(path, _fileName), report, Encoding.UTF8);
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)));
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)
GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.Metrics.Unit.Tests (2)
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)
GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
MetricsReportsGenerator.cs (1)
86File.WriteAllText(Path.Combine(path, _fileName), report, Encoding.UTF8);
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)));
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 (4)
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());
DataLoadSave\LegacyCompositeDataLoader.cs (1)
554using (var loaderCtx = new ModelSaveContext(ctx.Repository, Path.Combine(ctx.Directory ?? "", "Loader"), ModelLoadContext.ModelStreamName))
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)
docs\e4e90a0f3c9b109a\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);
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
45var lookupMap = mlContext.Data.LoadFromTextFile(Path.Combine(
docs\samples\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);
docs\samples\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);
docs\samples\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)
test\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)
src\sdk\src\Tasks\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));
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)
1124yield return Path.Combine(packRoot, "packs"); 1134yield 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)
1872Path.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);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (14)
92string? userManifestsRoot = userProfileDir is null ? null : Path.Combine(userProfileDir, "sdk-manifests"); 93string dotnetManifestRoot = Path.Combine(_sdkRootPath, "sdk-manifests"); 205_installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json"); 302var installStateFilePath = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkVersionBand, _sdkOrUserLocalPath), "default.json"); 344var workloadManifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json"); 372var manifestVersionBandDirectory = Path.Combine(_manifestRoots[0], versionBandString); 387var manifestVersionBandDirectory = Path.Combine(manifestRoot, versionBandString); 488.Where(dir => File.Exists(Path.Combine(dir, "WorkloadManifest.json"))) 500else if (File.Exists(Path.Combine(manifestDirectory, "WorkloadManifest.json"))) 502var manifestPath = Path.Combine(manifestDirectory, "WorkloadManifest.json"); 559if (File.Exists(Path.Combine(specifiedManifestDirectory, "WorkloadManifest.json"))) 607var featureBandDirectory = Path.Combine(manifestRoot, workloadSetFeatureBand.Value.ToString()); 634var workloadSetsRoot = Path.Combine(featureBandDirectory, WorkloadSetsFolderName); 668string globalJsonPath = Path.Combine(directory, "global.json");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
23string? workloadManifestPath = Path.Combine(workloadManifestDirectory, "WorkloadManifest.json");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (2)
26var catalog = Path.Combine(localizationDir, $"WorkloadManifest.{culture.Name}.json"); 65string localizationDir = Path.Combine(manifestDir, "localize");
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
100if (File.Exists(Path.Combine(path, "baseline.workloadset.json")))
src\sdk\src\Tasks\Common\ItemUtilities.cs (1)
148return Path.Combine(destinationSubDirectory, fileName);
Microsoft.NET.HostModel (1)
Bundle\Bundler.cs (1)
315string bundlePath = Path.Combine(_outputDir, _hostName);
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);
src\sdk\src\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)
SdkRazorGenerate.cs (1)
122var outputPath = Path.Combine(ProjectRoot, input.GetMetadata(GeneratedOutput));
src\sdk\src\RazorSdk\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);
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerLogger.cs (1)
48loggingFileName = Path.Combine(loggingFileName, $"razorserver.{GetCurrentProcessId()}.log");
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)
67string sentinelPath = Path.Combine(SdkPaths.SdkDirectory, "DisableWorkloadResolver.sentinel"); 119string sdkPackSdkFolder = Path.Combine(sdkPackInfo.Path, "Sdk"); 120string autoImportPath = Path.Combine(sdkPackSdkFolder, "AutoImport.props"); 137var workloadManifestTargetPath = Path.Combine(manifestDirectory, "WorkloadManifest.targets"); 153return new SinglePathResolutionResult(Path.Combine(packInfo.Path, "Sdk"));
src\sdk\src\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())
src\sdk\src\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 (11)
Alias\AliasRegistry.cs (1)
20_aliasesFilePath = Path.Combine(_environmentSettings.Paths.HostVersionSettingsDir, "aliases.json");
CliTemplateEngineHost.cs (2)
44OutputPath = outputPath != null ? Path.Combine(workingPath, outputPath) : workingPath; 60string checkPath = Path.Combine(workingPath, fileName);
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)
113string targetPath = Path.Combine(targetDir, targetRel); 153string targetPath = Path.Combine(targetDir, targetRel); 262string 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)
147string target = Path.Combine(targetDirectory, source.Target); 159Path.Combine(source.Source, fileChange.SourceRelativePath), 160Path.Combine(source.Target, fileChange.TargetRelativePath), 323string 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)
252var 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)
340: 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.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
73Return NormalizePath(IO.Path.Combine(baseDirectory, relativePath)) 1041CopyOrMoveFile(Operation, SubFilePath, IO.Path.Combine(SourceDirectoryNode.TargetPath, IO.Path.GetFileName(SubFilePath)), 1464Dim FullPath As String = RemoveEndingSeparator(IO.Path.GetFullPath(IO.Path.Combine(Path, NewName))) 2103Dim SubTargetDirPath As String = IO.Path.Combine(m_TargetPath, IO.Path.GetFileName(SubDirPath))
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.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)
1361? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(FileUtilities.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), EnvironmentUtilities.CurrentProcessId))
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()}");
src\msbuild\src\Shared\TypeLoader.cs (1)
78microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
XMake.cs (4)
2731Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}"); 3691string rebasedProjectFile = Path.GetFullPath(Path.Combine(logicalCurrentDirectory, projectFile)); 4174$"logFile={Path.Combine(Directory.GetCurrentDirectory(), logFileName)}"); 4191fileParameters += $"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)
477var assetsFilePath = Path.Combine(packageSpec.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName);
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (1)
351var 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)
1761projectLockFilePath = 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)
273path = 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 (3)
ChangedFileFilter.cs (1)
47var patternsPath = Path.Combine(repoRoot, prefilter.PatternsFile);
GraphAffectedProjects.cs (1)
485NormalizeFullPath(Path.Combine(repoRoot, rel.Replace('/', Path.DirectorySeparatorChar)))))
Program.cs (1)
99?? 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 (4)
System\Diagnostics\ProcessUtils.cs (1)
30string path = Path.Combine(subPath, program);
System\Diagnostics\ProcessUtils.Unix.cs (3)
175string filenameInWorkingDirectory = Path.Combine(workingDirectory, filename); 312path = Path.Combine(Path.GetDirectoryName(path)!, filename); 322path = Path.Combine(Directory.GetCurrentDirectory(), 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)
371pathAndFilename = 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); 824string runtimeTempDirectory = Path.Combine( 830string 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)
415string sessionDirectory = Path.Combine(lockFileDirectory, Id.GetSessionDirectoryName()); 422string 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);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
27using StreamWriter sw = new StreamWriter($"{Path.Combine(path, classname)}.cs");
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 (8)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
452var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 784var result = Path.Combine(tempPath, ".roslyn"); 792FilePath = Path.Combine(mutexDirectory, name); 793GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
101var filePath = Path.Combine(item, fileName);
src\roslyn\src\Compilers\Shared\Vbc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, VisualBasicCompiler.ResponseFileName);
VBCSCompiler (25)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (16)
152var cachedAssemblyPath = Path.Combine(entryDir, AssemblyFileName); 205return !File.Exists(Path.Combine(entryDir, cachedFileName)); 215copyAndUpdateTimestamp(Path.Combine(entryDir, cachedFileName), targetPath, outputTimestampUtc); 242var dllCacheDir = Path.Combine(_cachePath, dllName); 268var keyPath = Path.Combine(entryPath, dllName + ".key"); 302var dllCacheDir = Path.Combine(_cachePath, dllName); 322stagingDir = Path.Combine(dllCacheDir, hashKey + "." + Guid.NewGuid().ToString("N") + ".tmp"); 325File.Copy(outputFiles.AssemblyPath, Path.Combine(stagingDir, AssemblyFileName), overwrite: false); 327tryCopyOptional(outputFiles.PdbPath, Path.Combine(stagingDir, PdbFileName)); 328tryCopyOptional(outputFiles.RefAssemblyPath, Path.Combine(stagingDir, RefAssemblyFileName)); 329tryCopyOptional(outputFiles.XmlDocPath, Path.Combine(stagingDir, XmlDocFileName)); 331File.WriteAllText(Path.Combine(stagingDir, dllName + ".key"), deterministicKey, Encoding.UTF8); 332File.WriteAllText(Path.Combine(stagingDir, CreatedFileName), DateTimeOffset.UtcNow.ToString("O", CultureInfo.InvariantCulture)); 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\Server\VBCSCompiler\VisualBasicCompilerServer.cs (1)
24: this(metadataProvider, Path.Combine(buildPaths.ClientDirectory, ResponseFileName), args, buildPaths, libDirectory, analyzerLoader, driverCache, logger)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
452var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 784var result = Path.Combine(tempPath, ".roslyn"); 792FilePath = Path.Combine(mutexDirectory, name); 793GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
101var filePath = Path.Combine(item, fileName);
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)
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);
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (2)
55filePattern = Path.Combine(_fileHelper.GetCurrentDirectory(), filePattern); 87matchingFiles.Add(Path.Combine(splitPattern.Item1, match.Path));
src\vstest\src\vstest.console\Processors\AeDebuggerArgumentProcessor.cs (1)
145procDumpPath = Path.Combine(procDumpToolDirectoryPath.FullName, ProcDumpExecutableHelper.ProcDumpFileName(_environment.Architecture));
src\vstest\src\vstest.console\Processors\CollectArgumentProcessor.cs (1)
128string collectorPath = Path.Combine(adapterPath, CoverletConstants.CoverletDataCollectorCodebase);
src\vstest\src\vstest.console\Publisher\TextFileTelemetryPublisher.cs (1)
63string path = Path.Combine(resultDirectory, resultFileName);
Yarp.AppHost (1)
AppHost.cs (1)
21.WithStaticFiles(Path.Combine("..", "static-content"))