3831 references to Combine
aspire (166)
Agents\ClaudeCode\ClaudeCodeAgentEnvironmentScanner.cs (4)
21private static readonly string s_skillBaseDirectory = Path.Combine(".claude", "skills"); 141var claudeCodePath = Path.Combine(currentDirectory.FullName, ClaudeCodeFolderName); 167var configFilePath = Path.Combine(repoRoot.FullName, McpConfigFileName); 215var configFilePath = Path.Combine(repoRoot.FullName, McpConfigFileName);
Agents\CommonAgentApplicators.cs (1)
38var skillFilePath = Path.Combine(workspaceRoot.FullName, skillRelativePath);
Agents\CopilotCli\CopilotCliAgentEnvironmentScanner.cs (3)
21private static readonly string s_skillBaseDirectory = Path.Combine(".github", "skills"); 131return Path.Combine(homeDirectory.FullName, CopilotFolderName); 140return 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\OpenCode\OpenCodeAgentEnvironmentScanner.cs (3)
20private static readonly string s_skillBaseDirectory = Path.Combine(".opencode", "skill"); 51var configFilePath = Path.Combine(configDirectory.FullName, OpenCodeConfigFileName); 199var configFilePath = Path.Combine(configDirectory.FullName, OpenCodeConfigFileName);
Agents\Playwright\PlaywrightCliInstaller.cs (4)
58internal static readonly string s_primarySkillBaseDirectory = Path.Combine(".claude", "skills"); 181var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-playwright-{Guid.NewGuid():N}"); 296var targetFile = Path.Combine(targetDir, relativePath); 313var sourceFile = Path.Combine(sourceDir, relativePath);
Agents\VsCode\VsCodeAgentEnvironmentScanner.cs (5)
21private static readonly string s_skillBaseDirectory = Path.Combine(".github", "skills"); 88var targetVsCodeFolder = new DirectoryInfo(Path.Combine(context.RepositoryRoot.FullName, VsCodeFolderName)); 163var vsCodePath = Path.Combine(currentDirectory.FullName, VsCodeFolderName); 201var mcpConfigPath = Path.Combine(vsCodeFolder.FullName, McpConfigFileName); 255var mcpConfigPath = Path.Combine(vsCodeFolder.FullName, McpConfigFileName);
Bundles\BundleService.cs (7)
98var lockPath = Path.Combine(destinationPath, ".aspire-bundle-lock"); 181var fullPath = Path.Combine(layoutPath, dir); 189var markerPath = Path.Combine(layoutPath, VersionMarkerFileName); 210var markerPath = Path.Combine(extractDir, VersionMarkerFileName); 220var markerPath = Path.Combine(extractDir, VersionMarkerFileName); 257var fullPath = Path.GetFullPath(Path.Combine(destinationPath, relativePath)); 294var linkTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(fullPath)!, entry.LinkName));
Caching\DiskCache.cs (2)
24_cacheDirectory = new DirectoryInfo(Path.Combine(executionContext.CacheDirectory.FullName, "nuget-search")); 106var fullPath = Path.Combine(_cacheDirectory.FullName, fileName);
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(s_macOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
Certificates\CertificateGeneration\UnixCertificateManager.cs (7)
113var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 241var certPath = Path.Combine(certDir, nickname) + ".pem"; 360? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 404Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 470var certPath = Path.Combine(certDir, nickname) + ".pem"; 609if (File.Exists(Path.Combine(searchFolder, command))) 1057var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
Certificates\CertificateHelpers.cs (1)
46var openSslCertsDir = Path.Combine(openSslDir, "certs");
Commands\AppHostLauncher.cs (1)
381return Path.Combine(logsDirectory, fileName);
Commands\InitCommand.cs (8)
345var tempProjectDir = Path.Combine(Path.GetTempPath(), $"aspire-init-{Guid.NewGuid()}"); 425var finalAppHostDir = Path.Combine(initContext.SolutionDirectory.FullName, appHostProjectDir.Name); 426var finalServiceDefaultsDir = Path.Combine(initContext.SolutionDirectory.FullName, serviceDefaultsProjectDir.Name); 435var appHostProjectFile = new FileInfo(Path.Combine(finalAppHostDir, $"{appHostProjectDir.Name}.csproj")); 436var serviceDefaultsProjectFile = new FileInfo(Path.Combine(finalServiceDefaultsDir, $"{serviceDefaultsProjectDir.Name}.csproj")); 580var appHostPath = Path.Combine(workingDirectory.FullName, appHostFileName); 852public string ExpectedAppHostDirectory => Path.Combine(SolutionDirectory.FullName, $"{SolutionName}.AppHost"); 857public string ExpectedServiceDefaultsDirectory => Path.Combine(SolutionDirectory.FullName, $"{SolutionName}.ServiceDefaults");
Commands\Sdk\SdkGenerateCommand.cs (1)
177var filePath = Path.GetFullPath(Path.Combine(outputDir.FullName, fileName));
Commands\UpdateCommand.cs (2)
353var targetExePath = Path.Combine(installDir, exeName); 371var newExePath = Path.Combine(tempExtractDir, exeName);
Configuration\AspireConfigFile.cs (5)
118var filePath = Path.Combine(directory, FileName); 145var filePath = Path.Combine(directory, FileName); 174var profiles = ReadApphostRunProfiles(Path.Combine(directory, "apphost.run.json")); 349var absolutePath = Path.GetFullPath(Path.Combine(configDirectory, trimmedValue)); 365return File.Exists(Path.Combine(directory, FileName));
Configuration\AspireJsonConfiguration.cs (3)
135var folderPath = Path.Combine(directory, SettingsFolder); 138var filePath = Path.Combine(folderPath, FileName); 216var absolutePath = Path.GetFullPath(Path.Combine(settingsDirectory, trimmedValue));
Configuration\ConfigurationService.cs (2)
101var newSettingsPath = Path.Combine(searchDirectory.FullName, AspireConfigFile.FileName); 122var defaultPath = Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName);
Diagnostics\FileLoggerProvider.cs (1)
46return Path.Combine(logsDirectory, name);
DotNet\DotNetCliExecutionFactory.cs (1)
106var dotnetExecutablePath = Path.Combine(
DotNet\DotNetCliRunner.cs (3)
95var socketPath = Path.Combine(aspireCliPath, $"cli.sock.{uniqueSocketPathSegment}"); 803: Path.Combine(workingDirectory.FullName, configPath); 1096: Path.Combine(solutionFile.Directory!.FullName, line);
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 (3)
186var managedPath = Path.Combine(layoutPath, BundleDiscovery.ManagedDirectoryName); 187var dcpPath = Path.Combine(layoutPath, BundleDiscovery.DcpDirectoryName); 201var managedExePath = Path.Combine(managedPath, managedExeName);
Mcp\Docs\DocsCache.cs (4)
29_diskCacheDirectory = new DirectoryInfo(Path.Combine(executionContext.CacheDirectory.FullName, DocsCacheSubdirectory)); 192return Path.Combine(_diskCacheDirectory.FullName, $"{safeKey}.txt"); 195private string GetETagFilePath() => Path.Combine(_diskCacheDirectory.FullName, ETagFileName); 318private string GetIndexFilePath() => Path.Combine(_diskCacheDirectory.FullName, IndexFileName);
Mcp\Tools\SelectAppHostTool.cs (1)
66resolvedPath = Path.GetFullPath(Path.Combine(executionContext.WorkingDirectory.FullName, appHostPath));
Npm\NpmRunner.cs (3)
102var tarballPath = Path.Combine(outputDirectory, filename); 130var packageJson = Path.Combine(tempDir, "package.json"); 206var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-npm-{Guid.NewGuid():N}");
NuGet\BundleNuGetService.cs (3)
78var objDir = Path.Combine(restoreDir, "obj"); 79var libsDir = Path.Combine(restoreDir, "libs"); 80var assetsPath = Path.Combine(objDir, "project.assets.json");
Packaging\NuGetConfigMerger.cs (1)
68var targetPath = Path.Combine(targetDirectory.FullName, "nuget.config");
Packaging\PackagingService.cs (1)
46var packagesPath = Path.Combine(prHive.FullName, "packages").Replace('\\', '/');
Packaging\TemporaryNuGetConfig.cs (2)
22var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 24var tempFilePath = Path.Combine(tempDirectory, "nuget.config");
Program.cs (7)
57var aspirePath = Path.Combine(homeDirectory, ".aspire"); 123var logsDirectory = Path.Combine(GetUsersAspirePath(), "logs"); 159var newPath = Path.Combine(usersAspirePath, Configuration.AspireConfigFile.FileName); 164var legacyPath = Path.Combine(usersAspirePath, "globalsettings.json"); 503var hivesDirectory = Path.Combine(homeDirectory, "hives"); 510var sdksPath = Path.Combine(homeDirectory, "sdks"); 526var cacheDirectoryPath = Path.Combine(homeDirectory, "cache");
Projects\AppHostServerProject.cs (1)
59socketPath = Path.Combine(socketDir, socketName);
Projects\DefaultLanguageDiscovery.cs (1)
98var filePath = Path.Combine(directory.FullName, pattern);
Projects\DotNetBasedAppHostServerProject.cs (16)
104public string BuildPath => Path.Combine(_projectModelPath, BuildFolder); 109public string GetProjectFilePath() => Path.Combine(_projectModelPath, ProjectFileName); 113var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName); 125var hashFilePath = Path.Combine(_projectModelPath, ProjectHashFileName); 277var objPath = Path.Combine(_projectModelPath, "obj"); 294File.WriteAllText(Path.Combine(_projectModelPath, "Program.cs"), programCs); 328File.WriteAllText(Path.Combine(_projectModelPath, "appsettings.json"), appSettingsJson); 336var nugetConfigPath = Path.Combine(_projectModelPath, "nuget.config"); 390var repoDirectoryPackagesProps = Path.Combine(_repoRoot, "Directory.Packages.props"); 401File.WriteAllText(Path.Combine(_projectModelPath, "Directory.Packages.props"), directoryPackagesProps); 406File.WriteAllText(Path.Combine(_projectModelPath, "Directory.Build.props"), "<Project />"); 407File.WriteAllText(Path.Combine(_projectModelPath, "Directory.Build.targets"), "<Project />"); 409var projectFileName = Path.Combine(_projectModelPath, ProjectFileName); 425var projectFile = new FileInfo(Path.Combine(_projectModelPath, ProjectFileName)); 473var assemblyPath = Path.Combine(BuildPath, ProjectDllName); 576var globalNuGetPath = Path.Combine(userProfile, ".nuget");
Projects\FallbackProjectParser.cs (1)
268: Path.GetFullPath(Path.Combine(projectFile.DirectoryName!, include));
Projects\GuestAppHostProject.cs (5)
625var apphostRunPath = Path.Combine(directory.FullName, "apphost.run.json"); 931return Path.Combine(aspireCliPath, socketName); 1208var outputPath = Path.Combine(appPath, GeneratedFolderName); 1213var filePath = Path.Combine(outputPath, fileName); 1236var hashPath = Path.Combine(generatedPath, ".codegen-hash");
Projects\PrebuiltAppHostServer.cs (9)
195var restoreDir = Path.Combine(_workingDirectory, "integration-restore"); 198var outputDir = Path.Combine(restoreDir, "libs"); 219var projectFilePath = Path.Combine(restoreDir, "IntegrationRestore.csproj"); 231Path.Combine(restoreDir, "Directory.Packages.props"), directoryPackagesProps, cancellationToken); 235Path.Combine(restoreDir, "Directory.Build.props"), "<Project />", cancellationToken); 237Path.Combine(restoreDir, "Directory.Build.targets"), "<Project />", cancellationToken); 326new XAttribute("File", Path.Combine(outputDir, "_project-ref-assemblies.txt")), 516var filePath = Path.Combine(libsPath, "_project-ref-assemblies.txt"); 573Path.Combine(_workingDirectory, "appsettings.json"),
Projects\ProjectLocator.cs (6)
194: Path.Combine(searchDirectory.FullName, configAppHostPath); 205var configFilePath = Path.Combine(searchDirectory.FullName, AspireConfigFile.FileName); 223var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath); 453var newConfigPath = Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName); 458var aspireConfigFile = new FileInfo(Path.Combine(legacySettingsRootDirectory.FullName, AspireConfigFile.FileName)); 470var configFilePath = Path.Combine(settingsRootDirectory.FullName, AspireConfigFile.FileName);
Projects\ProjectUpdater.cs (2)
150var globalNuGetFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget"); 699var directoryPackagesPropsPath = Path.Combine(current.FullName, "Directory.Packages.props");
Scaffolding\ScaffoldingService.cs (4)
99var filePath = Path.Combine(directory.FullName, fileName); 129var appHostRunPath = Path.Combine(directory.FullName, "apphost.run.json"); 210var outputPath = Path.Combine(directoryPath, GeneratedFolderName); 215var filePath = Path.Combine(outputPath, fileName);
src\Shared\BackchannelConstants.cs (2)
125return Path.Combine(dir, $"{SocketPrefix}.{hash}.{processId}"); 142return Path.Combine(dir, $"{SocketPrefix}.{hash}");
src\Shared\BundleDiscovery.cs (6)
105var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 111dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 112dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 136var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 137var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 235return Path.Combine(dcpDirectory, exeName);
src\Shared\PathLookupHelper.cs (2)
58var fullPathWithExt = Path.Combine(directory, command + extension); 67var fullPath = Path.Combine(directory, command);
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)
189var filePath = Path.Combine(outputPath, relativePath);
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
145var aspireConfigPath = Path.Combine(outputPath, Configuration.AspireConfigFile.FileName);
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
75var appHostProject = _projectFactory.TryGetProject(new FileInfo(Path.Combine(outputPath, "apphost.ts")));
Templating\DotNetTemplateFactory.cs (1)
123if (File.Exists(Path.Combine(directory, dotnetFileName)))
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)
85if (File.Exists(Path.Combine(currentDirectory, AspireSolutionFileName)))
Utils\CliDownloader.cs (2)
62var archivePath = Path.Combine(tempDir, archiveFilename); 63var checksumPath = Path.Combine(tempDir, checksumFilename);
Utils\ConfigurationHelper.cs (1)
34var newSettingsPath = Path.Combine(currentDirectory.FullName, AspireConfigFile.FileName);
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
44var configPath = Path.Combine(workingDirectory.FullName, location.RelativePath);
Utils\FileSystemHelper.cs (2)
42var targetFilePath = Path.Combine(currentDestination, file.Name); 49var targetSubDir = Path.Combine(currentDestination, subDir.Name);
Aspire.Cli.EndToEnd.Tests (65)
AgentCommandTests.cs (3)
100var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json"); 175var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, ".mcp.json"); 216var vscodePath = Path.Combine(workspace.WorkspaceRoot.FullName, ".vscode");
CentralPackageManagementTests.cs (10)
47var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest"); 48var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost"); 49var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj"); 50var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props"); 69File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """ 142var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "CpmTest"); 143var appHostDir = Path.Combine(projectDir, "CpmTest.AppHost"); 144var appHostCsprojPath = Path.Combine(appHostDir, "CpmTest.AppHost.csproj"); 145var directoryPackagesPropsPath = Path.Combine(projectDir, "Directory.Packages.props"); 160File.WriteAllText(Path.Combine(appHostDir, "Program.cs"), """
ConfigMigrationTests.cs (14)
46var aspireHomeDir = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire-home"); 125var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 126var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 191var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 192var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 240var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 243Path.Combine(aspireHomeDir, "globalsettings.json"), 299var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 300var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 369var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 370var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 453var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json"); 454var legacyPath = Path.Combine(aspireHomeDir, "globalsettings.json"); 576var newConfigPath = Path.Combine(aspireHomeDir, "aspire.config.json");
DescribeCommandTests.cs (3)
120var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, "AspireReplicaTestApp"); 121var appHostDir = Path.Combine(projectDir, "AspireReplicaTestApp.AppHost"); 122var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
DockerDeploymentTests.cs (6)
72var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 73var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 74var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 194var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 195var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 196var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
Helpers\CliE2ETestHelpers.cs (1)
285if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
KubernetesPublishTests.cs (3)
144var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, ProjectName); 145var appHostDir = Path.Combine(projectDir, $"{ProjectName}.AppHost"); 146var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
ProjectReferenceTests.cs (10)
50var configPath = Path.Combine(workDir, "aspire.config.json"); 56var integrationDir = Path.Combine(workDir, "MyIntegration"); 59File.WriteAllText(Path.Combine(integrationDir, "MyIntegration.csproj"), $$""" 75var aspireHome = Path.Combine( 77var hivesDir = Path.Combine(aspireHome, "hives"); 84var packagesDir = Path.Combine(hiveDir, "packages"); 100File.WriteAllText(Path.Combine(workDir, "nuget.config"), nugetConfig); 103File.WriteAllText(Path.Combine(integrationDir, "MyIntegrationExtensions.cs"), """ 129var modulesDir = Path.Combine(workDir, ".modules"); 136File.WriteAllText(Path.Combine(workDir, "apphost.ts"), """
PsCommandTests.cs (1)
107var outputFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "ps-output.json");
tests\Aspire.Hosting.Tests\Utils\MSBuildUtils.cs (2)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
tests\Shared\Hex1bTestHelpers.cs (1)
123return Path.Combine(recordingsDir, $"{testName}.cast");
tests\Shared\TemporaryRepo.cs (2)
68var aspireDir = Directory.CreateDirectory(Path.Combine(path, ".aspire")); 69File.WriteAllText(Path.Combine(aspireDir.FullName, "settings.json"), "{}");
TypeScriptCodegenValidationTests.cs (4)
60var modulesDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".modules"); 69var filePath = Path.Combine(modulesDir, file); 83var aspireTs = File.ReadAllText(Path.Combine(modulesDir, "aspire.ts")); 139var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts");
TypeScriptPolyglotTests.cs (1)
69var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts");
TypeScriptPublishTests.cs (1)
61var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts");
TypeScriptStarterTemplateTests.cs (3)
39var projectRoot = Path.Combine(workspace.WorkspaceRoot.FullName, "TsStarterApp"); 40var modulesDir = Path.Combine(projectRoot, ".modules"); 47var aspireModulePath = Path.Combine(modulesDir, "aspire.ts");
Aspire.Cli.Tests (592)
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 (5)
63var skillFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, TestSkillRelativePath); 89var skillFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, TestSkillRelativePath); 116var skillFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, TestSkillRelativePath); 144var skillFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, TestSkillRelativePath); 179var skillFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, TestSkillRelativePath);
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"); 237var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 265var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json"); 290var mcpConfigPath = Path.Combine(copilotFolder.FullName, "mcp-config.json");
Agents\OpenCodeAgentEnvironmentScannerTests.cs (3)
24var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "opencode.jsonc"); 50var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "opencode.jsonc"); 73var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "opencode.jsonc");
Agents\PlaywrightCliInstallerTests.cs (28)
19var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"); 69var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"); 152var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 154var tarballPath = Path.Combine(tempDir, "package.tgz"); 182var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 184var tarballPath = Path.Combine(tempDir, "package.tgz"); 222var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 224var tarballPath = Path.Combine(tempDir, "package.tgz"); 257var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 259var tarballPath = Path.Combine(tempDir, "package.tgz"); 369var tempDir = Path.Combine(Path.GetTempPath(), $"test-playwright-{Guid.NewGuid():N}"); 371var tarballPath = Path.Combine(tempDir, "package.tgz"); 446var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-mirror-test-{Guid.NewGuid():N}"); 454await File.WriteAllTextAsync(Path.Combine(primarySkillDir, "SKILL.md"), "# Playwright CLI Skill"); 455Directory.CreateDirectory(Path.Combine(primarySkillDir, "subdir")); 479context.AddSkillBaseDirectory(Path.Combine(".claude", "skills")); 480context.AddSkillBaseDirectory(Path.Combine(".github", "skills")); 481context.AddSkillBaseDirectory(Path.Combine(".opencode", "skill")); 506var tempDir = Path.Combine(Path.GetTempPath(), $"aspire-sync-test-{Guid.NewGuid():N}"); 507var sourceDir = Path.Combine(tempDir, "source"); 508var targetDir = Path.Combine(tempDir, "target"); 514File.WriteAllText(Path.Combine(sourceDir, "keep.md"), "keep"); 518File.WriteAllText(Path.Combine(targetDir, "keep.md"), "old content"); 519File.WriteAllText(Path.Combine(targetDir, "stale.md"), "should be removed"); 520Directory.CreateDirectory(Path.Combine(targetDir, "stale-dir")); 526Assert.Equal("keep", File.ReadAllText(Path.Combine(targetDir, "keep.md"))); 529Assert.False(File.Exists(Path.Combine(targetDir, "stale.md"))); 530Assert.False(Directory.Exists(Path.Combine(targetDir, "stale-dir")));
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"); 395homeDirectory ??= new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Caching\DiskCacheTests.cs (3)
22var ctx = new CliExecutionContext(workspace.WorkspaceRoot, hives, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 127var oldName = Path.Combine(diskPath, $"{hash}.{oldUnix}.json");
Commands\ConfigCommandTests.cs (4)
597var settingsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 599var settingsPath = Path.Combine(settingsDir, "settings.json"); 630var settingsDir = Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire"); 632var settingsPath = Path.Combine(settingsDir, "settings.json");
Commands\DeployCommandTests.cs (1)
276var testOutputPath = Path.Combine(Path.GetTempPath(), "test");
Commands\DotNetSdkCheckTests.cs (2)
104var filePath = Path.Combine(workspace.WorkspaceRoot.FullName, relativePath.Replace('/', Path.DirectorySeparatorChar)); 145? new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, appHostFileName))
Commands\ExportCommandTests.cs (12)
27var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 117var outputPath = Path.Combine(customDir, "my-export.zip"); 150var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 153var appHostDir = Path.Combine(workspace.WorkspaceRoot.FullName, "MyAppHost"); 155var appHostProjectPath = Path.Combine(appHostDir, "MyAppHost.csproj"); 183var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 303var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 430var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 489var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 544var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 610var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip"); 639var outputPath = Path.Combine(workspace.WorkspaceRoot.FullName, "export.zip");
Commands\ExtensionInternalCommandTests.cs (3)
60var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "MyApp.AppHost.csproj")); 101var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "App1.AppHost.csproj")); 102var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "App2.AppHost.csproj"));
Commands\InitCommandTests.cs (11)
27var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 30var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, projectFileName)); 66var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 84var appHostDir = Path.Combine(outputPath, "Test.AppHost"); 85var serviceDefaultsDir = Path.Combine(outputPath, "Test.ServiceDefaults"); 88File.WriteAllText(Path.Combine(appHostDir, "Test.AppHost.csproj"), "<Project />"); 89File.WriteAllText(Path.Combine(serviceDefaultsDir, "Test.ServiceDefaults.csproj"), "<Project />"); 164var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 219var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 348var appHostFile = Path.Combine(outputPath, "apphost.cs"); 503var appHostFile = Path.Combine(outputPath, "apphost.cs");
Commands\NewCommandTests.cs (9)
896File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, "apphost.ts"), "// test apphost"); 912Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"))); 1018Assert.True(File.Exists(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"))); 1081var runProfilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 1193var expectedPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestApp"); 1255await File.WriteAllTextAsync(Path.Combine(context.TargetDirectory.FullName, "aspire.config.json"), """ 1285var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.config.json"); 1347var modulesDir = Directory.CreateDirectory(Path.Combine(directory.FullName, ".modules")); 1348File.WriteAllText(Path.Combine(modulesDir.FullName, "aspire.ts"), "// generated sdk");
Commands\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 (24)
152var logsDirectory = Path.Combine(Path.GetTempPath(), "aspire-cli-tests"); 477var appHostProjectPath = Path.Combine(appHostDirectory.FullName, "MyApp.AppHost.csproj"); 938var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 948workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 988var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 998workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1034var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1044workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1084var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1094workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1129var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1139workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1175var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1185workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1221var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1231workingDirectory: workspace.WorkspaceRoot, hivesDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("hives"), cacheDirectory: workspace.WorkspaceRoot.CreateSubdirectory(".aspire").CreateSubdirectory("cache"), sdksDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory: new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), logFilePath: "test.log" 1505var logFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test.log");
Commands\SdkDumpCommandTests.cs (2)
204var outputPath = Path.Combine(tempDirectory, "capabilities.txt"); 252if (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")); 45var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.ts"));
Commands\UpdateCommandTests.cs (21)
86var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe"); 87var oldBackup1 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890"); 88var oldBackup2 = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.9876543210"); 89var otherFile = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.something"); 112var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe"); 113var oldBackup = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe.old.1234567890"); 153var targetExePath = Path.Combine(workspace.WorkspaceRoot.FullName, "aspire.exe"); 223return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 296return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 382var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 429var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 470var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 504return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 571return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 637return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 695return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 773return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 818return Task.FromResult<FileInfo?>(new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"))); 930var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 975var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz"); 1008var archivePath = Path.Combine(workspace.WorkspaceRoot.FullName, "test-cli.tar.gz");
Configuration\AspireConfigFileTests.cs (9)
27var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 47var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 70var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 89var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 103var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 116var configPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 139var filePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 157Assert.True(File.Exists(Path.Combine(subDir, AspireConfigFile.FileName))); 173File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName), "{}");
Configuration\ConfigurationHelperTests.cs (2)
16var settingsPath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 20var globalSettingsFile = new FileInfo(Path.Combine(globalDir.FullName, AspireConfigFile.FileName));
Configuration\ConfigurationServiceTests.cs (4)
18var globalSettingsFile = new FileInfo(Path.Combine(globalSettingsDir.FullName, AspireConfigFile.FileName)); 20var settingsFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 26var logsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "logs")); 31new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")),
DotNet\DotNetCliRunnerTests.cs (36)
25return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 32var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 72var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 101var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 129var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 168var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 197var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 226var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 264var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 305var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 383var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 423var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 465var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 512var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 560var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 613var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 680var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 746var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 819var solutionFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Test.sln")); 824var project1File = new FileInfo(Path.Combine(project1Dir.FullName, "Project1.csproj")); 828var project2File = new FileInfo(Path.Combine(project2Dir.FullName, "Project2.csproj")); 866var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 869var referencedProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Service.csproj")); 899var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 945var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 990var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1035var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1086var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1135var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1183var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 1219var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1398var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1436var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1474var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1514var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Interaction\ConsoleInteractionServiceTests.cs (60)
27var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 40var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 61var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 86var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 111var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 142var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 169var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 194var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 221var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 240var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 254var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 269var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 284var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 306var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 339var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 372var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 399var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 426var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 456var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 485var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 512var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 539var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 565var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 592var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 620var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 647var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 675var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 702var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 731var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log", debugMode: true); 760var executionContext = new CliExecutionContext(new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo("."), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Mcp\E2E\McpDocsE2ETests.cs (1)
289while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
Mcp\ListAppHostsToolTests.cs (4)
47var appHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost"); 111var inScopeAppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "InScopeAppHost"); 171return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Mcp\MockPackagingService.cs (4)
56new DirectoryInfo(Path.Combine(Path.GetTempPath(), "hives")), 57new DirectoryInfo(Path.Combine(Path.GetTempPath(), "cache")), 58new DirectoryInfo(Path.Combine(Path.GetTempPath(), "sdks")), 59new DirectoryInfo(Path.Combine(Path.GetTempPath(), "logs")),
NuGet\NuGetPackagePrefetcherTests.cs (3)
16var hivesDir = new DirectoryInfo(Path.Combine(Environment.CurrentDirectory, "hives")); 18var executionContext = new CliExecutionContext(workingDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Packaging\NuGetConfigMergerSnapshotTests.cs (21)
47var path = Path.Combine(dir.FullName, "nuget.config"); 66var executionContext = new CliExecutionContext(root, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 87var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 94var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 116var executionContext = new CliExecutionContext(root, hivesDir, cacheDir2, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 150var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 157var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 179var executionContext = new CliExecutionContext(root, hivesDir, cacheDir3, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 212var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 219var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 241var executionContext = new CliExecutionContext(root, hivesDir, cacheDir4, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 272var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 279var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/'); 301var executionContext = new CliExecutionContext(root, hivesDir, cacheDir5, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 337var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 344var hivePath = Path.Combine(hivesDir.FullName, channelName).Replace('\\', '/');
Packaging\NuGetConfigMergerTests.cs (16)
24var path = Path.Combine(dir.FullName, "nuget.config"); 66var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 90var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 134var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 173var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 213var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 323var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 373var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 442var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 508var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 581var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 611var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 661var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 683var originalContent = await File.ReadAllTextAsync(Path.Combine(root.FullName, "nuget.config")).DefaultTimeout(); 704var targetConfigPath = Path.Combine(root.FullName, "nuget.config"); 726var targetConfigPath = Path.Combine(root.FullName, "nuget.config");
Packaging\PackagingServiceTests.cs (49)
48var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 83var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 127var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 160var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 193var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 225var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 256var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 287var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 318var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 358new CliExecutionContext(tempDir, tempDir, tempDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"), 370var nugetConfigPath = Path.Combine(tempDir.FullName, "nuget.config"); 399Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-10167")); 400Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-11832")); 402var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 456Directory.CreateDirectory(Path.Combine(hivesDir.FullName, "pr-12345")); 458var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 494var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 530var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 566var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 616new CliExecutionContext(tempDir, tempDir, tempDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"), 628var nugetConfigPath = Path.Combine(tempDir.FullName, "nuget.config"); 647var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 680var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 711var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 756var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 809var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 861var executionContext = new CliExecutionContext(tempDir, hivesDir, cacheDir, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
Projects\AppHostServerProjectTests.cs (7)
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"); 230var settingsJson = Path.Combine(aspireDir.FullName, "settings.json"); 261var projectModelPath = Path.Combine(appPath, ".aspire_server"); 292var projectFilePath = Path.Combine(project.ProjectModelPath, DotNetBasedAppHostServerProject.ProjectFileName);
Projects\DefaultLanguageDiscoveryTests.cs (4)
109var file = new FileInfo(Path.Combine(Path.GetTempPath(), fileName)); 124var file = new FileInfo(Path.Combine(Path.GetTempPath(), fileName)); 135var file = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.go")); 148var file = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.go"));
Projects\FallbackProjectParserTests.cs (14)
25var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 47var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 72var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 97var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 122var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 148var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 187var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.csproj"); 209var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 233var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 263var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 286var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 310var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 333var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.cs"); 355var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.txt");
Projects\GuestAppHostProjectTests.cs (5)
42var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 62var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 248var settingsPath = Path.Combine(settingsDir.FullName, "settings.json"); 308var launchSettingsPath = Path.Combine(propertiesDir.FullName, "launchSettings.json"); 354var logFilePath = Path.Combine(Path.GetTempPath(), $"test-guest-{Guid.NewGuid()}.log");
Projects\GuestRuntimeTests.cs (2)
344var appHostFile = new FileInfo(Path.Combine(Path.GetTempPath(), "apphost.ts")); 367var logFilePath = Path.Combine(Path.GetTempPath(), $"guest-output-test-{Guid.NewGuid()}.log");
Projects\ProjectLocatorTests.cs (54)
29return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 37var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 55var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 59var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 63var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 89var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 93var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 97var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 120var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 125var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 161var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 165var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 191var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 194var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 209var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 212var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj")); 255var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, $"AppHost{projectFileExtension}")); 270var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 287var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj")); 307var settingsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName)); 326var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "MyAppHost.csproj")); 331var decoyAppHostProjectFile = new FileInfo(Path.Combine(decoyAppHostDirectory.FullName, "DecoyAppHost.csproj")); 338var aspireSettingsDir = new DirectoryInfo(Path.Combine(workspace.WorkspaceRoot.FullName, ".aspire")); 339var aspireSettingsFile = new FileInfo(Path.Combine(aspireSettingsDir.FullName, "settings.json")); 361var aspireConfigFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, AspireConfigFile.FileName); 375var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 400var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 426var appHostFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "apphost.cs")); 436var csprojFile = new FileInfo(Path.Combine(dirWithBoth.FullName, "RegularProject.csproj")); 441var validAppHostFile = new FileInfo(Path.Combine(dirWithOnlyAppHost.FullName, "apphost.cs")); 481var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 501var csprojFile = new FileInfo(Path.Combine(subDir1.FullName, "AppHost.csproj")); 506var appHostFile = new FileInfo(Path.Combine(subDir2.FullName, "apphost.cs")); 542var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 566var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 587var appHostFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs")); 598var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "SomeProject.csproj")); 613var txtFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "readme.txt")); 633var csprojFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 638var appHostFile = new FileInfo(Path.Combine(subDir.FullName, "apphost.cs")); 706: Path.Combine(executionContext.WorkingDirectory.FullName, AspireConfigFile.FileName); 743var projectFile = new FileInfo(Path.Combine(projectDirectory.FullName, "MyAppHost.csproj")); 797var projectFile1 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project1.csproj")); 799var projectFile2 = new FileInfo(Path.Combine(projectDirectory.FullName, "Project2.csproj")); 834var appHostFile = new FileInfo(Path.Combine(projectDirectory.FullName, "apphost.cs")); 862var projectFile = new FileInfo(Path.Combine(subDirectory.FullName, "Mongo.AppHost.csproj")); 901var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 906var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "AppHost.cs")); 944var csprojFile = new FileInfo(Path.Combine(appHostDir.FullName, "MyApp.AppHost.csproj")); 948var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 986var appHostCsFile = new FileInfo(Path.Combine(appHostDir.FullName, "apphost.cs")); 1009var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 1030var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
Projects\ProjectUpdaterTests.cs (51)
30var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 33var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 36var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 140var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 143var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 146var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 271var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 274var webAppProjectFile = new FileInfo(Path.Combine(webAppFolder.FullName, "UpdateTester.WebApp.csproj")); 277var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 421var sharedProjectFile = new FileInfo(Path.Combine(sharedProjectFolder.FullName, "SharedProject.csproj")); 424var projectAFile = new FileInfo(Path.Combine(projectAFolder.FullName, "ProjectA.csproj")); 427var projectBFile = new FileInfo(Path.Combine(projectBFolder.FullName, "ProjectB.csproj")); 430var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "DiamondTest.AppHost.csproj")); 554var serviceDefaultsProjectFile = new FileInfo(Path.Combine(serviceDefaultsFolder.FullName, "UpdateTester.ServiceDefaults.csproj")); 557var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 559var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 690var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 692var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 792var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 794var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 896return new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log"); 925var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 927var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1038var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1040var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1162var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1164var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1276var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1278var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1387var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1481var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1483var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 1583var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1662var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1744var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 1827var appHostFile = new FileInfo(Path.Combine(appHostFolder.FullName, "apphost.cs")); 1909var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 1995var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2073var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2151var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2258var appHostProjectFile = new FileInfo(Path.Combine(appHostFolder.FullName, "UpdateTester.AppHost.csproj")); 2260var directoryPackagesPropsFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props")); 2382var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2410var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2437var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2469var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2500var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2528var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2559var projectFile = Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"); 2577var directoryPackagesPropsFile = Path.Combine(workspace.WorkspaceRoot.FullName, "Directory.Packages.props");
Secrets\SecretsStoreTests.cs (2)
14_tempDir = Path.Combine(Path.GetTempPath(), $"aspire-test-{Guid.NewGuid():N}"); 26private string GetSecretsPath() => Path.Combine(_tempDir, "secrets.json");
Templating\DotNetTemplateFactoryTests.cs (19)
59var path = Path.Combine(dir.FullName, "nuget.config"); 84var nugetConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 116var nugetConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 129var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 154var parentConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 160var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 173var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 196var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 210var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 223var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 227var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 240var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 249var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 250var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 261var outputDir = Directory.CreateDirectory(Path.Combine(workingDir.FullName, "MyProject")); 270var workingConfigPath = Path.Combine(workingDir.FullName, "nuget.config"); 271var outputConfigPath = Path.Combine(outputDir.FullName, "nuget.config"); 373var executionContext = new CliExecutionContext(workingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-runtimes")), new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-logs")), "test.log");
tests\Shared\TemporaryRepo.cs (2)
68var aspireDir = Directory.CreateDirectory(Path.Combine(path, ".aspire")); 69File.WriteAllText(Path.Combine(aspireDir.FullName, "settings.json"), "{}");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
TestServices\TestCliDownloader.cs (1)
37var path = Path.Combine(_tempDirectory.FullName, filename);
TestServices\TestLanguageDiscovery.cs (1)
58var filePath = Path.Combine(directory.FullName, pattern);
Utils\AppHostHelperTests.cs (11)
15var homeDirectory = Path.Combine(Path.GetTempPath(), "testuser"); 219var socket1 = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.12345"); 220var socket2 = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.67890"); 225var otherSocket = Path.Combine(backchannelsDir, "auxi.sock.differenthash123.99999"); 250var oldFormatSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}"); 254var newFormatSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.12345"); 279var similarSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}xyz.12345"); 298var otherSocket = Path.Combine(backchannelsDir, "auxi.sock.differenthash123.99999"); 320var oldFormatSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}"); 325var orphanedSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.{deadPid}"); 330var liveSocket = Path.Combine(backchannelsDir, $"auxi.sock.{hash}.{currentPid}");
Utils\AspireRepositoryDetectorTests.cs (2)
39File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty); 65File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty);
Utils\CliTestHelper.cs (3)
249var logFilePath = Path.Combine(logsDirectory.FullName, "test.log"); 250return new CliExecutionContext(WorkingDirectory, hivesDirectory, cacheDirectory, new DirectoryInfo(Path.Combine(Path.GetTempPath(), "aspire-test-sdks")), logsDirectory, logFilePath); 506var tmpDirectory = new DirectoryInfo(Path.Combine(executionContext.WorkingDirectory.FullName, "tmp"));
Utils\FileSystemHelperTests.cs (44)
16var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 19File.WriteAllText(Path.Combine(sourceDir.FullName, "file1.txt"), "content1"); 20File.WriteAllText(Path.Combine(sourceDir.FullName, "file2.txt"), "content2"); 21File.WriteAllText(Path.Combine(sourceDir.FullName, "file3.cs"), "using System;"); 28Assert.True(File.Exists(Path.Combine(destDir, "file1.txt"))); 29Assert.True(File.Exists(Path.Combine(destDir, "file2.txt"))); 30Assert.True(File.Exists(Path.Combine(destDir, "file3.cs"))); 32Assert.Equal("content1", File.ReadAllText(Path.Combine(destDir, "file1.txt"))); 33Assert.Equal("content2", File.ReadAllText(Path.Combine(destDir, "file2.txt"))); 34Assert.Equal("using System;", File.ReadAllText(Path.Combine(destDir, "file3.cs"))); 43var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 49File.WriteAllText(Path.Combine(sourceDir.FullName, "root.txt"), "root content"); 50File.WriteAllText(Path.Combine(subDir1.FullName, "level1.txt"), "level 1 content"); 51File.WriteAllText(Path.Combine(subDir2.FullName, "level2.txt"), "level 2 content"); 58Assert.True(File.Exists(Path.Combine(destDir, "root.txt"))); 59Assert.True(Directory.Exists(Path.Combine(destDir, "subdir1"))); 64Assert.Equal("root content", File.ReadAllText(Path.Combine(destDir, "root.txt"))); 75var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "empty_destination"); 91var nonExistentSource = Path.Combine(workspace.WorkspaceRoot.FullName, "nonexistent"); 92var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 104var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 128var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 153var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 156var binaryFilePath = Path.Combine(sourceDir.FullName, "binary.dat"); 165var copiedFilePath = Path.Combine(destDir, "binary.dat"); 178var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 185File.WriteAllText(Path.Combine(current.FullName, $"file{i}.txt"), $"content at level {i}"); 195currentDest = Path.Combine(currentDest, $"level{i}"); 197var filePath = Path.Combine(currentDest, $"file{i}.txt"); 209var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 212File.WriteAllText(Path.Combine(sourceDir.FullName, "file1.txt"), "new content 1"); 213File.WriteAllText(Path.Combine(sourceDir.FullName, "file2.txt"), "new content 2"); 216File.WriteAllText(Path.Combine(subDir.FullName, "project.assets.json"), "new assets"); 217File.WriteAllText(Path.Combine(subDir.FullName, "project.csproj.nuget.dgspec.json"), "new dgspec"); 221File.WriteAllText(Path.Combine(destDir, "file1.txt"), "old content 1"); 222File.WriteAllText(Path.Combine(destDir, "file2.txt"), "old content 2"); 224var destSubDir = Directory.CreateDirectory(Path.Combine(destDir, "obj")); 225File.WriteAllText(Path.Combine(destSubDir.FullName, "project.assets.json"), "old assets"); 226File.WriteAllText(Path.Combine(destSubDir.FullName, "project.csproj.nuget.dgspec.json"), "old dgspec"); 232Assert.Equal("new content 1", File.ReadAllText(Path.Combine(destDir, "file1.txt"))); 233Assert.Equal("new content 2", File.ReadAllText(Path.Combine(destDir, "file2.txt"))); 244var destDir = Path.Combine(workspace.WorkspaceRoot.FullName, "destination"); 247File.WriteAllText(Path.Combine(sourceDir.FullName, "file1.txt"), "new content"); 251File.WriteAllText(Path.Combine(destDir, "file1.txt"), "old content");
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");
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
49protected string JsonSchemaPath => Path.Combine(AppContext.BaseDirectory, "ConfigurationSchema.json");
Aspire.Dashboard.Tests (9)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
54WebRootPath = Path.Combine(aspireAssemblyDirectory, "wwwroot"),
Integration\StartupTests.cs (4)
141var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 240var fileConfigDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 634var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1147var browserTokenConfigFile = Path.Combine(fileConfigDirectory.FullName, DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName);
tests\Shared\Playwright\TestUtils.cs (2)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
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 (62)
AcaCompactNamingDeploymentTests.cs (1)
102var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AcaCompactNamingUpgradeDeploymentTests.cs (1)
118var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AcaCustomRegistryDeploymentTests.cs (3)
121var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 122var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 123var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AcaDeploymentErrorOutputTests.cs (2)
60var deployOutputFile = Path.Combine(workspace.WorkspaceRoot.FullName, "deploy-output.txt"); 104var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AcaExistingRegistryDeploymentTests.cs (3)
143var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 144var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 145var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AcaManagedRedisDeploymentTests.cs (6)
185var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 186var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 187var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 217var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 218var serverDir = Path.Combine(projectDir, $"{projectName}.Server"); 219var programFilePath = Path.Combine(serverDir, "Program.cs");
AcaStarterDeploymentTests.cs (3)
113var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 114var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 115var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AcrPurgeTaskDeploymentTests.cs (3)
108var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 109var appHostFilePath = Path.Combine(projectDir, "apphost.cs"); 174var projectDir2 = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
AksStarterDeploymentTests.cs (3)
190var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 191var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 192var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AksStarterWithRedisDeploymentTests.cs (3)
189var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 190var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 191var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AppServicePythonDeploymentTests.cs (2)
111var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 113var appHostFilePath = Path.Combine(projectDir, "apphost.cs");
AppServiceReactDeploymentTests.cs (3)
113var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 114var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 115var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs");
AzureAppConfigDeploymentTests.cs (1)
120var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureContainerRegistryDeploymentTests.cs (1)
98var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureEventHubsDeploymentTests.cs (1)
120var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureKeyVaultDeploymentTests.cs (1)
120var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureLogAnalyticsDeploymentTests.cs (1)
98var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureServiceBusDeploymentTests.cs (1)
121var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
AzureStorageDeploymentTests.cs (1)
121var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
PythonFastApiDeploymentTests.cs (2)
112var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 114var appHostFilePath = Path.Combine(projectDir, "apphost.cs");
tests\Shared\Hex1bTestHelpers.cs (1)
123return Path.Combine(recordingsDir, $"{testName}.cast");
tests\Shared\TemporaryRepo.cs (2)
68var aspireDir = Directory.CreateDirectory(Path.Combine(path, ".aspire")); 69File.WriteAllText(Path.Combine(aspireDir.FullName, "settings.json"), "{}");
TypeScriptExpressDeploymentTests.cs (2)
115var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 116var appHostFilePath = Path.Combine(projectDir, "apphost.ts");
VnetKeyVaultConnectivityDeploymentTests.cs (4)
136var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 137var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 138var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 178var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
VnetKeyVaultInfraDeploymentTests.cs (1)
122var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
VnetSqlServerConnectivityDeploymentTests.cs (4)
136var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 137var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 138var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 179var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
VnetSqlServerInfraDeploymentTests.cs (1)
122var appHostFilePath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs");
VnetStorageBlobConnectivityDeploymentTests.cs (4)
138var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName); 139var appHostDir = Path.Combine(projectDir, $"{projectName}.AppHost"); 140var appHostFilePath = Path.Combine(appHostDir, "AppHost.cs"); 183var projectDir = Path.Combine(workspace.WorkspaceRoot.FullName, projectName);
VnetStorageBlobInfraDeploymentTests.cs (1)
123var 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"); 88string workloadsProjString = Path.Combine("tests", "workloads.proj"); 100.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 123.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 145sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 162NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 190DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 203LogRootPath = 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 (46)
ApplicationModel\AspireStore.cs (1)
66var finalFilePath = Path.Combine(_basePath, $"{name}.{Convert.ToHexString(hash.GetCurrentHash())[..12].ToLowerInvariant()}{ext}");
ApplicationModel\ResourceExtensions.cs (1)
1239return Path.Combine(outputPath, fileName);
Backchannel\AuxiliaryBackchannelService.cs (1)
209return Path.Combine(backchannelsDir, $"{BackchannelConstants.SocketPrefix}.{fallbackHash}.{Environment.ProcessId}");
Dashboard\DashboardEventHandlers.cs (3)
137runtimeConfigPath = Path.Combine(directory, $"{baseName}.runtimeconfig.json"); 209originalRuntimeConfig = Path.Combine(directory, $"{baseName}.runtimeconfig.json"); 321dashboardDll = Path.Combine(directory, $"{baseName}.dll");
Dcp\DcpOptions.cs (2)
159options.ExtensionsPath = Path.Combine(configDcpPath, "ext"); 167options.ExtensionsPath = Path.Combine(dcpDir, "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)
374return 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)
58workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 213workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.ApplicationBuilder.AppHostDirectory, workingDirectory));
Pipelines\Internal\FileDeploymentStateManager.cs (1)
76return Path.Combine(aspireDir, $"{environment}.json");
Pipelines\PipelineOutputService.cs (3)
39return _outputPath ?? Path.Combine(Environment.CurrentDirectory, "aspire-output"); 48return Path.Combine(baseOutputDir, resource.Name); 63return Path.Combine(baseTempDir, resource.Name);
ProjectResourceBuilderExtensions.cs (6)
298projectPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath)); 380path = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, path)); 895var appSettingsPath = Path.Combine(projectDirectoryPath, "appsettings.json"); 896var appSettingsEnvironmentPath = Path.Combine(projectDirectoryPath, $"appsettings.{env}.json"); 899var appNameSettingsPath = Path.Combine(projectDirectoryPath, $"{appFileName}.settings.json"); 900var 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)
382var resourceDockerfilePath = Path.Combine(manifestDirectory, $"{container.Name}.Dockerfile");
Publishing\ManifestPublishingExtensions.cs (1)
53outputPath = Path.Combine(outputPath, "aspire-manifest.json");
Publishing\PodmanContainerRuntime.cs (1)
50arguments += $" --output \"{Path.Combine(options.OutputPath, resourceName)}.tar\"";
src\Shared\BackchannelConstants.cs (2)
125return Path.Combine(dir, $"{SocketPrefix}.{hash}.{processId}"); 142return Path.Combine(dir, $"{SocketPrefix}.{hash}");
src\Shared\BundleDiscovery.cs (6)
105var dcpDir = Path.Combine(baseDirectory, DcpDirectoryName); 111dcpExtensionsPath = Path.Combine(dcpDir, "ext"); 112dcpBinPath = Path.Combine(dcpExtensionsPath, "bin"); 136var managedDir = Path.Combine(baseDirectory, ManagedDirectoryName); 137var managedExe = Path.Combine(managedDir, GetExecutableFileName(ManagedExecutableName)); 235return Path.Combine(dcpDirectory, exeName);
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
86null => Path.Combine("Properties", "launchSettings.json"),
src\Shared\PathLookupHelper.cs (2)
58var fullPathWithExt = Path.Combine(directory, command + extension); 67var fullPath = Path.Combine(directory, command);
Utils\FileSystemService.cs (1)
161var filePath = Path.Combine(tempDir, fileName);
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
57Path.Combine("ref", $"net{s_targetFrameworkVersion}"));
Aspire.Hosting.Azure (12)
AzureBicepResource.cs (3)
160? Path.Combine(directory ?? Directory.CreateTempSubdirectory("aspire").FullName, $"{Name.ToLowerInvariant()}.module.bicep") 161: Path.Combine(TempDirectory, $"{Name.ToLowerInvariant()}.module.bicep"); 172: Path.Combine(directory, $"{TemplateResourceName.ToLowerInvariant()}");
AzureBicepResourceExtensions.cs (1)
28var 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"); 353var resourceDockerfilePath = Path.Combine(outputPath, $"{resource.Name}.Dockerfile"); 366var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 492var bicepPath = Path.Combine(outputDirectoryPath, $"{MainInfrastructure.BicepName}.bicep");
src\Shared\PathLookupHelper.cs (2)
58var fullPathWithExt = Path.Combine(directory, command + extension); 67var fullPath = Path.Combine(directory, command);
Aspire.Hosting.Azure.Functions (2)
AzureFunctionsProjectResourceExtensions.cs (1)
126projectPath = NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath));
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
86null => Path.Combine("Properties", "launchSettings.json"),
Aspire.Hosting.Azure.Kusto.Tests (2)
AddAzureKustoTests.cs (1)
240Assert.Equal(Path.Combine(builder.AppHostDirectory, "custom-data"), mountAnnotation.Source);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Azure.Tests (33)
AzureAppServiceTests.cs (2)
269File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 440Path.Combine(tempDir.Path, "aspire-manifest.json"),
AzureBicepResourceTests.cs (4)
261var bicepFilePath = Path.Combine(tempDir.Path, bicepFileName); 268var outputDir = Path.Combine(tempDir.Path, "output"); 286var bicepFilePath = Path.Combine(tempDir.Path, bicepFileName); 310var outputDir = Path.Combine(tempDir.Path, "output");
AzureContainerAppsTests.cs (3)
67File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 1765await VerifyFile(Path.Combine(tempDir.Path, "aspire-manifest.json")); 2139File.WriteAllText(Path.Combine(tempDirectory.Path, "Dockerfile"), "FROM alpine");
AzureEnvironmentResourceTests.cs (9)
34var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 71var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 122var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 170var mainBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "main.bicep")); 204var mainBicepPath = Path.Combine(tempDir.Path, "main.bicep"); 235var dockerfilePath = Path.Combine(tempDir.Path, "testcontainer.Dockerfile"); 259var bicepFilePath = Path.Combine(tempDir, bicepFileName); 278var outputDir = Path.Combine(tempDir, "output"); 295var mainBicepPath = Path.Combine(outputDir, "main.bicep");
AzureEventHubsExtensionsTests.cs (1)
186Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
AzureFunctionsTests.cs (7)
650var projectPath = Path.Combine(tempDir.Path, "TestFunctions.csproj"); 675var projectPath = Path.Combine(tempDir.Path, "MyFunctions.csproj"); 697var projectPath = Path.Combine(tempDir.Path, "TestFunctions.csproj"); 727var projectPath1 = Path.Combine(tempDir.Path, "Functions1.csproj"); 728var projectPath2 = Path.Combine(tempDir.Path, "Functions2.csproj"); 750var projectPath = Path.Combine(tempDir.Path, "Functions.csproj"); 782var projectPath = Path.Combine(tempDir.Path, "Functions.csproj");
AzureManifestUtils.cs (2)
40if (pathNode?.ToString() is not { } path || !File.Exists(Path.Combine(manifestDir, path))) 45var bicepText = await File.ReadAllTextAsync(Path.Combine(manifestDir, path));
AzureResourceOptionsTests.cs (3)
24var outputPath = Path.Combine(tempDir.FullName, "aspire-manifest.json"); 44var sbBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 46var 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.CodeGeneration.Go (2)
GoLanguageSupport.cs (2)
109var appHostPath = Path.Combine(directoryPath, "apphost.go"); 115var goModPath = Path.Combine(directoryPath, "go.mod");
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.Java (1)
JavaLanguageSupport.cs (1)
93var appHostPath = Path.Combine(directoryPath, "AppHost.java");
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.Python (3)
PythonLanguageSupport.cs (3)
121var appHostPath = Path.Combine(directoryPath, "apphost.py"); 127var requirementsPath = Path.Combine(directoryPath, "requirements.txt"); 209var fullPath = Path.Combine(path, command + ext);
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.Rust (2)
RustLanguageSupport.cs (2)
108var appHostPath = Path.Combine(directoryPath, "apphost.rs"); 114var cargoPath = Path.Combine(directoryPath, "Cargo.toml");
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.CodeGeneration.TypeScript (2)
TypeScriptLanguageSupport.cs (2)
158var appHostPath = Path.Combine(directoryPath, "apphost.ts"); 165var packageJsonPath = Path.Combine(directoryPath, "package.json");
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Containers.Tests (11)
ContainerResourceTests.cs (1)
240Assert.Equal(Path.Combine(basePath, "source"), mountAnnotation.Source);
DockerSocketBindMountTests.cs (2)
23var dockerFilePath = Path.Combine(dir.Path, "Dockerfile"); 47var infoFile = Path.Combine(outDir.Path, "docker-info.txt");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
WithDockerfileTests.cs (7)
255var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 303var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 350var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 396var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 840var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 884var manifestPath = Path.Combine(tempDir.FullName, "manifest.json"); 899var dockerfilePath = Path.Combine(tempDir.FullName, "testcontainer.Dockerfile");
Aspire.Hosting.Docker (8)
DockerComposeEnvironmentResource.cs (4)
220var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"); 287var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml"); 395var envFilePath = Path.Combine(outputPath, $".env.{environmentName}"); 402var dockerComposeFilePath = Path.Combine(outputPath, "docker-compose.yaml");
DockerComposePublishingContext.cs (4)
98var resourceDockerfilePath = Path.Combine(OutputPath, $"{serviceResource.TargetResource.Name}.Dockerfile"); 149var outputFile = Path.Combine(OutputPath, "docker-compose.yaml"); 155var envFilePath = Path.Combine(OutputPath, ".env"); 199Directory.CreateDirectory(Path.Combine(OutputPath, composeService.Name));
Aspire.Hosting.Docker.Tests (49)
DockerComposePublisherTests.cs (37)
97var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 98var envPath = Path.Combine(tempDir.Path, ".env"); 134var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 135var envPath = Path.Combine(tempDir.Path, ".env"); 162var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 191var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 240var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 242var envPath = Path.Combine(tempDir.Path, ".env"); 253var envFilePath = Path.Combine(tempDir.Path, ".env"); 284var envFilePath = Path.Combine(tempDir.Path, ".env"); 339var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 365var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 397var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 426var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 452var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 480var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 512var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 537var dockerfilePath = Path.Combine(tempDir.Path, "testcontainer.Dockerfile"); 561var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 588var envFileContent = await File.ReadAllTextAsync(Path.Combine(tempDir.Path, ".env.Production")); 617var envFilePath = Path.Combine(tempDir.Path, ".env.Staging"); 651var envFileContent = await File.ReadAllTextAsync(Path.Combine(tempDir.Path, ".env.Production")); 673var envFilePath = Path.Combine(tempDir.Path, ".env.Production"); 707var envFilePath = Path.Combine(tempDir.Path, ".env.Staging"); 738var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 739var envPath = Path.Combine(tempDir.Path, ".env"); 765var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 796var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 797var envPath = Path.Combine(tempDir.Path, ".env"); 835var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 836var envPath = Path.Combine(tempDir.Path, ".env"); 883var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 884var envPath = Path.Combine(tempDir.Path, ".env"); 917var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 918var envPath = Path.Combine(tempDir.Path, ".env"); 961var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 995var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
DockerComposeTests.cs (5)
62var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml"); 87var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml"); 170var composeFile = Path.Combine(tempDir.Path, "docker-compose.yaml"); 204var composeFile = Path.Combine(tempDir.Path, "docker-compose.yaml"); 293var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
EnvFileTests.cs (6)
12var envFilePath = Path.Combine(tempDir.Path, ".env"); 38var envFilePath = Path.Combine(tempDir.Path, ".env"); 64var envFilePath = Path.Combine(tempDir.Path, ".env"); 104var envFilePath = Path.Combine(tempDir.Path, ".env"); 129var envFilePath = Path.Combine(tempDir.Path, ".env"); 146var envFilePath = Path.Combine(tempDir.Path, ".env");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (1)
241Assert.Equal(Path.Combine(builder.AppHostDirectory, "mygarnetdata"), volumeAnnotation.Source);
GarnetFunctionalTests.cs (1)
127bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.JavaScript (18)
JavaScriptHostingExtensions.cs (18)
155if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 259if (File.Exists(Path.Combine(appDirectory, "package.json"))) 338appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 392if (File.Exists(Path.Combine(appDirectory, "Dockerfile"))) 515appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory)); 739var hasBunLock = File.Exists(Path.Combine(workingDirectory, "bun.lock")) || 740File.Exists(Path.Combine(workingDirectory, "bun.lockb")); 745if (File.Exists(Path.Combine(workingDirectory, "bun.lock"))) 749if (File.Exists(Path.Combine(workingDirectory, "bun.lockb"))) 786File.Exists(Path.Combine(resource.Resource.WorkingDirectory, "package-lock.json")) 803var hasYarnLock = File.Exists(Path.Combine(workingDirectory, "yarn.lock")); 804var hasYarnrc = File.Exists(Path.Combine(workingDirectory, ".yarnrc.yml")); 805var hasYarnBerryDir = Directory.Exists(Path.Combine(workingDirectory, ".yarn")); 878var hasPnpmLock = File.Exists(Path.Combine(workingDirectory, "pnpm-lock.yaml")); 1192var nvmrcPath = Path.Combine(workingDirectory, ".nvmrc"); 1204var nodeVersionPath = Path.Combine(workingDirectory, ".node-version"); 1216var packageJsonPath = Path.Combine(workingDirectory, "package.json"); 1241var toolVersionsPath = Path.Combine(workingDirectory, ".tool-versions");
Aspire.Hosting.JavaScript.Tests (58)
AddJavaScriptAppTests.cs (9)
20var appDir = Path.Combine(tempDir.Path, "js"); 29var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile"); 58var appDir = Path.Combine(tempDir.Path, "js"); 63File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty); 72var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile"); 87var appDir = Path.Combine(tempDir.Path, "pnpm-app"); 100await File.WriteAllTextAsync(Path.Combine(appDir, "package.json"), packageJson); 108var dockerfilePath = Path.Combine(tempDir.Path, "pnpm-app.Dockerfile"); 120var dockerfileInContext = Path.Combine(appDir, "Dockerfile");
AddNodeAppTests.cs (19)
101var appDir = Path.Combine(tempDir.Path, "js"); 106File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 107File.WriteAllText(Path.Combine(appDir, "package-lock.json"), "{}"); 114var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile"); 169var appDir = Path.Combine(tempDir.Path, "js"); 171File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 183var dockerfilePath = Path.Combine(tempDir.Path, "js.Dockerfile"); 216var appDir = Path.Combine(tempDir.Path, "js"); 218File.WriteAllText(Path.Combine(appDir, "package.json"), "{}"); 229var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "js.Dockerfile")); 238File.WriteAllText(Path.Combine(tempDir.Path, "app.js"), "{}"); 265File.WriteAllText(Path.Combine(tempDir.Path, "package.json"), "{}"); 338File.WriteAllText(Path.Combine(appDirectory, "package.json"), packageJsonContent); 339File.WriteAllText(Path.Combine(appDirectory, "app.js"), appContent); 364var nodeDockerfilePath = Path.Combine(outputDir.Path, "nodeapp.Dockerfile"); 394File.WriteAllText(Path.Combine(appDirectory, "package.json"), packageJsonContent); 395File.WriteAllText(Path.Combine(appDirectory, "app.js"), appContent); 420var nodeDockerfilePath = Path.Combine(outputDir.Path, "nodeapp.Dockerfile"); 559File.WriteAllText(Path.Combine(tempDir.Path, "app.js"), "console.log('hello');");
AddViteAppTests.cs (20)
22var viteDir = Path.Combine(tempDir.Path, "vite"); 26File.WriteAllText(Path.Combine(viteDir, "package-lock.json"), "empty"); 57var dockerfilePath = Path.Combine(tempDir.Path, "vite.Dockerfile"); 91File.WriteAllText(Path.Combine(tempDir.Path, "package.json"), packageJson); 99var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 111File.WriteAllText(Path.Combine(tempDir.Path, ".nvmrc"), "18.20.0"); 119var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 131File.WriteAllText(Path.Combine(tempDir.Path, ".node-version"), "v21.5.0"); 139var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 156File.WriteAllText(Path.Combine(tempDir.Path, ".tool-versions"), toolVersions); 164var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 182var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 198File.WriteAllText(Path.Combine(tempDir.Path, ".nvmrc"), versionString); 206var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 228var dockerfileContents = File.ReadAllText(Path.Combine(tempDir.Path, "vite.Dockerfile")); 290var viteConfigPath = Path.Combine(tempDir.Path, "vite.config.js"); 351var viteConfigPath = Path.Combine(tempDir.Path, "vite.config.js"); 455var viteConfigPath = Path.Combine(tempDir.Path, "vite.config.js"); 514var viteConfigPath = Path.Combine(subDir, "vite.config.js"); 589var viteConfigPath = Path.Combine(tempDir.Path, configFileName);
NodeAppFixture.cs (2)
75File.WriteAllText(Path.Combine(tempDir, "app.js"), 95File.WriteAllText(Path.Combine(tempDir, "package.json"),
PackageInstallationTests.cs (7)
458File.WriteAllText(Path.Combine(tempDir.Path, "package-lock.json"), "empty"); 485File.WriteAllText(Path.Combine(tempDir.Path, "yarn.lock"), "empty"); 506File.WriteAllText(Path.Combine(tempDir.Path, "yarn.lock"), "empty"); 507File.WriteAllText(Path.Combine(tempDir.Path, ".yarnrc.yml"), "empty"); 522File.WriteAllText(Path.Combine(tempDir.Path, "yarn.lock"), "empty"); 538File.WriteAllText(Path.Combine(tempDir.Path, "pnpm-lock.yaml"), "empty"); 553File.WriteAllText(Path.Combine(tempDir.Path, "bun.lock"), "empty");
ResourceCreationTests.cs (1)
44Assert.Equal(Path.Combine(builder.AppHostDirectory, "test"), resource.WorkingDirectory);
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (1)
144Assert.Equal(Path.Combine(appBuilder.AppHostDirectory, "kafka-data"), volumeAnnotation.Source);
KafkaFunctionalTests.cs (1)
141bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Keycloak.Tests (4)
KeycloakPublicApiTests.cs (3)
154var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 177var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 181var filePath = Path.Combine(tempDirectory, file);
KeycloakResourceBuilderTests.cs (1)
82Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
Aspire.Hosting.Kubernetes (4)
KubernetesPublishingContext.cs (4)
86var resourceDockerfilePath = Path.Combine(OutputPath, $"{serviceResource.TargetResource.Name}.Dockerfile"); 172var outputFile = Path.Combine(templatesFolder, fileName); 200var outputFile = Path.Combine(OutputPath!, "values.yaml"); 220var outputFile = Path.Combine(OutputPath, "Chart.yaml");
Aspire.Hosting.Kubernetes.Tests (14)
KubernetesEnvironmentResourceTests.cs (2)
29var chartYaml = Path.Combine(tempDir.FullName, "Chart.yaml"); 30var valuesYaml = Path.Combine(tempDir.FullName, "values.yaml");
KubernetesPublisherTests.cs (11)
63var filePath = Path.Combine(tempDir.Path, expectedFile); 102var deploymentPath = Path.Combine(tempDir.Path, "templates/service/deployment.yaml"); 158var filePath = Path.Combine(tempDir.Path, expectedFile); 212var filePath = Path.Combine(tempDir.Path, expectedFile); 267var filePath = Path.Combine(tempDir.Path, expectedFile); 299var dockerfilePath = Path.Combine(tempDir.Path, "testcontainer.Dockerfile"); 394var filePath = Path.Combine(tempDir.Path, expectedFile); 438var filePath = Path.Combine(tempDir.Path, expectedFile); 495var filePath = Path.Combine(tempDir.Path, expectedFile); 549var filePath = Path.Combine(tempDir.Path, expectedFile); 606var filePath = Path.Combine(tempDir.Path, expectedFile);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Maui (3)
MauiPlatformHelper.cs (1)
29Path.Combine(builder.ApplicationBuilder.AppHostDirectory, projectPath));
Utilities\MauiEnvironmentHelper.cs (2)
76var targetsFilePath = Path.Combine(tempDirectory, $"{sanitizedName}-{uniqueId}.targets"); 247var targetsFilePath = Path.Combine(tempDirectory, $"{sanitizedName}-{uniqueId}.targets");
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (1)
699var tempFile = Path.Combine(tempFolder.FullName, "TempMauiProject.csproj");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
98bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.MongoDB.Tests (5)
MongoDbFunctionalTests.cs (5)
138bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 262var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 267var initFilePath = Path.Combine(bindMountPath, "mongo-init.js"); 360var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 365var initFilePath = Path.Combine(initFilesPath, "mongo-init.js");
Aspire.Hosting.MySql.Tests (4)
MySqlFunctionalTests.cs (4)
309var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 315File.WriteAllText(Path.Combine(bindMountPath, "init.sql"), """ 396var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 402File.WriteAllText(Path.Combine(initFilesPath, "init.sql"), """
Aspire.Hosting.Oracle.Tests (2)
OracleFunctionalTests.cs (2)
278File.WriteAllText(Path.Combine(bindMountPath, "01_init.sql"), $""" 370File.WriteAllText(Path.Combine(initFilesPath, "01_init.sql"), $"""
Aspire.Hosting.PostgreSQL.Tests (7)
AddPostgresTests.cs (2)
886Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source); 913Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
PostgresFunctionalTests.cs (5)
224bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 369var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 375File.WriteAllText(Path.Combine(bindMountPath, "init.sql"), """ 457var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 463File.WriteAllText(Path.Combine(initFilesPath, "init.sql"), """
Aspire.Hosting.Python (15)
PythonAppResourceBuilderExtensions.cs (13)
428if (File.Exists(Path.Combine(resource.WorkingDirectory, "Dockerfile"))) 506if (File.Exists(Path.Combine(appDirectoryFullPath, "pyproject.toml")) || 507File.Exists(Path.Combine(appDirectoryFullPath, "requirements.txt"))) 526var uvLockPath = Path.Combine(resource.WorkingDirectory, "uv.lock"); 635var requirementsTxtPath = Path.Combine(resource.WorkingDirectory, "requirements.txt"); 675var pyprojectTomlPath = Path.Combine(resource.WorkingDirectory, "pyproject.toml"); 770return Path.Combine(appDirectoryFullPath, virtualEnvironmentPath); 778var venvPath = Path.Combine(currentDirectory, virtualEnvironmentPath); 808return Path.Combine(appDirectoryFullPath, virtualEnvironmentPath); 1163if (File.Exists(Path.Combine(workingDirectory, "pyproject.toml"))) 1168else if (File.Exists(Path.Combine(workingDirectory, "requirements.txt"))) 1275var fullPath = Path.Combine(directory, commandWithExt); 1288var fullPath = Path.Combine(directory, command);
PythonVersionDetector.cs (2)
20var pythonVersionFile = Path.Combine(appDirectory, ".python-version"); 31var pyprojectFile = Path.Combine(appDirectory, "pyproject.toml");
Aspire.Hosting.Python.Tests (102)
AddPythonAppTests.cs (95)
28var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 66var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 266var projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 289var scriptPath = Path.Combine(projectDirectory, "main.py"); 292var requirementsPath = Path.Combine(projectDirectory, "requirements.txt"); 296var dockerFilePath = Path.Combine(projectDirectory, "Dockerfile"); 419var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path)); 531var appVenvPath = Path.Combine(tempAppDir.Path, ".venv"); 544var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempAppDir.Path)); 545var expectedVenvPath = Path.Combine(expectedProjectDirectory, ".venv"); 561var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName); 565var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv"); 607var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName); 611var appVenvPath = Path.Combine(appDirPath, ".venv"); 614var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv"); 663var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempAppDir.Path)); 664var expectedVenvPath = Path.Combine(expectedProjectDirectory, ".venv"); 680var appDirPath = Path.Combine(builder.AppHostDirectory, appDirName); 684var appHostVenvPath = Path.Combine(builder.AppHostDirectory, ".venv"); 688var customVenvPath = Path.Combine(appDirPath, "custom-venv"); 740var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path)); 990var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path)); 1024var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path)); 1058var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, tempDir.Path)); 1270File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1271File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent); 1272File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1274var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 1293var scriptDockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile"); 1296var moduleDockerfilePath = Path.Combine(outputDir.Path, "module-app.Dockerfile"); 1299var executableDockerfilePath = Path.Combine(outputDir.Path, "executable-app.Dockerfile"); 1335File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1337File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1339var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 1358var scriptDockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile"); 1361var moduleDockerfilePath = Path.Combine(outputDir.Path, "module-app.Dockerfile"); 1364var executableDockerfilePath = Path.Combine(outputDir.Path, "executable-app.Dockerfile"); 1397var appDirectory = Path.Combine(tempDir.Path, "myapp"); 1399var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv"); 1435var appDirectory = Path.Combine(tempDir.Path, "myapp"); 1437var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv"); 1475var appDirectory = Path.Combine(tempDir.Path, "myapp"); 1477var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv"); 1512var appDirectory = Path.Combine(tempDir.Path, "myapp"); 1514var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv"); 1545var appDirectory = Path.Combine(tempDir.Path, "myapp"); 1547var virtualEnvironmentPath = Path.Combine(tempDir.Path, ".venv"); 1653File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1654File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent); 1655File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1670var dockerfilePath = Path.Combine(outputDir.Path, "custom-images-app.Dockerfile"); 1699File.WriteAllText(Path.Combine(projectDirectory, "requirements.txt"), requirementsContent); 1700File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1711var dockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile"); 1748File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1749File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 1760var dockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile"); 1780File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1791var dockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile"); 1813File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 1814File.WriteAllText(Path.Combine(projectDirectory, ".python-version"), pythonVersionContent); 1827var scriptDockerfilePath = Path.Combine(outputDir.Path, "script-app.Dockerfile"); 1830var moduleDockerfilePath = Path.Combine(outputDir.Path, "module-app.Dockerfile"); 1833var executableDockerfilePath = Path.Combine(outputDir.Path, "executable-app.Dockerfile"); 1862var scriptPath = Path.Combine(tempDir.Path, scriptName); 1866var pyprojectPath = Path.Combine(tempDir.Path, "pyproject.toml"); 1896var scriptPath = Path.Combine(tempDir.Path, scriptName); 1900var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 1931var scriptPath = Path.Combine(tempDir.Path, scriptName); 1935var pyprojectPath = Path.Combine(tempDir.Path, "pyproject.toml"); 1937var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 1961var scriptPath = Path.Combine(tempDir.Path, scriptName); 1985var scriptPath = Path.Combine(tempDir.Path, scriptName); 2008var scriptPath = Path.Combine(tempDir.Path, scriptName); 2012var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2036var scriptPath = Path.Combine(tempDir.Path, scriptName); 2040var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2065var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2093var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2097var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2136var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2139var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2166var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2169var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2200var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2203var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2236var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2239var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2266var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2269var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2298var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2301var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2330var scriptPath = Path.Combine(tempDir.Path, "main.py"); 2333var requirementsPath = Path.Combine(tempDir.Path, "requirements.txt"); 2366var scriptPath = Path.Combine(tempDir.Path, "main.py");
AddUvicornAppTests.cs (6)
18var appDirectory = Path.Combine(Path.GetTempPath(), "test-app"); 57File.WriteAllText(Path.Combine(projectDirectory, "pyproject.toml"), pyprojectContent); 58File.WriteAllText(Path.Combine(projectDirectory, "uv.lock"), uvLockContent); 59File.WriteAllText(Path.Combine(projectDirectory, "main.py"), scriptContent); 61var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 87var appDockerfilePath = Path.Combine(outputDir.Path, "main.Dockerfile");
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
116bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (1)
592Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
RedisFunctionalTests.cs (1)
286var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.RemoteHost (1)
IntegrationLoadContext.cs (1)
46var path = Path.Combine(dir, $"{assemblyName.Name}.dll");
Aspire.Hosting.RemoteHost.Tests (3)
AssemblyLoaderTests.cs (3)
26[integrationLibs.Path, applicationBase.Path, Path.Combine(applicationBase.Path, "missing")]); 92Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), $"aspire-remotehost-{Guid.NewGuid():N}"); 100File.WriteAllText(System.IO.Path.Combine(Path, fileName), string.Empty);
Aspire.Hosting.Seq.Tests (2)
AddSeqTests.cs (1)
160Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
SeqFunctionalTests.cs (1)
96bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
188var path = Path.Combine(source, dir);
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
157bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
348null => Path.Combine("Properties", "launchSettings.json"),
Aspire.Hosting.Testing.Tests (4)
TestingBuilderTests.cs (1)
57var appHostAssembly = Assembly.LoadFrom(Path.Combine(AppContext.BaseDirectory, testProjectAssemblyPath));
tests\Aspire.Hosting.Tests\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);
Aspire.Hosting.Tests (121)
ApplicationModel\Docker\DockerfileBuildAnnotationTests.cs (4)
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()}");
Dashboard\DashboardLifecycleHookTests.cs (10)
283var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 284var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 372var dashboardExe = Path.Combine(tempDir, "Aspire.Dashboard.exe"); 373var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 374var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 441var dashboardExe = Path.Combine(tempDir, "Aspire.Dashboard"); 442var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 443var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json"); 510var dashboardDll = Path.Combine(tempDir, "Aspire.Dashboard.dll"); 511var runtimeConfig = Path.Combine(tempDir, "Aspire.Dashboard.runtimeconfig.json");
Dcp\DcpHostNotificationTests.cs (2)
647var appHostDirectory = Path.Combine(Path.GetTempPath(), "aspire-apphost-test"); 827var appHostDirectory = Path.Combine(Path.GetTempPath(), "aspire-apphost-test");
ExecutableResourceBuilderExtensionTests.cs (2)
23var expectedPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 49var expectedPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory));
MSBuildTests.cs (33)
23var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost"); 26File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 55File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 80var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost"); 83File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 111File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 122var appHostMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "_AppHost.ProjectMetadata.g.cs")); 123var appMetadata = await File.ReadAllTextAsync(Path.Combine(metadataDirectory, "App.ProjectMetadata.g.cs")); 150File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"), 160File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"), 175var libraryDirectory = Path.Combine(basePath, name); 178File.WriteAllText(Path.Combine(libraryDirectory, $"{name}.csproj"), 190File.WriteAllText(Path.Combine(libraryDirectory, "Class1.cs"), 202var appDirectory = Path.Combine(basePath, name); 205File.WriteAllText(Path.Combine(appDirectory, $"{name}.csproj"), 216File.WriteAllText(Path.Combine(appDirectory, "Program.cs"), 269var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost"); 272File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 301File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 328var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost"); 331File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 360File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), 381var projectDirectory = Path.Combine(tempDirectory.Path, "MyHostingExtension"); 384File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 401File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 430var projectDirectory = Path.Combine(tempDirectory.Path, "MyHostingExtension"); 433File.WriteAllText(Path.Combine(projectDirectory, "MyHostingExtension.csproj"), 450File.WriteAllText(Path.Combine(projectDirectory, "Extensions.cs"), 478File.WriteAllText(Path.Combine(basePath, "Directory.Build.props"), 486File.WriteAllText(Path.Combine(basePath, "Directory.Build.targets"), 511var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost"); 514File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), 542File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"),
PathLookupHelperTests.cs (32)
15Path.Combine("/usr/bin", "mycommand") 22Assert.Equal(Path.Combine("/usr/bin", "mycommand"), result); 70Path.Combine("/first/path", "mycommand"), 71Path.Combine("/second/path", "mycommand") 78Assert.Equal(Path.Combine("/first/path", "mycommand"), result); 85var dir = Path.Combine("testdir", "bin"); 86var expectedPath = Path.Combine(dir, "mycommand"); 103var dir = Path.Combine("testdir", "bin"); 104var expectedPath = Path.Combine(dir, "code.CMD"); 122var dir = Path.Combine("testdir", "bin"); 123var exePath = Path.Combine(dir, "code.EXE"); 124var cmdPath = Path.Combine(dir, "code.CMD"); 146var dir = Path.Combine("testdir", "bin"); 147var exactPath = Path.Combine(dir, "code"); 148var cmdPath = Path.Combine(dir, "code.CMD"); 167var dir = Path.Combine("testdir", "bin"); 168var exactPath = Path.Combine(dir, "mytool"); 186var dir = Path.Combine("testdir", "bin"); 187var expectedPath = Path.Combine(dir, "code.CMD"); 205var dir = Path.Combine("testdir", "bin"); 220var dir = Path.Combine("testdir", "bin"); 221var cmdPath = Path.Combine(dir, "code.CMD"); 243Path.Combine(dir, "code.cmd") 260Path.Combine(dir, "code.cmd") 277var dir1 = Path.Combine("first", "bin"); 278var dir2 = Path.Combine("second", "bin"); 279var dir1CmdPath = Path.Combine(dir1, "code.CMD"); 280var dir2ExePath = Path.Combine(dir2, "code.EXE"); 299var dir1 = Path.Combine("first", "bin"); 300var dir2 = Path.Combine("second", "bin"); 301var dir1ExactPath = Path.Combine(dir1, "mytool"); 302var dir2ExePath = Path.Combine(dir2, "mytool.EXE");
ProjectResourceTests.cs (8)
61var projectDirectoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 62var projectFilePath = Path.Combine(projectDirectoryPath, "Project.csproj"); 63var propertiesDirectoryPath = Path.Combine(projectDirectoryPath, "Properties"); 64var launchSettingsFilePath = Path.Combine(propertiesDirectoryPath, "launchSettings.json"); 102var projectDirectoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 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\ResourceContainerImageManagerTests.cs (4)
270ctx.OutputPath = Path.Combine(tempDir.Path, "NewFolder"); // tests that the folder is created if it doesn't exist 860var tempSecretFile = System.IO.Path.Combine(tempDir.Path, ".npmrc"); 1210ctx.OutputPath = Path.Combine(tempDir.Path, "archives"); 1332ctx.OutputPath = Path.Combine(tempDir.Path, "archives");
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");
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
72var uniqueFolder = Path.Combine(baseDcpLogFolder, folderName);
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
Utils\DockerfileUtils.cs (2)
40var tempContextPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 43var tempDockerfilePath = Path.Combine(tempContextPath, dockerfileName);
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")))
Utils\UnixSocketHelper.cs (1)
19var socketPath = Path.Combine(aspireCliPath, $"cli.sock.{uniqueSocketPathSegment}");
Aspire.Hosting.Valkey.Tests (2)
AddValkeyTests.cs (1)
237Assert.Equal(Path.Combine(builder.AppHostDirectory, "myValkeydata"), volumeAnnotation.Source);
ValkeyFunctionalTests.cs (1)
85bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Yarp.Tests (2)
tests\Shared\TestModuleInitializer.cs (1)
27directory: Path.Combine(
YarpConfigGeneratorTests.cs (1)
292var composeFile = Path.Combine(tempDir.Path, "docker-compose.yaml");
Aspire.Playground.Tests (2)
src\Shared\PathLookupHelper.cs (2)
58var fullPathWithExt = Path.Combine(directory, command + extension); 67var fullPath = Path.Combine(directory, command);
Aspire.Templates.Tests (44)
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)
60"aspire-apphost-singlefile" or "aspire-py-starter" => Path.Combine(project.RootDir, "apphost.run.json"),
NewUpAndBuildSupportProjectTemplatesTests.cs (2)
14var topLevelDir = Path.Combine(BuildEnvironment.TestRootPath, id + "_root"); 42project.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"); 88string workloadsProjString = Path.Combine("tests", "workloads.proj"); 100.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 123.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 145sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 162NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 190DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 203LogRootPath = 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.TestUtilities (2)
src\Shared\PathLookupHelper.cs (2)
58var fullPathWithExt = Path.Combine(directory, command + extension); 67var fullPath = Path.Combine(directory, command);
aspire-managed (6)
NuGet\Commands\LayoutCommand.cs (4)
154var sourcePath = Path.Combine(packagePath, runtimeAssembly.Path.Replace('/', Path.DirectorySeparatorChar)); 163var destPath = Path.Combine(outputPath, fileName); 200var sourcePath = Path.Combine(packagePath, nativeLib.Path.Replace('/', Path.DirectorySeparatorChar)); 209var destPath = Path.Combine(outputPath, fileName);
NuGet\Commands\RestoreCommand.cs (2)
224var assetsPath = Path.Combine(outputPath, "project.assets.json"); 339var projectPath = Path.Combine(outputPath, "project.json");
Binding.UDS.IntegrationTests (2)
UDSBindingTests.cs (2)
210return Path.Combine(Path.GetTempPath(), "unix1.txt"); 215return Path.Combine(Path.GetTempPath(), "invalid.txt");
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"); 1603var baseline = File.ReadAllText(Path.Combine("Baselines", "IntegrationTest.baseline.json")).ReplaceLineEndings();
crossgen2 (2)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
217zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 336reproPackagePath = 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)
443var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 775var result = Path.Combine(tempPath, ".roslyn"); 783FilePath = Path.Combine(mutexDirectory, name); 784GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = 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)
97var 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 (102)
CommandFactory\CommandResolution\AppBaseDllCommandResolver.cs (1)
21var localPath = Path.Combine(AppContext.BaseDirectory,
CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (2)
14_dotnetToolPath = dotnetToolPath ?? Path.Combine(AppContext.BaseDirectory, "DotnetTools"); 24var packageId = new DirectoryInfo(Path.Combine(_dotnetToolPath, arguments.CommandName));
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)
65string entryPointOutputDir = hasRefs ? Path.Combine(targetDirectory, entryPointName) : targetDirectory; 240string targetItemFullPath = Path.Combine(outputDirectory, item.RelativePath); 280var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/'))); 289var refTargetDirectory = Path.Combine(targetDirectory, refName); 309var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/'))); 318var refTargetDirectory = Path.Combine(targetDirectory, refName); 418.Select(item => (item.ItemType, item.RelativePath, OutputFullPath: Path.GetFullPath(Path.Combine(outputDirectory, item.RelativePath)))) 515if (Directory.Exists(Path.Combine(sourceDirectory, project.ExpandedName))) 521project = project.WithName(Path.GetRelativePath(relativeTo: outputDirectory, path: Path.Combine(sourceDirectory, project.Name)), CSharpDirective.Project.NameKind.Final); 530var refPath = refDirective.ResolvedPath ?? Path.GetFullPath(Path.Combine(sourceDirectory, refDirective.Name.Replace('\\', '/')));
Commands\Run\CSharpCompilerCommand.cs (1)
354string runtimeConfigPath = Path.Combine(SdkPath, "dotnet.runtimeconfig.json");
Commands\Run\EnvironmentVariablesToMSBuild.cs (3)
61? Path.Combine(projectDirectory, Constants.ObjDirectoryName) 64: Path.Combine(projectDirectory, normalized); 68string propsFilePath = Path.GetFullPath(Path.Combine(objDir, PropsFileName));
Commands\Run\RunCommand.cs (1)
1158if (Directory.Exists(Path.Combine(currentDir, ".git")))
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\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 (8)
136var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{WorkloadManifestUpdater.WorkloadSetManifestId}-{workloadSetPackageVersion}-extracted"); 178var packagePath = Path.Combine(offlineCache.Value.Value, $"{packInfo.ResolvedPackageId}.{packInfo.Version}.nupkg"); 206var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{packInfo.ResolvedPackageId}-{packInfo.Version}-extracted"); 320packagePath = Path.Combine(offlineCache.Value.Value, $"{packageId}.{packageVersion}.nupkg"); 330tempBackupDir = Path.Combine(_tempPackagesDir.Value, $"{packageId} - {packageVersion}-backup"); 592string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, _workloadRootDir), "default.json"); 636string logFile = Path.Combine(historyDirectory, $"{workloadHistoryRecord.TimeStarted:yyyy'-'MM'-'dd'T'HHmmss}_{workloadHistoryRecord.CommandName}.json"); 681FileAccessRetrier.RetryOnMoveAccessFailure(() => DirectoryPath.MoveDirectory(Path.Combine(extractionPath, "data"), targetPath));
Commands\Workload\Install\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\WorkloadManifestUpdater.cs (8)
141string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(sdkFeatureBand, dotnetDir), "default.json"); 194var workloadSetVersionFilePath = Path.Combine(advertisedPath, Constants.workloadSetVersionFileName); 355File.WriteAllText(Path.Combine(adManifestPath, "AdvertisedManifestFeatureBand.txt"), band.ToString()); 368File.WriteAllText(Path.Combine(adManifestPath, Constants.workloadSetVersionFileName), workloadSetVersion); 424var manifestPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "WorkloadManifest.json"); 434var adManifestFeatureBandPath = Path.Combine(GetAdvertisingManifestPath(_sdkFeatureBand, manifestId), "AdvertisedManifestFeatureBand.txt"); 532private string GetAdvertisingManifestSentinelPath(SdkFeatureBand featureBand) => Path.Combine(_userProfileDir, $".workloadAdvertisingManifestSentinel{featureBand}"); 536private static string GetAdvertisingWorkloadsFilePath(string userProfileDir, SdkFeatureBand featureBand) => Path.Combine(userProfileDir, $".workloadAdvertisingUpdates{featureBand}");
Commands\Workload\InstallingWorkloadCommand.cs (4)
174string path = Path.Combine(WorkloadInstallType.GetInstallStateFolder(_sdkFeatureBand, _workloadRootDir), "default.json"); 369tempPath = new DirectoryPath(Path.Combine(TempDirectoryPath, "dotnet-manifest-extraction")); 370string extractedManifestsPath = Path.Combine(tempPath.Value.Value, "manifests"); 398await _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)
133var useWorkloadSets = InstallStateContents.FromPath(Path.Combine(WorkloadInstallType.GetInstallStateFolder(_currentSdkFeatureBand, UserLocalPath), "default.json")).ShouldUseWorkloadSets();
NuGetForwardingApp.cs (1)
40return Path.Combine(
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
311return Path.Combine( 356Path.Combine(targetFolder.Value, fileAndPermission.Path),
Program.cs (1)
199string toolPath = Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, s_toolPathSentinelFileName);
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.9.0-1.26281.102\contentFiles\cs\net11.0\BuildServerConnection.cs (4)
443var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 775var result = Path.Combine(tempPath, ".roslyn"); 783FilePath = Path.Combine(mutexDirectory, name); 784GuardPath = Path.Combine(mutexDirectory, ".guard");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26281.102\contentFiles\cs\net11.0\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26281.102\contentFiles\cs\net11.0\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26281.102\contentFiles\cs\net11.0\RuntimeHostInfo.cs (1)
97var filePath = Path.Combine(item, fileName);
SudoEnvironmentDirectoryOverride.cs (2)
64.Select(fileName => Path.Combine(userSettingsDir, fileName)) 68var overriddenNugetConfig = Path.Combine(overriddenSettingsDir, Settings.DefaultSettingsFileName);
Telemetry\MacAddressGetter.cs (1)
92FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "getmac.exe"),
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!, "RuntimeIdentifierGraph.json"); 284CreateAssetFile(packageId, packageVersion, packageDownloadDir, Path.Combine(assetFileDirectory.Value, ToolPackageInstance.AssetsFileName), _runtimeJsonPath, verbosity, targetFramework); 294CreateAssetFile(ridSpecificPackage, packageVersion, packageDownloadDir, Path.Combine(assetFileDirectory.Value, ToolPackageInstance.RidSpecificPackageAssetsFileName), _runtimeJsonPath, verbosity, targetFramework); 311CreateAssetFile(packageId, packageVersion, _localToolDownloadDir, Path.Combine(_localToolAssetDir.Value, ToolPackageInstance.AssetsFileName), _runtimeJsonPath, verbosity, targetFramework); 321Path.Combine(_localToolAssetDir.Value, ToolPackageInstance.RidSpecificPackageAssetsFileName), _runtimeJsonPath, verbosity, targetFramework);
ToolPackage\ToolPackageInstance.cs (2)
104var toolsPackagePath = Path.Combine(installPath, "tools"); 182var toolsPackagePath = Path.Combine(installPath, "tools");
dotnet-dev-certs (8)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
113var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 241var certPath = Path.Combine(certDir, nickname) + ".pem"; 360? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 404Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 470var certPath = Path.Combine(certDir, nickname) + ".pem"; 609if (File.Exists(Path.Combine(searchFolder, command))) 1057var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
dotnet-format (5)
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);
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
337string codePath = Path.Combine(outputDirectory, serializerName + ".cs");
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.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
41string combinedPath = Path.Combine(directoryPath, outputFileWithExtension);
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));
DotnetTool.AppHost (1)
AppHost.cs (1)
84.WithWorkingDirectory(Path.Combine(Projects.DotnetTool_AppHost.ProjectPath, "IncompatibleSdk"));
dotnet-user-jwts (11)
Commands\ClearCommand.cs (1)
68var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Commands\CreateCommand.cs (1)
264var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Commands\RemoveCommand.cs (1)
59var appsettingsFilePath = Path.Combine(Path.GetDirectoryName(project), appsettingsFile);
Helpers\DevJwtCliHelpers.cs (2)
58else if (!File.Exists(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile))) 60reporter.Error(Resources.FormatRemoveCommand_AppsettingsFileNotFound_Error(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile)));
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 (4)
52var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 142Path.Combine(AppContext.BaseDirectory, "assets"), 153searchPaths.Insert(1, Path.Combine(assemblyDir, "assets")); 158var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists);
dotnet-user-secrets (5)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
25projectPath = Path.Combine(_directory, projectPath);
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
52var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 142Path.Combine(AppContext.BaseDirectory, "assets"), 153searchPaths.Insert(1, Path.Combine(assemblyDir, "assets")); 158var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists);
dotnet-watch (7)
Program.cs (4)
120project = new ProjectRepresentation(projectPath: null, entryPointFilePath: Path.GetFullPath(Path.Combine(workingDirectory, options.FilePath))); 168entryPointPath = Path.GetFullPath(Path.Combine(workingDirectory, firstArg)); 189projectPath = Path.GetFullPath(Path.Combine(workingDirectory, projectPath)); 382var 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);
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")
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)
217zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 336reproPackagePath = Path.Combine(reproFileDir, Path.GetFileName(originalPath));
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (1)
348candidatePath = 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)
461string 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)
348candidatePath = 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 (147)
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
71if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
ExtractTestPartitions\ExtractTestPartitionsTests.cs (21)
30var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 36var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 55var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 61var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 76var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 82var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 100var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 103var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 118var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 125var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 143var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 150var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 166var nonExistentPath = Path.Combine(_tempDir.Path, "DoesNotExist.dll"); 167var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 192var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 212var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 217var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 234var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 241var outputFile = Path.Combine(_tempDir.Path, "partitions.txt"); 259var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 266var outputFile = Path.Combine(_tempDir.Path, "partitions.txt");
ExtractTestPartitions\MockAssemblyBuilder.cs (2)
241var netstandardPath = Path.Combine( 250var runtimePath = Path.Combine(
PowerShellScripts\BuildTestMatrixTests.cs (60)
32var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 36Path.Combine(artifactsDir, "MyProject.tests-metadata.json"), 41var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 62var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 66Path.Combine(artifactsDir, "ProjectA.tests-metadata.json"), 71Path.Combine(artifactsDir, "ProjectB.tests-metadata.json"), 75var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 94var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 98Path.Combine(artifactsDir, "SplitProject.tests-metadata.json"), 104Path.Combine(artifactsDir, "SplitProject.tests-partitions.json"), 107var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 135var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 139Path.Combine(artifactsDir, "ClassSplitProject.tests-metadata.json"), 145Path.Combine(artifactsDir, "ClassSplitProject.tests-partitions.json"), 148var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 171var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 176Path.Combine(artifactsDir, "NoTimeouts.tests-metadata.json"), 180var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 199var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 203Path.Combine(artifactsDir, "CustomTimeouts.tests-metadata.json"), 209var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 228var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 232Path.Combine(artifactsDir, "NeedsNugets.tests-metadata.json"), 238Path.Combine(artifactsDir, "NoNugets.tests-metadata.json"), 243var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 262var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 266Path.Combine(artifactsDir, "FilterTest.tests-metadata.json"), 271Path.Combine(artifactsDir, "FilterTest.tests-partitions.json"), 274var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 292var emptyArtifactsDir = Path.Combine(_tempDir.Path, "empty-artifacts"); 295var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 312var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 316Path.Combine(artifactsDir, "SplitProject.tests-metadata.json"), 326Path.Combine(artifactsDir, "SplitProject.tests-partitions.json"), 329var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 357var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 361Path.Combine(artifactsDir, "SdkProject.tests-metadata.json"), 366var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 384var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 388Path.Combine(artifactsDir, "LinuxOnly.tests-metadata.json"), 393var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 412var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 416Path.Combine(artifactsDir, "OsRestrictedSplit.tests-metadata.json"), 423Path.Combine(artifactsDir, "OsRestrictedSplit.tests-partitions.json"), 426var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 449var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 453Path.Combine(artifactsDir, "CustomRunner.tests-metadata.json"), 458var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 478var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 482Path.Combine(artifactsDir, "NoRunner.tests-metadata.json"), 486var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 504var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 508Path.Combine(artifactsDir, "SplitRunner.tests-metadata.json"), 515Path.Combine(artifactsDir, "SplitRunner.tests-partitions.json"), 518var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 540var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 544Path.Combine(artifactsDir, "ClassRunner.tests-metadata.json"), 555Path.Combine(artifactsDir, "ClassRunner.tests-partitions.json"), 558var outputFile = Path.Combine(_tempDir.Path, "matrix.json"); 596if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (44)
38var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 41var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 65var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 68var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 91var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 94var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 115var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 118var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 141var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 144var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 168var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 171var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 199var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 202var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 238var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 241var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 266var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 269var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 283var nonExistentFile = Path.Combine(_tempDir.Path, "does-not-exist.json"); 284var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 302var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 305var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 328var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 331var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 354var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 357var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 387var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 390var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 414var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 417var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 453var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 456var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 487var canonicalMatrix = Path.Combine(_tempDir.Path, "canonical.json"); 490var outputFile = Path.Combine(_tempDir.Path, "expanded.json"); 510var artifactsDir = Path.Combine(_tempDir.Path, "artifacts"); 514Path.Combine(artifactsDir, "RegularProject.tests-metadata.json"), 520Path.Combine(artifactsDir, "SplitMultiOS.tests-metadata.json"), 527Path.Combine(artifactsDir, "SplitMultiOS.tests-partitions.json"), 531Path.Combine(artifactsDir, "LinuxE2E.tests-metadata.json"), 539Path.Combine(artifactsDir, "CliE2E.tests-metadata.json"), 549var canonicalFile = Path.Combine(_tempDir.Path, "canonical.json"); 559var expandedFile = Path.Combine(_tempDir.Path, "expanded.json"); 565var githubOutputFile = Path.Combine(_tempDir.Path, "github_output.txt"); 699if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
PowerShellScripts\SplitTestMatrixByDepsTests.cs (5)
24_githubOutputFile = Path.Combine(_tempDir.Path, "github_output.txt"); 205var matrixFile = Path.Combine(_tempDir.Path, "matrix.json"); 234var nonExistentFile = Path.Combine(_tempDir.Path, "nonexistent.json"); 261var tempMatrixFile = Path.Combine(_tempDir.Path, $"matrix_input_{Guid.NewGuid():N}.json"); 356if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
PowerShellScripts\SplitTestProjectsTests.cs (11)
41var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 47var outputFile = Path.Combine(_tempDir.Path, "partitions.json"); 71var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 76var outputFile = Path.Combine(_tempDir.Path, "partitions.json"); 99var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 105var outputFile = Path.Combine(_tempDir.Path, "partitions.json"); 130var assemblyPath = Path.Combine(_tempDir.Path, "TestAssembly.dll"); 137var outputFile = Path.Combine(_tempDir.Path, "partitions.json"); 165var nonExistentPath = Path.Combine(_tempDir.Path, "DoesNotExist.dll"); 166var outputFile = Path.Combine(_tempDir.Path, "partitions.json"); 215if (File.Exists(Path.Combine(dir.FullName, "Aspire.slnx")))
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (3)
1084string inputPath = Path.Combine(_tempDir.Path, $"{Guid.NewGuid():N}.json"); 1124if (File.Exists(Path.Combine(current, "Aspire.slnx"))) 1136=> File.ReadAllTextAsync(Path.Combine(_repoRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
101using (var depsFileStream = File.Create(Path.Combine(SharedFrameworkDirectory, $"{sharedFxName}.deps.json")))
Microsoft.Agents.AI.ProjectTemplates.Tests (11)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (5)
42_sandboxInstallPath = Path.Combine(_sandboxOutput, "install"); 43_sandboxProjectsPath = Path.Combine(_sandboxOutput, "projects"); 84file.CopyTo(Path.Combine(testSandbox, file.Name)); 89CopySandboxDirectory(subDir.FullName, Path.Combine(testSandbox, subDir.Name)); 95var outputFolderPath = Path.Combine(_sandboxProjectsPath, projectName);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
test\ProjectTemplates\Infrastructure\TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (2)
35TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxSource, "nuget.config"); 46var gitPath = Path.Combine(directory, ".git");
Microsoft.Analyzers.Extra.Tests (3)
Resources\FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
Resources\RoslynTestUtils.cs (2)
42refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 43refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Analyzers.Local.Tests (3)
Resources\FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
Resources\RoslynTestUtils.cs (2)
42refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 43refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Arcade.Common (2)
CommandFactory.cs (1)
75var candidate = Path.Combine(path, executable + ".exe");
FileSystem.cs (1)
31public string PathCombine(string path1, string path2) => Path.Combine(path1, path2);
Microsoft.AspNetCore (1)
HostingPathResolver.cs (1)
27return Path.GetFullPath(Path.Combine(Path.GetFullPath(basePath), contentRootPath));
Microsoft.AspNetCore.Components.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)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
113var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 241var certPath = Path.Combine(certDir, nickname) + ".pem"; 360? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 404Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 470var certPath = Path.Combine(certDir, nickname) + ".pem"; 609if (File.Exists(Path.Combine(searchFolder, command))) 1057var 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.Mvc.Core (1)
ApplicationParts\RelatedAssemblyAttribute.cs (1)
90var relatedAssemblyLocation = Path.Combine(assemblyDirectory, attribute.AssemblyFileName + ".dll");
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
FileUtilities.cs (1)
72uniquePath = Path.Combine(directoryName, $"{baseFileName}{identifier}{extension}");
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)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
113var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 241var certPath = Path.Combine(certDir, nickname) + ".pem"; 360? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 404Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 470var certPath = Path.Combine(certDir, nickname) + ".pem"; 609if (File.Exists(Path.Combine(searchFolder, command))) 1057var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
TlsConfigurationLoader.cs (1)
194path = basePath != null ? Path.Combine(basePath, $"{applicationName}.pfx") : null;
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.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 (82)
BackEnd\BuildManager\BuildManager.cs (1)
1545submission.BuildRequestData.ProjectFullPath = Path.Combine(
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)
183string 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)
54Path.Combine(BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32, "SdkResolvers"), location); 81Path.Combine(BuildEnvironmentHelper.Instance.MSBuildToolsDirectoryRoot, "SdkResolvers"), location); 117var manifest = Path.Combine(subfolder.FullName, $"{subfolder.Name}.xml"); 118var 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)
1009string 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)
1077string localFile = Path.Combine(escapedSolutionDirectory, $"before.{escapedSolutionFileName}.targets"); 1081localFile = Path.Combine(escapedSolutionDirectory, $"after.{escapedSolutionFileName}.targets"); 1356baseName = Path.Combine(_solutionFile.SolutionFileDirectory, MakeIntoSafeItemName(project.GetUniqueProjectName())); 2355globalProperties.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)
189var xbuildToolsetsDir = Path.Combine(libraryPath, $"xbuild{Path.DirectorySeparatorChar}"); 196var binPath = Path.Combine(d, "bin"); 620Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, trimmedValue));
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
174list.Add(Path.GetFullPath(Path.Combine(state.EvaluationDirectory, item.ItemSpec)));
Evaluation\Evaluator.cs (5)
1190string projectFullPath = Path.Combine(projectDirectory, projectFile); 1854ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project), 1867ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project), 1904string dotnetExe = Path.Combine(FileUtilities.GetFolderAbove(sdkResult.Path, 5), Constants.DotnetProcessName); 2120importFileUnescaped = Path.Combine(directoryOfImportingFile, importFileUnescaped);
Evaluation\Expander.cs (4)
2619rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 2652string combinedPath = Path.Combine(unescapedPath, relativePath); 2699rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 2778rootedPath = 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)
297return Path.Combine(NativeMethodsShared.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
Globbing\MSBuildGlob.cs (2)
144var rootedInput = Path.Combine(_state.Value.GlobRoot, stringToMatch); 240var parentedFixedPart = Path.Combine(globRoot, fixedDirPart);
Graph\GraphBuilder.cs (1)
314solutionGlobalPropertiesBuilder[SolutionProjectGenerator.SolutionPathPropertyName] = EscapingUtilities.Escape(Path.Combine(Solution.SolutionFileDirectory, Path.GetFileName(Solution.FullPath)));
Instance\TaskRegistry.cs (5)
79private static readonly string s_potentialTasksV4Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV4Filename); 98private static readonly string s_potentialTasksV12Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV12Filename); 117private static readonly string s_potentialTasksCoreLocation = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksCoreFilename); 360assemblyFile = Strings.WeakIntern(Path.Combine(directoryOfImportingFile, assemblyFile)); 375string replacedAssemblyFile = Path.Combine(Path.GetDirectoryName(assemblyFile), s_tasksCoreFilename);
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\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\msbuild\src\Shared\TypeLoader.cs (1)
76microsoftBuildFrameworkPath = 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\NuGetFrameworkWrapper.cs (1)
208string assemblyPath = Path.Combine(assemblyDirectory, NuGetFrameworksFileName);
Utilities\Utilities.cs (1)
577string userExtensionsPath = Path.Combine(localAppData, ReservedPropertyNames.userExtensionsPathSuffix);
Microsoft.Build.Framework (51)
BackEnd\CommunicationsUtilities.cs (1)
767string filePath = Path.Combine(s_debugDumpPath, fileName);
BuildEnvironmentHelper.cs (7)
202var msBuildExecutableCandidate = Path.Combine(Path.GetDirectoryName(buildAssembly), Constants.MSBuildExecutableName); 330return TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, Constants.MSBuildExecutableName)) 332?? TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, Constants.MSBuildAssemblyName)); 623MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 627MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : CurrentMSBuildToolsDirectory; 634? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 692defaultSdkPath = 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.cs (9)
87string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 152cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 452string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 675return NormalizePath(Path.Combine(directory, file)); 894return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 994string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 1072var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1513return paths.Aggregate(root, Path.Combine); 1686string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
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);
ItemSpecModifiers.cs (2)
86Directory = Path.Combine(rootDir, directory); 661_ = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
Loader\MSBuildLoadContext.cs (1)
101var assemblyNameInExecutableDirectory = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
NativeMethods.cs (1)
570string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"INTCASESENSITIVETEST{Guid.NewGuid():N}");
PathHelpers\AbsolutePath.cs (1)
112Value = Path.Combine(basePath.Value, path);
Utilities\FileMatcher.cs (3)
507longPath = Path.Combine(longPath, parts[i]); 2007var filespecUnescapedFullyQualified = Path.Combine(projectDirectoryUnescaped, filespecUnescaped); 2098fixedDirectoryPart = Path.Combine(projectDirectoryUnescaped, fixedDirectoryPart);
Utilities\FrameworkLocationHelper.cs (17)
445? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 455? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 465? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV30) 475? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV35) 485? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV40) 495? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV45) 505? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 515? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 596Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin"); 836var frameworkPath = Path.Combine(NativeMethods.FrameworkBasePath, prefix ?? string.Empty); 846return Path.Combine(complusInstallRoot, complusVersion); 987? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework") 988: Path.Combine(NativeMethods.FrameworkBasePath, "xbuild-frameworks"); 1145string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix); 1453(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, Constants.MSBuildExecutableName)) && 1454!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll")))) 1486frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Utilities\TaskFactoryUtilities.cs (2)
265path = Path.Combine(directory, assemblyName.Name + ".dll"); 299return 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 (14)
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (1)
211var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "csc.rsp");
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (4)
65internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 76_useAppHost = useAppHost = File.Exists(Path.Combine(GetToolDirectory(), AppHostToolName)); 164return Path.Combine(ToolPath ?? "", ToolExe); 231return Path.Combine(buildTaskDirectory, "bincore");
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
127combined = Path.Combine(path1, path2);
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
395var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "vbc.rsp");
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
443var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 775var result = Path.Combine(tempPath, ".roslyn"); 783FilePath = Path.Combine(mutexDirectory, name); 784GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = 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)
97var filePath = Path.Combine(item, fileName);
Microsoft.Build.Tasks.Core (107)
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)
174string strOutputExe = System.IO.Path.Combine(settings.OutputPath, SETUP_EXE); 361string setupSourceFile = System.IO.Path.Combine(bootstrapperPath, SETUP_BIN); 503private string BootstrapperPath => System.IO.Path.Combine(Path, ENGINE_PATH); 505private string PackagePath => System.IO.Path.Combine(Path, PACKAGE_PATH); 507private string SchemaPath => System.IO.Path.Combine(Path, SCHEMA_PATH); 528string startDirectory = System.IO.Path.Combine(BootstrapperPath, RESOURCES_PATH); 535string resourceDirectory = System.IO.Path.Combine(startDirectory, subDirectory); 536string resourceFilePath = System.IO.Path.Combine(resourceDirectory, SETUP_RESOURCES_FILE); 880string strSubDirectoryFullPath = System.IO.Path.Combine(packagePath, strSubDirectory); 883string strBaseManifestFilename = System.IO.Path.Combine(strSubDirectoryFullPath, ROOT_MANIFEST_FILE); 884string strBaseManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA); 922UpdatePackageFileNodes(packageFilesNode, System.IO.Path.Combine(packagePath, strSubDirectory), strSubDirectory); 935string strLangManifestFilename = System.IO.Path.Combine(strLanguageDirectory, CHILD_MANIFEST_FILE); 936string strLangManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA); 1172string strSourceFile = System.IO.Path.Combine(strSourcePath, relativePath); 1176targetPathAttribute.Value = System.IO.Path.Combine(strTargetPath, relativePath); 1179string newNameValue = System.IO.Path.Combine(strTargetPath, relativePath); 1468string strDestinationFileName = System.IO.Path.Combine(settings.OutputPath, packageFileDestination.Value); 2001using (var xmlwriter = new XmlTextWriter(System.IO.Path.Combine(s_logPath, fileName), Encoding.UTF8)) 2043using (var fileWriter = new StreamWriter(System.IO.Path.Combine(s_logPath, fileName), append)) 2204string logPath = System.IO.Path.Combine(
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)
832() => Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec)), 871() => 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)
215temporaryFilePath = Path.Combine(directoryPath, Path.GetRandomFileName() + "~");
GenerateLauncher.cs (1)
106string outputEntryPoint = Path.Combine(Path.GetDirectoryName(EntryPoint.ItemSpec), results.KeyFile);
GenerateResource.cs (6)
570commandLineBuilder.AppendFileNameIfNotNull(Path.Combine(_resgenPath, "resgen.exe")); 2670string priDirectory = Path.Combine(outFileOrDir ?? String.Empty, 2672currentOutputDirectory = Path.Combine(priDirectory, 2680currentOutputFile = Path.Combine(currentOutputDirectory, currentOutputFileNoPath); 2844string shorterPath = Path.Combine(outputDirectory ?? String.Empty, cultureName ?? String.Empty); 2849currentOutputFile = 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)
181string redistListPath = Path.Combine(referenceAssemblyPath, _redistListFolder); 182return Path.Combine(redistListPath, _redistListFile); 581manifestPath = 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)
133File.Copy(temp, Path.Combine(Util.logPath, n + ".trust-file.xml"), true);
ManifestUtil\SecurityUtil.cs (3)
724hModule = NativeMethods.LoadLibraryExW(Path.Combine(clrDllDir, "clr.dll"), IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 870toolPath = Path.Combine(Directory.GetCurrentDirectory(), ToolName); 935return 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)
136destinationFile = Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec));
MSBuild.cs (1)
626outputItemFromTarget.ItemSpec = Path.Combine(projectDirectory[i], outputItemFromTarget.ItemSpec);
NativeMethods.cs (2)
368private static readonly string s_gacPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, "gac"); 627var 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)
86string fullName = Path.Combine(MSBuildProjectDirectory, CodeAnalysisRuleSet); 98string fullName = Path.Combine(directory, CodeAnalysisRuleSet); 111string 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)
597Path.Combine(ThisAssemblyDirectoryLazy.Value, ReferenceAssemblyDirectoryName), 600.FirstOrDefault(p => FileSystems.Default.FileExists(Path.Combine(p, assemblyFileName))); 604resolvedAssemblyReferences.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()}");
src\msbuild\src\Shared\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
SystemState.cs (2)
468string pathFromRedistList = Path.Combine(a.FrameworkDirectory, filename); 622AbsolutePath fullPath = taskEnvironment.GetAbsolutePath(Path.Combine(stateFileDirectory, relativePath)).GetCanonicalForm();
Unzip.cs (1)
189AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName)).GetCanonicalForm();
WriteCodeFragment.cs (2)
115OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, OutputFile.ItemSpec)); 126OutputFile = 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)
66var packedRefsPath = Path.Combine(gitDirectory, PackedRefsFileName); 179var refTableDirectory = Path.Combine(gitDirectory, RefTableDirectoryName); 180var tablesFilePath = Path.Combine(refTableDirectory, TablesListFileName); 191var path = Path.Combine(refTableDirectory, fileName); 304ReferenceStorageFormat.LooseFiles => ParseObjectNameOrReference(ReadReferenceFromFile(Path.Combine(_gitDirectory, GitRepository.GitHeadFileName))), 347path = 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)
354var 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)
531pathToTool = Path.Combine(ToolPath, ToolExe); 544pathToTool = Path.Combine(directory, ToolExe); 1432.Select(folderPath => Path.Combine(folderPath, filename))
Microsoft.CodeAnalysis (22)
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)
1817var 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 (3)
92ShadowDirectory = Path.Combine(BaseDirectory, shadowDirectoryName); 189var analyzerShadowPath = Path.Combine(analyzerShadowDir, Path.GetFileName(originalAnalyzerPath)); 217return Path.Combine(ShadowDirectory, shadowDirName);
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)
169return new AssemblyMetadata(manifestModule, moduleName => ModuleMetadata.CreateFromFile(Path.Combine(Path.GetDirectoryName(path) ?? "", moduleName)));
SourceGeneration\GeneratorDriver.cs (2)
510var tree = ParseGeneratedSourceText(source, Path.Combine(prefix, source.HintName), cancellationToken); 547var 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.Features (1)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
539var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/'));
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.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 (16)
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 (3)
92ShadowDirectory = Path.Combine(BaseDirectory, shadowDirectoryName); 189var analyzerShadowPath = Path.Combine(analyzerShadowDir, Path.GetFileName(originalAnalyzerPath)); 217return Path.Combine(ShadowDirectory, shadowDirName);
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\FileWatchedPortableExecutableReferenceFactory.cs (1)
87referenceDirectories.Add(Path.Combine(dotnetRoot, "packs"));
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
192? Path.Combine(_commandLineArgumentsForCommandLine.OutputDirectory, _commandLineArgumentsForCommandLine.OutputFileName)
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\BuildHostProcessManager.cs (1)
159dotnetPath = Path.GetFullPath(Path.Combine(msbuildLocation.Path, $"../../{DotnetExecutable}"));
MSBuild\MSBuildProjectLoader.cs (2)
362? Path.Combine(_directory, _filename + _extension) 363: Path.Combine(_directory, $"{_filename}-{suffix}{_extension}");
MSBuild\MSBuildWorkspace.cs (1)
474? 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)
514searchDirectory = 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)
260dotnetRoot = 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)
32string packageDropOutputFolder = Path.Combine(LightCommandWorkingDir, Path.GetFileName(InstallerFile)); 54var 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 (11)
EmbeddedTemplates.cs (1)
41string destinationPath = Path.Combine(destinationFolder, destinationFilename);
ProjectTemplateBase.cs (1)
62public string SourceDirectory => Path.Combine(BaseIntermediateOutputPath, "src");
Swix\ComponentSwixProject.cs (1)
79Path.Combine(base.GetRelativePackagePath(), "_package.json");
Swix\SwixProjectBase.cs (1)
52protected string SwixDirectory => Path.Combine(SourceDirectory, "swix");
WorkloadPackageBase.cs (7)
203DestinationDirectory = Path.Combine(destinationBaseDirectory, Path.GetRandomFileName()); 239File.Copy(PackagePath, Path.Combine(DestinationDirectory, Path.GetFileName(PackagePath)), overwrite: true); 247Utils.DeleteDirectory(Path.Combine(DestinationDirectory, "_rels")); 248Utils.DeleteDirectory(Path.Combine(DestinationDirectory, "package")); 250Utils.DeleteFile(Path.Combine(DestinationDirectory, ".signature.p7s")); 251Utils.DeleteFile(Path.Combine(DestinationDirectory, "[Content_Types].xml")); 252Utils.DeleteFile(Path.Combine(DestinationDirectory, $"{Id}.nuspec"));
Microsoft.DotNet.Cli.CoreUtils (1)
DotnetFiles.cs (1)
20public static string VersionFile => Path.GetFullPath(Path.Combine(SdkRootFolder, ".version"));
Microsoft.DotNet.Cli.Definitions (5)
Commands\Test\TestCommandDefinition.cs (1)
80string 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)
191return Path.Combine( 205return 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) 219var 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, path)) : null; 65=> project.GetPropertyValue(PropertyNames.IntermediateOutputPath) is { Length: >0 } path ? Path.Combine(project.Directory, 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)
706var outputDir = Path.Combine(Path.GetDirectoryName(projectPath)!, relativeOutputDir); 713var targetPath = Path.Combine(outputDir, item.GetMetadata(MetadataNames.TargetPath));
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAsset.cs (1)
56var 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 (1)
EnvironmentProvider.cs (1)
46.Select(p => Path.Combine(p, commandNameWithExtension))
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 (3)
LaunchSettings\ExecutableLaunchProfileParser.cs (1)
56workingDirectory = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(launchSettingsPath)!, expandedValue));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
559var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/')); 667var resolvedFilePath = Path.GetFullPath(Path.Combine(sourceDirectory, Name.Replace('\\', '/')));
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)
67Path.Combine(TranslatedOutputDirectory, $"{translatedFileName}.{language}{extension}");
Tasks\TransformTemplates.cs (8)
70? Path.Combine(TranslatedOutputDirectory, $"{templateName}.default.1033") 71: Path.Combine(TranslatedOutputDirectory, $"{templateName}.{language}"); 73string cultureSpecificTemplateFile = Path.Combine(localizedTemplateDirectory, Path.GetFileName(template.ItemSpec)); 79string projectFileFullPath = Path.Combine(templateDirectory, projectNode.Attribute("File").Value); 80File.Copy(projectFileFullPath, Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value)), overwrite: true); 86string templateItemFullPath = Path.Combine(templateDirectory, templateItem.Value); 87string templateItemDestinationPath = Path.Combine(localizedTemplateDirectory, templateItem.Value); 108File.Copy(Path.Combine(TranslatedOutputDirectory, localizedFileName), templateItemDestinationPath, overwrite: true);
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataContent.cs (1)
233path = path.Length == 0 ? name! : Path.Combine(path, name);
Microsoft.Extensions.AI.Abstractions.Tests (23)
Contents\DataContentTests.cs (23)
316string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.json"); 343string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.bin"); 370string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.unknownextension"); 396string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.png"); 459string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.bin"); 486string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}"); 516string tempDir = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}"); 518string expectedPath = Path.Combine(tempDir, "myfile.json"); 545string tempDir = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}"); 574string tempPath = Path.Combine(Path.GetTempPath(), $"test_{Guid.NewGuid()}.txt"); 706string tempDir = Path.Combine(Path.GetTempPath(), $"test_subdir_{Guid.NewGuid()}"); 707string subDir = Path.Combine(tempDir, "subdir"); 712string filePath = Path.Combine(subDir, "nested.html"); 739string tempDir = Path.Combine(Path.GetTempPath(), $"test_dir_noname_{Guid.NewGuid()}"); 766string tempPath = Path.Combine(Path.GetTempPath(), $"test_cancel_{Guid.NewGuid()}.txt"); 797string tempPath = Path.Combine(Path.GetTempPath(), $"test_save_cancel_{Guid.NewGuid()}.bin"); 837string tempDir = Path.Combine(Path.GetTempPath(), $"test_dir_name_{Guid.NewGuid()}"); 839string expectedPath = Path.Combine(tempDir, content.Name); 865string tempDir = Path.Combine(Path.GetTempPath(), $"test_nonexist_{Guid.NewGuid()}"); 867string filePath = Path.Combine(tempDir, "newfile"); 894string tempPath = Path.Combine(Path.GetTempPath(), $"test_large_{Guid.NewGuid()}.bin"); 923string tempPath = Path.Combine(Path.GetTempPath(), $"test_save_large_{Guid.NewGuid()}.bin"); 946string tempPath = Path.Combine(Path.GetTempPath(), $"test_existing_{Guid.NewGuid()}.bin");
Microsoft.Extensions.AI.Evaluation.Console (3)
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)
282=> Path.Combine(storageRootPath, "cache"); 285=> Path.Combine(keyPath, "entry.json"); 288=> Path.Combine(keyPath, "contents.data"); 292string keyPath = Path.Combine(_iterationPath, key);
Storage\DiskBasedResultStore.cs (6)
49_resultsRootPath = Path.Combine(storageRootPath, "results"); 97var resultFile = new FileInfo(Path.Combine(resultDir.FullName, $"{result.IterationName}.json")); 123var executionDir = new DirectoryInfo(Path.Combine(_resultsRootPath, executionName)); 263var executionDir = new DirectoryInfo(Path.Combine(_resultsRootPath, executionName)); 296var scenarioDir = new DirectoryInfo(Path.Combine(executionDir.FullName, scenarioName)); 332var resultFile = new FileInfo(Path.Combine(scenarioDir.FullName, $"{iterationName}.json"));
Microsoft.Extensions.AI.Templates.Tests (11)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (5)
42_sandboxInstallPath = Path.Combine(_sandboxOutput, "install"); 43_sandboxProjectsPath = Path.Combine(_sandboxOutput, "projects"); 84file.CopyTo(Path.Combine(testSandbox, file.Name)); 89CopySandboxDirectory(subDir.FullName, Path.Combine(testSandbox, subDir.Name)); 95var outputFolderPath = Path.Combine(_sandboxProjectsPath, projectName);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
test\ProjectTemplates\Infrastructure\TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (2)
35TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxSource, "nuget.config"); 46var gitPath = Path.Combine(directory, ".git");
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownReader.cs (1)
106string inputFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.Extensions.DataIngestion.Tests (5)
IngestionPipelineTests.cs (2)
34_withTable = new(Path.Combine("TestFiles", "withTable.md")); 55_withImage = new(Path.Combine("TestFiles", "withImage.md"));
Readers\DocumentReaderConformanceTests.cs (2)
49string filePath = Path.Combine(Path.GetTempPath(), Path.GetTempFileName() + ".txt"); 192FileInfo file = new(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + extension));
Readers\MarkItDownMcpReaderTests.cs (1)
45var nonExistentFile = new FileInfo(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
Microsoft.Extensions.DependencyModel (7)
Resolution\AppBaseCompilationAssemblyResolver.cs (2)
61string refsPath = Path.Combine(_basePath, RefsDirectoryName); 87string sharedRefs = Path.Combine(sharedDirectory, RefsDirectoryName);
Resolution\ReferenceAssemblyPathResolver.cs (2)
69string relativeToReferenceAssemblies = Path.Combine(_defaultReferenceAssembliesPath, path); 81string fallbackFile = Path.Combine(fallbackPath, name);
Resolution\ResolverUtils.cs (3)
15path = Path.Combine(library.Name, library.Version); 18packagePath = Path.Combine(basePath, path); 29fullName = Path.Combine(basePath, assemblyPath);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\LinuxUtilizationParserCgroupV2.cs (1)
319FileInfo memoryUsageInBytesFile = new(Path.Combine(path, "memory.current"));
Microsoft.Extensions.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)
223var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 347string oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1)); 894while (Path.Combine(watchDir, _expectedName) is var childPath && Directory.Exists(childPath)) 930string 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.ML.Tests (2)
FileLoaderTests.cs (1)
48loaderUnderTest.Start(Path.Combine("TestModels", "SentimentModel.zip"), false);
PredictionEnginePoolTests.cs (1)
34.FromFile(modelName: "model1", filePath: Path.Combine("TestModels", "SentimentModel.zip"), watchForChanges: false);
Microsoft.Extensions.ServiceDiscovery.Dns (3)
DnsSrvServiceEndpointProviderFactory.cs (3)
19private static readonly string s_resolveConfPath = Path.Combine($"{Path.DirectorySeparatorChar}etc", "resolv.conf"); 133var tokenPath = Path.Combine(s_serviceAccountPath, "token"); 139var certPath = Path.Combine(s_serviceAccountPath, "ca.crt");
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
112File.WriteAllText(Path.Combine(_directory, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
GeneratorTests.cs (2)
142var fullReportPath = Path.Combine(projectDir, outputPath); 156Assert.True(File.Exists(Path.Combine(fullReportPath, "ComplianceReport.json")));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.Logging.Unit.Tests (6)
CompilationHelper.cs (2)
30refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 31refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
ParserTests.cs (1)
684.UseDirectory(Path.Combine("..", "Verified"));
ParserTests.LogProperties.cs (1)
490.UseDirectory(Path.Combine("..", "Verified"));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.MetadataExtractor (4)
MetadataReportsGenerator.cs (1)
110File.WriteAllText(Path.Combine(path, _fileName), reportStringBuilder.ToString(), Encoding.UTF8);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
112File.WriteAllText(Path.Combine(_directory, _fileName), report, Encoding.UTF8);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
86File.WriteAllText(Path.Combine(path, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
GeneratorTests.cs (5)
81var goldenReportPath = Path.Combine("GoldenReports", goldenFileName); 83var generatedReportPath = Path.Combine(Directory.GetCurrentDirectory(), ReportFilename); 134Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 170var fullReportPath = Path.Combine(projectDir, outputPath); 184Assert.True(File.Exists(Path.Combine(fullReportPath, ReportFilename)));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (1)
86File.WriteAllText(Path.Combine(path, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
165? Path.Combine(currentProjectPath!, compilationOutputPath!)
Microsoft.Gen.MetricsReports.Unit.Tests (7)
GeneratorTests.cs (5)
46var goldenReportPath = Path.Combine("GoldenReports", goldenFileName); 48var generatedReportPath = Path.Combine(Directory.GetCurrentDirectory(), ReportFilename); 94Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 123var fullReportPath = Path.Combine(projectDir, outputPath); 137Assert.True(File.Exists(Path.Combine(fullReportPath, ReportFilename)));
test\Generators\Shared\RoslynTestUtils.cs (2)
65refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "netstandard.dll"))); 66refs.Add(MetadataReference.CreateFromFile(Path.Combine(runtimeDir, "System.Runtime.dll")));
Microsoft.Maui (1)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
56 var filePath = Path.Combine(rootPath, font.FontName!);
Microsoft.Maui.Controls.Build.Tasks (1)
XamlCTask.cs (1)
116 xamlFilePath = IOPath.Combine(prefix, xamlFilePath);
Microsoft.Maui.Resizetizer (32)
AndroidAdaptiveIconGenerator.cs (7)
66 var dir = Path.Combine(fullIntermediateOutputPath.FullName, dpi.Path); 67 var destination = Path.Combine(dir, backgroundDestFilename); 110 var dir = Path.Combine(fullIntermediateOutputPath.FullName, dpi.Path); 111 var destination = Path.Combine(dir, foregroundDestFilename); 143 var dir = Path.Combine(fullIntermediateOutputPath.FullName, "mipmap-anydpi-v26"); 144 var adaptiveIconDestination = Path.Combine(dir, AppIconName + ".xml"); 145 var adaptiveIconRoundDestination = Path.Combine(dir, AppIconName + "_round.xml");
AppleIconAssetsGenerator.cs (4)
29 var outputAppIconSetDir = Path.Combine(IntermediateOutputPath, DpiPath.Ios.AppIconPath.Replace("{name}", AppIconName)); 30 var outputAssetsDir = Path.Combine(outputAppIconSetDir, ".."); 36 var assetContentsFile = Path.Combine(outputAssetsDir, "Contents.json"); 37 var appIconSetContentsFile = Path.Combine(outputAppIconSetDir, "Contents.json");
CreatePartialInfoPlistTask.cs (1)
34 var plistFilename = Path.Combine(IntermediateOutputPath, PlistName ?? "PartialInfo.plist");
GeneratePackageAppxManifest.cs (1)
51 var filename = Path.Combine(IntermediateOutputPath, GeneratedFilename ?? "Package.appxmanifest");
GenerateSplashAndroidResources.cs (6)
86 var dir = Path.Combine(IntermediateOutputPath, "values"); 89 var colorsFile = Path.Combine(dir, "maui_colors.xml"); 110 var dir = Path.Combine(IntermediateOutputPath, "drawable"); 113 var drawableFile = Path.Combine(dir, "maui_splash_image.xml"); 136 var dir = Path.Combine(IntermediateOutputPath, "drawable-v31"); 139 var drawableFile = Path.Combine(dir, "maui_splash_image.xml");
GenerateSplashStoryboard.cs (2)
78 var storyboardFile = Path.Combine(IntermediateOutputPath, "MauiSplash.storyboard"); 99 var storyboardFile = Path.Combine(IntermediateOutputPath, "MauiSplash.storyboard");
GenerateTizenManifest.cs (2)
61 _tizenManifestFilePath = Path.Combine(Environment.CurrentDirectory, TizenManifestFile); 63 var targetFilename = Path.Combine(IntermediateOutputPath, GeneratedFilename);
GetMauiAssetPath.cs (1)
63 path = Path.Combine(FolderName, path);
Resizer.cs (2)
48 var destination = Path.Combine(dpi.Path, info.OutputName + (includeScale ? dpi.FileSuffix : dpi.NameSuffix) + info.OutputExtension); 53 destination = Path.Combine(fullIntermediateOutputPath.FullName, destination);
TizenResourceXmlGenerator.cs (3)
56 string outputResourceDir = Path.Combine(IntermediateOutputPath, "res"); 57 string outputContentsDir = Path.Combine(outputResourceDir, "contents"); 58 string destination = Path.Combine(outputResourceDir, "res.xml");
TizenSplashUpdater.cs (2)
30 var splashFullPath = Path.Combine(IntermediateOutputPath, splashDirectoryName); 55 UpdateColorAndMoveFile(splashInfo, GetScreenSize(resolution, orientation), destination, Path.Combine(splashFullPath, newImage));
WindowsIconGenerator.cs (1)
28 string destination = Path.Combine(destinationFolder, $"{fileName}.ico");
Microsoft.McpServer.ProjectTemplates.Tests (11)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (5)
42_sandboxInstallPath = Path.Combine(_sandboxOutput, "install"); 43_sandboxProjectsPath = Path.Combine(_sandboxOutput, "projects"); 84file.CopyTo(Path.Combine(testSandbox, file.Name)); 89CopySandboxDirectory(subDir.FullName, Path.Combine(testSandbox, subDir.Name)); 95var outputFolderPath = Path.Combine(_sandboxProjectsPath, projectName);
test\ProjectTemplates\Infrastructure\TemplateExecutionTestConfiguration.cs (2)
14public string TemplateSandboxPackages => Path.Combine(TemplateSandboxRoot, "packages"); 15public string TemplateSandboxOutput => Path.Combine(TemplateSandboxRoot, TemplateName);
test\ProjectTemplates\Infrastructure\TemplateSnapshotTestBase.cs (2)
35string templateLocation = Path.Combine(WellKnownPaths.LocalShippingPackagesPath, $"{templatePackageName}.*.nupkg"); 45SnapshotsDirectory = Path.Combine("Snapshots", templateName),
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (2)
35TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxSource, "nuget.config"); 46var gitPath = Path.Combine(directory, ".git");
Microsoft.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 (12)
BenchmarkBase.cs (2)
38Path.GetFullPath(Path.Combine(DataDir, name)) : 49Path.GetFullPath(Path.Combine(DataDir, path));
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\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\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\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)
36tempFolder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 37assetsPath = Path.Combine(tempFolder, "assets"); 38parentWorkspacePath = Path.Combine(assetsPath, "cached"); 76_fullImagesetFolderPath = Path.Combine( 766var varDir = Path.Combine(modelLocation, "variables"); 1449if (Directory.Exists(workspacePath) && File.Exists(Path.Combine(workspacePath, trainSetBottleneckCachedValuesFileName)) 1450&& File.Exists(Path.Combine(workspacePath, validationSetBottleneckCachedValuesFileName))) 1465string workspacePath = Path.Combine(TensorFlowScenariosTestsFixture.parentWorkspacePath, finalImagesFolderName + "_" + (int)arch); 1750Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.TrainSetBottleneckCachedValuesFileName))); 1751Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.ValidationSetBottleneckCachedValuesFileName))); 1850string fullImagesetFolderPath = Path.Combine( 1958UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 1960if (!Directory.Exists(Path.Combine(imagesDownloadFolder, filenameAlias))) 1961Directory.Move(Path.Combine(imagesDownloadFolder, Path.GetFileNameWithoutExtension(fileName)), Path.Combine(imagesDownloadFolder, "FPTSUT")); 1971UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 1983string relativeFilePath = Path.Combine(destDir, destFileName); 2012if (File.Exists(Path.Combine(destFolder, flag))) 2016File.Create(Path.Combine(destFolder, flag)); 2039string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.ML.TestFramework (9)
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 (11)
DatabaseLoaderTests.cs (2)
295var databaseFile = Path.GetFullPath(Path.Combine("TestDatabases", $"{databaseName}.mdf")); 301var 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 (32)
BpeTests.cs (9)
366using Stream vocabStream = File.OpenRead(Path.Combine(@"Gpt-2", "vocab.json")); 367using Stream mergesStream = File.OpenRead(Path.Combine(@"Gpt-2", "merges.txt")); 380string vocabFile = Path.Combine(@"Gpt-2", "vocab.json"); 381string mergesFile = Path.Combine(@"Gpt-2", "merges.txt"); 546using Stream vocabStream = File.OpenRead(Path.Combine(@"Gpt-2", "vocab.json")); 547using Stream mergesStream = File.OpenRead(Path.Combine(@"Gpt-2", "merges.txt")); 894BpeOptions options = new BpeOptions(Path.Combine(@"Gpt-2", "vocab.json"), Path.Combine(@"Gpt-2", "merges.txt")) 951using Stream jsonModelStream = File.OpenRead(Path.Combine(@"DeepSeek", "tokenizer-DeepSeek-R1.json"));
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 (2)
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"));
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 (4)
ContentStore.cs (2)
10public static string ArtifactRoot { get; set; } = Path.Combine(Path.GetTempPath(), "Containers"); 52string descriptorPath = Path.Combine(ContentRoot, digestValue) + extension;
LocalDaemons\ArchiveFileRegistry.cs (1)
34fullPath = Path.Combine(fullPath, destinationReference.Repository + ".tar.gz");
LocalDaemons\DockerCli.cs (1)
58string fullPath = Path.Combine(directory, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"{command}.exe" : command);
Microsoft.NET.Build.Tasks (54)
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 (1)
127var packsFolder = Path.Combine(targetingPackRoot, frameworkName + ".Ref");
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 (3)
170var outputR2RImage = Path.Combine(OutputPath, outputR2RImageRelativePath); 365intermediateR2RImage = Path.Combine(OutputPath, r2rImageRelativePath); 366var r2rImageFinal = Path.Combine(OutputPath, r2rFinalImageRelativePath);
ProcessFrameworkReferences.cs (2)
1120yield return Path.Combine(packRoot, "packs"); 1129yield 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 (2)
199string assetPath = Path.GetFullPath(Path.Combine(runtimePackRoot, fileElement.Attribute("Path").Value)); 274assetItem.SetMetadata(MetadataKeys.DestinationSubPath, Path.Combine(culture, Path.GetFileName(assetPath)));
ResolveTargetingPackAssets.cs (6)
187string targetingPackDataPath = Path.Combine(targetingPackRoot, "data"); 199string platformManifestPath = Path.Combine(targetingPackDataPath, "PlatformManifest.txt"); 201string packageOverridesPath = Path.Combine(targetingPackDataPath, "PackageOverrides.txt"); 203string frameworkListPath = Path.Combine(targetingPackDataPath, "FrameworkList.xml"); 360Path.Combine(definition.TargetingPackRoot, fileElement.Attribute("Path").Value) : 440var 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 (3)
BrotliCompress.cs (1)
87var outputRelativePath = Path.Combine(OutputDirectory, CalculateTargetPath(inputFullPath, ".br"));
GZipCompress.cs (1)
39var outputRelativePath = Path.Combine(
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1160var 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)
118var 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 (15)
CollectStaticWebAssetsToCopy.cs (1)
45fileOutputPath = Path.Combine(normalizedOutputPath, asset.ComputeTargetPath("", Path.DirectorySeparatorChar, StaticWebAssetTokenResolver.Instance));
Compression\ResolveCompressedAssets.cs (2)
192return Path.Combine(outputPath, $"{pathHash}-{{0}}-{asset.Fingerprint}"); 303var itemSpec = Path.GetFullPath(Path.Combine(OutputPath, fileName));
Data\StaticWebAsset.cs (1)
1160var destPath = Path.Combine(fxDir, Normalize(fileSystemRelativePath));
DefineStaticWebAssetEndpoints.cs (2)
226var finalRoute = asset.IsProject() || asset.IsPackage() ? StaticWebAsset.Normalize(Path.Combine(asset.BasePath, route)) : route; 345var finalRoute = asset.IsProject() || asset.IsPackage() ? StaticWebAsset.Normalize(Path.Combine(asset.BasePath, route)) : route;
DefineStaticWebAssets.cs (2)
281identity = Path.Combine(Path.GetDirectoryName(identity) ?? string.Empty, expanded); 431var 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 (2)
121var destPath = Path.GetFullPath(Path.Combine(fxDir, resolvedRelativePath)); 222return Path.GetFullPath(Path.Combine(packageRoot, relativePath.Replace('/', Path.DirectorySeparatorChar)));
ScopedCss\ConcatenateCssFiles.cs (1)
67var 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 (8)
CachingWorkloadResolver.cs (5)
72string sentinelPath = Path.Combine(Path.GetDirectoryName(typeof(CachingWorkloadResolver).Assembly.Location) ?? string.Empty, "DisableWorkloadResolver.sentinel"); 124string sdkPackSdkFolder = Path.Combine(sdkPackInfo.Path, "Sdk"); 125string autoImportPath = Path.Combine(sdkPackSdkFolder, "AutoImport.props"); 142var workloadManifestTargetPath = Path.Combine(manifestDirectory, "WorkloadManifest.targets"); 158return 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\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)
108string filePath = Path.Combine(downloadPath, packageMetadata.Identity.Id + "." + packageMetadata.Identity.Version + ".nupkg");
Installers\NuGet\NuGetInstaller.cs (1)
409string 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.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"); 511var filepath = Path.Combine(GetTempDirectory(), Constants.AttachmentFileName + "_" + _attachmentGuid); 706_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)
324: 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)
191var testhostProcessPath = Path.Combine(currentWorkingDirectory, testHostProcessName); 200testHostProcessName = Path.Combine("TestHostNetFramework", originalTestHostProcessName); 350actualSources.Add(Path.Combine(Path.GetDirectoryName(uwpSource)!, GetUwpSources(uwpSource)!)); 605appxManifestPath = Path.Combine(Path.GetDirectoryName(uwpSource)!, appxManifestPath);
Hosting\DotnetTestHostManager.cs (11)
273var runtimeConfigPath = Path.Combine(sourceDirectory, string.Concat(sourceFile, ".runtimeconfig.json")); 288var depsFilePath = Path.Combine(sourceDirectory, string.Concat(sourceFile, ".deps.json")); 300var runtimeConfigDevPath = Path.Combine(sourceDirectory, string.Concat(sourceFile, ".runtimeconfig.dev.json")); 324var fullExePath = Path.Combine(sourceDirectory, exeName); 382var testHostNextToRunner = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "testhost.dll"); 394var testhostDeps = Path.Combine(Path.GetDirectoryName(testHostNextToRunner)!, "testhost.deps.json"); 447var testhostRuntimeConfig = Path.Combine(Path.GetDirectoryName(testHostNextToRunner)!, $"testhost-{suffix}.runtimeconfig.json"); 450testhostRuntimeConfig = Path.Combine(Path.GetDirectoryName(testHostNextToRunner)!, $"testhost-latest.runtimeconfig.json"); 927testHostPath = Path.Combine(testhostPackage.Path, testHostPath); 966testHostFullPath = Path.Combine(x.GetString()!, testHostPath); 1026var testHostNextToTestProject = Path.Combine(sourceDirectory, "testhost.dll");
Microsoft.TestPlatform.Utilities (2)
ClientUtilities.cs (1)
71fileName = Path.Combine(root, fileName);
CodeCoverageDataAttachmentsHandler.cs (1)
170var 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)
297string 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)
187var defaultResultsDirectory = Path.Combine(Directory.GetCurrentDirectory(), Constants.ResultsDirectoryName);
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (3)
HtmlLogger.cs (3)
305HtmlFilePath = Path.Combine(TestResultsDirPath!, logFilePrefixValue); 311HtmlFilePath = Path.Combine(TestResultsDirPath!, logFileNameValue); 365var fullFilePath = Path.Combine(TestResultsDirPath!, $"TestResult_{fileNameWithIter}.{fileExtension}");
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (16)
ObjectModel\TestRun.cs (1)
166return Path.Combine(GetResultsDirectory(), result.RelativeTestResultsDirectory);
ObjectModel\TestRunConfiguration.cs (1)
82return Path.Combine(_runDeploymentRoot, DeploymentInDirectorySuffix);
TrxLogger.cs (1)
514filePath = Path.Combine(_testResultsDirPath, 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)
654string autoResponseFile = Path.Combine(path, autoResponseFileName);
OutOfProcTaskHostNode.cs (1)
1289? 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\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\msbuild\src\Shared\TypeLoader.cs (1)
76microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
XMake.cs (3)
2341Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}"); 3714$"logFile={Path.Combine(Directory.GetCurrentDirectory(), logFileName)}"); 3731fileParameters += $"logFile={Path.Combine(Directory.GetCurrentDirectory(), msbuildLogFileName)}";
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)
63var referencePath = Path.GetFullPath(Path.Combine(parentDirectory, project.ItemSpec));
GetRestoreSolutionProjectsTask.cs (1)
51var projectPath = Path.GetFullPath(Path.Combine(parentDirectory, project.ItemSpec));
RestoreSettingsUtils.cs (1)
31var solutionSettingsFile = Path.Combine(
RestoreTask.cs (2)
267restoredProjectOutputPaths.Add(new TaskItem(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName))); 274restoredProjectOutputPaths.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)
630return outputPath == null ? null : Path.GetFullPath(Path.Combine(project.Directory, outputPath)); 637return outputPath == null ? null : Path.GetFullPath(Path.Combine(projectDirectory, outputPath)); 922outputPath ??= Path.Combine(projectDirectory, "obj"); 1457LoggingQueue.Enqueue(new ConsoleOutLogEmbedInBinlog(Path.Combine(project.RestoreMetadata.OutputPath, LockFileFormat.AssetsFileName))); 1464LoggingQueue.Enqueue(new ConsoleOutLogEmbedInBinlog(Path.Combine(project.RestoreMetadata.OutputPath, DependencyGraphSpec.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath)))));
NuGet.Build.Tasks.Pack (15)
GetPackOutputItemsTask.cs (4)
60outputs.Add(new TaskItem(Path.Combine(PackageOutputPath, nupkgFileName))); 61outputs.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)
113var assetsFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 349string assetsFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName); 625packArgs.CurrentDirectory = Path.Combine( 650packArgs.PackTargetArgs.NuspecOutputPath = Path.Combine( 729: Path.Combine(targetPath, recursiveDir)); 790var newTargetPath = Path.Combine(targetPath, identity); 812currentPath = Path.Combine(targetPath, fileName); 834sourcePath = Path.Combine(sourceProjectFile.Replace(Path.GetFileName(sourceProjectFile), string.Empty), identity); 928library => Path.GetFullPath(Path.Combine(
NuGet.CommandLine.XPlat (3)
Commands\Package\Update\PackageUpdateIO.cs (1)
469var 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 (29)
CommandRunners\PackCommandRunner.cs (6)
87var result = BuildPackage(Path.GetFullPath(Path.Combine(_packArgs.CurrentDirectory, _packArgs.Path))); 192string resolvedNuSpecOutputPath = Path.Combine( 218string tempOutputPath = Path.Combine( 244string tempOutputPath = Path.Combine( 864return Path.Combine(finalOutputDirectory, outputFile); 975return 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\RequestFactory\RestoreArgs.cs (2)
117return Path.GetFullPath(Path.Combine(rootDirectory, globalPath)); 191request.LockFilePath = Path.Combine(request.RestoreOutputPath, LockFileFormat.AssetsFileName);
RestoreCommand\RestoreCommand.cs (1)
1547projectLockFilePath = 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( 354outputPath = 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)
425string packagesConfigPath = Path.Combine(projectDirectory, NuGetConstants.PackageReferenceFile); 432packagesConfigPath = Path.Combine(projectDirectory, "packages." + projectName + ".config"); 924return 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)
235_basePath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), "lock"); 249return 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)
51nuGetScratch = Path.Combine(tempPath, 96return Path.Combine(machineWideBaseDir, 100return Path.Combine( 105return Path.Combine( 110return Path.Combine( 221return Path.Combine(_getHome.Value, ".nuget"); 346var fullPath = Path.Combine(dir, executable); 380var 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)
127return Path.GetFullPath(Path.Combine(rootDirectory, local));
NuGet.Configuration (15)
Settings\ConfigurationDefaults.cs (1)
38if (File.Exists(Path.Combine(directory, configFile)))
Settings\Settings.cs (10)
556var defaultSettingsFilePath = Path.Combine(userSettingsDir, DefaultSettingsFileName); 588Path.Combine(rootDirectory, configFileName)); 602? Path.Combine(rootDirectory, "TestingGlobalPath") 608return Path.Combine(userSettingsDirectory, ConfigurationConstants.Config); 692var fullPath = Path.Combine(root ?? string.Empty, settingsPath); 748var rawPath = Path.Combine(originDirectoryPath, ResolvePath(Path.GetDirectoryName(originFilePath)!, path)); 782return Path.Combine(Path.GetPathRoot(configDirectory)!, value.Substring(1)); 784return Path.Combine(configDirectory, value); 795settingsPath = Path.Combine(settingsRoot, settingsPath); 844var file = Path.Combine(directory, nugetConfigCasing);
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)
1091return 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)
123var nupkgPath = Path.Combine(rootDirInfo.FullName, $"{name}{PackagingCoreConstants.NupkgExtension}"); 151var nupkgPath = Path.Combine(root.FullName, $"{name}{PackagingCoreConstants.NupkgExtension}");
LocalRepositories\LocalPackageInfo.cs (1)
55var 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)
110var filePath = Path.Combine(_logDirectoryPath, fileName);
Plugins\PluginCacheEntry.cs (2)
29RootFolder = Path.Combine(rootCacheFolder, CachingUtility.RemoveInvalidFileNameChars(CachingUtility.ComputeHash(pluginFilePath, addIdentifiableCharacters: false))); 30CacheFileName = Path.Combine(RootFolder, CachingUtility.RemoveInvalidFileNameChars(CachingUtility.ComputeHash(requestKey, addIdentifiableCharacters: false)) + ".dat");
Plugins\PluginDiscoveryUtility.cs (2)
59Path.Combine( 93var expectedPluginName = Path.Combine(pluginDirectory, Path.GetFileName(pluginDirectory) + ".dll");
Plugins\PluginPackageReader.cs (2)
1111var filePath = Path.Combine(directory, fileName); 1118var tempDirectoryPath = Path.Combine(NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp), Path.GetRandomFileName());
Resources\PackageUpdateResource.cs (3)
416return Path.Combine(packageDir, symbolPath); 695var fullPath = Path.Combine(root, packageFileName); 805var 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)
567profilePath = 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),
RepoTasks (8)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
113var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 241var certPath = Path.Combine(certDir, nickname) + ".pem"; 360? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 404Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 470var certPath = Path.Combine(certDir, nickname) + ".pem"; 609if (File.Exists(Path.Combine(searchFolder, command))) 1057var 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 (16)
CompilerHost.cs (1)
31Loader = new DefaultExtensionAssemblyLoader(Path.Combine(Path.GetTempPath(), "Razor-Server"));
DiscoverCommand.cs (2)
132extensionFilePaths.Values[i] = Path.Combine(currentDirectory, RazorCompilerFileName); 160outputFilePath = Path.Combine(projectDirectory, outputFilePath);
GenerateCommand.cs (1)
177tagHelperManifest = 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)
52string tempDirPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 54TempOutputPath = Path.Combine(tempDirPath, Path.GetFileName(DestinationPath)); 65File.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);
Stress.ApiService (2)
Program.cs (2)
294var xmlLarge = File.ReadAllText(Path.Combine("content", "books.xml")); 301var jsonLarge = File.ReadAllText(Path.Combine("content", "example.json"));
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)
233string filenameInWorkingDirectory = Path.Combine(workingDirectory, filename); 353path = Path.Combine(Path.GetDirectoryName(path)!, filename); 363path = Path.Combine(Directory.GetCurrentDirectory(), filename);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\TextWriterTraceListener.cs (1)
242fullPath = Path.Combine(dirPath, fileNameOnly);
System.Formats.Tar (1)
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)
170fileDestinationPath = Path.GetFullPath(Path.Combine(destinationDirectoryFullPath, ArchivingUtils.SanitizeEntryFilePath(source.FullName)));
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)
274path = 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 (22)
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 (5)
193string sharedMemoryFilePath = Path.Combine(sessionDirectory, id.Name); 367string sharedMemoryFilePath = Path.Combine(sessionDirectoryPath, _id.Name); 535string tempPath = Path.Combine(SharedFilesPath, SharedMemoryUniqueTempNameTemplate); 765string runtimeTempDirectory = Path.Combine( 771string 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)
236path = Path.Combine(Path.GetDirectoryName(type.Assembly.Location)!, $"{assemblyName}.dll"); 241path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll"); 246path = 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);
TestProject.AppHost (1)
TestProgram.cs (1)
73var serviceAPath = Path.Combine(Projects.TestProject_AppHost.ProjectPath, @"..\TestProject.ServiceA\TestProject.ServiceA.csproj");
tlens (1)
TLens\AssemlyReferenceResolver.cs (1)
40string file = Path.Combine(folder, fileName);
vbc (8)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
443var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 775var result = Path.Combine(tempPath, ".roslyn"); 783FilePath = Path.Combine(mutexDirectory, name); 784GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = 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)
97var 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)); 457var path = Path.Combine(entryDir, LastUsedFileName); 553var lastUsedPath = Path.Combine(entryDir, LastUsedFileName); 581var createdPath = Path.Combine(entryDir, CreatedFileName);
src\roslyn\src\Compilers\Server\VBCSCompiler\CSharpCompilerServer.cs (1)
22: this(metadataProvider, Path.Combine(buildPaths.ClientDirectory, ResponseFileName), args, buildPaths, libDirectory, analyzerLoader, driverCache, logger)
src\roslyn\src\Compilers\Server\VBCSCompiler\VisualBasicCompilerServer.cs (1)
22: this(metadataProvider, Path.Combine(buildPaths.ClientDirectory, ResponseFileName), args, buildPaths, libDirectory, analyzerLoader, driverCache, logger)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
443var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 775var result = Path.Combine(tempPath, ".roslyn"); 783FilePath = Path.Combine(mutexDirectory, name); 784GuardPath = Path.Combine(mutexDirectory, ".guard");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = 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)
97var 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)
122string 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)
122string collectorPath = Path.Combine(adapterPath, CoverletConstants.CoverletDataCollectorCodebase);
src\vstest\src\vstest.console\Publisher\TextFileTelemetryPublisher.cs (1)
63string path = Path.Combine(resultDirectory, resultFileName);
Yarp.AppHost (1)
Program.cs (1)
21.WithStaticFiles(Path.Combine("..", "static-content"))