7333 references to Combine
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
226string uniqueFileName = Path.Combine(directoryName, $"{fileNameWithoutExtension}-Unique{extension}");
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");
blazor-devserver (1)
Server\Program.cs (1)
45config.AddJsonFile(Path.Combine(applicationDirectory, "blazor-devserversettings.json"), optional: true, reloadOnChange: true);
BuildBoss (9)
CompilerNuGetCheckerUtil.cs (1)
254buildAssetRelativePath = Path.Combine(folderRelativePath, buildAssetRelativePath);
OptProfCheckerUtil.cs (1)
63string vsixFullPath = Path.Combine(vsixRoot, vsixName);
Program.cs (5)
88while (dir != null && !File.Exists(Path.Combine(dir, "global.json"))) 101allGood &= ProcessSolution(Path.Combine(repositoryDirectory, solutionFileName), isPrimarySolution: solutionFileName == primarySolution); 104var artifactsDirectory = Path.Combine(repositoryDirectory, "artifacts"); 144var targetsDirectory = Path.Combine(repositoryDirectory, @"eng\targets"); 151var logFilePath = Path.Combine(artifactsDirectory, $@"log\{configuration}\Build.binlog");
ProjectUtil.cs (1)
135var path = Path.Combine(directory, relativePath);
SolutionCheckerUtil.cs (1)
90var projectFilePath = Path.Combine(SolutionPath, projectEntry.RelativeFilePath);
BuildValidator (19)
CompilationDiff.cs (15)
219File.WriteAllText(Path.Combine(debugPath, "error.txt"), MiscErrorMessage); 227using var writer = new StreamWriter(Path.Combine(debugPath, "diagnostics.txt"), append: false); 237using var writer = new StreamWriter(Path.Combine(debugPath, "references.txt"), append: false); 282var originalDataFiles = createBuildArtifacts(Path.Combine(debugPath, "original"), assemblyFileName, originalInfo); 283var rebuildDataFiles = createBuildArtifacts(Path.Combine(debugPath, "rebuild"), assemblyFileName, rebuildInfo); 295File.WriteAllText(Path.Combine(debugPath, scriptName), $@"code --diff (Join-Path $PSScriptRoot ""{originalFilePath}"") (Join-Path $PSScriptRoot ""{rebuildFilePath}"")"); 299var sourcesPath = Path.Combine(debugPath, "sources"); 305var sourceFilePath = Path.Combine(sourcesPath, Path.GetFileName(tree.FilePath)); 316var assemblyFilePath = Path.Combine(outputPath, assemblyFileName); 318AssemblyMdvFilePath: Path.Combine(outputPath, assemblyName + ".mdv"), 319PdbMdvFilePath: Path.Combine(outputPath, assemblyName + ".pdb.mdv"), 320ILFilePath: Path.Combine(outputPath, assemblyName + ".il"), 321PdbXmlFilePath: Path.Combine(outputPath, assemblyName + ".pdb.xml"), 322CustomDataFilePath: Path.Combine(outputPath, "custom-data.txt")); 330var pdbFilePath = Path.Combine(outputPath, assemblyName + ".extracted.pdb");
LocalReferenceResolver.cs (2)
91nugetPackageDirectory ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget"); 126filePath = Path.Combine(Path.GetDirectoryName(filePath)!, metadataReferenceInfo.FileName);
LocalSourceResolver.cs (1)
36onDiskPath = Path.GetFullPath(Path.Combine(Options.SourcePath, originalFilePath.Substring(link.Prefix.Length)));
Program.cs (1)
105debugPath ??= Path.Combine(Path.GetTempPath(), $"BuildValidator");
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();
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\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\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\Csc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, CSharpCompiler.ResponseFileName);
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
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),
CustomEncryptorSample (1)
Program.cs (1)
14var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
dotnet-dev-certs (8)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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-getdocument (5)
Commands\InvokeCommand.cs (5)
60toolsDirectory = Path.Combine( 64var executableSource = Path.Combine(toolsDirectory, InsideManName + ".exe"); 65executable = Path.Combine(targetDirectory, InsideManName + ".exe"); 84toolsDirectory = Path.Combine(thisPath, $"net{targetFramework.Version}"); 125args.Add(Path.Combine(toolsDirectory, InsideManName + ".dll"));
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
344var filePath = Path.Combine(directory, fileName + extension); 358filePath = Path.Combine(directory, uniqueName + extension);
dotnet-razorpagegenerator (1)
Program.cs (1)
214var includeFileContent = File.ReadAllText(System.IO.Path.Combine(basePath, includeFileName));
dotnet-razorsyntaxgenerator (3)
Program.cs (3)
63var outputMainFile = Path.Combine(outputPath, $"{prefix}.Main.Generated.cs"); 64var outputInternalFile = Path.Combine(outputPath, $"{prefix}.Internal.Generated.cs"); 65var outputSyntaxFile = Path.Combine(outputPath, $"{prefix}.Syntax.Generated.cs");
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\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
25projectPath = Path.Combine(_directory, projectPath);
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
51var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 138Path.Combine(AppContext.BaseDirectory, "assets"), 139Path.Combine(assemblyDir, "assets"), 144var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists);
dotnet-user-secrets (5)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
25projectPath = Path.Combine(_directory, projectPath);
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
51var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 138Path.Combine(AppContext.BaseDirectory, "assets"), 139Path.Combine(assemblyDir, "assets"), 144var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists);
FilesWebSite (7)
Controllers\DownloadFilesController.cs (7)
18_testFilesPath = Path.Combine(Path.GetTempPath(), "test-files"); 23var path = Path.Combine(_hostingEnvironment.ContentRootPath, "sample.txt"); 29var path = Path.Combine(_hostingEnvironment.ContentRootPath, "sample.txt"); 37var path = Path.Combine(_hostingEnvironment.ContentRootPath, "sample.txt"); 43var path = Path.Combine(_hostingEnvironment.ContentRootPath, "sample.txt"); 51var path = Path.Combine(_hostingEnvironment.ContentRootPath, "sample.txt"); 52var symlink = Path.Combine(_testFilesPath, Path.GetRandomFileName());
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\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
GenerateRulesMissingDocumentation (1)
Program.cs (1)
41var fileWithPath = Path.Combine(directory.FullName, rulesMissingDocumentationFileName);
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
423path = Path.Combine(outputDirectory, path);
HelixTestRunner (10)
ProcessUtil.cs (4)
33var dumpFilePath = Path.Combine(dumpDirectoryPath, $"{process.ProcessName}-{process.Id}.dmp"); 48var dumpFilePath = Path.Combine(dumpDirectoryPath, $"{process.ProcessName}.{process.Id}.dmp"); 108process.StartInfo.EnvironmentVariables["COMPlus_DbgMiniDumpName"] = Path.Combine(dumpDirectoryPath, $"{Path.GetFileName(filename)}.%d.dmp"); 181var dumpFilePath = Path.Combine(dumpDirectoryPath, $"{Path.GetFileName(filename)}.{process.Id}.dmp");
TestRunner.cs (6)
36var nugetRestore = Path.Combine(helixDir, "nugetRestore"); 248var diagLog = Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_UPLOAD_ROOT"), "vstest.log"); 333ProcessUtil.PrintMessage($"Copying: {file} to {Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, logName)}"); 334File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, logName)); 347ProcessUtil.PrintMessage($"Copying: {file} to {Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, fileName)}"); 348File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, fileName));
HttpClientApp (2)
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
IdeBenchmarks (5)
FormatterBenchmarks.cs (2)
40var path = Path.Combine(Path.GetFullPath(@"..\..\..\..\..\src\Compilers\CSharp\Portable\Generated"), Document + ".cs"); 53var path = Path.Combine(Path.GetFullPath(@"..\..\..\..\..\src\Compilers\VisualBasic\Portable\Generated"), Document + ".vb");
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
36var solutionPath = Path.Combine(roslynRoot, @"src\Tools\IdeCoreBenchmarks\Assets\Microsoft.CodeAnalysis.sln");
Program.cs (1)
23return Path.Combine(Path.GetDirectoryName(sourceFilePath), @"..\..\..");
SQLitePersistentStorageBenchmark.cs (1)
133var tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
IdeCoreBenchmarks (16)
ClassificationBenchmarks.cs (2)
45_solutionPath = Path.Combine(roslynRoot, @"Roslyn.slnx"); 55var solutionPath = Path.Combine(roslynRoot, "Roslyn.slnx");
CSharpIdeAnalyzerBenchmarks.cs (2)
37_solutionPath = Path.Combine(roslynRoot, @"src\Tools\IdeCoreBenchmarks\Assets\Microsoft.CodeAnalysis.sln"); 48var analyzerAssemblyPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Microsoft.CodeAnalysis.CSharp.Features.dll");
FindReferencesBenchmarks.cs (2)
44var solutionPath = Path.Combine(roslynRoot, "Compilers.slnf"); 54var solutionPath = Path.Combine(roslynRoot, "Compilers.slnf");
FormatterBenchmarks.cs (1)
30var csFilePath = Path.Combine(roslynRoot, @"src\Compilers\CSharp\Portable\Generated\Syntax.xml.Syntax.Generated.cs");
IncrementalAnalyzerBenchmarks.cs (2)
36_solutionPath = Path.Combine(roslynRoot, @"src\Tools\IdeCoreBenchmarks\Assets\Microsoft.CodeAnalysis.sln"); 47var analyzerAssemblyPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Microsoft.CodeAnalysis.Features.dll");
IncrementalSourceGeneratorBenchmarks.cs (2)
47_solutionPath = Path.Combine(roslynRoot, @"Compilers.slnf"); 57_solutionPath = Path.Combine(roslynRoot, @"Roslyn.slnx");
NavigateToBenchmarks.cs (2)
48_solutionPath = Path.Combine(roslynRoot, @"Roslyn.slnx"); 58_solutionPath = Path.Combine(roslynRoot, @"Roslyn.slnx");
Program.cs (1)
37return Path.Combine(Path.GetDirectoryName(sourceFilePath), @"..\..\..");
RenameBenchmarks.cs (1)
28_csFilePath = Path.Combine(roslynRoot, @"src\Compilers\CSharp\Portable\Generated\BoundNodes.xml.Generated.cs");
SyntacticChangeRangeBenchmark.cs (1)
33var csFilePath = Path.Combine(roslynRoot, @"src\Compilers\CSharp\Portable\Generated\BoundNodes.xml.Generated.cs");
IIS.FunctionalTests (23)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
70var requestHandlerPath = Path.Combine(GetANCMRequestHandlerPath(deploymentResult, _handlerVersion20), "aspnetcorev2_outofprocess.dll"); 215file.CopyTo(Path.Combine(toInfo.FullName, file.Name)); 245var destinationDirectory = new DirectoryInfo(Path.Combine(contentRoot, sourceDirectory.Name)); 265var destFileName = Path.Combine(target.FullName, fileInfo.Name);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (8)
71return Path.Combine(folder, result.DeploymentParameters.SiteName); 75return Path.Combine(folder, $"W3SVC{result.DeploymentParameters.SiteName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 99var webConfigPath = Path.Combine(deploymentResult.ContentRoot, "web.config"); 203return Path.Combine(logFolderPath, $"std_{startTime.Year}{startTime.Month:D2}" + 216var path = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.runtimeconfig.json"); 226Path.Combine(deploymentResult.DeploymentParameters.PublishedApplicationRootPath, "aspnetcore-debug.log"), 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (3)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 39File.WriteAllText(Path.Combine(appPath, "app_offline.htm"), content); 45() => File.Delete(Path.Combine(appPath, "app_offline.htm")),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
25var path = Path.Combine(AppContext.BaseDirectory, GetProfileName(deploymentParameters));
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
92WebConfigHelpers.AddOrModifyAspNetCoreSection("stdoutLogFile", Path.Combine("Q:", "std"))); 133AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log")); 149AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
145return Path.Combine(siteRoot, "web.config");
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (3)
51(args, contentRoot) => $"{args} CreateFile \"{Path.Combine(contentRoot, "Started.txt")}\""); 57await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.ContentRoot, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue); 101await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.ContentRoot, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue);
IIS.LongTests (29)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (8)
71return Path.Combine(folder, result.DeploymentParameters.SiteName); 75return Path.Combine(folder, $"W3SVC{result.DeploymentParameters.SiteName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 99var webConfigPath = Path.Combine(deploymentResult.ContentRoot, "web.config"); 203return Path.Combine(logFolderPath, $"std_{startTime.Year}{startTime.Month:D2}" + 216var path = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.runtimeconfig.json"); 226Path.Combine(deploymentResult.DeploymentParameters.PublishedApplicationRootPath, "aspnetcore-debug.log"), 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (3)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 39File.WriteAllText(Path.Combine(appPath, "app_offline.htm"), content); 45() => File.Delete(Path.Combine(appPath, "app_offline.htm")),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
25var path = Path.Combine(AppContext.BaseDirectory, GetProfileName(deploymentParameters));
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
108using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 126using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 180File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
216Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 217Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 218Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 283Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 284Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 348File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 407File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 448File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 625parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 649parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 688parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 742var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 743var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 962deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll");
IIS.Microbenchmarks (1)
StartupTimeBenchmark.cs (1)
26var deploymentParameters = new DeploymentParameters(Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "IIS/test/testassets/InProcessWebSite"),
IIS.NewHandler.FunctionalTests (29)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (8)
71return Path.Combine(folder, result.DeploymentParameters.SiteName); 75return Path.Combine(folder, $"W3SVC{result.DeploymentParameters.SiteName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 99var webConfigPath = Path.Combine(deploymentResult.ContentRoot, "web.config"); 203return Path.Combine(logFolderPath, $"std_{startTime.Year}{startTime.Month:D2}" + 216var path = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.runtimeconfig.json"); 226Path.Combine(deploymentResult.DeploymentParameters.PublishedApplicationRootPath, "aspnetcore-debug.log"), 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (3)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 39File.WriteAllText(Path.Combine(appPath, "app_offline.htm"), content); 45() => File.Delete(Path.Combine(appPath, "app_offline.htm")),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
25var path = Path.Combine(AppContext.BaseDirectory, GetProfileName(deploymentParameters));
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
108using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 126using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 180File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
216Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 217Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 218Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 283Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 284Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 348File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 407File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 448File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 625parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 649parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 688parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 742var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 743var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 962deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll");
IIS.ShadowCopy.Tests (33)
ShadowCopyTests.cs (21)
62var tempDirectoryPath = Path.Combine(deploymentResult.ContentRoot, directoryName); 188var deleteDirPath = Path.Combine(deploymentResult.ContentRoot, "wwwroot/deletethis"); 190File.WriteAllText(Path.Combine(deleteDirPath, "file.dll"), ""); 219DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true); 246DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true); 258Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped"); 269Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "2")), "Expected 2 shadow copy directory"); 285DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true); 286DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "3"), copySubDirs: true); 287DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "10"), copySubDirs: true); 299Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped"); 310Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "11")), "Expected 11 shadow copy directory"); 316Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "1")), "Expected 1 shadow copy directory to be deleted"); 317Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "3")), "Expected 3 shadow copy directory to be deleted"); 329DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true); 342Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy"))); 359DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true); 372Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy"))); 384var directoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 452string tempPath = Path.Combine(destDirName, file.Name); 465string tempPath = Path.Combine(destDirName, subdir.Name);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (8)
71return Path.Combine(folder, result.DeploymentParameters.SiteName); 75return Path.Combine(folder, $"W3SVC{result.DeploymentParameters.SiteName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 99var webConfigPath = Path.Combine(deploymentResult.ContentRoot, "web.config"); 203return Path.Combine(logFolderPath, $"std_{startTime.Year}{startTime.Month:D2}" + 216var path = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.runtimeconfig.json"); 226Path.Combine(deploymentResult.DeploymentParameters.PublishedApplicationRootPath, "aspnetcore-debug.log"), 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (3)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 39File.WriteAllText(Path.Combine(appPath, "app_offline.htm"), content); 45() => File.Delete(Path.Combine(appPath, "app_offline.htm")),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
25var path = Path.Combine(AppContext.BaseDirectory, GetProfileName(deploymentParameters));
IIS.Tests (1)
Utilities\TestServer.cs (1)
37internal static string AspNetCoreModuleLocation => Path.Combine(BasePath, AspNetCoreModuleDll);
IISExpress.FunctionalTests (37)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
70var requestHandlerPath = Path.Combine(GetANCMRequestHandlerPath(deploymentResult, _handlerVersion20), "aspnetcorev2_outofprocess.dll"); 215file.CopyTo(Path.Combine(toInfo.FullName, file.Name)); 245var destinationDirectory = new DirectoryInfo(Path.Combine(contentRoot, sourceDirectory.Name)); 265var destFileName = Path.Combine(target.FullName, fileInfo.Name);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (8)
71return Path.Combine(folder, result.DeploymentParameters.SiteName); 75return Path.Combine(folder, $"W3SVC{result.DeploymentParameters.SiteName}"); 92var destFileName = Path.Combine(target.FullName, fileInfo.Name); 99var webConfigPath = Path.Combine(deploymentResult.ContentRoot, "web.config"); 203return Path.Combine(logFolderPath, $"std_{startTime.Year}{startTime.Month:D2}" + 216var path = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.runtimeconfig.json"); 226Path.Combine(deploymentResult.DeploymentParameters.PublishedApplicationRootPath, "aspnetcore-debug.log"), 267File.WriteAllText(Path.Combine(rootApplicationDirectory.FullName, "web.config"), "<configuration></configuration>");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (3)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 39File.WriteAllText(Path.Combine(appPath, "app_offline.htm"), content); 45() => File.Delete(Path.Combine(appPath, "app_offline.htm")),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
25var path = Path.Combine(AppContext.BaseDirectory, GetProfileName(deploymentParameters));
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
92WebConfigHelpers.AddOrModifyAspNetCoreSection("stdoutLogFile", Path.Combine("Q:", "std"))); 133AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log")); 149AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
145return Path.Combine(siteRoot, "web.config");
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
108using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 126using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 180File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
216Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 217Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 218Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 283Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 284Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 348File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 407File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 448File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 625parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 649parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 688parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 742var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 743var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 962deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll");
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)));
InMemory.FunctionalTests (2)
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
InProcessWebSite (1)
Startup.cs (1)
188File.WriteAllText(System.IO.Path.Combine(hostingEnv.ContentRootPath, "Started.txt"), "");
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
101using (var depsFileStream = File.Create(Path.Combine(SharedFrameworkDirectory, $"{sharedFxName}.deps.json")))
InteractiveHost.UnitTests (3)
AbstractInteractiveHostTests.cs (1)
50while (dir != null && !File.Exists(Path.Combine(dir, "dotnet.exe")))
InteractiveHostDesktopTests.cs (1)
305Assert.True(await LoadReference(Path.Combine(fxDir, "System.Data.dll")));
TestUtils.cs (1)
11public static readonly string HostRootPath = Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "Host");
Interop.FunctionalTests (4)
H2SpecCommands.cs (1)
29var root = Path.Combine(Environment.CurrentDirectory, "h2spec");
Http3\Http3TlsTests.cs (1)
521return Path.Combine(basePath, $"{typeof(Http3TlsTests).Assembly.GetName().Name}.pfx");
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
IOperationGenerator (2)
IOperationClassWriter.cs (2)
106var outFileName = Path.Combine(_location, $"{@namespace}.Generated.cs"); 161using (_writer = new StreamWriter(File.Open(Path.Combine(_location, "OperationKind.Generated.cs"), FileMode.Create), Encoding.UTF8))
KeyManagementSample (1)
Program.cs (1)
15var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
Metrics (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Metrics.Legacy (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
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.Analyzer.Testing (1)
DiagnosticVerifier.cs (1)
201dll = Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(assembly));
Microsoft.AspNetCore.App.Analyzers.Test (3)
Verifiers\CSharpAnalyzerVerifier.cs (3)
52Path.Combine( 55Path.Combine(TestData.GetRepoRoot(), "NuGet.config"); 61Path.Combine("ref", "net11.0"))
Microsoft.AspNetCore.App.UnitTests (11)
PackageTests.cs (4)
35Path.Combine( 53var outputPath = Path.Combine(_packageLayoutRoot, Path.GetFileNameWithoutExtension(package)); 88var packageAssembliesDir = Path.Combine(packageDir, "lib"); 119var packageToolsDir = Path.Combine(packageDir, "tools");
SharedFxTests.cs (4)
88var runtimeConfigFilePath = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.runtimeconfig.json"); 91AssertEx.FileDoesNotExists(Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.runtimeconfig.dev.json")); 105var depsFilePath = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.deps.json"); 250var versionFile = Path.Combine(_sharedFxRoot, ".version");
TargetingPackTests.cs (3)
211IEnumerable<string> dlls = Directory.GetFiles(Path.Combine(_targetingPackRoot, "ref"), "*.dll", SearchOption.AllDirectories); 321var analyzersDir = Path.Combine(_targetingPackRoot, "analyzers"); 385var targetingPackPath = Path.Combine(
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (65)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
30public string Path => System.IO.Path.Combine(_directory.Root, _filename);
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this); 59using (var stream = File.OpenRead(Path.Combine("TestContent", $"{name}.txt"))) 98File.WriteAllText(Path.Combine(Root, filename), contents);
UserJwtsTestFixture.cs (4)
65Directory.CreateDirectory(Path.Combine(projectPath.FullName, "Properties")); 74Path.Combine(projectPath.FullName, "TestProject.csproj"), 81Path.Combine(projectPath.FullName, "appsettings.Development.json"), 85Path.Combine(projectPath.FullName, "appsettings.Local.json"),
UserJwtsTests.cs (57)
27var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 37var project = Path.Combine(fixture.CreateProject(false), "TestProject.csproj"); 48var project = Path.Combine(fixture.CreateProject(false), "TestProject.csproj"); 61var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 62var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 73var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 74var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 105var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 106var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 122var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 123var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 139var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 149var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 163var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 184var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 196var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 197var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 214var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 215var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 232var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 233var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 250var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 251var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 268var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 282var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 310var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 322var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 336var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 351var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 365var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 378var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 397var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 417var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 438var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 460var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 475var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj"); 489var project = Path.Combine(projectPath, "TestProject.csproj"); 505var project = Path.Combine(projectPath, "TestProject.csproj"); 532var project = Path.Combine(projectPath, "TestProject.csproj"); 560var project = Path.Combine(projectPath, "TestProject.csproj"); 577var project = Path.Combine(projectPath, "TestProject.csproj"); 598var project = Path.Combine(projectPath, "TestProject.csproj"); 620var project = Path.Combine(projectPath, "TestProject.csproj"); 645var project = Path.Combine(projectPath, "TestProject.csproj"); 671var project = Path.Combine(projectPath, "TestProject.csproj"); 708var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 723var expectedAppsettingsPath = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.DoesNotExist.json"); 734var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 748var expectedAppsettingsPath = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.DoesNotExist.json"); 759var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 773var expectedAppsettingsPath = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.DoesNotExist.json"); 784var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 797var project = Path.Combine(projectPath, "TestProject.csproj"); 802Assert.Contains(Path.Combine(projectPath, project), _console.GetOutput()); 811var project = Path.Combine(projectPath, "TestProject.csproj"); 818Assert.Contains(Path.Combine(projectPath, project), _console.GetOutput()); 855var project = Path.Combine(fixture.CreateProject(), "TestProject.csproj");
Microsoft.AspNetCore.BrowserTesting (9)
BrowserManagerConfiguration.cs (2)
76BaseArtifactsFolder = Path.GetFullPath(configuration.GetValue(nameof(BaseArtifactsFolder), Path.Combine(Directory.GetCurrentDirectory(), "playwright"))); 189folderPath = Path.Combine(BaseArtifactsFolder, folderPath);
BrowserTestBase.cs (6)
49.AddJsonFile(Path.Combine(basePath, "playwrightSettings.json")) 50.AddJsonFile(Path.Combine(basePath, $"playwrightSettings.{os}.json"), optional: true); 54builder.AddJsonFile(Path.Combine(basePath, "playwrightSettings.ci.json"), optional: true) 55.AddJsonFile(Path.Combine(basePath, $"playwrightSettings.ci.{os}.json"), optional: true); 60builder.AddJsonFile(Path.Combine(basePath, "playwrightSettings.container.json"), optional: true); 65builder.AddJsonFile(Path.Combine(basePath, "playwrightSettings.debug.json"), optional: true);
ContextInformation.cs (1)
58browserContextOptions.RecordHarPath = Path.Combine(
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileProvider.cs (1)
44PhysicalPath = Path.Combine(Root, NormalizeAndEnsureValidPhysicalPath(path)),
Microsoft.AspNetCore.Components.Testing (7)
Infrastructure\E2EManifest.cs (1)
22var manifestPath = Path.Combine(AppContext.BaseDirectory, $"{assemblyName}.e2e-manifest.json");
Infrastructure\PlaywrightExtensions.cs (2)
37?? Path.Combine(AppContext.BaseDirectory, "test-artifacts"); 107var artifactDir = Path.Combine(s_artifactsRoot, sanitized);
Infrastructure\ServerInstance.cs (2)
204workingDir = Path.Combine(AppContext.BaseDirectory, appEntry.WorkingDirectory); 209executable = Path.Combine(workingDir, executable);
Infrastructure\TracingSession.cs (1)
73var tracePath = Path.Combine(_artifactDir, "trace.zip");
StartupHook.g.cs (1)
16var candidatePath = Path.Combine(testBinDirectory, assemblyName.Name + ".dll");
Microsoft.AspNetCore.Components.Testing.Tasks (6)
GenerateE2EManifest.cs (6)
84entry.WorkingDirectory = Path.Combine(E2EAppsRelativeDir, name); 99? Path.Combine("publish", name) 101var relativeDir = Path.Combine(E2EAppsRelativeDir, subPath); 102var absoluteDir = Path.Combine(E2EAppsOutputDir, subPath); 105var appHostPath = Path.Combine(absoluteDir, name + exeSuffix); 106var appDllPath = Path.Combine(absoluteDir, name + ".dll");
Microsoft.AspNetCore.Components.Testing.Tests (25)
GenerateE2EManifestTaskTests.cs (25)
19_tempDir = Path.Combine(Path.GetTempPath(), "E2EManifestTests_" + Guid.NewGuid().ToString("N")); 36var manifestPath = Path.Combine(_tempDir, "manifest.json"); 61var manifestPath = Path.Combine(_tempDir, "manifest.json"); 75Assert.Equal(Path.Combine("e2e-apps", "MyApp"), entry.WorkingDirectory); 83var manifestPath = Path.Combine(_tempDir, "manifest.json"); 99var appsOutputDir = Path.Combine(_tempDir, "e2e-apps"); 101var manifestPath = Path.Combine(_tempDir, "manifest.json"); 118Assert.Equal(Path.Combine("e2e-apps", "MyApp"), entry.WorkingDirectory); 126var appsOutputDir = Path.Combine(_tempDir, "e2e-apps"); 128var manifestPath = Path.Combine(_tempDir, "manifest.json"); 151var manifestPath = Path.Combine(_tempDir, "manifest.json"); 167var appsOutputDir = Path.Combine(_tempDir, "e2e-apps"); 169CreatePublishedApp(Path.Combine(appsOutputDir, "publish"), "MyApp", createExe: true); 170var manifestPath = Path.Combine(_tempDir, "manifest.json"); 189Assert.Equal(Path.Combine("e2e-apps", "MyApp"), buildEntry.WorkingDirectory); 205var manifestPath = Path.Combine(_tempDir, "manifest.json"); 219Assert.Equal(Path.Combine("test-apps", "MyApp"), entry!.WorkingDirectory); 228var manifestPath = Path.Combine(_tempDir, "manifest.json"); 249var manifestPath = Path.Combine(_tempDir, "manifest.json"); 274File.WriteAllText(Path.Combine(dir, name + ".csproj"), "<Project />"); 280var dir = Path.Combine(appsOutputDir, name); 285File.WriteAllText(Path.Combine(dir, name + exeSuffix), "fake-exe"); 289File.WriteAllText(Path.Combine(dir, name + ".dll"), "fake-dll"); 295var item = new TaskItem(Path.Combine(projectDir, name + ".csproj")); 314E2EAppsOutputDir = appsOutputDir ?? Path.Combine(_tempDir, "e2e-apps"),
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
399var profilePath = Path.Combine(Path.GetTempPath(), "blazor-chrome-debug"); 425var profilePath = Path.Combine(Path.GetTempPath(), "blazor-edge-debug");
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
306return Path.Combine(Path.GetDirectoryName(assembly.Location)!, $"{name}.staticwebassets.runtime.json");
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
BlazorWebView.cs (1)
186 var hostPageFullPath = Path.GetFullPath(Path.Combine(appRootDir, HostPage!)); // HostPage is nonnull because RequiredStartupPropertiesSet is checked above
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
415 var result = Path.Combine(
Microsoft.AspNetCore.Components.WebView.Wpf (3)
BlazorWebView.cs (1)
269 var hostPageFullPath = Path.GetFullPath(Path.Combine(appRootDir, HostPage));
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
118 return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/'));
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
415 var result = Path.Combine(
Microsoft.AspNetCore.DataProtection (2)
Repositories\FileSystemXmlRepository.cs (2)
140var tempFilename = Path.Combine(Directory.FullName, Guid.NewGuid().ToString() + ".tmp"); 141var finalFilename = Path.Combine(Directory.FullName, filename + ".xml");
Microsoft.AspNetCore.DataProtection.Extensions.Tests (10)
DataProtectionProviderTests.cs (10)
51var keysPath = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName()); 121var filePath = Path.Combine(GetTestFilesPath(), "TestCert.pfx"); 148var certWithoutKey = new X509Certificate2(Path.Combine(GetTestFilesPath(), "TestCertWithoutPrivateKey.pfx"), "password"); 176var certWithoutKey = new X509Certificate2(Path.Combine(GetTestFilesPath(), "TestCert3WithoutPrivateKey.pfx"), "password3", X509KeyStorageFlags.Exportable); 193var certWithKey = new X509Certificate2(Path.Combine(GetTestFilesPath(), "TestCert3.pfx"), "password3"); 216var filePath = Path.Combine(GetTestFilesPath(), "TestCert2.pfx"); 245var filePath = Path.Combine(GetTestFilesPath(), "TestCert2.pfx"); 287var filePath = Path.Combine(GetTestFilesPath(), "TestCert2.pfx"); 323string uniqueTempPath = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName()); 340=> Path.Combine(AppContext.BaseDirectory, "TestFiles");
Microsoft.AspNetCore.DataProtection.Tests (10)
Internal\KeyManagementOptionsPostSetupTest.cs (1)
89var xmlDir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Repositories\FileSystemXmlRepositoryTests.cs (9)
24? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ASP.NET") 25: Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".aspnet"); 26var expectedDir = new DirectoryInfo(Path.Combine(baseDir, "DataProtection-Keys")).FullName; 210var filePath1 = Path.Combine(dirInfo.FullName, "friendly1.xml"); 211var filePath2 = Path.Combine(dirInfo.FullName, "friendly2.xml"); 212var filePath3 = Path.Combine(dirInfo.FullName, "friendly3.xml"); 227fileLock2 = new FileStream(Path.Combine(dirInfo.FullName, "friendly2.xml"), FileMode.Open, FileAccess.ReadWrite, FileShare.None); 260var filePath = Path.Combine(dirInfo.FullName, "friendly1.xml"); 325string uniqueTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
373.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), Path.Combine("NoSuchDirectory", CertificateName));
Microsoft.AspNetCore.Diagnostics.Tests (2)
ExceptionDetailsProviderTest.cs (2)
41Path.Combine(rootPath, "TestFiles/SourceFile.txt") 46Path.Combine(rootPath, @"TestFiles\SourceFile.txt");
Microsoft.AspNetCore.FunctionalTests (11)
WebApplicationFunctionalTests.cs (7)
16var contentRootPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 21await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @" 59var contentRootPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 64await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.Development.json"), @" 102var contentRootPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 107await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @" 143await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @"
WebHostFunctionalTests.cs (4)
156var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.IISExpress, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64) 211var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.Kestrel, RuntimeFlavor.CoreClr, RuntimeArchitectures.Current) 242var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "DefaultBuilder.slnf")); 245return Path.GetFullPath(Path.Combine(directoryInfo.FullName, "testassets"));
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Infrastructure\OpenApiTestHelpers.cs (1)
24var filePath = Path.Combine(System.AppContext.BaseDirectory, "Microsoft.AspNetCore.Grpc.Swagger.Tests.xml");
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.Hosting.Tests (3)
HostingEnvironmentExtensionsTests.cs (3)
40Assert.Equal(Path.GetFullPath(Path.Combine("testroot", "wwwroot")), env.WebRootPath); 50env.Initialize(Path.GetFullPath(Path.Combine("testroot", "wwwroot")), CreateWebHostOptions()); 52Assert.Equal(Path.GetFullPath(Path.Combine("testroot", "wwwroot")), env.ContentRootPath);
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
359var baselineFilePath = Path.Combine(baselineFilePathRoot!, $"{callerName}.generated.txt"); 430dll = Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(assembly));
Microsoft.AspNetCore.Http.Results.Tests (20)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (17)
38var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 60Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 69var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 92Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 101var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 119Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 128var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 146Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 158var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 175Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 186var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 215var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 242var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 270var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 294var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 310Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 337Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile_ASCII.txt")), sendFile.Name);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
324var path = Path.Combine("TestFiles", "FilePathResultTestFile.txt"); 345Assert.Equal(Path.Combine("TestFiles", "FilePathResultTestFile.txt"), sendFile.Name); 379var path = Path.Combine("TestFiles", "FilePathResultTestFile.txt");
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.HttpLogging.Tests (12)
FileLoggerProcessorTests.cs (12)
22TempPath = Path.Combine(Environment.CurrentDirectory, "_"); 34var path = Path.Combine(TempPath, Path.GetRandomFileName()); 70var path = Path.Combine(TempPath, Path.GetRandomFileName()); 112var path = Path.Combine(TempPath, Path.GetRandomFileName()); 152var path = Path.Combine(TempPath, Path.GetRandomFileName()); 154File.WriteAllText(Path.Combine(path, "randomFile.txt"), "Text"); 207var path = Path.Combine(TempPath, Path.GetRandomFileName()); 272var path = Path.Combine(TempPath, Path.GetRandomFileName()); 358var path = Path.Combine(TempPath, Path.GetRandomFileName()); 421var path = Path.Combine(TempPath, Path.GetRandomFileName()); 490var path = Path.Combine(TempPath, Path.GetRandomFileName()); 589return Path.Combine(path, GetLogFileName(prefix, dateTime, fileNumber));
Microsoft.AspNetCore.Identity.Test (2)
IdentityUIScriptsTest.cs (2)
87Path.Combine(wwwrootDir, scriptTag.FallbackSrc.Replace("Identity", "").TrimStart('~').TrimStart('/'))); 166return Directory.Exists(projectPath) ? projectPath : Path.Combine(FindHelixSlnFileDirectory(), "UI");
Microsoft.AspNetCore.InternalTesting (13)
AssemblyTestLog.cs (4)
120logOutputDirectory = Path.Combine(_baseDirectory, className); 140var testOutputFile = Path.Combine(logOutputDirectory, $"{testName}{LogFileExtension}"); 148testOutputFile = Path.Combine(logOutputDirectory, $"{testName}.{i}{LogFileExtension}"); 191var globalLogFileName = Path.Combine(baseDirectory, "global.log");
CollectDumpAttribute.cs (1)
30var path = Path.Combine(context.FileOutput.TestClassOutputDirectory, context.FileOutput.GetUniqueFileName(context.FileOutput.TestName, ".dmp"));
HelixHelper.cs (2)
20? Path.Combine(Path.GetTempPath(), uploadFileName) 21: Path.Combine(uploadRoot, uploadFileName);
TestFileOutputContext.cs (3)
43TestClassOutputDirectory = Path.Combine(AssemblyOutputDirectory, TestClassName); 64var path = Path.Combine(TestClassOutputDirectory, $"{prefix}{extension}"); 69path = Path.Combine(TestClassOutputDirectory, $"{prefix}{i++}{extension}");
TestPathUtilities.cs (3)
19var projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, $"{solution}.slnf")); 25projectFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "AspNetCore.slnx")); 29directoryInfo = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "src"));
Microsoft.AspNetCore.InternalTesting.Tests (3)
AssemblyTestLogTests.cs (2)
48var globalLogPath = Path.Combine(tfmPath, "global.log"); 368var tempDir = Path.Combine(Path.GetTempPath(), $"TestLogging_{Guid.NewGuid():N}");
TestableAspNetTestAssemblyRunner.cs (1)
54.Returns(Path.Combine(Directory.GetCurrentDirectory(), $"{testAssemblyName}.dll"));
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\RelatedAssemblyAttribute.cs (1)
90var relatedAssemblyLocation = Path.Combine(assemblyDirectory, attribute.AssemblyFileName + ".dll");
Microsoft.AspNetCore.Mvc.Core.Test (23)
ApplicationParts\RelatedAssemblyPartTest.cs (3)
44var assemblyPath = Path.Combine(AssemblyDirectory, "MyAssembly.dll"); 59var assemblyPath = Path.Combine(AssemblyDirectory, "MyAssembly.dll"); 89public string LocationSettable { get; set; } = Path.Combine(AssemblyDirectory, "MyAssembly.dll");
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (17)
38var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 60Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 69var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 92Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 101var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 119Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 128var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 146Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 158var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 175Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 186var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 215var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 242var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 270var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 294var path = Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")); 310Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile.txt")), sendFile.Name); 337Assert.Equal(Path.GetFullPath(Path.Combine("TestFiles", "FilePathResultTestFile_ASCII.txt")), sendFile.Name);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
324var path = Path.Combine("TestFiles", "FilePathResultTestFile.txt"); 345Assert.Equal(Path.Combine("TestFiles", "FilePathResultTestFile.txt"), sendFile.Name); 379var path = Path.Combine("TestFiles", "FilePathResultTestFile.txt");
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
Infrastructure\ResourceFile.cs (1)
229var fullPath = Path.Combine(projectPath, resourceName);
SimpleWithWebApplicationBuilderTests.cs (1)
205expectedWebRoot = Path.GetFullPath(Path.Combine(builder.GetSetting(WebHostDefaults.ContentRootKey), webRoot));
WebApplicationFactorySlnxTests.cs (4)
20_tempDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")[..8]); 21_contentDirectory = Path.Combine(_tempDirectory, "BasicWebSite"); 27var wwwrootDir = Path.Combine(_contentDirectory, "wwwroot"); 37var slnxFile = Path.Combine(_tempDirectory, "TestSolution.slnx");
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (12)
FileProviderRazorProjectFileSystemTest.cs (12)
53Assert.Equal(Path.Combine("BasePath", "File1.cshtml"), file.PhysicalPath); 60Assert.Equal(Path.Combine("BasePath", "File3.cshtml"), file.PhysicalPath); 89var file5 = fileProvider.AddFile(Path.Combine("Level1-Dir2", "File5.cshtml"), "content"); 104Assert.Equal(Path.Combine("BasePath", "File1.cshtml"), file.PhysicalPath); 112Assert.Equal(Path.Combine("Level1-Dir1", "File2.cshtml"), file.RelativePhysicalPath); 119Assert.Equal(Path.Combine("Level1-Dir1", "File3.cshtml"), file.RelativePhysicalPath); 126Assert.Equal(Path.Combine("Level1-Dir2", "File5.cshtml"), file.RelativePhysicalPath); 154var file5 = fileProvider.AddFile(Path.Combine("Level1-Dir2", "File5.cshtml"), "content"); 170Assert.Equal(Path.Combine("Level1-Dir1", "File2.cshtml"), file.RelativePhysicalPath); 177Assert.Equal(Path.Combine("Level1-Dir1", "File3.cshtml"), file.RelativePhysicalPath); 199Assert.Equal(Path.Combine("BasePath", "File3.cshtml"), item.PhysicalPath); 221Assert.Equal(Path.Combine("BasePath2", "File3.cshtml"), item.PhysicalPath);
Microsoft.AspNetCore.Mvc.Testing (3)
WebApplicationFactory.cs (3)
418var contentRootCandidate = Path.Combine( 422var contentRootMarker = Path.Combine( 527var depsFile = new FileInfo(Path.Combine(AppContext.BaseDirectory, depsFileName));
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
44PhysicalPath = Path.Combine(Root, NormalizeAndEnsureValidPhysicalPath(path)),
Microsoft.AspNetCore.OpenApi.Build.Tests (8)
GenerateAdditionalXmlFilesForOpenApiTests.cs (8)
46var classLibTempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 50var classLibProjectPath = Path.Combine(classLibTempPath, "ClassLibrary.csproj"); 63var classLibSourcePath = Path.Combine(classLibTempPath, "Class1.cs"); 74var tempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 78var sourceTargetsPath = Path.Combine(AppContext.BaseDirectory, "Microsoft.AspNetCore.OpenApi.targets"); 79var targetTargetsPath = Path.Combine(tempPath, "Microsoft.AspNetCore.OpenApi.targets"); 82var projectPath = Path.Combine(tempPath, "TestProject.csproj"); 101var sourcePath = Path.Combine(tempPath, "Program.cs");
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\OpenApiDocumentIntegrationTests.cs (1)
46var outputDirectory = Path.Combine(baseSnapshotsDirectory, version.ToString());
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
57var path = Path.Combine(AppContext.BaseDirectory, "TestDocument.txt");
Microsoft.AspNetCore.Razor.Language.UnitTests (17)
DefaultRazorProjectFileSystemTest.cs (8)
121Assert.Equal(Path.Combine(TestFolder, "Home.cshtml"), item.PhysicalPath); 151Assert.Equal(Path.Combine("Views", "_ViewImports.cshtml"), item.RelativePhysicalPath); 157Assert.Equal(Path.Combine(TestFolder, "_ViewImports.cshtml"), item.PhysicalPath); 179Assert.Equal(Path.Combine("About", "About.cshtml"), item.RelativePhysicalPath); 186Assert.Equal(Path.Combine("Home", "Index.cshtml"), item.RelativePhysicalPath); 193Assert.Equal(Path.Combine("Home", "_ViewImports.cshtml"), item.RelativePhysicalPath); 233Assert.Equal(Path.Combine(TestFolder, "_ViewImports.cshtml"), item.PhysicalPath); 241Assert.Equal(Path.Combine("Views", "_ViewImports.cshtml"), item.RelativePhysicalPath);
DefaultRazorProjectItemTest.cs (6)
20var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 40var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 53var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 66var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); 83"/Views", "/FileDoesNotExist.cshtml", Path.Combine("Views", "FileDoesNotExist.cshtml"), fileKind: null, fileInfo, cssScope: null); 93var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml"));
Legacy\BaselineWriter.cs (1)
37var test = Path.Combine(start, path);
RazorCodeDocumentExtensionsTest.cs (2)
487filePath: Path.Combine(basePath, relativePath), 499filePath: Path.Combine(basePath, importRelativePath),
Microsoft.AspNetCore.Razor.Microbenchmarks (1)
Helpers.cs (1)
21while (current is not null && !File.Exists(Path.Combine(current.FullName, "Razor.slnx")))
Microsoft.AspNetCore.Razor.Microbenchmarks.Compiler (4)
CodeGenerationBenchmark.cs (2)
19while (current != null && !File.Exists(Path.Combine(current.FullName, "MSN.cshtml"))) 29MSN = fileSystem.GetItem(Path.Combine(root.FullName, "MSN.cshtml"), RazorFileKind.Legacy);
SyntaxTreeGenerationBenckmark.cs (2)
21while (current != null && !File.Exists(Path.Combine(current.FullName, "MSN.cshtml"))) 31var projectItem = fileSystem.GetItem(Path.Combine(root.FullName, "MSN.cshtml"), RazorFileKind.Legacy);
Microsoft.AspNetCore.Razor.Test.Common (20)
Language\IntegrationTests\IntegrationTestBase.cs (7)
154var physicalPath = Path.Combine(workingDirectory, filePath).Replace('/', '\\'); 371var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); 392var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); 418var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); 421var baselineDiagnosticsFullPath = Path.Combine(TestProjectRoot, baselineDiagnosticsFileName); 468var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); 643var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName);
Language\IntegrationTests\RazorBaselineIntegrationTestBase.cs (6)
52var baselineFullPath = Path.Combine(TestProjectRoot, baselineFilePath); 87var baselineFullPath = Path.Combine(TestProjectRoot, baselineFilePath); 91var baselineDiagnosticsFullPath = Path.Combine(TestProjectRoot, baselineDiagnosticsFilePath); 102var baselineMappingsFullPath = Path.Combine(TestProjectRoot, baselineMappingsFilePath); 250var baselineFullPath = Path.Combine(TestProjectRoot, baselineFilePath); 287return Path.Combine(GetDirectoryPath(testName), Path.ChangeExtension(fileName, extension));
Language\IntegrationTests\RazorIntegrationTestBase.cs (1)
454var windowsPath = Path.Combine(ArbitraryWindowsPath, generated.CodeDocument.Source.RelativePath ?? "").Replace('/', '\\');
Language\Legacy\ParserTestBase.cs (4)
90var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); 95var baselineDiagnosticsFullPath = Path.Combine(TestProjectRoot, baselineDiagnosticsFileName); 107var classifiedSpansBaselineFullPath = Path.Combine(TestProjectRoot, baselineClassifiedSpansFileName); 111var tagHelperSpansBaselineFullPath = Path.Combine(TestProjectRoot, baselineTagHelperSpansFileName);
Language\TestProject.cs (2)
146if (Directory.Exists(Path.Combine(appContextBaseDirectory, "TestFiles"))) 171var fileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, fileName));
Microsoft.AspNetCore.Razor.Test.Common.Cohosting (2)
CohostTestBase.cs (1)
284=> Path.GetFullPath(Path.Combine(TestProjectData.SomeProjectPath, projectRelativeFileName));
RazorProjectBuilder.cs (1)
163filePath: Path.Combine(projectBasePath, ".globalconfig"));
Microsoft.AspNetCore.Razor.Test.Common.Tooling (23)
Language\IntegrationTests\RazorToolingIntegrationTestBase.cs (1)
328var windowsPath = Path.Combine(ArbitraryWindowsPath, generated.CodeDocument.Source.RelativePath).Replace('/', '\\');
Language\Legacy\ToolingParserTestBase.cs (4)
75var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); 79var baselineDiagnosticsFullPath = Path.Combine(TestProjectRoot, baselineDiagnosticsFileName); 91var classifiedSpansBaselineFullPath = Path.Combine(TestProjectRoot, baselineClassifiedSpansFileName); 95var tagHelperSpansBaselineFullPath = Path.Combine(TestProjectRoot, baselineTagHelperSpansFileName);
TestProjectData.cs (18)
22SomeProjectPath = Path.Combine(baseDirectory, "SomeProject"); 23var someProjectObjPath = Path.Combine(SomeProjectPath, "obj"); 25SomeProject = new HostProject(Path.Combine(SomeProjectPath, "SomeProject.csproj"), someProjectObjPath, RazorConfiguration.Default, "SomeProject"); 26SomeProjectFile1 = new HostDocument(Path.Combine(SomeProjectPath, "File1.cshtml")); 27SomeProjectFile2 = new HostDocument(Path.Combine(SomeProjectPath, "File2.cshtml")); 28SomeProjectImportFile = new HostDocument(Path.Combine(SomeProjectPath, "_ViewImports.cshtml")); 32SomeProjectComponentFile1 = new HostDocument(Path.Combine(SomeProjectPath, "File1.razor")); 33SomeProjectComponentFile2 = new HostDocument(Path.Combine(SomeProjectPath, "File2.razor")); 34SomeProjectComponentImportFile1 = new HostDocument(Path.Combine(SomeProjectPath, "_Imports.razor")); 37SomeProjectCshtmlComponentFile5 = new HostDocument(Path.Combine(SomeProjectPath, "File5.cshtml")); 39var anotherProjectPath = Path.Combine(baseDirectory, "AnotherProject"); 40var anotherProjectObjPath = Path.Combine(anotherProjectPath, "obj"); 42AnotherProject = new HostProject(Path.Combine(anotherProjectPath, "AnotherProject.csproj"), anotherProjectObjPath, RazorConfiguration.Default, "AnotherProject"); 43AnotherProjectFile1 = new HostDocument(Path.Combine(anotherProjectPath, "File1.cshtml")); 44AnotherProjectFile2 = new HostDocument(Path.Combine(anotherProjectPath, "File2.cshtml")); 45AnotherProjectImportFile = new HostDocument(Path.Combine(anotherProjectPath, "_ViewImports.cshtml")); 49AnotherProjectComponentFile1 = new HostDocument(Path.Combine(anotherProjectPath, "File1.razor")); 50AnotherProjectComponentFile2 = new HostDocument(Path.Combine(anotherProjectPath, "File2.razor"));
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
FileUtilities.cs (1)
72uniquePath = Path.Combine(directoryName, $"{baseFileName}{identifier}{extension}");
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (5)
PathUtilitiesTests.cs (5)
36{ Path.Combine("dir", "baz"), "dir" }, 38{ Path.Combine("dir", "baz", "bar"), Path.Combine("dir", "baz") }, 39{ Path.Combine("..", "..", "files.txt"), Path.Combine("..", "..") }, 190Assert.Equal(curDir, PathUtilities.GetDirectoryName(Path.Combine(curDir, "baz"))); 252AssertEqual(curDir, PathUtilities.GetDirectoryName(Path.Combine(curDir, "baz").AsSpan()));
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
82var path = Path.Combine(AppContext.BaseDirectory, "TestDocument.txt");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
ResponseCachingTests.cs (1)
25_absoluteFilePath = Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName());
ResponseSendFileTests.cs (1)
308var emptyFilePath = Path.Combine(Directory.GetCurrentDirectory(), "zz_" + Guid.NewGuid().ToString() + "EmptyTestFile.txt");
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
Microsoft.AspNetCore.Server.IntegrationTesting (17)
CachingApplicationPublisher.cs (1)
70var destFileName = Path.Combine(target.FullName, fileInfo.Name);
Common\DotNetCommands.cs (4)
27var result = Path.Combine(Directory.GetCurrentDirectory(), _dotnetFolderName); 50result = Path.Combine(userProfile, _dotnetFolderName); 63var archSpecificDir = Path.Combine(dotnetDir, arch.ToString()); 83return Path.Combine(dotnetDir, dotnetFile);
Deployers\NginxDeployer.cs (3)
138var pidFile = Path.Combine(DeploymentParameters.ApplicationPath, $"{Guid.NewGuid()}.nginx.pid"); 139var errorLog = Path.Combine(DeploymentParameters.ApplicationPath, "nginx.error.log"); 140var accessLog = Path.Combine(DeploymentParameters.ApplicationPath, "nginx.access.log");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (8)
91_deployedFolderPathInFileShare = Path.Combine(_deploymentParameters.RemoteServerFileSharePath, folderId); 153var webConfigFilePath = Path.Combine(_deploymentParameters.PublishedApplicationRootPath, "web.config"); 163Path.Combine(_deploymentParameters.DotnetRuntimePath, "dotnet.exe")); 204executableParameters = Path.Combine(_deployedFolderPathInFileShare, applicationName + ".dll"); 208executablePath = Path.Combine(_deployedFolderPathInFileShare, applicationName + ".exe"); 289var temppath = Path.Combine(destDirName, file.Name); 297var temppath = Path.Combine(destDirName, subdir.Name); 318var physicalFilePath = Path.Combine(Path.GetTempPath(), embeddedFileName);
Deployers\SelfHostDeployer.cs (1)
103var executable = Path.Combine(workingDirectory, DeploymentParameters.ApplicationName + executableExtension);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (13)
IISDeployer.cs (7)
187var file = Path.Combine(DeploymentParameters.PublishedApplicationRootPath, debugLogLocation); 318_configPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("D")); 319_applicationHostConfig = Path.Combine(_configPath, "applicationHost.config"); 528HelixHelper.PreserveFile(Path.Combine(DeploymentParameters.PublishedApplicationRootPath, "web.config"), fileNamePrefix + ".web.config"); 529HelixHelper.PreserveFile(Path.Combine(_configPath, "applicationHost.config"), fileNamePrefix + ".applicationHost.config"); 530HelixHelper.PreserveFile(Path.Combine(Environment.SystemDirectory, @"inetsrv\config\ApplicationHost.config"), fileNamePrefix + ".inetsrv.applicationHost.config"); 531HelixHelper.PreserveFile(Path.Combine(Environment.SystemDirectory, @"inetsrv\config\redirection.config"), fileNamePrefix + ".inetsrv.redirection.config");
IISDeployerBase.cs (3)
43var path = Path.Combine(DeploymentParameters.PublishedApplicationRootPath, "web.config"); 96var ancmFile = Path.Combine(AppContext.BaseDirectory, arch); 99ancmFile = Path.Combine(AppContext.BaseDirectory, ancmDllName);
IISDeploymentParameterExtensions.cs (1)
136WebConfigHelpers.AddOrModifyAspNetCoreSection("stdoutLogFile", Path.Combine(path, "std")));
IISExpressDeployer.cs (2)
69var entryPoint = Path.Combine(dllRoot, DeploymentParameters.ApplicationName + executableExtension); 300var webConfigPath = Path.Combine(contentRoot, "web.config");
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\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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.Server.Kestrel.Core.Tests (13)
CertificatePathWatcherTests.cs (11)
23var filePath = Path.Combine(dir, fileName); 79dirs[i] = Path.Combine(rootDir, $"dir{i}"); 123var filePath = Path.Combine(dir, fileName); 173var filePath = Path.Combine(dir, fileName); 211var dir = Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName()); 222Path = Path.Combine(dir, "test.pfx"), 240var filePath = Path.Combine(dir, fileName); 274var filePath = Path.Combine(dir, fileName); 314var filePath = Path.Combine(dir, fileName); 345var filePath = Path.Combine(dir, fileName); 405var filePath = Path.Combine(dir, fileName);
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
Microsoft.AspNetCore.Server.Kestrel.Tests (12)
KestrelConfigurationLoaderTests.cs (10)
805certificateFilePath = Path.Combine(tempDir, $"test{extension}"); 806certificateKeyPath = Path.Combine(tempDir, "test.key"); 1219var oldDir = Directory.CreateDirectory(Path.Combine(tempDir, "old")); 1220var newDir = Directory.CreateDirectory(Path.Combine(tempDir, "new")); 1221var oldCertPath = Path.Combine(oldDir.FullName, "tls.key"); 1222var newCertPath = Path.Combine(newDir.FullName, "tls.key"); 1224var dirLink = Directory.CreateSymbolicLink(Path.Combine(tempDir, "link"), "./old"); 1225var fileLink = File.CreateSymbolicLink(Path.Combine(tempDir, "tls.key"), "./link/tls.key"); 1270dirLink = Directory.CreateSymbolicLink(Path.Combine(tempDir, "link"), "./new"); 2145return Path.Combine(basePath, $"TestApplication.pfx");
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
65var candidate = Path.Combine(dir, "docker" + _exeSuffix);
Microsoft.AspNetCore.SpaProxy (5)
SpaHostingStartup.cs (1)
20var spaProxyConfigFile = Path.Combine(AppContext.BaseDirectory, "spa.proxy.json");
SpaProxyLaunchManager.cs (4)
197WorkingDirectory = Path.Combine(AppContext.BaseDirectory, _options.WorkingDirectory) 243WorkingDirectory = Path.Combine(AppContext.BaseDirectory, _options.WorkingDirectory) 268var scriptPath = Path.Combine(AppContext.BaseDirectory, fileName); 305WorkingDirectory = Path.Combine(AppContext.BaseDirectory, _options.WorkingDirectory)
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
31var absoluteRootPath = Path.Combine(
Microsoft.AspNetCore.StaticAssets (3)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (2)
60return Path.Combine(AppContext.BaseDirectory, $"{environment.ApplicationName}.staticwebassets.endpoints.json"); 63return Path.IsPathRooted(staticAssetsManifestPath) ? staticAssetsManifestPath : Path.Combine(AppContext.BaseDirectory, staticAssetsManifestPath);
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
34Path.Combine(AppContext.BaseDirectory, staticAssetsManifestPath) :
Microsoft.AspNetCore.StaticAssets.Tests (13)
StaticAssetsIntegrationTests.cs (13)
326var filePath = Path.Combine(webRoot, "sample.txt"); 383File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified"); 436File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified"); 503File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Short"); 559File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified"); 568Assert.Equal(GetGzipEtag(Path.Combine(webRoot, "sample.txt")), response.Headers.ETag.Tag); 597var contentRoot = Path.Combine(AppContext.BaseDirectory, appName); 598var webRoot = Path.Combine(contentRoot, "wwwroot"); 606var manifestPath = Path.Combine(AppContext.BaseDirectory, $"{appName}.staticwebassets.endpoints.json"); 615var filePath = Path.Combine(webRoot, resource.Path); 638var compressedFilePath = Path.Combine(webRoot, resource.Path + ".gz"); 1281var manifestPath = Path.Combine(AppContext.BaseDirectory, $"{appName}.staticwebassets.endpoints.json"); 1284File.WriteAllText(Path.Combine(webRoot, "index.html"), "Hello, World!");
Microsoft.AspNetCore.StaticFiles (1)
StaticFileMiddleware.cs (1)
49_logger.WebRootPathNotFound(Path.GetFullPath(Path.Combine(hostingEnv.ContentRootPath, hostingEnv.WebRootPath ?? "wwwroot")));
Microsoft.AspNetCore.StaticFiles.FunctionalTests (4)
FallbackStaticFileTest.cs (1)
48FileProvider = new PhysicalFileProvider(Path.Combine(environment.WebRootPath, "SubFolder")),
StaticFileMiddlewareTests.cs (3)
108var last = File.GetLastWriteTimeUtc(Path.Combine(AppContext.BaseDirectory, "TestDocument.txt")); 145.UseWebRoot(Path.Combine(AppContext.BaseDirectory, baseDir)) 187.UseWebRoot(Path.Combine(AppContext.BaseDirectory, baseDir))
Microsoft.AspNetCore.StaticFiles.Tests (23)
DefaultFilesMiddlewareTests.cs (6)
60using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 83using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 126using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 208using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 255using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 310using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
DirectoryBrowserMiddlewareTests.cs (7)
81using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 100using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 141using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 214using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 258using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 308using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 356using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
StaticFileMiddlewareTests.cs (10)
51var badLink = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName() + ".txt"); 177using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 213using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)); 253using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)); 296using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)); 340using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 388using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 444using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, ".")); 470using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 530using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
199builder.UseContentRoot(Path.GetFullPath(Path.Combine(directoryInfo.FullName, solutionRelativePath)));
Microsoft.AspNetCore.TestHost.Tests (13)
UseSolutionRelativeContentRootTests.cs (13)
18_tempDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")[..8]); 19_contentDirectory = Path.Combine(_tempDirectory, "src"); 26var solutionFile = Path.Combine(_tempDirectory, "TestApp.sln"); 44var solutionFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 69var subDirectory = Path.Combine(_tempDirectory, "sub"); 72var slnFile = Path.Combine(subDirectory, "TestApp.sln"); 73var slnxFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 98var expectedPath = Path.Combine(_contentDirectory, "sub"); 101var slnFile = Path.Combine(_tempDirectory, "TestApp.sln"); 102var slnxFile = Path.Combine(_contentDirectory, "TestApp.slnx"); 127var slnFile = Path.Combine(_tempDirectory, "TestApp.sln"); 128var slnxFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 173var solutionFile = Path.Combine(_tempDirectory, "TestApp.slnx");
Microsoft.AspNetCore.Tests (19)
WebApplicationTests.cs (19)
391var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 392var webRoot = Path.Combine(contentRoot, "wwwroot"); 411var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 412var webRoot = Path.Combine(contentRoot, "wwwroot"); 468var contentRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 502var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 504var fullWebRootPath = Path.Combine(contentRoot, "wwwroot2"); 531var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 533var fullWebRootPath = Path.Combine(contentRoot, "wwwroot"); 573var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 575var fullWebRootPath = Path.Combine(contentRoot, "wwwroot"); 788var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 791var fullWebRootPath = Path.Combine(contentRoot, webRoot); 831var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 834var fullWebRootPath = Path.Combine(contentRoot, webRoot); 880var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 883var fullWebRootPath = Path.Combine(contentRoot, webRoot); 2216var wwwroot = Path.Combine(AppContext.BaseDirectory, "wwwroot"); 2249var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
Autobahn\Executable.cs (1)
24var candidate = Path.Combine(dir, name + _exeSuffix);
AutobahnTests.cs (1)
38Path.Combine(AppContext.BaseDirectory, "autobahnreports");
Helpers.cs (1)
10return Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, projectName));
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 (86)
BackEnd\BuildManager\BuildManager.cs (1)
1547submission.BuildRequestData.ProjectFullPath = Path.Combine(
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
1578using (StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, @"EngineTrace_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true))
BackEnd\Components\Communications\CurrentHost.cs (2)
31string dotnetExe = Path.Combine( 51dotnetExe = Path.Combine(
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
249string dllPath = Path.Combine(Path.GetDirectoryName(msbuildLocation), Constants.MSBuildAssemblyName); 265msbuildLocation = Path.Combine(msbuildExeName, ".exe");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (8)
490? Path.Combine(GetOrInitializeX64Clr2Path(toolName, basePath64), toolName) 491: Path.Combine(GetOrInitializeX32Clr2Path(toolName, basePath), toolName); 496return Path.Combine(s_pathToX64Clr4 ??= basePath64, toolName); 501return Path.Combine(s_pathToArm64Clr4 ??= basePathArm64, toolName); 504return Path.Combine(s_pathToX32Clr4 ??= basePath, toolName); 616string fullPath = Path.Combine(envPath, toolName); 778string appHostPath = Path.Combine(msbuildAssemblyPath, Constants.MSBuildExecutableName); 828$"\"{Path.Combine(msbuildAssemblyPath, Constants.MSBuildAssemblyName)}\" {commandLineArgs}",
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)
699outputItemFromTarget.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)
987string oldestOutputFullPath = Path.Combine(projectDirectory, oldestOutput); 1012string candidateOutputFullPath = Path.Combine(projectDirectory, candidateOutput); 1047string unescapedInputFullPath = Path.Combine(projectDirectory, unescapedInput); 1202path1 = Path.Combine(_project.Directory, path1); 1205path2 = Path.Combine(_project.Directory, path2);
BackEnd\Components\Scheduler\Scheduler.cs (5)
2678using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerTrace_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true); 2706shouldWriteHeader = !FileSystems.Default.FileExists(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId)); 2709using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true); 2833using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true); 2873using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true);
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)
1013string filename = Path.Combine(FileUtilities.GetCacheDirectory(), String.Format(CultureInfo.InvariantCulture, "Configuration{0}.cache", _configId));
BackEnd\Shared\TargetResult.cs (2)
283string 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)
90return 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)
189_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))));
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");
Definition\ToolsetLocalReader.cs (1)
40System.IO.Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "Roslyn"),
Definition\ToolsetReader.cs (3)
190var xbuildToolsetsDir = Path.Combine(libraryPath, $"xbuild{Path.DirectorySeparatorChar}"); 197var binPath = Path.Combine(d, "bin"); 623Path.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\TaskFactories\TaskHostTask.cs (1)
801? Path.Combine(msbuildPath, Constants.MSBuildExecutableName)
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)
954projectDisplayPathSpan = Path.Combine(relativePathFromWorkingDirToSourceRoot.ToString(), outputPathSpan.Slice(sourceRootSpan.Length).ToString()).AsSpan();
NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
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.BuildCheck.UnitTests (41)
ConfigurationProvider_Tests.cs (10)
33var configs = configurationProvider.GetConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 55var configs = configurationProvider.GetConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 89var customConfiguration = configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 115var buildConfig = configurationProvider.GetUserConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 146configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 151configurationProvider.CheckCustomConfigurationDataValidity(Path.Combine(workFolder1.Path, "test123.csproj"), "rule_id"); 178configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 183configurationProvider.CheckCustomConfigurationDataValidity(Path.Combine(workFolder1.Path, "test123.csproj"), "rule_id"); 209configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 214configurationProvider.CheckCustomConfigurationDataValidity(Path.Combine(workFolder1.Path, "test123.csproj"), "rule_id");
DoubleWritesAnalyzer_Tests.cs (1)
49{ "DestinationFiles", new TaskInvocationCheckData.TaskParameter(Path.Combine("outdir", "source1"), IsOutput: false) },
EditorConfigParser_Tests.cs (2)
66TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true); 98TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true);
EndToEndTests.cs (25)
39private static string TestAssetsRootPath { get; } = Path.Combine(AssemblyLocation, "TestAssets"); 164FileUtilities.CopyDirectory(Path.Combine(TestAssetsRootPath, testAssetsFolderName), workFolder.Path); 171_env.SetCurrentDirectory(Path.Combine(workFolder.Path, entryProjectName)); 178string[] depsFiles = Directory.GetFiles(Path.Combine(workFolder.Path, entryProjectName), $"{entryProjectName}.deps.json", SearchOption.AllDirectories); 259FileUtilities.CopyDirectory(Path.Combine(TestAssetsRootPath, testAssetsFolderName), workFolder.Path); 261_env.SetCurrentDirectory(Path.Combine(workFolder.Path, entryProjectName)); 371FileUtilities.CopyDirectory(Path.Combine(TestAssetsRootPath, testAssetsFolderName), workFolder.Path); 372ReplaceStringInFile(Path.Combine(workFolder.Path, $"{projectName}.csproj"), 592$"{logFile} -flp:logfile={Path.Combine(projectDirectory!, "logFile.log")};verbosity=diagnostic", 658string checkCandidatePath = Path.Combine(TestAssetsRootPath, "CheckCandidate"); 664string editorConfigName = Path.Combine(checkCandidatePath, EditorConfigFileName); 674$"{Path.Combine(checkCandidatePath, $"CheckCandidate.csproj")} /m:1 -nr:False -restore -check -verbosity:n", out bool success, timeoutMilliseconds: 1200_0000); 703$"{logFile} -flp:logfile={Path.Combine(projectDirectory!, "logFile.log")};verbosity=diagnostic {(checkRequested ? "-check" : string.Empty)}", 838var checkCandidatePath = Path.Combine(TestAssetsRootPath, checkCandidate); 842$"{Path.Combine(checkCandidatePath, $"{checkCandidate}.csproj")} /m:1 -nr:False -restore -check -verbosity:n", 871string checkCandidatePath = Path.Combine(TestAssetsRootPath, checkCandidate); 875string editorConfigName = Path.Combine(checkCandidatePath, EditorConfigFileName); 882$"{Path.Combine(checkCandidatePath, $"{checkCandidate}.csproj")} /m:1 -nr:False -restore -check -verbosity:n", out bool _, timeoutMilliseconds: timeoutInMilliseconds); 900string checkCandidatePath = Path.Combine(TestAssetsRootPath, checkCandidate); 904string editorConfigName = Path.Combine(checkCandidatePath, EditorConfigFileName); 911$"{Path.Combine(checkCandidatePath, $"{checkCandidate}.csproj")} /m:1 -nr:False -restore -check -verbosity:n", out bool success, timeoutMilliseconds: timeoutInMilliseconds); 947File.Copy(nugetTemplatePath, Path.Combine(workFolder.Path, nugetTemplateName)); 971var nugetTemplatePath = Path.Combine(checkCandidatePath, "nugetTemplate.config"); 980string checksPackagesPath = Path.Combine(Directory.GetParent(AssemblyLocation)?.Parent?.FullName ?? string.Empty, "CustomChecks"); 993doc.Save(Path.Combine(checkCandidatePath, "nuget.config"));
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.CommandLine.UnitTests (57)
PerfLog_Tests.cs (3)
41string projectPath = Path.Combine(projectFolder.Path, "ClassLibrary.csproj"); 64string perfLogPath = Path.Combine(perfLogFolder.Path, "logs"); 77string projectPath = Path.Combine(projectFolder.Path, "ClassLibrary.csproj");
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
XMake_BinlogSwitch_Tests.cs (7)
42string binlogPath = Path.Combine(directory.Path, "test.binlog"); 61string binlogPath1 = Path.Combine(directory.Path, "test1.binlog"); 62string binlogPath2 = Path.Combine(directory.Path, "test2.binlog"); 84string binlogPattern = Path.Combine(directory.Path, "build-{}.binlog"); 110string binlogPattern = Path.Combine(directory.Path, "build-{}-test-{}.binlog"); 135string binlogPath = Path.Combine(directory.Path, "test.binlog"); 159string binlogPath = Path.Combine(directory.Path, "test.binlog");
XMake_Tests.cs (44)
85private static string TestAssetsRootPath { get; } = Path.Combine(Path.Combine(Path.GetDirectoryName(typeof(XMakeAppTests).Assembly.Location) ?? AppContext.BaseDirectory), "TestAssets"); 1197string projectFileName = Path.Combine(tempdir, "msbEnvironmenttest.proj"); 1231string projectFileName = Path.Combine(tempdir, "msbLoggertest.proj"); 1232string logFile = Path.Combine(tempdir, "logFile"); 1272? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "notepad.exe") 1347string projectPath = Path.Combine(directory, "my.proj"); 1348string rspPath = Path.Combine(directory, AutoResponseFileName); 1454directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 1456string projectPath = Path.Combine(directory, "my.proj"); 1457string rspPath = Path.Combine(directory, AutoResponseFileName); 1460string exePath = Path.Combine(exeDirectory, Constants.MSBuildExecutableName); 1461string mainRspPath = Path.Combine(exeDirectory, AutoResponseFileName); 1498string projectPath = Path.Combine(directory, "my.proj"); 1499string rspPath = Path.Combine(directory, AutoResponseFileName); 1500string exePath = Path.Combine(directory, Constants.MSBuildExecutableName); 2073string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2096string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2214distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2227distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2240distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2253distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($";Parameter1;logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2270fileLoggerParameters = new[] { "Parameter1", "verbosity=Normal;logfile=" + Path.Combine("..", "cat.log") + ";Parameter1" }; 2286distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"Parameter1;Parameter;;;Parameter;Parameter;logFile={Path.Combine(Directory.GetCurrentDirectory(), "msbuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2644var dllFilePath = Path.Combine(tempDir.Path, expectedLoggerName); 2669$"\"{Path.Combine(tempLoggerProjDir, "CustomLogger.csproj")}\" -restore -verbosity:n", out bool success); 2696$"{Path.Combine(tempLoggerProjDir, $"FaultyLogger.csproj")} -restore -verbosity:n", out bool success); 2777string binLog1 = Path.Combine(binLogLocation, "1.binlog"); 2778string binLog2 = Path.Combine(binLogLocation, "2.binlog"); 2779string binLog3 = Path.Combine(binLogLocation, "3.binlog"); 2816string binLog1 = Path.Combine(binLogLocation, "1.binlog"); 2817string binLog2 = Path.Combine(binLogLocation, "2.binlog"); 2856string binLog1 = Path.Combine(binLogLocation, "with-imports.binlog"); 2857string binLog2 = Path.Combine(binLogLocation, "no-imports.binlog"); 3034string binlogPath = Path.Combine(testProject.TestRoot, match.Groups[1] + ".binlog"); 3061string binlogPath = Path.Combine(testProject.TestRoot, match.Groups[1] + ".binlog"); 3093var preprocessFile = Path.Combine(testProject.TestRoot, "Preprocess.xml"); 3148dest = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 3169File.Copy(file, Path.Combine(dest, Path.GetFileName(file))); 3175string destSubDir = Path.Combine(dest, dirName); 3214File.WriteAllText(Path.Combine(testProject.TestRoot, item.Key), item.Value); 3233var testAssetsPath = Path.Combine(TestAssetsRootPath, folderName); 3234var loggerProjDir = Path.Combine(testAssetsPath, "LoggerProject"); 3238var tempLoggerProjDir = Path.Combine(tempDir.Path, "LoggerProject"); 3244var destPath = Path.Combine(tempLoggerProjDir, relativePath);
Microsoft.Build.EndToEnd.Tests (8)
MultithreadedExecution_Tests.cs (2)
52string sourceAssetDir = Path.Combine(_testAssetDir, testAsset.SolutionFolder); 128string binlogPath = Path.Combine(isolatedAsset.SolutionFolder, "build.binlog");
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
TestAssetsFixture.cs (2)
36TestAssetDir = Path.Combine(Path.GetDirectoryName(typeof(TestSolutionAssetsFixture).Assembly.Location) ?? AppContext.BaseDirectory, "TestAssets"); 44string projectPath = Path.Combine(TestAssetDir, asset.ProjectPath);
TestSolutionAsset.cs (1)
29internal string ProjectPath => Path.Combine(SolutionFolder, ProjectRelativePath);
Microsoft.Build.Engine.OM.UnitTests (81)
Construction\ConstructionEditing_Tests.cs (3)
3214string sdkPropsPath = Path.Combine(testSdkDirectory, "Sdk.props"); 3215string sdkTargetsPath = Path.Combine(testSdkDirectory, "Sdk.targets"); 3235var updated = Path.Combine(testProject.TestRoot, "updated.proj");
Construction\ProjectFormatting_Tests.cs (4)
409directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 412string file = Path.Combine(directory, "test.proj"); 464directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 467string file = Path.Combine(directory, "test.proj");
Construction\ProjectImportElement_Tests.cs (3)
242string testTempPath = Path.Combine(tempPath, "UnitTestsPublicOm"); 243string projectfile = Path.Combine(testTempPath, "a.proj"); 244string targetsFile = Path.Combine(tempPath, "x.targets");
Construction\ProjectRootElement_Tests.cs (10)
160Assert.Equal(project.FullPath, Path.Combine(Directory.GetCurrentDirectory(), "X")); 189projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"); 207ProjectRootElement projectXml2 = ProjectRootElement.Open(Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc")); 226ProjectRootElement projectXml2 = ProjectRootElement.Open(Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc")); 243projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"); 536string path = Path.Combine(toolsPath, target); 635directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 637string path = Path.Combine(directory, file); 668string path = Path.Combine(curDir, file); 669directory = Path.Combine(curDir, "bar");
Definition\DefinitionEditing_Tests.cs (10)
285string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;"); 668string wildcard = Path.Combine(directory, "*.xxx;"); 789string wildcard = Path.Combine(directory, "*.xxx;"); 1094string wildcard = Path.Combine(directory, "*.xxx;"); 1111ProjectCollection.Escape(Path.Combine(directory, "i2.xxx"))); 1134string wildcard = Path.Combine(directory, "*.xxx;"); 1143item.Rename(Path.Combine(directory, "i2.xxx")); 1389string wildcard = Path.Combine(directory, "*.xxx;"); 1408ProjectCollection.Escape(Path.Combine(directory, "i2.xxx"))); 2209string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;");
Definition\Project_Tests.cs (19)
684project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll")); 685projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll")); 689project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll")); 690projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll")); 1729testFileRoot = Path.Combine(Path.GetTempPath(), "foodir"); 1735string filePath = Path.Combine(testFileRoot, fileName); 1741projectConstruction.AddItem("foo", Path.Combine(testFileRoot, "*.foo")); 2489directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 2490string subdirectory = Path.Combine(directory, "sub"); 2493string projectPath = Path.Combine(subdirectory, "a.proj"); 2494string targetsPath = Path.Combine(directory, "b.targets"); 2602ProjectRootElement one = ProjectRootElement.Create(Path.Combine(myTempDir, "1.targets")); 2606ProjectRootElement two = ProjectRootElement.Create(Path.Combine(myTempDir, "2.targets")); 2610ProjectRootElement zero = ProjectRootElement.Create(Path.Combine(myTempDir, "0.targets")); 2614zero.AddImport(Path.Combine(myTempDir, "*.targets")); 3293var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "1.foo"); 3771var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "a.cs"); 4110string importPath = Path.Combine(pre.DirectoryPath, Guid.NewGuid().ToString()); 4153string importGlob = Path.Combine(pre.DirectoryPath, @"__NoMatch__\**");
Definition\ProjectItem_Tests.cs (11)
350directory = Path.Combine(Path.GetTempPath(), "a"); 356subdirectory = Path.Combine(directory, "b"); 362file = Path.Combine(subdirectory, "c"); 397directory = Path.Combine(Path.GetTempPath(), "a"); 403subdirectory = Path.Combine(directory, "b"); 409file = Path.Combine(subdirectory, "c"); 1092: Path.Combine(relativeFragmentFromRootToFile, file); 1985string projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1989string sourceFile = Path.Combine(projectDirectory, "a.cs"); 1990string renamedSourceFile = Path.Combine(projectDirectory, "b.cs"); 1994project.FullPath = Path.Combine(projectDirectory, "test.proj"); // assign a path so the wildcards can lock onto something.
Instance\ProjectInstance_Tests.cs (16)
284directory = Path.Combine(Path.GetTempPath(), "WildcardsInsideTargets"); 286file1 = Path.Combine(directory, "a.exe"); 287file2 = Path.Combine(directory, "b.exe"); 288file3 = Path.Combine(directory, "c.bat"); 293string path = Path.Combine(directory, "*.exe"); 419projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 420projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 455projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 456projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 501File.Create(Path.Combine(tempDir, "aItem.cs")).Dispose(); 503projA.FullPath = Path.Combine(tempDir, "a.proj"); 504projB.FullPath = Path.Combine(tempDir, "b.proj"); 529string projectA = Path.Combine(ObjectModelHelpers.TempProjectDir, "a.proj"); 530string projectB = Path.Combine(ObjectModelHelpers.TempProjectDir, "b.proj"); 532string includeFileA = Path.Combine(ObjectModelHelpers.TempProjectDir, "aaa4.cs"); 533string includeFileB = Path.Combine(ObjectModelHelpers.TempProjectDir, "bbb4.cs");
NugetRestoreTests.cs (1)
37string bootstrapMsBuildBinaryDir = Path.Combine(RunnerUtilities.BootstrapMsBuildBinaryLocation, msbuildSubFolder);
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
TransientIO.cs (1)
83var absolute = Path.GetFullPath(Path.IsPathRooted(relative) ? relative : Path.Combine(tempRoot, relative));
Microsoft.Build.Engine.UnitTests (570)
BackEnd\AppHostSupport_Tests.cs (3)
210string externalPath = Path.Combine(Path.GetTempPath(), $"different_path_{Guid.NewGuid():N}"); 231string realDir = Path.Combine(Path.GetTempPath(), $"msbuild_test_real_{Guid.NewGuid():N}"); 232string symlinkDir = Path.Combine(Path.GetTempPath(), $"msbuild_test_link_{Guid.NewGuid():N}");
BackEnd\AssemblyTaskFactory_E2E_Tests.cs (1)
18private static string TestAssetsRootPath { get; } = Path.Combine(AssemblyLocation, "TestAssets");
BackEnd\BinaryTranslator_Tests.cs (2)
551Assert.Equal(Path.Combine(directory, fileName), deserializedFullPath); 584Assert.Equal(fullPath, Path.Combine(deserializedDirectory, deserializedFileName));
BackEnd\BuildManager_Tests.cs (2)
350string shutdownProjectDirectory = Path.Combine(Path.GetTempPath(), String.Format(CultureInfo.InvariantCulture, "VSNodeShutdown_{0}_UnitTest", Process.GetCurrentProcess().Id)); 3683string rootProjectPath = Path.Combine(shutdownProjectDirectory, String.Format(CultureInfo.InvariantCulture, "RootProj_{0}.proj", Guid.NewGuid().ToString("N")));
BackEnd\CustomTaskHelper.cs (3)
29string[] referenceAssemblies = new string[] { "System.dll", Path.Combine(referenceAssembliesPath, "Microsoft.Build.Framework.dll"), Path.Combine(referenceAssembliesPath, "Microsoft.Build.Utilities.Core.dll"), Path.Combine(referenceAssembliesPath, "Microsoft.Build.Tasks.Core.dll") };
BackEnd\DebugUtils_tests.cs (4)
66resultPath.ShouldBe(Path.Combine(relativePath, ".MSBuild_Logs")); 92string inSolutionPath = Path.Combine(testCurrentDir, "AbsoluteLogs"); 101resultPath.ShouldBe(Path.Combine(fullInSolutionPath, ".MSBuild_Logs")); 132resultPath.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), ".MSBuild_Logs"));
BackEnd\IntrinsicTask_Tests.cs (2)
3333string directoryForTest = Path.Combine(tempPath, "IncludeCheckOnMetadata_3\\Test"); 3334string fileForTest = Path.Combine(directoryForTest, "a.dll");
BackEnd\LoggingServicesLogMethod_Tests.cs (3)
443string testTempPath = Path.Combine(tempPath, "VerifyErrorPostfixForInvalidProjectFileException"); 444string projectFile = Path.Combine(testTempPath, "a.proj"); 445string targetsFile = Path.Combine(testTempPath, "x.targets");
BackEnd\MSBuild_Tests.cs (4)
2020string referencedProjectPath = Path.Combine(projectDir, "referenced.csproj"); 2034string mainProjectPath = Path.Combine(projectDir, "main.csproj"); 2093string referencedProjectPath = Path.Combine(projectDir, "referenced.csproj"); 2108string mainProjectPath = Path.Combine(projectDir, "main.csproj");
BackEnd\SdkResolverLoader_Tests.cs (24)
61var d1 = Directory.CreateDirectory(Path.Combine(root, "Resolver1")); 64var f1 = Path.Combine(d1.FullName, "Resolver1.dll"); 67var f2 = Path.Combine(d1.FullName, "Dependency.dll"); 68var f3 = Path.Combine(d1.FullName, "InvalidName.dll"); 69var f4 = Path.Combine(d1.FullName, "NoResolver.txt"); 94var testFolder = Directory.CreateDirectory(Path.Combine(root, "MyTestResolver")); 96var wrongResolverDll = Path.Combine(testFolder.FullName, "MyTestResolver.dll"); 97var resolverManifest = Path.Combine(testFolder.FullName, "MyTestResolver.xml"); 98var assemblyToLoad = Path.Combine(root, "SomeOtherResolver.dll"); 220var resolverPath = Path.Combine(root, "MyTestResolver"); 221var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 245var resolverPath = Path.Combine(root, "MyTestResolver"); 246var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 272var resolverPath = Path.Combine(root, "MyTestResolver"); 273var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 296var resolverPath = Path.Combine(root, "MyTestResolver"); 312var resolverPath = Path.Combine(root, "MyTestResolver"); 313var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 371Directory.CreateDirectory(Path.Combine(testRoot, resolver1)); 373Directory.CreateDirectory(Path.Combine(additionalRoot, resolver1)); 377Directory.CreateDirectory(Path.Combine(testRoot, resolver2)); 381Directory.CreateDirectory(Path.Combine(additionalRoot, resolver3)); 442var resolverFolder = Path.Combine(testRoot, "Microsoft.DotNet.MSBuildSdkResolver"); 445var assemblyFile = Path.Combine(resolverFolder, "Microsoft.DotNet.MSBuildSdkResolver.dll");
BackEnd\SdkResultOutOfProc_Tests.cs (7)
106string projectPath = Path.Combine(projectFolder, "TestProject.proj"); 141string entryProjectPath = Path.Combine(projectFolder, "EntryProject.proj"); 151string projectWithSdkImportPath = Path.Combine(projectFolder, "ProjectWithSdkImport.proj"); 215Directory.CreateDirectory(Path.Combine(projectFolder, "Sdk1")); 216Directory.CreateDirectory(Path.Combine(projectFolder, "Sdk2")); 240Path.Combine(projectFolder, "Sdk1"), 241Path.Combine(projectFolder, "Sdk2")
BackEnd\TargetUpToDateChecker_Tests.cs (1)
598string projectFile = Path.Combine(ObjectModelHelpers.TempProjectDir, "temp.proj");
BackEnd\TaskBuilder_Tests.cs (3)
646string customTaskFolder = Path.Combine(directoryName, "buildCrossTargeting"); 899string projectAPath = Path.Combine(ObjectModelHelpers.TempProjectDir, "a.proj"); 900string projectBPath = Path.Combine(ObjectModelHelpers.TempProjectDir, "b.proj");
BackEnd\TaskEnvironment_Tests.cs (2)
224string relativePath = Path.Combine("subdir", "file.txt"); 234string expectedPath = Path.Combine(baseDirectory, relativePath);
BackEnd\TaskHost_MultiThreadableTask_Tests.cs (1)
75string projectFile = Path.Combine(_testProjectsDir, "TaskEnvTest.proj");
BackEnd\TaskHostCallback_Tests.cs (6)
85string projectFile = Path.Combine(testDir, "Test.proj"); 192string projectFile = Path.Combine(testDir, "Test.proj"); 239string projectFile = Path.Combine(testDir, "Test.proj"); 293string projectFile = Path.Combine(testDir, "Test.proj"); 494string childProject = Path.Combine(testDir, "Child.proj"); 513string projectFile = Path.Combine(testDir, "Test.proj");
BackEnd\TaskHostFactory_Tests.cs (1)
29?? Path.Combine(AppContext.BaseDirectory, "Microsoft.Build.Engine.UnitTests.dll");
BackEnd\TaskRouter_IntegrationTests.cs (7)
59string projectFile = Path.Combine(_testProjectsDir, "NonEnlightenedTaskProject.proj"); 104string projectFile = Path.Combine(_testProjectsDir, "InterfaceTaskProject.proj"); 149string projectFile = Path.Combine(_testProjectsDir, "AttributeTaskProject.proj"); 194string projectFile = Path.Combine(_testProjectsDir, "NonEnlightenedTaskSingleThreaded.proj"); 238string projectFile = Path.Combine(_testProjectsDir, "InterfaceTaskSingleThreaded.proj"); 292string projectFile = Path.Combine(_testProjectsDir, "MixedTasksProject.proj"); 350string projectFile = Path.Combine(_testProjectsDir, "ExplicitTaskHostFactory.proj");
BinaryLogger_Tests.cs (13)
355RunnerUtilities.ExecMSBuild($"{_logFile} -flp:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic", out success); 358string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log")); 412RunnerUtilities.ExecMSBuild($"{projectFile.Path} -nr:False -bl:{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile2.log")};verbosity=normal", out bool success); 417string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log")); 421string text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile2.log")); 424RunnerUtilities.ExecMSBuild($"{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile3.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile4.log")};verbosity=normal", out success); 426text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile3.log")); 430text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile4.log")); 475string symlinkPath = Path.Combine(testFolder2.Path, symlinkName); 476string symlinkLvl2Path = Path.Combine(testFolder2.Path, symlinkLvl2Name); 562string logFilePath = Path.Combine(_env.DefaultTestDirectory.Path, "test.binlog");
BuildEnvironmentHelper_Tests.cs (19)
22string expectedMSBuildPath = Path.Combine(msbuildPath, Constants.MSBuildExecutableName).ToLowerInvariant(); 44var msBuildPath = Path.Combine(path, Constants.MSBuildExecutableName); 45var msBuildConfig = Path.Combine(path, 76var msBuildPath = Path.Combine(msbuildBinDirectory, Constants.MSBuildExecutableName); 77var msBuildConfig = Path.Combine(msbuildBinDirectory, $"{Constants.MSBuildExecutableName}.config"); 78var vsMSBuildDirectory = Path.Combine(env.TempFolderRoot, "MSBuild"); 368BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.BuildDirectory, "amd64")); 384BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.BuildDirectory, "amd64")); 409var entryProcess = Path.Combine(Path.GetTempPath(), "foo.exe"); 425var msBuildAssembly = Path.Combine(env.BuildDirectory, "Microsoft.Build.dll"); 442var msBuildAssembly = Path.Combine(env.BuildDirectory64, "Microsoft.Build.dll"); 467public string MSBuildExePath64 => Path.Combine(BuildDirectory64, Constants.MSBuildExecutableName); 476BuildDirectory64 = Path.Combine(BuildDirectory, "amd64"); 483File.WriteAllText(Path.Combine(BuildDirectory, file), string.Empty); 489File.WriteAllText(Path.Combine(BuildDirectory64, file), string.Empty); 511public string MSBuildExePath => Path.Combine(BuildDirectory, Constants.MSBuildExecutableName); 522TempFolderRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 523BuildDirectory = Path.Combine(TempFolderRoot, "MSBuild"); 533Directory.CreateDirectory(Path.Combine(BuildDirectory, "amd64"));
BuildEventArgsSerialization_Tests.cs (1)
158projectFile: Path.Combine("a", "test.proj"),
CLR2TaskHost_E2E_Tests.cs (1)
58string projectPath = Path.Combine(testFolder.Path, "CLR2ExplicitTest.proj");
ConsoleLogger_Tests.cs (2)
374string tempProjectDir = Path.Combine(Path.GetTempPath(), "EmptyTargetsOnDetailedButNotNotmal"); 375string tempProjectPath = Path.Combine(tempProjectDir, "test.proj");
Construction\ElementLocation_Tests.cs (3)
32Path.Combine(AppContext.BaseDirectory, "Microsoft.Common.targets"); 105file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 140file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Construction\SolutionFile_OldParser_Tests.cs (14)
168string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 219string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 220string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproja.proj"); 344string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 345string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj2.etp"); 539string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 540string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj2.etp"); 594Directory.CreateDirectory(Path.Combine(FileUtilities.TempFileDirectory, "ETPProjUpgradeTest")); 631string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 689string proj1Path = Path.Combine(Path.GetTempPath(), "someproj.etp"); 773var solutionFolder = env.CreateFolder(Path.Combine(FileUtilities.GetTemporaryDirectory(), "sln")); 774env.CreateFolder(Path.Combine(solutionFolder.Path, "RelativePath")); 786proj.RelativePath.ShouldBe(Path.Combine("RelativePath", "project file")); 2429solution.ProjectsInOrder[0].AbsolutePath.ShouldBe(Path.GetFullPath(Path.Combine(Path.GetDirectoryName(solution.FullPath)!, expectedRelativePath)));
Construction\SolutionFilter_Tests.cs (19)
53TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "ClassLibrary"), createFolder: true); 54TransientTestFolder classLibSubFolder = testEnvironment.CreateFolder(Path.Combine(classLibFolder.Path, "ClassLibrary"), createFolder: true); 63TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "SimpleProject"), createFolder: true); 64TransientTestFolder simpleProjectSubFolder = testEnvironment.CreateFolder(Path.Combine(simpleProjectFolder.Path, "SimpleProject"), createFolder: true); 231TransientTestFolder src = testEnvironment.CreateFolder(Path.Combine(folder.Path, "src"), createFolder: true); 243Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build"", """ + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)) + @""", ""{69BE05E2-CBDA-4D27-9733-44E12B0F5627}"" 245Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""MSBuild"", """ + Path.Combine("src", Path.GetFileName(msbuild.Path)) + @""", ""{6F92CA55-1D15-4F34-B1FE-56C0B7EB455E}"" 247Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.CommandLine.UnitTests"", """ + Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)) + @""", ""{0ADDBC02-0076-4159-B351-2BF33FAA46B2}"" 249Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.Tasks.UnitTests"", """ + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)) + @""", ""{CF999BDE-02B3-431B-95E6-E88D621D9CBF}"" 269""" + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!).Replace("\\", "\\\\") + @""", 270""" + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!).Replace("\\", "\\\\") + @""" 275sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!)).ShouldBeTrue(); 276sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!)).ShouldBeTrue(); 279(sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)!)) 280|| sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(msbuild.Path)!)) 281|| sp.ProjectShouldBuild(Path.Combine("src", "notAProject.csproj"))) 292folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, $"test@folder%special$symbols"), createFolder: true); 393TransientTestFolder src = testEnvironment.CreateFolder(Path.Combine(folder.Path, "src"), createFolder: true); 394TransientTestFolder nested = testEnvironment.CreateFolder(Path.Combine(src.Path, "nested"), createFolder: true);
Construction\SolutionProjectGenerator_Tests.cs (18)
121TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 131TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 166TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 182TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 241TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 257TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 909<ProjectConfiguration Project="{786E302A-96CE-43DC-B640-D6B6CC9BF6C0}" AbsolutePath="##temp##{{Path.Combine("Project1", "A.csproj")}}" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration> 910<ProjectConfiguration Project="{881C1674-4ECA-451D-85B6-D7C59B7F16FA}" AbsolutePath="##temp##{{Path.Combine("Project2", "B.csproj")}}" BuildProjectInSolution="True">Debug|AnyCPU<ProjectDependency Project="{4A727FF8-65F2-401E-95AD-7C8BBFBE3167}" /></ProjectConfiguration> 911<ProjectConfiguration Project="{4A727FF8-65F2-401E-95AD-7C8BBFBE3167}" AbsolutePath="##temp##{{Path.Combine("Project3", "C.csproj")}}" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration> 2599string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2619ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), 2658string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2678ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), 2736string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2756string projectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, projectName), 2768ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.props"), 2777ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.targets"), 2846projectInSolution.AbsolutePath.ShouldBe(Path.Combine(solution.SolutionFileDirectory, projectInSolution.RelativePath));
Definition\ProjectEvaluationContext_Tests.cs (37)
123{Path.Combine(_env.DefaultTestDirectory.Path, "1.file"), 1}, 124{Path.Combine(_env.DefaultTestDirectory.Path, "2.file"), 1} 182{ Path.Combine(_env.DefaultTestDirectory.Path, "1.file"), 2 } 378File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.cs"), ""); 388File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.cs"), ""); 438File.WriteAllText(Path.Combine(projectDirectory1, $"1.{evaluationCount}.cs"), ""); 439File.WriteAllText(Path.Combine(projectDirectory2, $"2.{evaluationCount}.cs"), ""); 445Path.Combine(projectDirectory1, "1"), 448<i Include=`{Path.Combine("**", "*.cs")}` /> 452Path.Combine(projectDirectory2, "2"), 455<i Include=`{Path.Combine("**", "*.cs")}` /> 472File.WriteAllText(Path.Combine(projectDirectory1, $"1.{evaluationCount}.cs"), ""); 473File.WriteAllText(Path.Combine(projectDirectory2, $"2.{evaluationCount}.cs"), ""); 493File.WriteAllText(Path.Combine(project1GlobDirectory, $"1.{evaluationCount}.cs"), ""); 494File.WriteAllText(Path.Combine(project2GlobDirectory, $"2.{evaluationCount}.cs"), ""); 500Path.Combine(project1Directory, "1"), 507Path.Combine(project2Directory, "2"), 529File.WriteAllText(Path.Combine(project1GlobDirectory, $"1.{evaluationCount}.cs"), ""); 530File.WriteAllText(Path.Combine(project2GlobDirectory, $"2.{evaluationCount}.cs"), ""); 555File.WriteAllText(Path.Combine(project1GlobDirectory, $"{evaluationCount}.cs"), ""); 562Path.Combine(project1Directory.Path, "1"), 570Path.Combine(project2Directory.Path, "2"), 591.Select(i => Path.Combine(project1Directory.Path, i)) 600File.WriteAllText(Path.Combine(project1GlobDirectory, $"{evaluationCount}.cs"), ""); 622File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 628Path.Combine(project1Directory.Path, "1"), 635Path.Combine(project2Directory.Path, "2"), 652.Select(i => Path.Combine(globFixedDirectoryPart, i)) 660File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 686? Path.Combine("..", "GlobDirectory") 702prependedGlobExpansion[i] = Path.Combine(itemSpecDirectoryPart, globExpansion[i]); 726File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 736File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 763File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.props"), $"<Project><ItemGroup><i Include=`{evaluationCount}.cs`/></ItemGroup></Project>".Cleanup()); 773File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.props"), $"<Project><ItemGroup><i Include=`{evaluationCount}.cs`/></ItemGroup></Project>".Cleanup()); 804var theFile = Path.Combine(projectDirectory, "0.cs"); 958projectContents.Select((p, i) => new ProjectSpecification(Path.Combine(_env.DefaultTestDirectory.Path, $"Project{i}.proj"), p)),
Definition\ToolsetConfigurationReaderTestHelper.cs (2)
33s_testFolderFullPath = Path.Combine(Path.GetTempPath(), "configFileTests"); 35string configFilePath = Path.Combine(s_testFolderFullPath, "test.exe.config");
EscapingInProjects_Tests.cs (5)
636string path = Path.Combine(Path.GetTempPath(), projectRelativePath); 637string projectAbsolutePath = Path.Combine(path, projectName); 1803File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "a.weirdo"), String.Empty); 1804File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "b.weirdo"), String.Empty); 1805File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "c.weirdo"), String.Empty);
Evaluation\Evaluator_Tests.cs (109)
107TransientTestFolder projDirectory = env.CreateFolder(Path.Combine(env.CreateNewTempPath().TempPath, projectPathCandidate), createFolder: true); 140yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}')""", true }; 141yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false }; 142yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}""", false }; 143yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "*.*proj")}""", true }; 146yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}')""", true }; 147yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false }; 148yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}""", false }; 149yield return new object[] { $@"Project=""{Path.Combine("realFolder", "*.*proj")}""", true }; 152yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}"" Condition=""Exists('{Path.Combine("realFolder", "realFile.csproj")}')""", true }; 153yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}"" Condition=""'true'""", true }; 154yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}""", true }; 155yield return new object[] { $@"Project=""{Path.Combine("realFolder", "*.*proj")}""", true }; 164yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "*.*proj")}""", true }; 333string targetDirectory = Path.Combine(tempPath, "VerifyConditionsInsideOutsideTargets"); 334string subDirectory = Path.Combine(targetDirectory, "subdir"); 336string testTargetPath = Path.Combine(targetDirectory, "test.targets"); 337string targetDirectoryTargetsPath = Path.Combine(targetDirectory, "targetdir.targets"); 338string targetDirectoryTargetsPath2 = Path.Combine(targetDirectory, "targetdir2.targets"); 339string subdirProjPath = Path.Combine(subDirectory, "test.proj"); 340string projectDirectoryTargetsPath = Path.Combine(subDirectory, "projdir.targets"); 341string projectDirectoryTargetsPath2 = Path.Combine(subDirectory, "projdir2.targets"); 342string textTextPath = Path.Combine(targetDirectory, "test.txt"); 462string targetDirectory = Path.Combine(tempPath, "VerifyConditionsInsideOutsideTargets"); 463string subDirectory = Path.Combine(targetDirectory, "subdir"); 465string testTargetPath = Path.Combine(targetDirectory, "test.targets"); 466string targetDirectoryTargetsPath = Path.Combine(targetDirectory, "targetdir.targets"); 467string targetDirectoryTargetsPath2 = Path.Combine(targetDirectory, "targetdir2.targets"); 468string subdirProjPath = Path.Combine(subDirectory, "test.proj"); 469string projectDirectoryTargetsPath = Path.Combine(subDirectory, "projdir.targets"); 470string projectDirectoryTargetsPath2 = Path.Combine(subDirectory, "projdir2.targets"); 471string textTextPath = Path.Combine(targetDirectory, "test.txt"); 489logger.AssertLogContains("PropertyOutsideTarget: " + Path.Combine("..", "test.txt")); 491logger.AssertLogContains("PropertyInsideTarget: " + Path.Combine("..", "test.txt")); 492logger.AssertLogContains("PropertyGroupInsideTarget: " + Path.Combine("..", "test.txt")); 534string targetDirectory = Path.Combine(tempPath, "VerifyUsedUnInitializedPropertyInImports"); 536string targetAPath = Path.Combine(targetDirectory, "targetA.targets"); 537string targetBPath = Path.Combine(targetDirectory, "targetB.targets"); 538string projectPath = Path.Combine(targetDirectory, "test.proj"); 581string targetDirectory = Path.Combine(tempPath, "EmptyPropertyIsThenSet"); 582string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 623string targetDirectory = Path.Combine(tempPath, "EmptyPropertyIsThenSet"); 624string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 669string targetDirectory = Path.Combine(tempPath, "SetPropertyToItself"); 670string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 715string targetDirectory = Path.Combine(tempPath, "UsePropertyInCondition"); 716string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 759string targetDirectory = Path.Combine(tempPath, "UsePropertyBeforeSet"); 760string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 805string targetDirectory = Path.Combine(tempPath, "UsePropertyBeforeSetDuplicates"); 806string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 1156directory = Path.Combine(Path.GetTempPath(), "fol$der"); 1157directory2 = Path.Combine(Path.GetTempPath(), "fol$der" + Path.DirectorySeparatorChar + "fol$der2"); 1160string importPathRelativeEscaped = Path.Combine("fol$(x)$der2", "Escap%3beab$(x)leChar$ac%3BtersInI*tPa?h"); 1161string importRelative1 = Path.Combine("fol$der2", "Escap;eableChar$ac;tersInImportPath"); 1162string importRelative2 = Path.Combine("fol$der2", "Escap;eableChar$ac;tersInI_XXXX_tPath"); 1163importPath1 = Path.Combine(directory, importRelative1); 1164importPath2 = Path.Combine(directory, importRelative2); 1185projectPath = Path.Combine(directory, "my.proj"); // project path has $ in too 2272string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative"); 2273string directory2 = Path.Combine(directory, "sub"); 2275VerifyImportTargetRelativePath(directory, directory2, new string[] { Path.Combine("**", "*.targets") }); 2284string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative2"); 2285string directory2 = Path.Combine(directory, "sub"); 2290new string[] { Path.Combine(directory2, "*.targets"), Path.Combine(directory, "*.targets") }); 2299string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative3"); 2300string directory2 = Path.Combine(directory, "sub"); 2321string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsFullPath"); 2322string directory2 = Path.Combine(directory, "sub"); 2325string file1 = Path.Combine(directory, "1.targets"); 2326string file2 = Path.Combine(directory2, "2.targets"); 2327string file3 = Path.Combine(directory2, "3.cpp.targets"); 3422string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyPropertySetInImportStillOverrides"); 3433string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3434string import = Path.Combine(projectDirectory, "import.proj"); 3483string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportDoesntAffectParentProjectAboveIt"); 3494string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3495string import = Path.Combine(projectDirectory, "import.proj"); 3543string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportAffectsParentProjectBelowIt"); 3554string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3555string import = Path.Combine(projectDirectory, "import.proj"); 3615string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyUnionBetweenImports"); 3626string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3627string import = Path.Combine(projectDirectory, "import.proj"); 3688string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDuplicateTreatAsLocalProperty"); 3699string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3700string import = Path.Combine(projectDirectory, "import.proj"); 3753string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyGlobalPropertyPassedToP2P"); 3764string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3765string project2 = Path.Combine(projectDirectory, "project2.proj"); 3815string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyLocalPropertyPropagatesIfExplicitlyPassedToP2P"); 3826string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3827string project2 = Path.Combine(projectDirectory, "project2.proj"); 4388string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDTDProcessingIsDisabled"); 4399string projectFilename = Path.Combine(projectDirectory, "project.proj"); 4541string projectDirectory = Path.Combine(Path.GetTempPath(), "ThrownInvalidProjectExceptionProperlyHandled"); 4552string primaryProject = Path.Combine(projectDirectory, "project.proj"); 4553string import = Path.Combine(projectDirectory, "import.proj"); 5075string targetDirectory = Path.Combine(tempPath, "LogPropertyAssignments"); 5076string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 5221string file0 = Path.Combine(directory, "my.proj"); 5222file1 = Path.Combine(directory, "1.targets"); 5223file2 = Path.Combine(directory2, "2.targets"); 5224file3 = Path.Combine(directory2, "3.cpp.targets"); 5225file4 = Path.Combine(directory2, "4.nottargets");
Evaluation\Expander_Tests.cs (83)
274Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"seconddirectory"), itemsDir[0].EvaluatedInclude); 294Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, itemsTrue[5].EvaluatedInclude); 350Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, result); 705Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, itemsTrue[5].EvaluatedInclude); 764Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"secondd;rectory"), items[5].EvaluatedInclude); 765Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"someo;herplace"), items[6].EvaluatedInclude); 808pi.SetMetadata("Meta9", Path.Combine("seconddirectory", "file.ext")); 809pi.SetMetadata("Meta10", String.Format(";{0};{1};", Path.Combine("someo%3bherplace", "foo.txt"), Path.Combine("secondd%3brectory", "file.ext"))); 2226pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2227pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2361pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2362pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2579pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2724pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2745Path.Combine(s_rootPathPrefix, "foo goo") + "`, `$(File)`))", 2758pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2763Path.Combine(s_rootPathPrefix, "foo baz") + @"`, `$(File)`))", 2776pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2781Path.Combine(s_rootPathPrefix, "foo baz") + @" `, `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance); 3454string directoryStart = Path.Combine(tempPath, "one\\two\\three\\four\\five"); 3684$"{Path.GetFullPath(Path.Combine("one", "two"))}{Path.DirectorySeparatorChar}", 4410string path = Path.Combine("foo", "bar"); 4985var expectedAlphaSquigglePath = Path.Combine("Alpha", ".squiggle"); 4986var expectedBetaSquigglePath = Path.Combine("Beta", ".squiggle"); 5032var alphaOnePath = Path.Combine("alpha", "One.cs"); 5033var alphaThreePath = Path.Combine("alpha", "Three.cs"); 5073var alphaBetaPath = Path.Combine("alpha", "beta"); 5074var alphaDeltaPath = Path.Combine("alpha", "delta"); 5257string reflectionInfoPath = Path.Combine(Directory.GetCurrentDirectory(), "PropertyFunctionsRequiringReflection"); 5377File.WriteAllText(Path.Combine(correctDir.Path, "notes.txt"), "correct content"); 5378File.WriteAllText(Path.Combine(wrongDir.Path, "notes.txt"), "wrong content"); 5393File.WriteAllText(Path.Combine(correctDir.Path, "exists.txt"), "data"); 5409string filePath = Path.Combine(correctDir.Path, "attrs.txt"); 5427string filePath = Path.Combine(correctDir.Path, "time.txt"); 5444string filePath = Path.Combine(correctDir.Path, "time.txt"); 5461string filePath = Path.Combine(correctDir.Path, "time.txt"); 5482Directory.CreateDirectory(Path.Combine(correctDir.Path, "subdir")); 5514string subDir = Path.Combine(correctDir.Path, "sub"); 5516File.WriteAllText(Path.Combine(subDir, "a.txt"), "data"); 5547string subDir = Path.Combine(correctDir.Path, "sub"); 5564string subDir = Path.Combine(correctDir.Path, "sub"); 5586File.WriteAllText(Path.Combine(correctDir.Path, "lines.txt"), "line1\nline2"); 5587File.WriteAllText(Path.Combine(wrongDir.Path, "lines.txt"), "wrong"); 5603File.WriteAllBytes(Path.Combine(correctDir.Path, "data.bin"), [0x42]); 5622File.Exists(Path.Combine(correctDir.Path, "output.txt")).ShouldBeTrue(); 5623File.ReadAllText(Path.Combine(correctDir.Path, "output.txt")).ShouldBe("hello"); 5624File.Exists(Path.Combine(wrongDir.Path, "output.txt")).ShouldBeFalse(); 5635File.WriteAllText(Path.Combine(correctDir.Path, "append.txt"), "base"); 5640File.ReadAllText(Path.Combine(correctDir.Path, "append.txt")).ShouldBe("base added"); 5651string correctFile = Path.Combine(correctDir.Path, "todelete.txt"); 5652string wrongFile = Path.Combine(wrongDir.Path, "todelete.txt"); 5671string filePath = Path.Combine(correctDir.Path, "utc.txt"); 5689string filePath = Path.Combine(correctDir.Path, "utc.txt"); 5707string filePath = Path.Combine(correctDir.Path, "utc.txt"); 5732Directory.Exists(Path.Combine(correctDir.Path, "newdir")).ShouldBeTrue(); 5733Directory.Exists(Path.Combine(wrongDir.Path, "newdir")).ShouldBeFalse(); 5744Directory.CreateDirectory(Path.Combine(correctDir.Path, "todel")); 5745Directory.CreateDirectory(Path.Combine(wrongDir.Path, "todel")); 5750Directory.Exists(Path.Combine(correctDir.Path, "todel")).ShouldBeFalse(); 5751Directory.Exists(Path.Combine(wrongDir.Path, "todel")).ShouldBeTrue(); 5764string filePath = Path.Combine(dir.Path, "abs.txt"); 5780string filePath = Path.Combine(dir.Path, "abs.txt"); 5795string subDir = Path.Combine(dir.Path, "subdir"); 5815string absFile = Path.Combine(otherDir.Path, "abs.txt"); 5832string absFile = Path.Combine(otherDir.Path, "abs.txt"); 5853File.WriteAllText(Path.Combine(correctDir.Path, "source.txt"), "copy me"); 5858File.Exists(Path.Combine(correctDir.Path, "dest.txt")).ShouldBeTrue(); 5859File.ReadAllText(Path.Combine(correctDir.Path, "dest.txt")).ShouldBe("copy me"); 5860File.Exists(Path.Combine(wrongDir.Path, "dest.txt")).ShouldBeFalse(); 5871File.WriteAllText(Path.Combine(correctDir.Path, "movesrc.txt"), "move me"); 5876File.Exists(Path.Combine(correctDir.Path, "movesrc.txt")).ShouldBeFalse(); 5877File.Exists(Path.Combine(correctDir.Path, "movedst.txt")).ShouldBeTrue(); 5878File.ReadAllText(Path.Combine(correctDir.Path, "movedst.txt")).ShouldBe("move me"); 5889Directory.CreateDirectory(Path.Combine(correctDir.Path, "dirsrc")); 5894Directory.Exists(Path.Combine(correctDir.Path, "dirsrc")).ShouldBeFalse(); 5895Directory.Exists(Path.Combine(correctDir.Path, "dirdst")).ShouldBeTrue(); 5910string siblingDir = Path.Combine(rootDir.Path, "sibling"); 5911string subDir = Path.Combine(rootDir.Path, "subdir"); 5914File.WriteAllText(Path.Combine(siblingDir, "file.txt"), "traversal works"); 5933string siblingDir = Path.Combine(rootDir.Path, "sibling"); 5934string subDir = Path.Combine(rootDir.Path, "subdir"); 5937File.WriteAllText(Path.Combine(siblingDir, "file.txt"), "backslash traversal works");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (35)
51extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), GetExtensionTargetsFileContent1()); 56projColln.ResetToolsetsForTests(WriteConfigFileAndGetReader("MSBuildExtensionsPath", extnDir1, Path.Combine("tmp", "nonexistent"))); 93string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContentWithCondition); 96CreateAndBuildProjectForImportFromExtensionsPath(mainProjectPath, "MSBuildExtensionsPath", new string[] { extnDir1, Path.Combine("tmp", "nonexistent") }, 129string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent1); 130string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn2.proj"), 134new string[] { extnDir2, Path.Combine("tmp", "nonexistent"), extnDir1 }, 159string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent); 197string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 199string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn.proj"), 205new[] { extnDir1, Path.Combine("tmp", "nonexistent"), extnDir2 }, 247string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("circularwildcardtest", "extn.proj"), 249string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("circularwildcardtest", "extn.proj"), 251string extnDir3 = GetNewExtensionsPathAndCreateFile("extensions3", Path.Combine("circularwildcardtest", "extn3.proj"), 284string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent); 287CreateAndBuildProjectForImportFromExtensionsPath(mainProjectPath, "MSBuildExtensionsPath", new string[] { Path.Combine("tmp", "nonexistent"), extnDir1 }, 301extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent); 306Path.Combine("tmp", "nonexistent"))); 356string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent1); 357string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn.proj"), extnTargetsFileContent2); 360CreateAndBuildProjectForImportFromExtensionsPath(mainProjectPath, "MSBuildExtensionsPath", new string[] { extnDir2, Path.Combine("tmp", "nonexistent"), extnDir1 }, 400string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent1); 401string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn.proj"), extnTargetsFileContent2); 408projColln.ResetToolsetsForTests(WriteConfigFileAndGetReader("MSBuildExtensionsPath", Path.Combine("tmp", "non-existent"), extnDir1)); 487extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 489extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("bar", "extn2.proj"), 491extnDir3 = GetNewExtensionsPathAndCreateFile("extensions3", Path.Combine("xyz", "extn3.proj"), 567extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 628extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 838logger.AssertLogContains(@"MSB4226: The imported project """ + Path.Combine("$(UndefinedProperty)", "filenotfound.props") 890extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 892extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("bar", "extn2.proj"), 1000var extnDir = Path.Combine(ObjectModelHelpers.TempProjectDir, extnDirName); 1001Directory.CreateDirectory(Path.Combine(extnDir, Path.GetDirectoryName(relativeFilePath))); 1002File.WriteAllText(Path.Combine(extnDir, relativeFilePath), fileContents);
Evaluation\IntrinsicFunctionOverload_Tests.cs (3)
133string testFilePath = Path.Combine(env.DefaultTestDirectory.Path, "TestFile.txt"); 173string testDirPath = Path.Combine(env.DefaultTestDirectory.Path, "TestDir"); 214string testDirPath = Path.Combine(env.DefaultTestDirectory.Path, "TestDir");
Evaluation\ItemSpec_Tests.cs (2)
48var projectFile = Path.Combine(absoluteRootPath, "build.proj"); 49var absoluteSpec = Path.Combine(absoluteRootPath, "s.cs");
Evaluation\Preprocessor_Tests.cs (13)
707directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 743<Import Project=""" + Path.Combine(directoryXmlCommentFriendly, "*.targets") + @"""> 745" + Path.Combine(directoryXmlCommentFriendly, "1.targets") + @" 758<Import Project=""" + Path.Combine(directoryXmlCommentFriendly, "*.targets") + @"""> 760" + Path.Combine(directoryXmlCommentFriendly, "2.targets") + @" 858string sdkPropsPath = Path.Combine(testSdkDirectory, "Sdk.props"); 859string sdkTargetsPath = Path.Combine(testSdkDirectory, "Sdk.targets"); 974string importedPropsPath = Path.Combine(testDirectory, "Import.props"); 981string projectPath = Path.Combine(testDirectory, "TestProject.csproj"); 1065string sdkPropsPath1 = Path.Combine(sdk1, "Sdk.props"); 1066string sdkTargetsPath1 = Path.Combine(sdk1, "Sdk.targets"); 1079string sdkPropsPath2 = Path.Combine(sdk2, "Sdk.props"); 1080string sdkTargetsPath2 = Path.Combine(sdk2, "Sdk.targets");
Evaluation\ProjectSdkImplicitImport_Tests.cs (6)
90_sdkPropsPath = Path.Combine(_testSdkDirectory, "Sdk.props"); 91_sdkTargetsPath = Path.Combine(_testSdkDirectory, "Sdk.targets"); 194File.WriteAllText(Path.Combine(testSdkDirectory, "Sdk.props"), $"<Project><PropertyGroup><InitialImportProperty>{sdkName}</InitialImportProperty></PropertyGroup></Project>"); 195File.WriteAllText(Path.Combine(testSdkDirectory, "Sdk.targets"), $"<Project><PropertyGroup><FinalImportProperty>{sdkName}</FinalImportProperty></PropertyGroup></Project>"); 359var p1Path = Path.Combine(projectFolder, "p1.proj"); 360var p2Path = Path.Combine(projectFolder, "p2.proj");
Evaluation\SdkResultEvaluation_Tests.cs (26)
129string projectPath = Path.Combine(_testFolder, "project.proj"); 162string projectPath = Path.Combine(_testFolder, "project.proj"); 192Path.Combine(_testFolder, "Sdk"), 199new[] { Path.Combine(_testFolder, "Sdk") }, 224string projectPath = Path.Combine(_testFolder, "project.proj"); 235Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk")); 287Path.Combine(_testFolder, "Sdk1"), 288Path.Combine(_testFolder, "Sdk2") 312string projectPath = Path.Combine(_testFolder, "project.proj"); 323Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk1")); 334Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk2")); 388new[] { Path.Combine(_testFolder, "Sdk") }, 404string projectPath = Path.Combine(_testFolder, "project.proj"); 415Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk")); 481string projectPath = Path.Combine(_testFolder, "project.proj"); 502factory.IndicateSuccess(Path.Combine(_testFolder, "Sdk"), "1.0.0", null, null, null, environmentVariablesToAdd: new Dictionary<string, string> 522string projectPath = Path.Combine(_testFolder, "project.proj"); 528Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk")); 556factory.IndicateSuccess(Path.Combine(_testFolder, "Sdk"), "1.0.0", null, null, null, environmentVariablesToAdd: new Dictionary<string, string> 574string projectPath = Path.Combine(_testFolder, "project.proj"); 579Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk")); 608return factory.IndicateSuccess(Path.Combine(_testFolder, "Sdk1"), "1.0.0", null, null, null, environmentVariablesToAdd: new Dictionary<string, string> 616return factory.IndicateSuccess(Path.Combine(_testFolder, "Sdk2"), "1.0.0", null, null, null, environmentVariablesToAdd: new Dictionary<string, string> 634string projectPath = Path.Combine(_testFolder, "project.proj"); 639Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk1")); 644Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk2"));
FileLogger_Tests.cs (12)
335string directory = Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N")); 336string log = Path.Combine(directory, "build.log"); 494fileLogger.Parameters = "logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile.log"); 496Assert.Equal(0, string.Compare(fileLogger.InternalFilelogger.Parameters, "ForceNoAlign;ShowEventId;ShowCommandLine;logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile3.log") + ";", StringComparison.OrdinalIgnoreCase)); 500fileLogger.Parameters = "logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile.log"); 502Assert.Equal(0, string.Compare(fileLogger.InternalFilelogger.Parameters, "ForceNoAlign;ShowEventId;ShowCommandLine;logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile4.log") + ";", StringComparison.OrdinalIgnoreCase)); 505Directory.CreateDirectory(Path.Combine(Directory.GetCurrentDirectory(), "tempura")); 514if (Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "tempura"))) 517FileUtilities.DeleteWithoutTrailingBackslash(Path.Combine(Directory.GetCurrentDirectory(), "tempura")); 519File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "mylogfile0.log")); 520File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "mylogfile3.log")); 521File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "mylogfile4.log"));
FixPathOnUnix_Tests.cs (1)
52logger.AssertLogContains($"ItemMetadata: Md0 = {Path.Combine("lib", "foo.dll")}");
Globbing\MSBuildGlob_Tests.cs (4)
43var expectedRoot = Path.Combine(Directory.GetCurrentDirectory(), globRoot).WithTrailingSlash(); 120var expectedFixedDirectory = Path.Combine(globRoot, "b").WithTrailingSlash(); 319return Path.Combine(Directory.GetCurrentDirectory(), expectedFixedDirectoryPart).Replace("/", "\\").WithTrailingSlash(); 363var rootedFixedDirectoryPart = Path.Combine(FileUtilities.NormalizePath(globRoot), fixedDirectoryPart);
Graph\GetCompatiblePlatformGraph_Tests.cs (6)
354TransientTestFolder project1Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, firstProjectName), createFolder: true); 355TransientTestFolder project1SubFolder = testEnvironment.CreateFolder(Path.Combine(project1Folder.Path, firstProjectName), createFolder: true); 369TransientTestFolder project2Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, secondProjectName), createFolder: true); 370TransientTestFolder project2SubFolder = testEnvironment.CreateFolder(Path.Combine(project2Folder.Path, secondProjectName), createFolder: true); 380TransientTestFolder project3Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, thirdProjectName), createFolder: true); 381TransientTestFolder project3SubFolder = testEnvironment.CreateFolder(Path.Combine(project3Folder.Path, thirdProjectName), createFolder: true);
Graph\IsolateProjects_Tests.cs (1)
141_env.SetTempPath(Path.Combine(Directory.GetCurrentDirectory(), Guid.NewGuid().ToString("N")), deleteTempDirectory: true);
Graph\ProjectGraph_Tests.cs (8)
843string project1Path = Path.Combine(env.DefaultTestDirectory.Path, "Project1.csproj"); 844string project2Path = Path.Combine(env.DefaultTestDirectory.Path, "Project2.vcxproj"); 845string project3Path = Path.Combine(env.DefaultTestDirectory.Path, "Project3.vcxproj"); 846string project4Path = Path.Combine(env.DefaultTestDirectory.Path, "Project4.vcxproj"); 847string project5Path = Path.Combine(env.DefaultTestDirectory.Path, "Project5.vcxproj"); 848string project6Path = Path.Combine(env.DefaultTestDirectory.Path, "Project6.wapproj"); 849string project7Path = Path.Combine(env.DefaultTestDirectory.Path, "Project7.csproj"); 850string project8Path = Path.Combine(env.DefaultTestDirectory.Path, "Project8.csproj");
Instance\ProjectInstance_Internal_Tests.cs (2)
72project.TaskRegistry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t0", TaskHostParameters.Empty)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af0")); 73project.TaskRegistry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t1", TaskHostParameters.Empty)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af1a"));
MSBuildTaskHostTests.cs (3)
21=> field ??= Path.Combine(AssemblyLocation, "TestAssets"); 33CopyFilesRecursively(Path.Combine(TestAssetsRootPath, "Net35WinFormsApp"), testFolder.Path); 34string projectFilePath = Path.Combine(testFolder.Path, "TestNet35WinForms.csproj");
NetTaskHost_E2E_Tests.cs (10)
21private static string TestAssetsRootPath { get; } = Path.Combine(AssemblyLocation, "TestAssets"); 67var coreDirectory = Path.Combine(RunnerUtilities.BootstrapRootPath, "core"); 81testTaskOutput.ShouldNotContain("Process path: " + Path.Combine(env.GetEnvironmentVariable("DOTNET_ROOT") ?? "", "dotnet.exe")); 191var coreDirectory = Path.Combine(RunnerUtilities.BootstrapRootPath, "core"); 214var coreDirectory = Path.Combine(RunnerUtilities.BootstrapRootPath, "core"); 236var coreDirectory = Path.Combine(RunnerUtilities.BootstrapRootPath, "core"); 286var coreDirectory = Path.Combine(RunnerUtilities.BootstrapRootPath, "core"); 307var coreDirectory = Path.Combine(RunnerUtilities.BootstrapRootPath, "core"); 354string symlinkPath = Path.Combine(Path.GetTempPath(), $"msbuild_symlink_test_{Guid.NewGuid():N}"); 383[Constants.DotnetHostPathEnvVarName] = Path.Combine(realSdkPath, "dotnet"),
NodeStatus_Transition_Tests.cs (2)
163Get-Content {{Path.Combine(directory, received)}} {{pipeline}} 166Get-Content {{Path.Combine(directory, verified)}} {{pipeline}}
PrintLineDebugger_Tests.cs (1)
191artifactsDirectory.ShouldEndWith(Path.Combine("log", "Debug"), Case.Sensitive);
ProjectCache\ProjectCacheTests.cs (1)
1736string appDllPath = Path.Combine(directory.Path, $"bin/{s_currentTargetNETFramework}/app.dll");
Resources_Tests.cs (3)
122var fullPath = Path.Combine(sourceDirectory, resxPath); 129var fullPath = Path.Combine(sourceDirectory, resxPath); 245while (currentDir != null && !File.Exists(Path.Combine(currentDir, "MSBuild.slnx")))
TaskHostFactoryLifecycle_E2E_Tests.cs (1)
94string testProjectPath = Path.Combine(TestAssetsRootPath, "TaskHostLifecycleTestApp.csproj");
TerminalLogger_Tests.cs (2)
917RunnerUtilities.ExecMSBuild($"{projectFile.Path} /bl:{logFileWithTL} -flp:logfile={Path.Combine(logFolder.Path, "logFileWithTL.log")};verbosity=diagnostic -tl:on", out bool success, outputHelper: _outputHelper); 921RunnerUtilities.ExecMSBuild($"{projectFile.Path} /bl:{logFileWithoutTL} -flp:logfile={Path.Combine(logFolder.Path, "logFileWithoutTL.log")};verbosity=diagnostic", out success, outputHelper: _outputHelper);
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
TypeLoader_Dependencies_Tests.cs (9)
18private static readonly string ProjectFileFolder = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "TaskWithDependency"); 28string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 34string dllPath = Path.Combine(dir.Path, TaskDllFileName); 46string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 49var newTaskDllPath = Path.Combine(tempDir, TaskDllFileName); 66var originalTaskDllPath = Path.Combine(originalDirectory, TaskDllFileName); 67var originalDependencyDllPath = Path.Combine(originalDirectory, DependencyDllFileName); 71var newTaskDllPath = Path.Combine(temporaryDirectory, TaskDllFileName); 72var newDependencyDllPath = Path.Combine(temporaryDirectory, DependencyDllFileName);
TypeLoader_Tests.cs (13)
21private static readonly string ProjectFileFolder = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "PortableTask"); 67string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 75string dllPath = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, dllName); 84string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 90string dllPath = Path.Combine(dir.Path, DLLFileName); 104string newAssemblyLocation = Path.Combine(folder.Path, Path.GetFileName(currentAssembly)); 108string utilities = Path.Combine(portableTaskPath, utilitiesName); 109File.Copy(utilities, Path.Combine(folder.Path, utilitiesName)); 123string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 124string originalDLLPath = Path.Combine(dir.Path, DLLFileName); 148string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 149string originalDLLPath = Path.Combine(dir.Path, DLLFileName); 174var newDllPath = Path.Combine(temporaryDirectory, DLLFileName);
WarningsAsMessagesAndErrors_Tests.cs (1)
24?? Path.Combine(AppContext.BaseDirectory, $"Microsoft.Build.Engine.UnitTests.dll");
Microsoft.Build.Framework (48)
BackEnd\CommunicationsUtilities.cs (1)
779string 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)); 622MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 628MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : null; 633? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 691defaultSdkPath = 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");
FileSystem\WindowsFileSystem.cs (3)
130var searchDirectoryPath = Path.Combine(directoryPath, "*"); 167result.Add(Path.Combine(directoryPath, findResult.CFileName)); 175Path.Combine(directoryPath, findResult.CFileName),
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 (5)
74path = Path.Combine(Path.GetTempPath(), $"{msbuildTempFolderPrefix}{Guid.NewGuid():N}"); 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));
NativeMethods.cs (1)
860string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"INTCASESENSITIVETEST{Guid.NewGuid():N}");
Utilities\FrameworkLocationHelper.cs (17)
445? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 455? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 465? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV30) 475? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV35) 485? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV40) 495? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV45) 505? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 515? Path.Combine(NativeMethods.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 596Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin"); 836var frameworkPath = Path.Combine(NativeMethods.FrameworkBasePath, prefix ?? string.Empty); 846return Path.Combine(complusInstallRoot, complusVersion); 987? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework") 988: Path.Combine(NativeMethods.FrameworkBasePath, "xbuild-frameworks"); 1145string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix); 1453(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, Constants.MSBuildExecutableName)) && 1454!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll")))) 1486frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Microsoft.Build.Framework.UnitTests (41)
AbsolutePath_Tests.cs (5)
17string baseDirectory = Path.Combine(Path.GetTempPath(), "abspath_test_base"); 92string baseDirectory = Path.Combine(Path.GetTempPath(), "testfolder"); 98string expectedPath = Path.Combine(baseDirectory, relativePath); 108var differentPath = new AbsolutePath(Path.Combine(testPath, "different")); 121var differentPath = new AbsolutePath(Path.Combine(testPath, "different"));
FileClassifier_Tests.cs (5)
32classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test1")}"); 33classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test2")}"); 49classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test1")}"); 50classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test2")}"); 64classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test1")}");
FileMatcher_Tests.cs (23)
64File.WriteAllBytes(Path.Combine(testFolder.Path, file), new byte[1]); 78TransientTestFolder tf2 = _env.CreateFolder(Path.Combine(testFolder.Path, "subfolder")); 79string symlinkPath = Path.Combine(tf2.Path, "mySymlink"); 103foreach (string fullPath in GetFilesComplexGlobbingMatchingInfo.FilesToCreate.Select(i => Path.Combine(testFolder.Path, i.ToPlatformSlash()))) 617return new string[] { Path.Combine(path, "LongDirectoryName") }; 624return new string[] { Path.Combine(path, "LongSubDirectory") }; 631return new string[] { Path.Combine(path, "LongFileName.txt") }; 638return new string[] { Path.Combine(path, "pomegranate") }; 994ValidateFileMatch(Path.Combine(".", "File.txt"), Path.Combine(".", "File.txt"), false); 995ValidateNoFileMatch(Path.Combine(".", "File.txt"), Path.Combine(".", "File.bin"), false); 1019ValidateFileMatch(Path.Combine("**", "*.cs"), Path.Combine("dir1", "dir2", "file.cs"), true); 1020ValidateFileMatch(Path.Combine("**", "*.cs"), "file.cs", true); 1249string workingPathSubfolder = Path.Combine(workingPath, "SubDir"); 1250string offendingPattern = Path.Combine(workingPath, @"*\..\bar"); 1263string fileName = Path.Combine(workingPath, "MyFile.txt"); 1264string offendingPattern = Path.Combine(workingPath, @"**\**"); 1280string workingPathSubdir = Path.Combine(workingPath, "subdir"); 1281string workingPathSubdirBing = Path.Combine(workingPathSubdir, "bing"); 1283string offendingPattern = Path.Combine(workingPath, @"**\sub*\*."); 2135if (normalizedCandidate == Path.Combine(path, pattern)) 2485return new string[] { Path.Combine(path, pattern) };
FileUtilities_Tests.cs (5)
419Assert.Equal(fullPath, FileUtilities.NormalizePath(Path.Combine(currentDirectory, filePath))); 433Assert.Equal(fullPath, FileUtilities.NormalizePath(Path.Combine(currentDirectory, filePath))); 817string directory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "subfolder"); 1004Assert.Equal(Path.Combine(root, "1"), FileUtilities.GetFolderAbove(path, 4)); 1018Path.Combine(root, "path1"),
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.Tasks.CodeAnalysis (14)
src\Compilers\Core\MSBuildTask\Csc.cs (1)
211var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "csc.rsp");
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\Compilers\Core\MSBuildTask\Utilities.cs (1)
127combined = Path.Combine(path1, path2);
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
395var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "vbc.rsp");
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\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
97var filePath = Path.Combine(item, fileName);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (13)
src\Compilers\Core\MSBuildTask\Csc.cs (1)
211var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "csc.rsp");
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (3)
65internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 76_useAppHost = useAppHost = File.Exists(Path.Combine(GetToolDirectory(), AppHostToolName)); 164return Path.Combine(ToolPath ?? "", ToolExe);
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
127combined = Path.Combine(path1, path2);
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
395var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "vbc.rsp");
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\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
97var filePath = Path.Combine(item, fileName);
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (5)
CscTests.cs (1)
15private static string RspFilePath => Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location), "csc.rsp");
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (3)
45_msbuildExecutable = s_msbuildDirectory == null ? null : Path.Combine(s_msbuildDirectory, "MSBuild.exe"); 158var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"csc{PlatformInformation.ExeExtension}"); 237var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"vbc{PlatformInformation.ExeExtension}");
VbcTests.cs (1)
15private static string RspFilePath => Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location), "vbc.rsp");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (38)
CopyRefAssemblyTests.cs (2)
35SourcePath = Path.Combine(dir.Path, "does_not_exist.dll") 66var dest = Path.Combine(dir.Path, "dest.dll");
DotNetSdkTests.cs (5)
38var sourceLinkJsonPath = Path.Combine(ObjDir.Path, ProjectName + ".sourcelink.json"); 432Path.Combine(ProjectDir.Path, ".editorconfig"), 493Path.Combine(ProjectDir.Path, ".editorconfig"), 528Path.Combine(ProjectDir.Path, ".editorconfig"), 653Path.Combine(ProjectDir.Path, ".editorconfig"),
GenerateMSBuildEditorConfigTests.cs (1)
362var fileName = Path.Combine(TempRoot.Root, "ConfigFileCanBeWrittenToDisk.GenerateMSBuildEditorConfig.editorconfig");
IntegrationTests.cs (1)
18return new DisposableFile(Path.Combine(directory.Path, resultFileName));
ManagedCompilerGlobalCacheTests.cs (9)
39var expectedPath = Path.Combine(Path.GetTempPath(), $"{(visualBasic ? "vb" : "cs")}-cache-path"); 60var expectedPath = Path.Combine(Path.GetTempPath(), $"{(visualBasic ? "vb" : "cs")} cache path"); 83var path = Path.Combine(Path.GetTempPath(), $"{(visualBasic ? "vb" : "cs")} cache path"); 107var expectedPath = Path.Combine(Path.GetTempPath(), "custom-cache-path"); 120var explicitPath = Path.Combine(Path.GetTempPath(), "explicit-cache-path"); 123Path.Combine(Path.GetTempPath(), "environment-cache-path"), 134var expectedPath = Path.Combine(Path.GetTempPath(), $"{(visualBasic ? "vb" : "cs")}-cache-path"); 149var expectedPath = Path.Combine(Path.GetTempPath(), $"{(visualBasic ? "vb" : "cs")}-cache-path"); 163var expectedPath = Path.Combine(Path.GetTempPath(), $"{(visualBasic ? "vb" : "cs")}-cache-path");
MSBuildManagedToolTests.cs (2)
18? Path.Combine("bincore", $"csc{PlatformInformation.ExeExtension}") 21Assert.Equal(Path.Combine(taskPath, relativePath), task.PathToBuiltInTool);
RuntimeHostInfoTests.cs (1)
81var symlinkPath = Path.Combine(binDir.Path, $"dotnet{PlatformInformation.ExeExtension}");
SdkIntegrationTests.cs (2)
47var targets = Path.Combine(dir, "Microsoft.CSharp.Core.targets"); 84return Path.Combine(workingDirectory, "msbuild.binlog");
TargetTests.cs (1)
903var path = Path.Combine(Path.GetDirectoryName(assembly.Location)!, "Microsoft.Managed.Core.targets");
TestUtilities\DotNetSdkTestBase.cs (11)
73=> dotnetDir != null && File.Exists(Path.Combine(dotnetDir, DotNetExeName)) && Directory.Exists(GetSdkPath(dotnetDir, DotNetSdkVersion)); 98var filePath = Path.Combine(objDirectory, projectFileName + ".TestHelpers.g.props"); 116var filePath = Path.Combine(objDirectory, projectFileName + ".TestHelpers.g.targets"); 154DotNetPath = Path.Combine(DotNetInstallDir, DotNetExeName); 156var sdksDir = Path.Combine(DotNetSdkPath ?? string.Empty, "Sdks"); 177var csharpCoreTargets = Path.Combine(testBinDirectory, "Microsoft.CSharp.Core.targets"); 178var visualBasicCoreTargets = Path.Combine(testBinDirectory, "Microsoft.VisualBasic.Core.targets"); 199Assert.True(File.Exists(Path.Combine(ObjDir.Path, "project.assets.json"))); 200Assert.True(File.Exists(Path.Combine(ObjDir.Path, ProjectFileName + ".nuget.g.props"))); 201Assert.True(File.Exists(Path.Combine(ObjDir.Path, ProjectFileName + ".nuget.g.targets"))); 224var evaluationResultsFile = Path.Combine(OutDir.Path, "EvaluationResult.txt");
TestUtilities\IntegrationTestBase.cs (3)
45_msbuildExecutable = s_msbuildDirectory == null ? null : Path.Combine(s_msbuildDirectory, "MSBuild.exe"); 158var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"csc{PlatformInformation.ExeExtension}"); 237var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"vbc{PlatformInformation.ExeExtension}");
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)
956companionFile = Path.Combine(Path.GetDirectoryName(baseName), implementationFile); 999string satelliteAssembly = Path.Combine(subDirectory, satelliteFilename); 1003reference.AddSatelliteFile(Path.Combine(cultureName, satelliteFilename)); 1022string serializationAssemblyPath = Path.Combine(reference.DirectoryName, serializationAssemblyFilename); 2753AddRelatedItem(serializationAssemblyItems, relatedItemBase, Path.Combine(reference.DirectoryName, serializationAssemblyFile)); 2759AddRelatedItem(scatterItems, relatedItemBase, Path.Combine(reference.DirectoryName, scatterFile)); 2772AddRelatedItem(satelliteItems, relatedItemBase, Path.Combine(reference.DirectoryName, satelliteFile));
AssemblyDependency\Resolver.cs (2)
326fullPath = Path.Combine(directory, baseName); 382string fullPath = Path.Combine(directory, 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); 2000using (var xmlwriter = new XmlTextWriter(System.IO.Path.Combine(s_logPath, fileName), Encoding.UTF8)) 2042using (var fileWriter = new StreamWriter(System.IO.Path.Combine(s_logPath, fileName), append)) 2203string logPath = System.IO.Path.Combine(
BootstrapperUtil\ResourceUpdater.cs (1)
38string filePath = Path.Combine(Directory.GetCurrentDirectory(), filename);
BootstrapperUtil\Util.cs (1)
200string msbuildExtensionPackagesPath = Path.Combine(BuildEnvironmentHelper.Instance.MSBuildExtensionsPath, BOOTSTRAPPER_MSBUILD_ADDITIONAL_PACKAGES_PATH);
CombinePath.cs (1)
71combinedPath.ItemSpec = Path.Combine(BasePath, path.ItemSpec);
Copy.cs (2)
829() => Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec)), 868() => 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);
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");
DownloadFile.cs (1)
185var destinationFile = new FileInfo(Path.Combine(destinationDirectory.FullName, filename));
FileIO\WriteLinesToFile.cs (1)
195temporaryFilePath = Path.Combine(directoryPath, Path.GetRandomFileName() + "~");
GenerateLauncher.cs (1)
102OutputEntryPoint = new TaskItem(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); 2848string shorterPath = Path.Combine(outputDirectory ?? String.Empty, cultureName ?? String.Empty); 2853currentOutputFile = 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)
170outputPath = 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 (1)
56string strOutputExe = System.IO.Path.Combine(outputPath, 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)
729hModule = NativeMethods.LoadLibraryExW(Path.Combine(clrDllDir, "clr.dll"), IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 875toolPath = Path.Combine(Directory.GetCurrentDirectory(), ToolName); 940return 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)
642outputItemFromTarget.ItemSpec = Path.Combine(projectDirectory[i], outputItemFromTarget.ItemSpec);
NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
NativeMethods.cs (2)
1246private static readonly string s_gacPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, "gac"); 1460var path = Path.Combine(s_gacPath, assemblyNameVersion.Name);
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
RedistList.cs (3)
306string redistDirectory = Path.Combine(frameworkDirectory, RedistListFolder); 1084string subsetDirectory = Path.Combine(frameworkDirectory, subsetListFolder); 1091string 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)
63ProcessorArchitecture.ARM => Path.Combine(sdkToolsPath, "arm"), 64ProcessorArchitecture.AMD64 => Path.Combine(sdkToolsPath, "x64"), 65ProcessorArchitecture.IA64 => Path.Combine(sdkToolsPath, "ia64"), 68pathToTool = Path.Combine(processorSpecificToolDirectory, toolName); 75pathToTool = Path.Combine(sdkToolsPath, toolName);
SystemState.cs (2)
463string pathFromRedistList = Path.Combine(a.FrameworkDirectory, filename); 583string fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(stateFile.ToString()), relativePath));
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.UnitTests (693)
AddToWin32Manifest_Tests.cs (6)
48task.ApplicationManifest = new TaskItem(Path.Combine(TestAssetsRootPath, manifestName)); 58string expectedManifest = Path.Combine(TestAssetsRootPath, $"{manifestName ?? "default.win32manifest"}_expected"); 108File.Copy(Path.Combine(TestAssetsRootPath, manifestName), Path.Combine(projectFolder.Path, manifestName)); 117byte[]? actualManifestBytes = AssemblyNativeResourceManager.GetResourceFromExecutable(Path.Combine(outputPath, "test.dll"), "#2", "#24"); 122string expectedManifest = Path.Combine(TestAssetsRootPath, $"{manifestName ?? "default.win32manifest"}_expected");
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
29_rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".UnitTest.RarCache");
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (189)
189protected static readonly string s_myProjectPath = Path.Combine(s_rootPathPrefix, "MyProject"); 198protected static readonly string s_myMissingAssemblyRelPath = Path.Combine("MyProject", "MyMissingAssembly.dll"); 199protected static readonly string s_myPrivateAssemblyRelPath = Path.Combine("MyProject", "MyPrivateAssembly.exe"); 201protected static readonly string s_frameworksPath = Path.Combine(s_rootPathPrefix, "Frameworks"); 203protected static readonly string s_myComponents2RootPath = Path.Combine(s_rootPathPrefix, "MyComponents2"); 204protected static readonly string s_myComponentsRootPath = Path.Combine(s_rootPathPrefix, "MyComponents"); 205protected static readonly string s_myComponents10Path = Path.Combine(s_myComponentsRootPath, "1.0"); 206protected static readonly string s_myComponents20Path = Path.Combine(s_myComponentsRootPath, "2.0"); 207protected static readonly string s_myComponentsMiscPath = Path.Combine(s_myComponentsRootPath, "misc"); 209protected static readonly string s_myComponentsV05Path = Path.Combine(s_myComponentsRootPath, "v0.5"); 210protected static readonly string s_myComponentsV10Path = Path.Combine(s_myComponentsRootPath, "v1.0"); 211protected static readonly string s_myComponentsV20Path = Path.Combine(s_myComponentsRootPath, "v2.0"); 212protected static readonly string s_myComponentsV30Path = Path.Combine(s_myComponentsRootPath, "v3.0"); 214protected static readonly string s_unifyMeDll_V05Path = Path.Combine(s_myComponentsV05Path, "UnifyMe.dll"); 215protected static readonly string s_unifyMeDll_V10Path = Path.Combine(s_myComponentsV10Path, "UnifyMe.dll"); 216protected static readonly string s_unifyMeDll_V20Path = Path.Combine(s_myComponentsV20Path, "UnifyMe.dll"); 217protected static readonly string s_unifyMeDll_V30Path = Path.Combine(s_myComponentsV30Path, "UnifyMe.dll"); 219protected static readonly string s_myComponents40ComponentPath = Path.Combine(s_myComponentsRootPath, "4.0Component"); 220protected static readonly string s_40ComponentDependsOnOnlyv4AssembliesDllPath = Path.Combine(s_myComponents40ComponentPath, "DependsOnOnlyv4Assemblies.dll"); 222protected static readonly string s_myLibrariesRootPath = Path.Combine(s_rootPathPrefix, "MyLibraries"); 223protected static readonly string s_myLibraries_V1Path = Path.Combine(s_myLibrariesRootPath, "v1"); 224protected static readonly string s_myLibraries_V2Path = Path.Combine(s_myLibrariesRootPath, "v2"); 225protected static readonly string s_myLibraries_V1_EPath = Path.Combine(s_myLibraries_V1Path, "E"); 227protected static readonly string s_myLibraries_ADllPath = Path.Combine(s_myLibrariesRootPath, "A.dll"); 228protected static readonly string s_myLibraries_BDllPath = Path.Combine(s_myLibrariesRootPath, "B.dll"); 229protected static readonly string s_myLibraries_CDllPath = Path.Combine(s_myLibrariesRootPath, "C.dll"); 230protected static readonly string s_myLibraries_TDllPath = Path.Combine(s_myLibrariesRootPath, "T.dll"); 232protected static readonly string s_myLibraries_V1_DDllPath = Path.Combine(s_myLibraries_V1Path, "D.dll"); 233protected static readonly string s_myLibraries_V1_E_EDllPath = Path.Combine(s_myLibraries_V1_EPath, "E.dll"); 234protected static readonly string s_myLibraries_V2_DDllPath = Path.Combine(s_myLibraries_V2Path, "D.dll"); 235protected static readonly string s_myLibraries_V1_GDllPath = Path.Combine(s_myLibraries_V1Path, "G.dll"); 236protected static readonly string s_myLibraries_V2_GDllPath = Path.Combine(s_myLibraries_V2Path, "G.dll"); 241protected static readonly string s_regress444809RootPath = Path.Combine(s_rootPathPrefix, "Regress444809"); 242protected static readonly string s_regress444809_ADllPath = Path.Combine(s_regress444809RootPath, "A.dll"); 243protected static readonly string s_regress444809_BDllPath = Path.Combine(s_regress444809RootPath, "B.dll"); 244protected static readonly string s_regress444809_CDllPath = Path.Combine(s_regress444809RootPath, "C.dll"); 245protected static readonly string s_regress444809_DDllPath = Path.Combine(s_regress444809RootPath, "D.dll"); 247protected static readonly string s_regress444809_V2RootPath = Path.Combine(s_regress444809RootPath, "v2"); 248protected static readonly string s_regress444809_V2_ADllPath = Path.Combine(s_regress444809_V2RootPath, "A.dll"); 250protected static readonly string s_regress442570_RootPath = Path.Combine(s_rootPathPrefix, "Regress442570"); 251protected static readonly string s_regress442570_ADllPath = Path.Combine(s_regress442570_RootPath, "A.dll"); 252protected static readonly string s_regress442570_BDllPath = Path.Combine(s_regress442570_RootPath, "B.dll"); 254protected static readonly string s_myAppRootPath = Path.Combine(s_rootPathPrefix, "MyApp"); 255protected static readonly string s_myApp_V05Path = Path.Combine(s_myAppRootPath, "v0.5"); 256protected static readonly string s_myApp_V10Path = Path.Combine(s_myAppRootPath, "v1.0"); 257protected static readonly string s_myApp_V20Path = Path.Combine(s_myAppRootPath, "v2.0"); 258protected static readonly string s_myApp_V30Path = Path.Combine(s_myAppRootPath, "v3.0"); 273protected static readonly string s_assemblyFolder_RootPath = Path.Combine(s_rootPathPrefix, "AssemblyFolder"); 274protected static readonly string s_assemblyFolder_SomeAssemblyDllPath = Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.dll"); 375Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), 376Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), 377Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), 378Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), 379Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), 380Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), 381Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), 382Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), 383Path.Combine(s_myVersion20Path, "System.Data.dll"), 384Path.Combine(s_myVersion20Path, "System.Xml.dll"), 385Path.Combine(s_myVersion20Path, "System.Xml.pdb"), 386Path.Combine(s_myVersion20Path, "System.Xml.xml"), 394Path.Combine(s_rootPathPrefix, s_myPrivateAssemblyRelPath), 395Path.Combine(s_myProjectPath, "MyCopyLocalAssembly.dll"), 396Path.Combine(s_myProjectPath, "MyDontCopyLocalAssembly.dll"), 397Path.Combine(s_myVersion20Path, "BadImage.dll"), // An assembly that will give a BadImageFormatException from GetAssemblyName 398Path.Combine(s_myVersion20Path, "BadImage.pdb"), 399Path.Combine(s_myVersion20Path, "MyGacAssembly.dll"), 400Path.Combine(s_myVersion20Path, "MyGacAssembly.pdb"), 402Path.Combine(s_myVersion20Path, "System.dll"), 403Path.Combine(s_myVersion40Path, "System.dll"), 404Path.Combine(s_myVersion90Path, "System.dll"), 405Path.Combine(s_myVersion20Path, "mscorlib.dll"), 406Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), 408Path.Combine(s_myProjectPath, "mscorlib.dll"), // This is an mscorlib.dll that has no metadata (i.e. GetAssemblyName returns null) 409Path.Combine(s_myProjectPath, "System.Data.dll"), // This is a System.Data.dll that has the wrong pkt, it shouldn't be matched. 410Path.Combine(s_myComponentsRootPath, "MyGrid.dll"), // A vendor component that we should find in the registry. 428Path.Combine(s_myComponentsV30Path, "MyControlWithFutureTargetNDPVersion.dll"), // The future version of a component. 429Path.Combine(s_myComponentsV20Path, "MyControlWithFutureTargetNDPVersion.dll"), // The current version of a component. 430Path.Combine(s_myComponentsV10Path, "MyNDP1Control.dll"), // A control that only has an NDP 1.0 version 431Path.Combine(s_myComponentsV20Path, "MyControlWithPastTargetNDPVersion.dll"), // The current version of a component. 432Path.Combine(s_myComponentsV10Path, "MyControlWithPastTargetNDPVersion.dll"), // The past version of a component. 436Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), // A devices mscorlib. 453Path.Combine(s_myAppRootPath, "DependsOnSimpleA.dll"), 501Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.pdb"), 502Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.xml"), 503Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.pri"), 504Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.licenses"), 505Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.config"), 514Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), 515Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), 516Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), 517Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), 518Path.Combine(s_myAppRootPath, "DependsOnWeaklyNamedUnified.dll"), 519Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), 525Path.Combine(s_myComponentsMiscPath, "DependsOnOnlyv4Assemblies.dll"), // Only depends on 4.0.0 assemblies 526Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), // Is in redist list and is a 9.0 assembly 527Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), // Depends on 9.0 assemblies 528Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), // Depends on 9.0 assemblies 529Path.Combine(s_myComponents10Path, "DependsOn9.dll"), // Depends on 9.0 assemblies 530Path.Combine(s_myComponents20Path, "DependsOn9.dll"), // Depends on 9.0 assemblies 548Path.Combine(s_myComponentsRootPath, "V.dll"), 549Path.Combine(s_myComponents2RootPath, "W.dll"), 550Path.Combine(s_myComponentsRootPath, "X.dll"), 551Path.Combine(s_myComponentsRootPath, "X.pdb"), 552Path.Combine(s_myComponentsRootPath, "Y.dll"), 553Path.Combine(s_myComponentsRootPath, "Z.dll"), 555Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), 556Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), 912Path.Combine(path, "en"), Path.Combine(path, "en-GB"), Path.Combine(path, "xx") 921Path.Combine(path, "en"), Path.Combine(path, "en-GB"), Path.Combine(path, "xx") 1075String.Equals(path, Path.Combine(s_myVersion20Path, "BadImage.dll"), StringComparison.OrdinalIgnoreCase)) 1077throw new System.BadImageFormatException(@"The format of the file '" + Path.Combine(s_myVersion20Path, "BadImage.dll") + "' is invalid"); 1082String.Equals(path, Path.Combine(s_myProjectPath, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 1083|| String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 1084|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)) 1092String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 1093|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)) 1104if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1109if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1114if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1202if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1207if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1212if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.XML.dll"), StringComparison.OrdinalIgnoreCase)) 1219if (String.Equals(path, Path.Combine(s_myProjectPath, "System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1226if (String.Equals(path, Path.Combine(s_myProjectPath, "System.Data.dll"), StringComparison.OrdinalIgnoreCase)) 1232if (path.EndsWith(Path.Combine(s_myVersion20Path, "MyGacAssembly.dll"))) 1238if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 1244if (String.Equals(path, Path.Combine(s_myVersion40Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 1250if (String.Equals(path, Path.Combine(s_myVersion90Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 1258String.Equals(path, Path.Combine(s_myVersion20Path, "System.Data.dll"), StringComparison.OrdinalIgnoreCase)) 1299if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), StringComparison.OrdinalIgnoreCase)) 1304if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1319if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1324if (String.Equals(path, Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1329if (String.Equals(path, Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1380if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), StringComparison.OrdinalIgnoreCase)) 1386if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 1392if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), StringComparison.OrdinalIgnoreCase)) 1397if (String.Equals(path, Path.Combine(s_myComponents10Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 1402if (String.Equals(path, Path.Combine(s_myComponents20Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 1437if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.pdb"), StringComparison.OrdinalIgnoreCase)) 1485if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "V.dll"), StringComparison.OrdinalIgnoreCase)) 1489if (String.Equals(path, Path.Combine(s_myComponents2RootPath, "W.dll"), StringComparison.OrdinalIgnoreCase)) 1493if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.dll"), StringComparison.OrdinalIgnoreCase)) 1498if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Z.dll"), StringComparison.OrdinalIgnoreCase)) 1503if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Y.dll"), StringComparison.OrdinalIgnoreCase)) 1508if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), StringComparison.OrdinalIgnoreCase)) 1513if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), StringComparison.OrdinalIgnoreCase)) 1822if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1826else if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1830else if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1834else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1838else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1842else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1857if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1865if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1873if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1995if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2091String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 2092|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)) 2102if (String.Equals(path, Path.Combine(s_myAppRootPath, "DependsOnSimpleA.dll"), StringComparison.OrdinalIgnoreCase)) 2150if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "MyGrid.dll"), StringComparison.OrdinalIgnoreCase)) 2211if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnWeaklyNamedUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2219if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), StringComparison.OrdinalIgnoreCase)) 2227if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2235if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2243if (String.Equals(path, Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2251if (String.Equals(path, Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2275if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), StringComparison.OrdinalIgnoreCase)) 2285if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 2295if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), StringComparison.OrdinalIgnoreCase)) 2303if (String.Equals(path, Path.Combine(s_myComponents10Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 2311if (String.Equals(path, Path.Combine(s_myComponents20Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 2344if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "V.dll"), StringComparison.OrdinalIgnoreCase)) 2352if (String.Equals(path, Path.Combine(s_myComponents2RootPath, "W.dll"), StringComparison.OrdinalIgnoreCase)) 2357if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.dll"), StringComparison.OrdinalIgnoreCase)) 2365if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Z.dll"), StringComparison.OrdinalIgnoreCase)) 2370if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Y.dll"), StringComparison.OrdinalIgnoreCase)) 2378if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), StringComparison.OrdinalIgnoreCase)) 2383if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), StringComparison.OrdinalIgnoreCase)) 2391if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2400if (String.Equals(path, Path.Combine(s_myVersion40Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2409if (String.Equals(path, Path.Combine(s_myVersion90Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2989string redistListPath = Path.Combine(tempPath, Guid.NewGuid() + ".xml"); 2990string rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".RarCache");
AssemblyDependency\SuggestedRedirects.cs (2)
205warningMessage.ShouldContain(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.FourSpaceIndent", ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ReferenceDependsOn", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", Path.Combine(s_myLibraries_V1Path, "D.dll")))); 250warningMessage.ShouldContain(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.FourSpaceIndent", ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ReferenceDependsOn", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", Path.Combine(s_myLibraries_V1Path, "D.dll"))));
AssignLinkMetadata_Tests.cs (4)
80Assert.Equal(Path.Combine("SubFolder", "a.cs"), t.OutputItems[0].GetMetadata("Link")); 107Assert.Equal(Path.Combine("SubFolder", "a.cs"), t.OutputItems[0].GetMetadata("Link")); 158ITaskItem item = new TaskItem(Path.Combine("SubFolder", "a.cs")); 179FullPath = Path.Combine(Path.GetTempPath(), "a.proj")
CombinePath_Tests.cs (8)
26t.BasePath = Path.Combine("abc", "def"); 28string fullPath1 = Path.Combine(t.BasePath, path1); 29string path2 = Path.Combine("jkl", "mno.txt"); 30string fullPath2 = Path.Combine(t.BasePath, path2); 46t.BasePath = Path.Combine("abc", "def"); 77string path1 = Path.DirectorySeparatorChar + Path.Combine("ghi", "jkl.txt"); 78string path2 = Path.Combine("mno", "qrs.txt"); 79string fullPath2 = Path.Combine(t.BasePath, path2);
Copy_Tests.cs (60)
226Directory.Exists(Path.Combine(destinationFolder.Path, "source0")).ShouldBeTrue(); 227Directory.Exists(Path.Combine(destinationFolder.Path, "source1")).ShouldBeTrue(); 971string destinationFolder = Path.Combine(Path.GetTempPath(), "2A333ED756AF4dc392E728D0F874A398"); 972string destination1 = Path.Combine(destinationFolder, Path.GetFileName(source1)); 973string destination2 = Path.Combine(destinationFolder, Path.GetFileName(source2)); 1599string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A392"); 1600string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A393"); 1602string validOutFile = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A394"); 1688string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395"); 1761string file = Path.Combine(currdir, filename); 1814string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395"); 1815string invalidFile = NativeMethodsShared.IsUnixLike ? Path.Combine(temp, "!@#$%^&*()|") : "!@#$%^&*()|"; 1880string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 1881string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 1953string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 1954string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2017new TaskItem(Path.Combine(tempPath, "a.cs")), 2018new TaskItem(Path.Combine(tempPath, "b.cs")), 2019new TaskItem(Path.Combine(tempPath, "a.cs")), 2020new TaskItem(Path.Combine(tempPath, "a.cs")), 2039DestinationFolder = new TaskItem(Path.Combine(tempPath, "foo")), 2075new TaskItem(Path.Combine(tempPath, "a.cs")), 2076new TaskItem(Path.Combine(tempPath, "b.cs")), 2077new TaskItem(Path.Combine(tempPath, "a.cs")), 2078new TaskItem(Path.Combine(tempPath, "a.cs")), 2079new TaskItem(Path.Combine(tempPath, "a.cs")), 2092new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs 2093new TaskItem(Path.Combine(tempPath, @"xa.cs")), // b.cs -> xa.cs should copy because it's a different source 2094new TaskItem(Path.Combine(tempPath, @"xb.cs")), // a.cs -> xb.cs should copy because it's a different destination 2095new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should copy because it's a different source from the b.cs copy done previously 2096new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should not copy because it's the same source 2126string xaPath = Path.Combine(tempPath, "xa.cs"); 2129Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[0].Key.Path); 2130Assert.Equal(Path.Combine(tempPath, "b.cs"), xaCopies[1].Key.Path); 2131Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[2].Key.Path); 2133string xbPath = Path.Combine(tempPath, "xb.cs"); 2136Assert.Equal(Path.Combine(tempPath, "a.cs"), xbCopies[0].Key.Path); 2150string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2151string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A399"); 2152string outFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A400"); 2605string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2606string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2676string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2677string destFile1 = Path.Combine(destFolder, Path.GetFileName(sourceFile1)); 2678string destFile2 = Path.Combine(destFolder, Path.GetFileName(sourceFile2)); 2683string nothingFile = Path.Combine(destFolder, "nothing.txt"); 2781string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2782string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2810string destLink = Path.Combine(destFolder, Path.GetFileNameWithoutExtension(sourceFile) + "." + n); 2864string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2865string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2931string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2932string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 3002string destFile = Path.Combine(destFolder.Path, "The Destination"); 3164string tempDir = Path.Combine(tempPath, "CopyTestDir" + Guid.NewGuid().ToString("N")); 3175string lowercaseDir = Path.Combine(outputDir, "cs"); 3182string sourceFile1 = Path.Combine(sourceDir, "apphost"); 3183string sourceFile2 = Path.Combine(sourceDir, "app.dll"); 3188string destFile1 = Path.Combine(outputDir, "CS"); 3189string destFile2 = Path.Combine(outputDir, "app.dll");
CreateItem_Tests.cs (3)
172ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("Subdir", "Bar.txt"), "bar"); 177ObjectModelHelpers.AssertFileExistsInTempProjectDirectory(Path.Combine("Destination", "Foo.txt")); 202ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("Subdir", "Bar.txt"), "bar");
DirectoryBuildProjectImportTestBase.cs (1)
177Assert.Equal(Path.Combine(ObjectModelHelpers.TempProjectDir, DirectoryBuildProjectFile), project.GetPropertyValue(DirectoryBuildProjectPathPropertyName));
DownloadFile_Tests.cs (3)
79FileInfo file = new FileInfo(Path.Combine(folder.Path, "foo.txt")); 125FileInfo file = new FileInfo(Path.Combine(folder.Path, filename)); 160FileInfo file = new FileInfo(Path.Combine(folder.Path, filename));
Exec_Tests.cs (6)
345string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 382string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 420string newTmp = Path.Combine(FileUtilities.TempFileDirectory, directoryWithAmpersand); 457string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 589string folder = Path.Combine(Path.GetTempPath(), includeNonAnsiInCommand ? nonAnsiCharacters : ansiCharacters); 590string command = Path.Combine(folder, "test.cmd");
FormatUrl_Tests.cs (1)
76t.OutputUrl.ShouldBe(new Uri(Path.Combine(Environment.CurrentDirectory, t.InputUrl)).AbsoluteUri);
GenerateBindingRedirects_Tests.cs (1)
267TransientTestFolder testFolder = env.CreateFolder(Path.Combine(rootTestFolder.Path, "\uD873\uDD02\u9FA8\u82D8\u722B\u9EA4\u03C5\u33D1\uE038\u486B\u0033"));
GetAssemblyIdentity_Tests.cs (1)
141File.Copy(sourceAssembly, Path.Combine(projectDir.Path, relativeFileName));
GetFileHash_Tests.cs (1)
58Files = new[] { new TaskItem(Path.Combine(AppContext.BaseDirectory, "this_does_not_exist.txt")) },
GetInstalledSDKLocations_Tests.cs (3)
49string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory"); 100Directory.CreateDirectory(Path.Combine(tempPath, "Walls" + Path.DirectorySeparatorChar + "1.0" + Path.DirectorySeparatorChar)); 117string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
GetSDKReference_Tests.cs (69)
49string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies"); 50sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 51string referenceAssemblyDirectoryConfigx86 = Path.Combine(sdkDirectory, "References\\Retail\\X86"); 52string referenceAssemblyDirectoryConfigx64 = Path.Combine(sdkDirectory, "References\\Retail\\X64"); 53string referenceAssemblyDirectoryConfigNeutral = Path.Combine(sdkDirectory, "References\\Retail\\Neutral"); 54string referenceAssemblyDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\Neutral"); 55string referenceAssemblyDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\X86"); 56string referenceAssemblyDirectoryCommonConfigX64 = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\X64"); 58string redistDirectoryConfigx86 = Path.Combine(sdkDirectory, "Redist\\Retail\\X86"); 59string redistDirectoryConfigx64 = Path.Combine(sdkDirectory, "Redist\\Retail\\X64"); 60string redistDirectoryConfigNeutral = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 61string redistDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 62string redistDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\X86"); 63string redistDirectoryCommonConfigX64 = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\X64"); 65string designTimeDirectoryConfigx86 = Path.Combine(sdkDirectory, "DesignTime\\Retail\\X86"); 66string designTimeDirectoryConfigNeutral = Path.Combine(sdkDirectory, "DesignTime\\Retail\\Neutral"); 67string designTimeDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "DesignTime\\CommonConfiguration\\Neutral"); 68string designTimeDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "DesignTime\\CommonConfiguration\\X86"); 83Directory.CreateDirectory(Path.Combine(redistDirectoryConfigNeutral, "ASubDirectory\\TwoDeep")); 93string testWinMD = Path.Combine(referenceAssemblyDirectoryConfigx86, "A.winmd"); 94string testWinMD64 = Path.Combine(referenceAssemblyDirectoryConfigx64, "A.winmd"); 95string testWinMDNeutral = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "B.winmd"); 96string testWinMDNeutralWinXML = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "B.xml"); 97string testWinMDCommonConfigurationx86 = Path.Combine(referenceAssemblyDirectoryCommonConfigX86, "C.winmd"); 98string testWinMDCommonConfigurationx64 = Path.Combine(referenceAssemblyDirectoryCommonConfigX64, "C.winmd"); 99string testWinMDCommonConfigurationNeutral = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "D.winmd"); 100string testWinMDCommonConfigurationNeutralDupe = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "A.winmd"); 102string testRA = Path.Combine(referenceAssemblyDirectoryConfigx86, "E.dll"); 103string testRA64 = Path.Combine(referenceAssemblyDirectoryConfigx64, "E.dll"); 104string testRANeutral = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "F.dll"); 105string testRACommonConfigurationx86 = Path.Combine(referenceAssemblyDirectoryCommonConfigX86, "G.dll"); 106string testRACommonConfigurationx64 = Path.Combine(referenceAssemblyDirectoryCommonConfigX64, "G.dll"); 107string testRACommonConfigurationNeutral = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "H.dll"); 109string testRACommonConfigurationNeutralDupe = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "A.dll"); 111string redist = Path.Combine(redistDirectoryConfigx86, "A.dll"); 112string redist64 = Path.Combine(redistDirectoryConfigx64, "A.dll"); 113string redistNeutral = Path.Combine(redistDirectoryConfigNeutral, "ASubDirectory\\TwoDeep\\B.dll"); 114string redistNeutralPri = Path.Combine(redistDirectoryConfigNeutral, "B.pri"); 115string redistCommonConfigurationx86 = Path.Combine(redistDirectoryCommonConfigX86, "C.dll"); 116string redistCommonConfigurationx64 = Path.Combine(redistDirectoryCommonConfigX64, "C.dll"); 117string redistCommonConfigurationNeutral = Path.Combine(redistDirectoryCommonConfigNeutral, "D.dll"); 118string redistCommonConfigurationNeutralDupe = Path.Combine(redistDirectoryCommonConfigNeutral, "A.dll"); 153string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies"); 154sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\AnotherSDK\\2.0\\"); 155string referenceAssemblyDirectoryConfigx86 = Path.Combine(sdkDirectory, "References\\Retail\\X86"); 156string redistDirectoryConfigx86 = Path.Combine(sdkDirectory, "Redist\\Retail\\X86"); 164string testWinMD = Path.Combine(referenceAssemblyDirectoryConfigx86, "B.winmd"); 165string redist = Path.Combine(redistDirectoryConfigx86, "B.pri"); 166string redist2 = Path.Combine(redistDirectoryConfigx86, "B.dll"); 189private readonly string _cacheDirectory = Path.Combine(Path.GetTempPath(), "GetSDKReferenceFiles"); 298Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[0]); 299Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[1]); 304Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[0]); 305Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[1]); 310Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\X86\\"), sdkFolders[0]); 311Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[1]); 312Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\X86\\"), sdkFolders[2]); 313Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[3]); 432string winmd = Path.Combine(_sdkDirectory, "References\\Retail\\X86\\A.winmd"); 1235string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\B.pri"); 1236string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.pri"); 1237string referenceWinner = Path.Combine(_sdkDirectory, "References\\Retail\\Neutral\\B.WinMD"); 1238string referenceVictim = Path.Combine(_sdkDirectory2, "References\\Retail\\X86\\B.WinMD"); 1281string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\ASubDirectory\\TwoDeep\\B.dll"); 1282string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.dll"); 1324string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\B.pri"); 1325string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.pri"); 1326string referenceWinner = Path.Combine(_sdkDirectory, "References\\Retail\\Neutral\\B.WinMD"); 1327string referenceVictim = Path.Combine(_sdkDirectory2, "References\\Retail\\X86\\B.WinMD");
MakeDir_Tests.cs (7)
25string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A391"); 67string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38e"); 68string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38f"); 70string dir2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A390"); 131string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38C"); 178string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38C"); 239string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38d");
ManifestTaskEnvironmentTests.cs (11)
54var subFolder = Path.Combine(folder.Path, "sub"); 57var resxPath = Path.Combine(subFolder, "Test.resx"); 60var csPath = Path.Combine(subFolder, "Test.cs"); 84var subFolder = Path.Combine(folder.Path, "Resources"); 87var resxPath = Path.Combine(subFolder, "Strings.resx"); 113var resxPath = Path.Combine(subFolder, "Test.resx"); 158var validPath = Path.Combine(folder.Path, "Valid.resx"); 162var valid2Path = Path.Combine(folder.Path, "Valid2.resx"); 195var resxPath = Path.Combine(deepFolder, "Test.resx"); 215var spaceFolder = Path.Combine(folder.Path, "My Resources"); 218var resxPath = Path.Combine(spaceFolder, "My Strings.resx");
Move_Tests.cs (10)
428string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A392"); 429string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A393"); 431string validOutFile = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A394"); 606string file = Path.Combine(currdir, filename); 649string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395"); 695string destFolder = Path.Combine(temp, "2A333ED756AF4d1392E728D0F864A398"); 696string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 750string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 751string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A399"); 752string outFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A400");
NuGetPropsImportTests.cs (1)
66var nugetPropsRelativePath = Path.Combine(Path.GetDirectoryName(projectRelativePath), NuGetPropsProjectFile);
OutputPathTests.cs (4)
80var baseOutputPath = Path.Combine("build", "bin"); 118var baseOutputPath = Path.Combine("build", "bin"); 119var outputPath = Path.Combine("bin", "Debug"); 120var outputPathAlt = Path.Combine("bin", "Release");
PortableTasks_Tests.cs (3)
50var projFile = Path.Combine(folder, ProjectFileName); 58File.Copy(file.FullName, Path.Combine(folder, file.Name)); 59_outputHelper.WriteLine($"Copied {file.FullName} to {Path.Combine(folder, file.Name)}");
PrintLineDebugger_Tests.cs (1)
191artifactsDirectory.ShouldEndWith(Path.Combine("log", "Debug"), Case.Sensitive);
ProjectExtensionsImportTestBase.cs (1)
151string projectExtensionsDirectory = Path.Combine(ObjectModelHelpers.TempProjectDir, Path.GetDirectoryName(ImportProjectPath));
RARPrecomputedCache_Tests.cs (3)
31{ Path.Combine(standardCache.Path, "assembly1"), new SystemState.FileState(now) }, 32{ Path.Combine(standardCache.Path, "assembly2"), new SystemState.FileState(now) { Assembly = new Shared.AssemblyNameExtension("hi") } } }; 119{ Path.Combine(precomputedCache.Path, "assembly2"), new SystemState.FileState(DateTime.Now) { Assembly = new Shared.AssemblyNameExtension("hi") } },
ResolveAssemblyReference_CustomCultureTests.cs (5)
50var projectBFolder = Path.Combine(solutionPath, projectBName); 52var projBContent = File.ReadAllText(Path.Combine(testAssetsPath, projectBName)) 56env.CreateFile(Path.Combine(projectBFolder, projectBName), projBContent); 96var sourcePath = Path.Combine(sourceFolder, fileName); 98File.Copy(sourcePath, Path.Combine(destinationFolder, fileName));
ResolveCodeAnalysisRuleSet_Tests.cs (7)
79string codeAnalysisRuleSet = Path.Combine(Path.GetTempPath(), @"CodeAnalysis.ruleset"); 129string ruleSetFullPath = Path.Combine(projectDirectory, codeAnalysisRuleSet); 180string ruleSetFullPath = Path.Combine(directory, codeAnalysisRuleSet); 228task.CodeAnalysisRuleSet = Path.Combine(subdirectoryName, "CodeAnalysis.ruleset"); 250string codeAnalysisRuleSet = Path.Combine(subdirectoryName, "CodeAnalysis.ruleset"); 257string ruleSetFullPath = Path.Combine(projectDirectory, codeAnalysisRuleSet); 281task.CodeAnalysisRuleSet = Path.Combine(subdirectoryName, "CodeAnalysis.ruleset");
ResolveNonMSBuildProjectOutput_Tests.cs (44)
136projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 142projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 144projectOutputs, true, Path.Combine("obj", "correct.dll")); 148projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 149projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 150projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 156projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 157projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 158projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 159projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 161projectOutputs, true, Path.Combine("obj", "correct.dll")); 223projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-000000000000}", Path.Combine("obj", "managed.dll")); 224projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "unmanaged.dll")); 226TestUnresolvedReferencesHelper(projectRefs, projectOutputs, path => (path == Path.Combine("obj", "managed.dll")), out unresolvedOutputs, out resolvedOutputs); 229Assert.True(resolvedOutputs.Contains(Path.Combine("obj", "managed.dll"))); 230Assert.True(resolvedOutputs.Contains(Path.Combine("obj", "unmanaged.dll"))); 231Assert.Equal("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "managed.dll")]).GetMetadata("ManagedAssembly")); 232Assert.NotEqual("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "unmanaged.dll")]).GetMetadata("ManagedAssembly")); 249projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 250projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 251projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 264projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 265projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 266projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 267projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 272Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct.dll"))); 278projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 279projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 280projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 281projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 282projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-000000000000}", Path.Combine("obj", "correct2.dll")); 287Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct.dll"))); 288Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct2.dll"))); 293projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 294projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 295projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 306projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 307projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 308projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 309projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 315Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct.dll"))); 320projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 321projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 322projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll"));
ResolveSDKReference_Tests.cs (157)
123string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion"); 176string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 462string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyDependsOnWarningFromManifest"); 484string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 577string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit1"); 588string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 632string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit2"); 643string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 690string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit3"); 701string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 745string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit4"); 756string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 800string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit5"); 811string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 855string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit6"); 866string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 912string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit7"); 923string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 967string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit8"); 977string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1021string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit9"); 1032string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1491string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestWarnings"); 1498string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1550string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestErrors"); 1551string testDirectory = Path.Combine(testDirectoryRoot, "BadTestSDK\\2.0\\"); 1557string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1601string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion"); 1654string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1707string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "EmptySDKManifestAttributes"); 1734string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1792string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestAttributes"); 1816string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1890string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigAndArch"); 1911string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1963string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly"); 1982string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2032string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "NoCopyOnPlatformIdentityFound"); 2047string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2099string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly"); 2120string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2173string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestOnlyHasArmLocation"); 2189string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2241string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestArmLocationWithOthers"); 2259string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2312string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistWarning"); 2330string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2384string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistError"); 2402string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2453string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureMatchesProject"); 2472string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2526string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifest"); 2546string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2591string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifestAndMetadata"); 2611string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2658string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsNotInManifest"); 2678string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2722string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsBadMetadata"); 2743string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2790string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilySameName"); 2821string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2822string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 2823string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 2888string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName"); 2919string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2920string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 2921string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 2986string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName"); 3024string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3025string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 3026string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 3027string sdkManifestFile4 = Path.Combine(testDirectory4, "SDKManifest.xml"); 3099string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameSDKName"); 3130string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3131string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 3132string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 3205string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsVerifyManifestReading"); 3226string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3279string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata"); 3300string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3356string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadataButMetadataDoesNotMatch"); 3376string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3422string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata"); 3444string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3500string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureDoesNotMatchProject"); 3520string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3564string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject"); 3583string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3636string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject"); 3657string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3704string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework"); 3705string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 3706string archRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86"); 3707string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 3708string archCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86"); 3709string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 3711string sdkDirectory3 = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\FrameworkSDkWithManifest\\2.0\\"); 3712string archRedist3 = Path.Combine(sdkDirectory3, "Redist\\Retail\\x64"); 3713string archRedist33 = Path.Combine(sdkDirectory3, "Redist\\Retail\\Neutral"); 3714string archCommonRedist3 = Path.Combine(sdkDirectory3, "Redist\\CommonConfiguration\\x64"); 3785string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 3786string sdkManifestFile2 = Path.Combine(sdkDirectory3, "SDKManifest.xml"); 3787string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 3794string redist1 = Path.Combine(archRedist, "A.dll"); 3795string redist2 = Path.Combine(neutralRedist, "B.dll"); 3796string redist3 = Path.Combine(archCommonRedist, "C.dll"); 3797string redist4 = Path.Combine(neutralCommonRedist, "D.dll"); 3798string redist5 = Path.Combine(archRedist33, "A.dll"); 3799string redist6 = Path.Combine(archCommonRedist3, "B.dll"); 3847string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework"); 3848string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 3849string archRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86"); 3850string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 3851string archCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86"); 3852string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 3854string sdkDirectory3 = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\FrameworkSDkWithManifest\\2.0\\"); 3855string archRedist3 = Path.Combine(sdkDirectory3, "Redist\\Retail\\x64"); 3856string archRedist33 = Path.Combine(sdkDirectory3, "Redist\\Retail\\Neutral"); 3857string archCommonRedist3 = Path.Combine(sdkDirectory3, "Redist\\CommonConfiguration\\x64"); 3926string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 3927string sdkManifestFile2 = Path.Combine(sdkDirectory3, "SDKManifest.xml"); 3928string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 3935string redist1 = Path.Combine(archRedist, "A.dll"); 3936string redist2 = Path.Combine(neutralRedist, "B.dll"); 3937string redist3 = Path.Combine(archCommonRedist, "C.dll"); 3938string redist4 = Path.Combine(neutralCommonRedist, "D.dll"); 3939string redist5 = Path.Combine(archRedist3, "D.dll"); 3940string redist6 = Path.Combine(archRedist33, "A.dll"); 3941string redist7 = Path.Combine(archCommonRedist3, "B.dll"); 3991string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsTargetArchitectureDoesNotExists"); 3992string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 3993string x86Redist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86"); 3994string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 3995string x86CommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86"); 3996string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 4043string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 4044string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4050string redist1 = Path.Combine(x86CommonRedist, "A.dll"); 4051string redist2 = Path.Combine(x86Redist, "B.dll"); 4052string redist3 = Path.Combine(neutralRedist, "C.dll"); 4053string redist4 = Path.Combine(neutralCommonRedist, "D.dll"); 4100string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture"); 4101string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 4102string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 4103string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 4145string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 4146string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4151string redist1 = Path.Combine(neutralRedist, "B.dll"); 4152string redist2 = Path.Combine(neutralCommonRedist, "C.dll"); 4220string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture"); 4221string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\v8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 4222string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 4223string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 4284string redist1 = Path.Combine(neutralRedist, "B.dll"); 4285string redist2 = Path.Combine(neutralCommonRedist, "C.dll"); 4292string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4295string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
ResourceHandling\GenerateResource_Tests.cs (9)
111string expectedOutFile0 = Path.Combine(Path.GetTempPath(), Path.ChangeExtension(resxFile0, ".resources")); 112string expectedOutFile1 = Path.Combine(Path.GetTempPath(), "resx1.foo.resources"); 113string expectedOutFile2 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources")); 114string expectedOutFile3 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources")); 3261dir = Path.Combine(Path.GetTempPath(), "directory"); 3480t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3629t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3942env.CreateFolder(Path.Combine(env.DefaultTestDirectory.Path, "tmp_dir")), 4430Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "System.dll");
ResourceHandling\MSBuildResXReader_Tests.cs (3)
138File.Exists(Path.Combine("ResourceHandling", "TextFile1.txt")).ShouldBeTrue("Test deployment is missing None files"); 178Path.Combine(baseDir.Path, nameof(LoadsStringFromFileRefAsStringWithShiftJISEncoding) + ".resx"), 361File.Exists(Path.Combine("ResourceHandling", "TextFile1.txt")).ShouldBeTrue("Test deployment is missing None files");
RoslynCodeTaskFactory_Tests.cs (9)
130string output = RunnerUtilities.ExecMSBuild(assemblyProj.Path + $" /p:OutDir={Path.Combine(folder.Path, "subFolder")} /restore", out bool success); 1240TransientTestFolder project1Folder = env.CreateFolder(Path.Combine(rootFolder.Path, "Project1"), createFolder: true); 1241TransientTestFolder project2Folder = env.CreateFolder(Path.Combine(rootFolder.Path, "Project2"), createFolder: true); 1332string projectFilePath = Path.Combine(testFolder.Path, "test.proj"); 1382string projectFilePath = Path.Combine(projectFolder.Path, "test.proj"); 1427TransientTestFolder projectFolder = env.CreateFolder(Path.Combine(rootFolder.Path, "Project"), createFolder: true); 1428string projectFilePath = Path.Combine(projectFolder.Path, "test.proj"); 1443string relativePath = Path.Combine("..", "SharedTask.cs"); 1544string projectFilePath = Path.Combine(testFolder.Path, "test.proj");
SecurityUtil_Tests.cs (3)
16private static string TestAssembliesPaths { get; } = Path.Combine(AppContext.BaseDirectory, "TestResources"); 25string clickOnceManifest = Path.Combine(TestAssembliesPaths, "ClickOnceProfile.pubxml"); 31string pathToCertificate = Path.Combine(TestAssembliesPaths, "mycert.pfx");
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Unzip_Tests.cs (15)
90_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 91_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 136_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 137_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 140Directory.Exists(Path.Combine(destination.Path, "emptyDir")); 249SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), }, 284_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 285_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 314_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 315_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 349_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file1.js"), customMessage: _mockEngine.Log); 350_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "file1.js.map"), customMessage: _mockEngine.Log); 351_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file2.js"), customMessage: _mockEngine.Log); 352_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "readme.txt"), customMessage: _mockEngine.Log); 501string unzippedFilePath = Path.Combine(destination.Path, executableName);
VerifyFileHash_Tests.cs (1)
68File = Path.Combine(AppContext.BaseDirectory, "this_does_not_exist.txt"),
WriteCodeFragment_Tests.cs (10)
94string file = Path.Combine(Path.GetTempPath(), "CombineFileDirectory.tmp"); 113string expectedFile = Path.Combine(folder.ItemSpec, file.ItemSpec); 132TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp")); 182string folder = Path.Combine(Path.GetTempPath(), "foo" + Path.DirectorySeparatorChar); 183string file = Path.Combine(folder, "CombineFileDirectory.tmp"); 204string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp"); 232string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp"); 297string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp"); 461string absoluteOutputFile = Path.Combine(Path.GetDirectoryName(absoluteFolder), task.OutputFile.ItemSpec); 479string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp");
WriteLinesToFile_Tests.cs (3)
319var file = Path.Combine(directory.Path, $"{Guid.NewGuid().ToString("N")}.tmp"); 398var outputFile = Path.Combine(testEnv.DefaultTestDirectory.Path, "output.txt"); 459var outputFile = Path.Combine(testEnv.DefaultTestDirectory.Path, "output.txt");
XmlPeek_Tests.cs (1)
364string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
XmlPoke_Tests.cs (1)
335string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
XslTransformation_Tests.cs (20)
864var testingDocsDir = Path.Combine("TestDocuments", "Fdl2Proto"); 866xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(testingDocsDir, "sila.xml")) }; 867xslPath = new TaskItem(Path.Combine(testingDocsDir, "fdl2proto.xsl")); 884using (StreamReader sr = new StreamReader(Path.Combine(testingDocsDir, "expected.proto"))) 951var otherXmlPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString())); 1052var otherXslPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString() + ".xslt")); 1059var myXmlPath1 = new TaskItem(Path.Combine(dir, "a.xml")); 1066var myXmlPath2 = new TaskItem(Path.Combine(dir, "b.xml")); 1109dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString()); 1113xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "doc.xml")) }; 1114xslPath = new TaskItem(Path.Combine(dir, "doc.xslt")); 1115xslCompiledPath = new TaskItem(Path.Combine(dir, "doc.dll")); 1116outputPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "testout.xml")) }; 1268string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString()); 1275string xmlPath1 = Path.Combine(dir, "doc1.xml"); 1282string xmlPath3 = Path.Combine(dir, "doc3.xml"); 1290string xslPath = Path.Combine(dir, "doc.xslt"); 1298string outputPath1 = Path.Combine(dir, "testout1.xml"); 1299string outputPath2 = Path.Combine(dir, "testout2.xml"); 1300string outputPath3 = Path.Combine(dir, "testout3.xml");
ZipDirectory_Tests.cs (2)
47string zipFilePath = Path.Combine(testEnvironment.CreateFolder(createFolder: true).Path, "test.zip"); 167SourceDirectory = new TaskItem(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"))),
Microsoft.Build.UnitTests.Shared (20)
DummyMappedDrive.cs (2)
22_mappedPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 30File.Create(Path.Combine(_mappedPath, "x")).Dispose();
EngineTestEnvironment.cs (3)
127var projectDir = Path.GetFullPath(Path.Combine(TestRoot, relativePathFromRootToProject)); 130ProjectFile = Path.GetFullPath(Path.Combine(projectDir, projectFileName)); 189string binaryLoggerFilePath = Path.GetFullPath(Path.Combine(TestRoot, Guid.NewGuid().ToString() + ".binlog"));
EnvironmentProvider.cs (2)
66.Select(p => Path.Combine(p, commandNameWithExtension)) 108public static string? GetDotnetExePathFromFolder(string? netRootFolder) => Path.Combine(netRootFolder ?? string.Empty, Constants.DotNet + Constants.ExeSuffix);
ObjectModelHelpers.cs (10)
146expectedInclude = expectedInclude.Select(i => Path.Combine(testProject.TestRoot, i)).ToArray(); 578Assert.True(FileSystems.Default.FileExists(Path.Combine(TempProjectDir, fileRelativePath)), message); 738project.FullPath = Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj"); 842s_tempProjectDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 904string fullFilePath = Path.Combine(TempProjectDir, fileRelativePath); 981string projectFileFullPath = Path.Combine(TempProjectDir, projectFileRelativePath); 1016string projectFileFullPath = Path.Combine(TempProjectDir, projectFileRelativePath); 1628var projectDir = Path.Combine(root, relativePathFromRootToProject); 1631createdProjectFile = Path.Combine(projectDir, "build.proj"); 1641return Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
TestEnvironment.cs (3)
749Path = System.IO.Path.Combine(rootPath, fileName); 791return new TransientTestFolder(System.IO.Path.Combine(Path, directoryName)); 863string path = System.IO.Path.Combine(destination.Path, filename);
Microsoft.Build.Utilities.Core (47)
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");
PlatformManifest.cs (1)
95string platformManifestPath = Path.Combine(_pathToManifest, "Platform.xml");
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
SDKManifest.cs (1)
312string sdkManifestPath = Path.Combine(_pathToSdk, "SDKManifest.xml");
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); 3476pathToSdk = Path.Combine(pathToSdk, "bin"); 3517pathToSdk = Path.Combine(pathToSdk, "x86"); 3520pathToSdk = Path.Combine(pathToSdk, "x64"); 3528string filePath = Path.Combine(pathToSdk, fileName); 3591toolPath = Path.Combine(toolPath, fileName); 3621return pathToFx == null ? null : Path.Combine(pathToFx, fileName); 3629public static string GetPathToSystemFile(string fileName) => Path.Combine(PathToSystem, fileName); 3861string frameworkIdentifierPath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier); 3919string frameworkProfilePath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier); 3920frameworkProfilePath = Path.Combine(frameworkProfilePath, frameworkVersion); 3921frameworkProfilePath = Path.Combine(frameworkProfilePath, "Profiles"); 3966string dotNextFx30RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV30); 3973string dotNextFx35RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV35);
ToolTask.cs (3)
531pathToTool = Path.Combine(ToolPath, ToolExe); 544pathToTool = Path.Combine(directory, ToolExe); 1438.Select(folderPath => Path.Combine(folderPath, filename))
Microsoft.Build.Utilities.UnitTests (155)
PlatformManifest_Tests.cs (2)
70File.WriteAllText(Path.Combine(manifestDirectory, "SomeOtherFile.xml"), "hello"); 327File.WriteAllText(Path.Combine(_manifestDirectory, "Platform.xml"), ObjectModelHelpers.CleanupFileContents(contents));
PrintLineDebugger_Tests.cs (1)
191artifactsDirectory.ShouldEndWith(Path.Combine("log", "Debug"), Case.Sensitive);
TaskItem_Tests.cs (1)
185Path.Combine(
TestAssemblyInfo.cs (3)
212var bootstrapCorePath = Path.Combine(Path.Combine(RunnerUtilities.BootstrapRootPath, "core"), Constants.DotnetProcessName); 228string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
ToolLocationHelper_Tests.cs (135)
63string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 71string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 72string referenceDirectory = Path.Combine(tempDirectory, Path.Combine("References", "Foo", "Bar")); 77File.WriteAllText(Path.Combine(referenceDirectory, "One.winmd"), "First"); 78File.WriteAllText(Path.Combine(referenceDirectory, "Two.winmd"), "Second"); 79File.WriteAllText(Path.Combine(referenceDirectory, "Three.winmd"), "Third"); 95string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 102File.WriteAllText(Path.Combine(referenceDirectory, "One.winmd"), "First"); 130returnValue.ShouldBe(Path.Combine(sdkRootPath, @"DesignTime\CommonConfiguration\Neutral")); 156returnValue.ShouldBe(Path.Combine(sdkRootPath, "UnionMetadata")); 163string platformRootFolder = Path.Combine(Path.GetTempPath(), @"MockSDK"); 164string sdkRootFolder = Path.Combine(platformRootFolder, @"Windows Kits\10"); 165string platformFolder = Path.Combine(sdkRootFolder, @"Platforms\UAP\10.0.14944.0"); 166string platformFilePath = Path.Combine(platformFolder, "Platform.xml"); 167string sdkManifestFilePath = Path.Combine(sdkRootFolder, "SDKManifest.xml"); 224string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 249string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 274string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 280File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), ""); 300string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 306File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "Garbaggggge"); 328string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSFN40"); 329string temp35Directory = Path.Combine(tempDirectory, "bin"); 330string temp40Directory = Path.Combine(temp35Directory, "NETFX 4.0 Tools"); 331string toolPath = Path.Combine(temp35Directory, "MyTool.exe"); 332string toolPath40 = Path.Combine(temp40Directory, "MyTool.exe"); 396string testPath = Path.Combine(tempPath, "HighestVersionOfTargetFrameworkIdentifierRootNoVersions"); 415string testPath = Path.Combine(tempPath, "HighestVersionOfTargetFrameworkIdentifierRootMultipleVersions"); 447string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSF40"); 448string temp35Directory = Path.Combine(tempDirectory, "bin"); 449string temp40Directory = Path.Combine(temp35Directory, "NETFX 4.0 Tools"); 450string toolPath = Path.Combine(temp35Directory, "MyTool.exe"); 451string toolPath40 = Path.Combine(temp40Directory, "MyTool.exe"); 535path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86dbg")); 547Path.Combine("{runtime-base}", "v1.3.x86dbg"), // Simulate "Orcas" as the current runtime.} 552path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86fre")); 564Path.Combine("{runtime-base}", "v1.1.x86dbg"), // Simulate "Everett" as the current runtime. 570path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86fre")); 582Path.Combine(@"{runtime-base}", "v1.1"), // Simulate "everett" as the current runtime 600string fakeWhidbeyPath = Path.Combine(tempPath, "v2.0.50224"); 601string fakeEverettPath = Path.Combine(tempPath, "v1.1.43225"); 688string tv12path = Path.Combine(ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, Constants.MSBuildExecutableName); 711string tv12path = Path.Combine(Path.GetFullPath(toolsPath32.EvaluatedValue), Constants.MSBuildExecutableName); 912string pathToSdk35InstallRoot = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v7.0A\"); 913string pathToSdkV4InstallRootOnVS10 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v7.0A\"); 914string pathToSdkV4InstallRootOnVS11 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v8.0A\"); 918if (!Directory.Exists(Path.Combine(pathToSdkV4InstallRootOnVS11, "bin"))) 924string pathToSdkV4InstallRootOnVS12 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v8.1A\"); 932string pathToSdkV4InstallRootOnVS14 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v10.0A\"); 1269string expectedPath = Path.Combine(targetFrameworkRootPath, targetFrameworkIdentifier); 1270expectedPath = Path.Combine(expectedPath, "v" + targetFrameworkVersion); 1271expectedPath = Path.Combine(expectedPath, "Profile"); 1272expectedPath = Path.Combine(expectedPath, targetFrameworkProfile); 1287string expectedPath = Path.Combine(targetFrameworkRootPath, targetFrameworkIdentifier); 1288expectedPath = Path.Combine(expectedPath, "v" + targetFrameworkVersion); 1389string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsChain"); 1392string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1394string redist40 = Path.Combine(redist40Directory, "FrameworkList.xml"); 1402string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1404string expectedChainedPath = Path.Combine(tempDirectory, "v4.0"); 1431string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude"); 1434string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1439string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1461string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude"); 1464string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1469string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1491string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoFileList"); 1494string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1499string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1520string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsBadFile"); 1523string redist40 = Path.Combine(redist40Directory, "FrameworkList.xml"); 1529string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.0")); 1551string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPointsToInvalidInclude"); 1554string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1555string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1"); 1587string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistInvalidPathChars"); 1590string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1591string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1"); 1621string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPathTooLong"); 1624string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1625string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1"); 1664string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootGoodWithChain"); 1667string framework41redistDirectory = Path.Combine(framework41Directory, "RedistList"); 1668string framework41RedistList = Path.Combine(framework41redistDirectory, "FrameworkList.xml"); 1671string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList"); 1672string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml"); 1675string framework39redistDirectory = Path.Combine(framework39Directory, "RedistList"); 1676string framework39RedistList = Path.Combine(framework39redistDirectory, "FrameworkList.xml"); 1729string tempDirectory = Path.Combine(Path.GetTempPath(), "DisplayNameGeneration"); 1733string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList"); 1734string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml"); 1738string framework39redistDirectory = Path.Combine(framework39Directory, "RedistList"); 1739string framework39RedistList = Path.Combine(framework39redistDirectory, "FrameworkList.xml"); 1786string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootCircularReference"); 1790string framework41redistDirectory = Path.Combine(framework41Directory, "RedistList"); 1791string framework41RedistList = Path.Combine(framework41redistDirectory, "FrameworkList.xml"); 1795string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList"); 1796string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml"); 1968string combinedPath = Path.Combine(programFiles32, pathToCombineWith); 2500string rootDir = Path.Combine(env.DefaultTestDirectory.Path, "framework-root"); 2529string customFrameworkRootPath = Path.Combine(env.DefaultTestDirectory.Path, "framework-root"); 2552string rootDir = Path.Combine(env.CreateFolder().Path, "framework-root"); 2553string fallbackPath = Path.Combine(env.CreateFolder().Path, "framework-root"); 2583string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2596string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2613string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2630string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2645string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2662string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2725File.WriteAllText(Path.Combine(redistPath, "FrameworkList.xml"), string.Format(frameworkListXml, frameworkName)); 2726File.WriteAllText(Path.Combine(asmPath, "mscorlib.dll"), string.Empty); 3127string frameworkPath = Path.Combine(tmpRootDirectory, frameworkPathPattern); 3128string manifestFile = Path.Combine(frameworkPath, "SDKManifest.xml"); 3130string frameworkPath2 = Path.Combine(tmpRootDirectory, frameworkPathPattern2); 3131string manifestFile2 = Path.Combine(frameworkPath, "SDKManifest.xml"); 3274string manifestPath = Path.Combine(Path.GetTempPath(), "ManifestTmp"); 3280string manifestFile = Path.Combine(manifestPath, "SDKManifest.xml"); 3409string manifestPath = Path.Combine(Path.GetTempPath(), "ManifestTmp"); 3415string manifestFile = Path.Combine(manifestPath, "SDKManifest.xml"); 3539string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyGetInstalledSDKLocations"); 3571File.WriteAllText(Path.Combine(platformDirectory, "SDKManifest.xml"), "HI"); 3572File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "HI"); 3573string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 3608string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyGetInstalledSDKLocations2"); 3643File.WriteAllText(Path.Combine(platformDirectory, "SDKManifest.xml"), platformSDKManifestContents); 3644File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "HI"); 3645string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4103string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyFindRootFolderWhereAllFilesExist"); 4104string[] rootDirectories = new string[] { Path.Combine(testDirectoryRoot, "Root1"), Path.Combine(testDirectoryRoot, "Root2") }; 4109string subdir = Path.Combine(rootDirectories[i], "Subdir"); 4112File.Create(Path.Combine(rootDirectories[i], "file1.txt")).Close(); 4113File.Create(Path.Combine(subdir, fileInSubDir)).Close(); 4415string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory"); 4538string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
ToolTask_Tests.cs (13)
42_fullToolName = Path.Combine( 169t.FullToolName = Path.Combine(systemPath, NativeMethodsShared.IsWindows ? "attrib.exe" : "ps"); 428t.PathToToolUsed.ShouldBe(Path.Combine(systemPath, shellName)); 434t.PathToToolUsed.ShouldBe(Path.Combine(systemPath, copyName)); 479Path.Combine(systemPath, toolName)); 732string directoryNamedSameAsTool = Directory.CreateDirectory(Path.Combine(tempDirectory, toolName)).FullName; 764expectedCmdPath = new[] { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe").ToUpperInvariant() }; 1136: Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "ping.exe"); 1353string expected = Path.Combine(projectDir, "subdir"); 1459File.WriteAllText(Path.Combine(tempDir, toolName), "dummy"); 1479result.ShouldBe(Path.Combine(tempDir, toolName)); 1489string fullPath = Path.Combine(projectDir, fileName); 1562string toolFullPath = Path.Combine(toolDir, toolName);
Microsoft.Cci.Extensions (2)
HostEnvironment.cs (2)
152string combinedPath = Path.Combine(libPath, assemblyPath); 199path = Path.Combine(probeDir, referencedAssembly.Name.Value + extension);
Microsoft.CodeAnalysis (21)
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)
1806var 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)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// 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 (1)
375var tree = ParseGeneratedSourceText(source, Path.Combine(prefix, source.HintName), cancellationToken);
Microsoft.CodeAnalysis.Analyzers (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
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.CodeStyle.UnitTests (25)
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (25)
35=> Path.Combine(Directory, Path.Combine(folders)); 39var filePath = Path.Combine(directory ?? Directory, fileName); 385(Path.Combine(folder, "ABClass1.cs"), code1), 386(Path.Combine(folder, "ABClass2.cs"), code2), 399var folder = Path.Combine("B", "C"); 532(Path.Combine(folder, "Class1.cs"), code1), 538(Path.Combine(folder, "Class1.cs"), fixed1), 640(Path.Combine(folder, "Class1.cs"), code1), 646(Path.Combine(folder, "Class1.cs"), fixed1), 750(Path.Combine(folder1, "Class1.cs"), code1), 751(Path.Combine(folder2, "Class2.cs"), code2), 752(Path.Combine(folder3, "Class3.cs"), code3), 757(Path.Combine(folder1, "Class1.cs"), fixed1), 758(Path.Combine(folder2, "Class2.cs"), fixed2), 759(Path.Combine(folder3, "Class3.cs"), fixed3), 901(Path.Combine(folder1, "Class1.cs"), code1), 902(Path.Combine(folder2, "Class2.cs"), code2), 903(Path.Combine(folder3, "Class3.cs"), code3), 910Sources = { (Path.Combine(project2folder, "P.cs"), project2Source) }, 911AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) }, 919(Path.Combine(folder1, "Class1.cs"), fixed1), 920(Path.Combine(folder2, "Class2.cs"), fixed2), 921(Path.Combine(folder3, "Class3.cs"), fixed3), 928Sources = { (Path.Combine(project2folder, "P.cs"), project2FixedSource) }, 929AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) },
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (183)
CommandLineTestBase.cs (2)
32MscorlibFullPath = Path.Combine(SdkDirectory, "mscorlib.dll"); 41File.WriteAllBytes(Path.Combine(dir.Path, "mscorlib.dll"), Net461.ReferenceInfos.mscorlib.ImageBytes);
CommandLineTests.cs (162)
64var cscDllPath = Path.Combine( 66Path.Combine("dependency", "csc.dll")); 77s_CSharpScriptExecutable = s_CSharpCompilerExecutable.Replace("csc.dll", Path.Combine("csi", "csi.dll")); 154string exePath = Path.Combine(dir.Path, "temp.exe"); 174var xmlPath = Path.Combine(dir.Path, docName); 410var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path); 412Assert.Equal("星野 八郎太", File.ReadAllText(Path.Combine(dir.Path, "output.txt"), Encoding.GetEncoding(932))); 430var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path); 432Assert.Equal("星野 八郎太", File.ReadAllText(Path.Combine(dir.Path, "output.txt"), Encoding.GetEncoding(932))); 462AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path)); 479Func<string, string> prependBasePath = fileName => Path.Combine(basePath, fileName); 491{ Path.Combine(dirSubDir.Path, @"b.rsp"), @" 499{ Path.Combine(Path.GetPathRoot(basePath), @"d.rsp"), @" 1533Diagnostic(ErrorCode.ERR_OpenResponseFile).WithArguments(Path.Combine(WorkingDirectory, @"roslyn_test_non_existing_file"))); 2013Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2026Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2033Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2100Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.PdbPath); 2101Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2105Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.PdbPath); 2106Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2113Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2117Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2152Assert.Equal(Path.Combine(Path.GetPathRoot(WorkingDirectory), @"MyFolder\MyPdb.pdb"), parsedArgs.PdbPath); 2216Assert.Equal(Path.Combine(WorkingDirectory, "sl.json"), parsedArgs.SourceLink); 2220Assert.Equal(Path.Combine(WorkingDirectory, "sl.json"), parsedArgs.SourceLink); 2224Assert.Equal(Path.Combine(WorkingDirectory, "s l.json"), parsedArgs.SourceLink); 2258var peStream = File.OpenRead(Path.Combine(dir.Path, "a.exe")); 2290var pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")); 2319var pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")); 2338new[] { "a.cs", "b.cs", "c.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2344new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2350new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2356new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2362new[] { "a,b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2368new[] { "a.txt", "a.cs", "b.cs", "c.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2482using (var peReader = new PEReader(File.OpenRead(Path.Combine(dir.Path, "embed.exe")))) 2489MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.Path, "embed.pdb")))) 2517symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.Path, "embed.pdb"))); 2888Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")); 2889Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah"), actual: parsedArgs.RuleSetPath); 2893Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")); 2894Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual: parsedArgs.RuleSetPath); 3596" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(40,13): error CS0103: The name 'Goo' does not exist in the current context 3597" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(50,13): error CS0103: The name 'Goo' does not exist in the current context 3619" + Path.Combine(dir.Path, @"a.cs") + @"(8,13): error CS0103: The name 'Goo' does not exist in the current context 3623" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(40,13): error CS0103: The name 'Goo' does not exist in the current context 3624" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(50,13): error CS0103: The name 'Goo' does not exist in the current context 3631" + Path.Combine(dir.Path, @"a.cs") + @"(32,13): error CS0103: The name 'Goo' does not exist in the current context 3799Assert.Equal(Path.Combine(baseDirectory, "MyBinary.dll"), parsedArgs.GetOutputFilePath(parsedArgs.OutputFileName)); 4110Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.DocumentationPath); 4214Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 4505using (var metadata = ModuleMetadata.CreateFromImage(File.ReadAllBytes(Path.Combine(dir.Path, "aa.exe")))) 5661Assert.Equal(Path.Combine(WorkingDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile); 6075var assemblyName = AssemblyName.GetAssemblyName(Path.Combine(tempDir, name)); 7095using (var metadata = ModuleMetadata.CreateFromImage(File.ReadAllBytes(Path.Combine(dir.Path, expectedOutputName)))) 7834IntPtr lib = LoadLibraryEx(Path.Combine(dir.Path, outputFileName), IntPtr.Zero, 0x00000002); 8270Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))); 8462CleanupAllGeneratedFiles(Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(source)), Path.GetFileName(source))); 8554exitCode = CreateCSharpCompiler(null, baseDir, new[] { "/nologo", "/preferreduilang:en", Path.Combine(baseDir, "nonexistent.cs"), source.ToString() }).Run(outWriter); 8556Assert.Equal("error CS2001: Source file '" + Path.Combine(baseDir, "nonexistent.cs") + "' could not be found.", outWriter.ToString().Trim()); 8718System.IO.File.Delete(System.IO.Path.Combine(baseDir, "goo.dll")); 8997var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9019var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9042var xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml"); 9066var sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json"); 9094string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 9119string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 9145string xmlPath = Path.Combine(WorkingDirectory, "Test.xml"); 9248string xmlPath = Path.Combine(WorkingDirectory, "Test.xml"); 9952Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles.Single().Path); 9957Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9958Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9963Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9964Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[1].Path); 9968Assert.Equal(Path.Combine(WorkingDirectory, "..\\web.config"), args.AdditionalFiles.Single().Path); 9978Assert.Equal(Path.Combine(baseDir.Path, "web1.config"), args.AdditionalFiles[0].Path); 9979Assert.Equal(Path.Combine(baseDir.Path, "web2.config"), args.AdditionalFiles[1].Path); 9980Assert.Equal(Path.Combine(baseDir.Path, "web3.config"), args.AdditionalFiles[2].Path); 9985Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9986Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9991Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9992Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9997Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9998Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 10003Assert.Equal(Path.Combine(WorkingDirectory, "web.config,app.manifest"), args.AdditionalFiles[0].Path); 10008Assert.Equal(Path.Combine(WorkingDirectory, "web.config:app.manifest"), args.AdditionalFiles[0].Path); 10024Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths.Single()); 10029Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[0]); 10030Assert.Equal(Path.Combine(WorkingDirectory, "subdir\\.editorconfig"), args.AnalyzerConfigPaths[1]); 10035Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[0]); 10036Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[1]); 10040Assert.Equal(Path.Combine(WorkingDirectory, "..\\.editorconfig"), args.AnalyzerConfigPaths.Single()); 10045Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[0]); 10046Assert.Equal(Path.Combine(WorkingDirectory, "subdir\\.editorconfig"), args.AnalyzerConfigPaths[1]); 11446Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))); 11461using (var reader = new StreamReader(Path.Combine(dir.ToString(), "doc.xml"))) 11467output = ProcessUtilities.RunAndGetOutput(Path.Combine(dir.ToString(), "out.exe"), startFolder: dir.ToString()); 11484Assert.Equal(Path.Combine(baseDirectory, @"a.pdb"), args.PdbPath); 11517AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11521AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path)); 11525AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path)); 11529AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11533AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11537AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11542AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11547AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11552AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path)); 11671var dir = Path.Combine(WorkingDirectory, "a"); 11674Assert.Equal(Path.Combine(dir, @"data.pdb"), parsedArgs.PdbPath); 11697var exePath = Path.Combine(dir.Path, "a.exe"); 11709var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11716var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11723var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11731var pdbPath = Path.Combine(dir.Path, @"pdb\a.pdb"); 11739var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11746var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11753var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11817dir.CopyFile(Path.Combine(Path.GetDirectoryName(s_CSharpCompilerExecutable), "csc.rsp")); 11878var exe = Path.Combine(dir.Path, "a.exe"); 11887var doc = Path.Combine(dir.Path, "doc.xml"); 11911var refDll = Path.Combine(refDir.Path, "a.dll"); 11942var dll = Path.Combine(dir.Path, "a.dll"); 11945var refDll = Path.Combine(dir.Path, Path.Combine("ref", "a.dll")); 11994var refDll = Path.Combine(dir.Path, "a.dll"); 12005var pdb = Path.Combine(dir.Path, "a.pdb"); 12008var doc = Path.Combine(dir.Path, "doc.xml"); 12326var cscCopy = Path.Combine(dir.Path, "csc.exe"); 12370var exePath = Path.Combine(dir.Path, "a.exe"); 13558string binaryPath = Path.Combine(dir.Path, "temp.dll"); 13561string pdbPath = Path.Combine(dir.Path, pdbName); 13564string xmlDocFilePath = Path.Combine(dir.Path, docName); 13604string binaryPath = Path.Combine(dir.Path, "temp.dll"); 13607string pdbPath = Path.Combine(dir.Path, pdbName); 13610string xmlDocFilePath = Path.Combine(dir.Path, docName); 13654string binaryPath = Path.Combine(dir.Path, "temp.dll"); 13657string pdbPath = Path.Combine(dir.Path, pdbName); 13660string xmlDocFilePath = Path.Combine(dir.Path, docName); 13685string binaryPath = Path.Combine(dir.Path, "temp.dll"); 14125using (Stream peStream = File.OpenRead(Path.Combine(dir.Path, "checksum.exe")), pdbStream = File.OpenRead(Path.Combine(dir.Path, "checksum.pdb"))) 14167using (Stream peStream = File.OpenRead(Path.Combine(dir.Path, "checksum.exe")), pdbStream = File.OpenRead(Path.Combine(dir.Path, "checksum.pdb"))) 14238ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource1 } } } }); 14245ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource2 } } } }); 14308var generatedPath = Path.Combine(subdir, generatedFileName); 14347var path = Path.Combine(dir.Path, Guid.NewGuid().ToString() + ".dll"); 14403var generatedDirPath = Path.Combine(dir.Path, "noexist"); 14431ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource } } } }); 14458Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory); 14462Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory); 14466Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory); 14470Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory); 14472var absPath = Path.Combine(root, "outdir"); 14481absPath = Path.Combine(root, "generated files"); 14525string[] writtenText = File.ReadAllLines(Path.Combine(dir.Path, "touched.write")); 15520var generatorPath = Path.Combine(directory.Path, "generator.dll"); 15556Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.Path, additionalFilePath1))); 15557Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.Path, additionalFilePath2))); 15563string path2 = additionalFile2?.Path ?? Path.Combine(srcDirectory.Path, additionalFilePath2);
SarifErrorLoggerTests.cs (10)
43var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 74var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 108var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 140var errorLogFile = Path.Combine(outputDir.Path, "ErrorLog.txt"); 141var outputFilePath = Path.Combine(outputDir.Path, "test.dll"); 177var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 212var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 247var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 282var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 315var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt");
SarifV2ErrorLoggerTests.cs (5)
447var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 529var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 599var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt"); 669Assert.False(File.Exists(Path.Combine(mappedDir.Path, "otherfile.cs"))); 679var errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt");
TouchedFileLoggingTests.cs (4)
40var touchedBase = Path.Combine(touchedDir.Path, "touched"); 68var touchedBase = Path.Combine(touchedDir.Path, "touched"); 115var touchedBase = Path.Combine(touchedDir.Path, "touched"); 154var touchedBase = Path.Combine(touchedDir.Path, "touched");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (63)
Completion\CompletionProviders\AppDirectiveCompletionProviderTests.cs (6)
59var scriptFilePath = Path.Combine(tempDirectory.Path, "App.cs"); 90var scriptFilePath = Path.Combine(tempDirectory.Path, "App.cs"); 142var scriptFilePath = Path.Combine(tempDirectory.Path, "App.cs"); 170var scriptFilePath = Path.Combine(tempDirectory.Path, "App.cs"); 241var scriptFilePath = Path.Combine(tempDirectory.Path, "App.cs"); 255<AnalyzerConfigDocument FilePath="{Path.Combine(tempDirectory.Path, ".globalconfig")}"><![CDATA[{globalAnalyzerConfig}]]></AnalyzerConfigDocument>
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (4)
58var path = Path.Combine(Path.GetTempPath(), nameof(PdbSourceDocumentTests)); 324return Path.Combine(path, "reference.dll"); 329return Path.Combine(path, "source.cs"); 334return Path.Combine(path, "reference.pdb");
PdbSourceDocument\ImplementationAssemblyLookupServiceTests.cs (32)
46File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 80File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 118File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 155var dllFilePath = Path.Combine(path, "implementation.dll"); 156var sourceCodePath = Path.Combine(path, "implementation.cs"); 157var pdbFilePath = Path.Combine(path, "implementation.pdb"); 163var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 203var dllFilePath = Path.Combine(path, "implementation.dll"); 204var sourceCodePath = Path.Combine(path, "implementation.cs"); 205var pdbFilePath = Path.Combine(path, "implementation.pdb"); 219var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 260var dllFilePath = Path.Combine(path, "implementation.dll"); 261var sourceCodePath = Path.Combine(path, "implementation.cs"); 262var pdbFilePath = Path.Combine(path, "implementation.pdb"); 276var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 311var dllFilePath = Path.Combine(path, "implementation.dll"); 312var sourceCodePath = Path.Combine(path, "implementation.cs"); 313var pdbFilePath = Path.Combine(path, "implementation.pdb"); 327var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 358var dllFilePath = Path.Combine(path, "implementation.dll"); 359var sourceCodePath = Path.Combine(path, "implementation.cs"); 360var pdbFilePath = Path.Combine(path, "implementation.pdb"); 374var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 416var dllFilePath = Path.Combine(path, "implementation.dll"); 417var sourceCodePath = Path.Combine(path, "implementation.cs"); 418var pdbFilePath = Path.Combine(path, "implementation.pdb"); 432var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 478var dllFilePath = Path.Combine(path, "implementation.dll"); 479var sourceCodePath = Path.Combine(path, "implementation.cs"); 480var pdbFilePath = Path.Combine(path, "implementation.pdb"); 494var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 502var realImplementationDllFilePath = Path.Combine(path, "realimplementation.dll");
PdbSourceDocument\PdbFileLocatorServiceTests.cs (3)
32var pdbFilePath = Path.Combine(path, "SourceLink.pdb"); 59var pdbFilePath = Path.Combine(path, "SourceLink.pdb"); 84var pdbFilePath = Path.Combine(path, "SourceLink.pdb");
PdbSourceDocument\PdbSourceDocumentLoaderServiceTests.cs (2)
35var sourceFilePath = Path.Combine(path, "SourceLink.cs"); 66var sourceFilePath = Path.Combine(path, "SourceLink.cs");
PdbSourceDocument\PdbSourceDocumentTests.cs (15)
323Directory.CreateDirectory(Path.Combine(path, "ref")); 324Directory.CreateDirectory(Path.Combine(path, "lib")); 328var (project, symbol) = await CompileAndFindSymbolAsync(Path.Combine(path, "ref"), Location.Embedded, Location.OnDisk, sourceText, c => c.GetMember("C.E"), buildReferenceAssembly: true); 331CompileTestSource(Path.Combine(path, "lib"), sourceText, project, Location.Embedded, Location.Embedded, buildReferenceAssembly: false, windowsPdb: false); 360File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 401File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 439var implementationDllFilePath = Path.Combine(sharedDir, "implementation.dll"); 440var sourceCodePath = Path.Combine(sharedDir, "implementation.cs"); 441var pdbFilePath = Path.Combine(sharedDir, "implementation.pdb"); 447var typeForwardDllFilePath = Path.Combine(sharedDir, "reference.dll"); 448sourceCodePath = Path.Combine(sharedDir, "reference.cs"); 449pdbFilePath = Path.Combine(sharedDir, "reference.pdb"); 459File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 841CompileTestSource(dllFilePath, [Path.Combine(path, "source1.cs"), Path.Combine(path, "source2.cs")], pdbFilePath, "reference", [sourceText1, sourceText2], project, Location.Embedded, Location.Embedded, buildReferenceAssembly: false, windowsPdb: false);
Rename\CSharpInlineRenameServiceTests.cs (1)
81var escapedPath = Path.Combine(TestWorkspace.RootDirectory, "test1.cs").Replace("\\", "\\\\");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
4716var dllPath = Path.Combine(tmpDir.Path, "assemblyname.dll"); 4717var pdbPath = Path.Combine(tmpDir.Path, "assemblyname.pdb");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\EditAndContinueTestBase.cs (4)
259File.WriteAllBytes(Path.Combine(outputDirectory, baseName + ".dll" + extSuffix), baseline.EmittedAssemblyData.ToArray()); 260File.WriteAllBytes(Path.Combine(outputDirectory, baseName + ".pdb" + extSuffix), baseline.EmittedAssemblyPdb.ToArray()); 264File.WriteAllBytes(Path.Combine(outputDirectory, $"{baseName}.{i + 1}.metadata{extSuffix}"), diffs[i].MetadataDelta.ToArray()); 265File.WriteAllBytes(Path.Combine(outputDirectory, $"{baseName}.{i + 1}.pdb{extSuffix}"), diffs[i].PdbDelta.ToArray());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Security.cs (1)
1606string filePath = Path.Combine(tempDir.Path, "pset_01.xml");
Microsoft.CodeAnalysis.CSharp.Features (1)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
539var resolvedProjectPath = Path.Combine(sourceDirectory, resolvedName.Replace('\\', '/'));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (31)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (5)
41AddTestDocument(source, path: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 457AddTestDocument(source, path: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 661var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 707var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 734var filePath = Path.Combine(TempRoot.Root, "src.cs");
EditAndContinue\Helpers\EditingTestBase.cs (1)
140=> Path.Combine(TempRoot.Root, documentIndex.ToString() + ".cs");
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (25)
35=> Path.Combine(Directory, Path.Combine(folders)); 39var filePath = Path.Combine(directory ?? Directory, fileName); 385(Path.Combine(folder, "ABClass1.cs"), code1), 386(Path.Combine(folder, "ABClass2.cs"), code2), 399var folder = Path.Combine("B", "C"); 532(Path.Combine(folder, "Class1.cs"), code1), 538(Path.Combine(folder, "Class1.cs"), fixed1), 640(Path.Combine(folder, "Class1.cs"), code1), 646(Path.Combine(folder, "Class1.cs"), fixed1), 750(Path.Combine(folder1, "Class1.cs"), code1), 751(Path.Combine(folder2, "Class2.cs"), code2), 752(Path.Combine(folder3, "Class3.cs"), code3), 757(Path.Combine(folder1, "Class1.cs"), fixed1), 758(Path.Combine(folder2, "Class2.cs"), fixed2), 759(Path.Combine(folder3, "Class3.cs"), fixed3), 901(Path.Combine(folder1, "Class1.cs"), code1), 902(Path.Combine(folder2, "Class2.cs"), code2), 903(Path.Combine(folder3, "Class3.cs"), code3), 910Sources = { (Path.Combine(project2folder, "P.cs"), project2Source) }, 911AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) }, 919(Path.Combine(folder1, "Class1.cs"), fixed1), 920(Path.Combine(folder2, "Class2.cs"), fixed2), 921(Path.Combine(folder3, "Class3.cs"), fixed3), 928Sources = { (Path.Combine(project2folder, "P.cs"), project2FixedSource) }, 929AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) },
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (7)
CommandLineRunnerTests.cs (2)
249var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "@arg1"))}"; 396var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "a + b"))}";
InteractiveSessionReferencesTests.cs (1)
143File.Move(libBFile.Path, Path.Combine(dir.Path, "libB.dll"));
InteractiveSessionTests.cs (4)
1239string dir = Path.Combine(Path.GetDirectoryName(file.Path), "subdir"); 1241string scriptPath = Path.Combine(dir, "a.csx"); 1244$@"#r ""{Path.Combine("..", libFileName)}""", 1261string scriptPath = Path.Combine(dir, "a.csx");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
4350driverOptions: new GeneratorDriverOptions(baseDirectory: Path.Combine(projectDir, "obj")));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
DocumentationComments\DocumentationCommentCompilerTests.cs (3)
8402string sourcePath = Path.Combine(dirPath, "test.cs"); 8658$@"/// <include file='{Path.Combine(path, "---.xml")}' path='//summary'/> 8672<!-- Badly formed XML file ""{Path.Combine(TestHelpers.AsXmlCommentText(path), "- - -.xml")}"" cannot be included -->
Symbols\Source\FileModifierTests.cs (2)
832var testSource1 = CSharpTestSource.Parse(source, Path.Combine(root1, "code.cs")); 833var testSource2 = CSharpTestSource.Parse(source, Path.Combine(root2, "code.cs"));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
457string fileExpected = Path.Combine(Path.GetTempPath(), "roslyn_winmd_dump.expected.txt"); 458string fileActual = Path.Combine(Path.GetTempPath(), "roslyn_winmd_dump.actual.txt");
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveSession.cs (2)
99_hostDirectory = Path.Combine(Path.GetDirectoryName(typeof(InteractiveSession).Assembly.Location), "InteractiveHost"); 232var newSubmissionFilePath = Path.Combine(hostPathDirectory, $"Submission{SubmissionCount}{_languageInfo.Extension}");
Microsoft.CodeAnalysis.ExternalAccess.HotReload.UnitTests (13)
HotReloadMSBuildWorkspaceTests.cs (12)
36filePath: Path.Combine(TempRoot.Root, "P1.csproj"), 37outputFilePath: Path.Combine(TempRoot.Root, "P1.dll"), 45filePath: Path.Combine(TempRoot.Root, "A.cs"), 59generatedFilesOutputDirectory: Path.Combine(TempRoot.Root, "obj"))); 73filePath: Path.Combine(TempRoot.Root, "P1.csproj"), 74outputFilePath: Path.Combine(TempRoot.Root, "P1.dll"), 82filePath: Path.Combine(TempRoot.Root, "A.cs"), 87filePath: Path.Combine(TempRoot.Root, "B.cs"), 101generatedFilesOutputDirectory: Path.Combine(TempRoot.Root, "obj"))); 115Assert.Equal(Path.Combine(TempRoot.Root, "P1.csproj"), project2.FilePath); 116Assert.Equal(Path.Combine(TempRoot.Root, "P1.dll"), project2.OutputFilePath); 121Assert.Equal(Path.Combine(TempRoot.Root, "obj"), project2.CompilationOutputInfo.GeneratedFilesOutputDirectory);
HotReloadServiceTests.cs (1)
174.AddAdditionalDocument("A.txt", "text", filePath: Path.Combine(TempRoot.Root, "A.txt"))
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (3)
RazorAnalyzerAssemblyResolver.cs (3)
65var onDiskName = Path.Combine(directory, $"{fileName}.dll"); 89var serviceHubCoreDirectory = Path.Combine(directory, ServiceHubCoreFolderName); 98var assemblyPath = Path.Combine(directory, assemblyFileName);
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (5)
RazorAnalyzerAssemblyResolverTests.cs (5)
84var result = compilation.Emit(Path.Combine(directory, $"{simpleName}.dll")); 120File.Move(Path.Combine(dir1, fileName), Path.Combine(dir2, fileName)); 129expectedAssembly = context.LoadFromAssemblyPath(Path.Combine(dir2, fileName)); 176var serviceHubFolder = Path.Combine(dir, RazorAnalyzerAssemblyResolver.ServiceHubCoreFolderName);
Microsoft.CodeAnalysis.Features (15)
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");
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (2)
183Path.Combine(_cacheDirectoryInfo.FullName, ConvertToFileName(_source) + ".txt")); 345var tempFilePath = Path.Combine(_cacheDirectoryInfo.FullName, guidString + ".tmp");
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
EditAndContinue\ActiveStatementsDescription.cs (1)
145var documentName = filePaths?[sourceIndex] ?? Path.Combine(TempRoot.Root, TestWorkspace.GetDefaultTestSourceDocumentName(sourceIndex, extension ?? ""));
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
155=> projectDirectory?.CreateFile(fileName).WriteAllText(content, Encoding.UTF8).Path ?? Path.Combine(TempRoot.Root, fileName); 320[(source, sourceFilePath ?? Path.Combine(TempRoot.Root, "test1.cs"))],
EditAndContinue\Extensions.cs (2)
116path = Path.Combine(Path.GetDirectoryName(solution.GetRequiredProject(projectId).FilePath!)!, path); 168assemblyPath: Path.Combine(TempRoot.Root, projectName + ".dll"),
Snippets\AbstractSnippetProviderTests.cs (2)
47filePath: Path.Combine(TempRoot.Root, "TestDocument")); 54filePath: Path.Combine(TempRoot.Root, ".editorconfig"));
Microsoft.CodeAnalysis.Features.UnitTests (22)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (18)
122AddDocument(CreateDesignTimeOnlyDocument(projectPId, name: "dt1.cs", path: Path.Combine(dir.Path, "dt1.cs"))). 238var sourceFilePath = Path.Combine(TempRoot.Root, "test"); 250filePath: Path.Combine(TempRoot.Root, "dummy.proj")) 680var newRefOutPath = Path.Combine(TempRoot.Root, "newRef"); 982var designTimeOnlyFilePath = Path.Combine(dir.Path, designTimeOnlyFileName); 2286var pathA = Path.Combine(TempRoot.Root, "A.cs"); 2287var pathB = Path.Combine(TempRoot.Root, "B.cs"); 2288var pathC = Path.Combine(TempRoot.Root, "C.cs"); 2289var pathD = Path.Combine(TempRoot.Root, "D.cs"); 2290var pathX = Path.Combine(TempRoot.Root, "X"); 2291var pathY = Path.Combine(TempRoot.Root, "Y"); 2292var pathCommon = Path.Combine(TempRoot.Root, "Common.cs"); 2364var pathX = Path.Combine(TempRoot.Root, "X.cs"); 2365var pathA = Path.Combine(TempRoot.Root, "A.cs"); 2545var pathA = Path.Combine(TempRoot.Root, "A.txt"); 2623var sourcePath = Path.Combine(TempRoot.Root, "A.cs"); 4367AddDocument("DocB", source1, filePath: Path.Combine(TempRoot.Root, "DocB.cs")).Project; 4874var filePath = withPath ? Path.Combine(TempRoot.Root, "test.cs") : null;
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
82solution = solution.AddDocument(id, name, text, filePath: Path.Combine(TempRoot.Root, name));
EditAndContinue\EmitSolutionUpdateResultsTests.cs (3)
71var razorPath2 = Path.Combine(TempRoot.Root, "a.razor"); 76AddDocument(sourcePath, SourceText.From("class C {}", Encoding.UTF8), filePath: Path.Combine(TempRoot.Root, sourcePath)); 109DiagnosticDataLocation.TestAccessor.Create(new(sourcePath, new(0, 0), new(0, 5)), document.Id, new(Path.Combine("..", "a.razor"), new(10, 10), new(10, 15)), forceMappedPath: true),
Microsoft.CodeAnalysis.InteractiveHost (5)
Interactive\Core\InteractiveHost.Service.cs (1)
167Path.Combine(Path.GetTempPath(), "InteractiveHostShadow"),
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
Microsoft.CodeAnalysis.LanguageServer (9)
DotnetCliHelper.cs (2)
118var vstestConsole = Path.Combine(dotnetSdkFolder, "vstest.console.dll"); 140var filePath = Path.Combine(item, fileName);
FileBasedPrograms\CanonicalMiscellaneousFilesProjectProvider.cs (1)
66var virtualProjectPath = Path.Combine(_tempDirectory, "Canonical.csproj");
HostWorkspace\AutoLoadProjectsInitializer.cs (1)
161: Path.GetFullPath(Path.Combine(folderPath, defaultSolution));
HostWorkspace\BinLogPathProvider.cs (1)
43var binaryLogPath = Path.Combine(binaryLogDirectory, $"LanguageServerDesignTimeBuild-{_binaryLogGuidSuffix}-{numericSuffix}.binlog");
HostWorkspace\WorkspaceProject.cs (1)
187return Path.Combine(fileDirectory, propertyValue);
Program.cs (1)
98var cacheDirectory = Path.Combine(Path.GetDirectoryName(typeof(Program).Assembly.Location)!, "cache");
Services\ExtensionAssemblyManager.cs (2)
135var assemblyPath = Path.Combine(devKitDependencyDirectory, simpleName + ".dll"); 200var assemblyPath = Path.Combine(_extensionDirectory, simpleName + ".dll");
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\Extensions.cs (1)
47var path = Path.Combine(directoryName, document.Name);
Features\DecompiledSource\AssemblyResolver.cs (1)
157var moduleFileName = Path.Combine(baseDirectory, moduleName);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (25)
CodeActions\CodeActionResolveTests.cs (2)
303var newDocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(Path.Combine(Path.GetDirectoryName(project.FilePath)!, "ABC.cs")); 435Path.Combine(Path.GetDirectoryName(existingDocument.FilePath)!, "BCD.cs"));
Diagnostics\AdditionalFileDiagnosticsTests.cs (16)
38var projFilePath = Path.Combine(testRoot, "CSProj1.csproj"); 39var csFilePath = Path.Combine(testRoot, "C.cs"); 40var xamlFilePath = Path.Combine(testRoot, "Test.xaml"); 69var projFilePath = Path.Combine(testRoot, "CSProj1.csproj"); 70var csFilePath = Path.Combine(testRoot, "C.cs"); 71var txtFilePath = Path.Combine(testRoot, "Test.txt"); 102var projFilePath = Path.Combine(testRoot, "CSProj1.csproj"); 103var csFilePath = Path.Combine(testRoot, "C.cs"); 104var txtFilePath = Path.Combine(testRoot, "Test.txt"); 142var projFilePath = Path.Combine(testRoot, "CSProj1.csproj"); 143var csFilePathA = Path.Combine(testRoot, "A.cs"); 144var csFilePathB = Path.Combine(testRoot, "B.cs"); 145var txtFilePath = Path.Combine(testRoot, "Test.txt"); 182var projFilePath = Path.Combine(testRoot, "CSProj1.csproj"); 183var csFilePath = Path.Combine(testRoot, "C.cs"); 184var additionaFilePath = Path.Combine(testRoot, "File.razor");
Diagnostics\PullDiagnosticTests.cs (4)
1508var documentPath = Path.Combine(testRoot, "file.cs"); 1509var globalConfigPath = Path.Combine(testRoot, ".globalconfig"); 1510var editorConfigPath = Path.Combine(testRoot, ".editorconfig"); 1765Assert.Equal(ProtocolConversions.CreateAbsoluteDocumentUri(Path.Combine(TestWorkspace.RootDirectory, "test1.cs")), results[0].TextDocument!.DocumentUri);
Rename\RenameTests.cs (3)
271var razorFilePath = Path.Combine(Path.GetDirectoryName(project.FilePath), "file.razor"); 440var razorFilePath = Path.Combine(Path.GetDirectoryName(project.FilePath), "file.razor"); 493var razorFilePath = Path.Combine(Path.GetDirectoryName(project.FilePath), "file.razor");
Microsoft.CodeAnalysis.LanguageServer.UnitTests (126)
AutoLoadProjectsInitializerTests.cs (2)
59var settingsPath = Path.Combine(settingsDirectory.Path, "settings.json"); 79var solutionPath = Path.Combine(folderPath, relativePath);
DefaultFileChangeWatcherTests.cs (44)
119var filePath = Path.Combine(tempDirectory.Path, "test.cs"); 134var filePath = Path.Combine(otherDir.Path, "test.cs"); 148var filePath = Path.Combine(tempDirectory.Path, "test.txt"); 163var filePath = Path.Combine(tempDirectory.Path, "test.cs"); 183using var watchedFile1 = context.EnqueueWatchingFile(Path.Combine(tempDirectory.Path, "a.cs")); 184using var watchedFile2 = context.EnqueueWatchingFile(Path.Combine(tempDirectory.Path, "b.cs")); 199var filePath = Path.Combine(tempDirectory.Path, "multi.txt"); 218var filePath = Path.Combine(subDirectory.Path, "nested.cs"); 243var csFilePath = Path.Combine(tempDirectory.Path, "test.cs"); 244var vbFilePath = Path.Combine(tempDirectory.Path, "test.vb"); 245var txtFilePath = Path.Combine(tempDirectory.Path, "test.txt"); 269var filePath = Path.Combine(level3.Path, "deep.cs"); 285var filePath = Path.Combine(siblingDir.Path, "test.cs"); 300var filePath = Path.Combine(rootDir.Path, "test.cs"); 314var filePath = Path.Combine(tempDirectory.Path, "test.txt"); 341context.EnqueueWatchingFile(Path.Combine(seed.Path, "seed.cs")); 344context.EnqueueWatchingFile(Path.Combine(pairA.Path, "one.cs")); 345context.EnqueueWatchingFile(Path.Combine(pairB.Path, "two.cs")); 346context.EnqueueWatchingFile(Path.Combine(other.Path, "three.cs")); 365var file1 = context1.EnqueueWatchingFile(Path.Combine(root.Path, "extra.txt")); 366var file2 = context2.EnqueueWatchingFile(Path.Combine(root.Path, "extra2.log")); 387_ = context.EnqueueWatchingFile(Path.Combine(root.Path, "extra.txt")); 436var filePath = Path.Combine(tempDirectory.Path, "created.cs"); 456var filePath = Path.Combine(tempDirectory.Path, "modified.cs"); 476var filePath = Path.Combine(tempDirectory.Path, "deleted.cs"); 496var filePath = Path.Combine(tempDirectory.Path, "filtered.cs"); 513var txtFilePath = Path.Combine(tempDirectory.Path, "filtered.txt"); 534var filePath = Path.Combine(subDirectory.Path, "nested.cs"); 551var filePath = Path.Combine(tempDirectory.Path, "individual.txt"); 572var filePath = Path.Combine(tempDirectory.Path, "individual_modify.txt"); 596var csharpFilePath = Path.Combine(tempDirectory.Path, "created.cs"); 597var visualBasicFilePath = Path.Combine(tempDirectory.Path, "created.vb"); 622var filePath = Path.Combine(tempDirectory.Path, "disposed.txt"); 654var file1 = Path.Combine(tempDirectory.Path, "file1.cs"); 655var file2 = Path.Combine(tempDirectory.Path, "file2.cs"); 656var file3 = Path.Combine(tempDirectory.Path, "file3.cs"); 680var nonExistentDir = Path.Combine(root.Path, "not_yet_created"); 681var filePath = Path.Combine(nonExistentDir, "new_file.cs"); 710var originalPath = Path.Combine(tempDirectory.Path, "original.cs"); 711var renamedPath = Path.Combine(tempDirectory.Path, "renamed.cs"); 730var originalPath = Path.Combine(tempDirectory.Path, "original.cs"); 731var renamedPath = Path.Combine(tempDirectory.Path, "renamed.cs"); 813var filePath = Path.Combine(tempDirectory.Path, "test.cs"); 836var filePath = Path.Combine(tempDirectory.Path, "test.cs");
FileBasedProgramsEntryPointDiscoveryTests.cs (70)
354Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub1")); 355File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/File1.cs"), FbaContent); 356File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/File2.cs"), OrdinaryCsContent); 362File.Move(Path.Combine(tempDir.Path, @"sub1/File1.cs"), Path.Combine(tempDir.Path, @"sub1/File4.cs")); 363File.Move(Path.Combine(tempDir.Path, @"sub1/File2.cs"), Path.Combine(tempDir.Path, @"sub1/File1.cs")); 388Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub1")); 389File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/File1.cs"), OrdinaryCsContent); 390File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/File2.cs"), FbaContent); 396File.Move(Path.Combine(tempDir.Path, @"sub1/File1.cs"), Path.Combine(tempDir.Path, @"sub1/File4.cs")); 397File.Move(Path.Combine(tempDir.Path, @"sub1/File2.cs"), Path.Combine(tempDir.Path, @"sub1/File1.cs")); 422Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub1")); 423Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub2")); 424File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/File1.cs"), FbaContent); 425File.WriteAllText(Path.Combine(tempDir.Path, @"sub2/File1.cs"), OrdinaryCsContent); 431Directory.Move(Path.Combine(tempDir.Path, @"sub1"), Path.Combine(tempDir.Path, @"sub4")); 432Directory.Move(Path.Combine(tempDir.Path, @"sub2"), Path.Combine(tempDir.Path, @"sub1")); 457Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub1")); 458Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub2")); 459File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/File1.cs"), OrdinaryCsContent); 460File.WriteAllText(Path.Combine(tempDir.Path, @"sub2/File1.cs"), FbaContent); 466Directory.Move(Path.Combine(tempDir.Path, @"sub1"), Path.Combine(tempDir.Path, @"sub4")); 467Directory.Move(Path.Combine(tempDir.Path, @"sub2"), Path.Combine(tempDir.Path, @"sub1")); 491File.WriteAllText(Path.Combine(tempDir.Path, @"Fba0.cs"), FbaContent); 492File.WriteAllText(Path.Combine(tempDir.Path, @"Fba1.cs"), FbaContent); 493File.WriteAllText(Path.Combine(tempDir.Path, @"Ordinary2.cs"), OrdinaryCsContent); 499File.WriteAllText(Path.Combine(tempDir.Path, @"New102.csproj"), CsprojContent); 500File.Delete(Path.Combine(tempDir.Path, @"Fba0.cs")); 501File.WriteAllText(Path.Combine(tempDir.Path, @"NewOrd22.cs"), OrdinaryCsContent); 502File.WriteAllText(Path.Combine(tempDir.Path, @"Ordinary2.cs"), OrdinaryCsContent); 503File.WriteAllText(Path.Combine(tempDir.Path, @"Ordinary2.cs"), FbaContent); 504File.WriteAllText(Path.Combine(tempDir.Path, @"NewOrd5.cs"), OrdinaryCsContent); 505File.WriteAllText(Path.Combine(tempDir.Path, @"New79.csproj"), CsprojContent); 529File.WriteAllText(Path.Combine(tempDir.Path, @"Fba0.cs"), FbaContent); 530Directory.CreateDirectory(Path.Combine(tempDir.Path, @"deep/nested")); 531File.WriteAllText(Path.Combine(tempDir.Path, @"deep/nested/Fba1.cs"), FbaContent); 532Directory.CreateDirectory(Path.Combine(tempDir.Path, @"deep/nested")); 533File.WriteAllText(Path.Combine(tempDir.Path, @"deep/nested/Project2.csproj"), CsprojContent); 534File.WriteAllText(Path.Combine(tempDir.Path, @"Project3.csproj"), CsprojContent); 535Directory.CreateDirectory(Path.Combine(tempDir.Path, @"deep/nested/sub3")); 541File.WriteAllText(Path.Combine(tempDir.Path, @"NewOrd40.cs"), OrdinaryCsContent); 542File.WriteAllText(Path.Combine(tempDir.Path, @"deep/nested/sub3/New52.csproj"), CsprojContent); 543File.WriteAllText(Path.Combine(tempDir.Path, @"deep/nested/NewOrd20.cs"), OrdinaryCsContent); 544File.WriteAllText(Path.Combine(tempDir.Path, @"deep/nested/Fba1.cs"), OrdinaryCsContent); 568Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub1")); 569Directory.CreateDirectory(Path.Combine(tempDir.Path, @"sub1/sub3")); 570File.WriteAllText(Path.Combine(tempDir.Path, @"Project0.csproj"), CsprojContent); 571File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/sub3/Fba1.cs"), FbaContent); 572File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/Fba2.cs"), FbaContent); 573File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/Fba3.cs"), FbaContent); 574File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/Ordinary4.cs"), OrdinaryCsContent); 580File.Delete(Path.Combine(tempDir.Path, @"Project0.csproj")); 581File.WriteAllText(Path.Combine(tempDir.Path, @"sub1/sub3/NewFba64.cs"), FbaContent); 674public string FullPath(string relativePath) => Path.Combine(_rootPath, relativePath); 723var relativePath = parentDir.Length == 0 ? name : Path.Combine(parentDir, name); 7320 => new FuzzOp.WriteFbaFile(Path.Combine(dir, $"Fba{fileIndex}.cs")), 7331 => new FuzzOp.WriteOrdinaryCs(Path.Combine(dir, $"Ordinary{fileIndex}.cs")), 7342 => new FuzzOp.WriteCsproj(Path.Combine(dir, $"Project{fileIndex}.csproj")), 735_ => new FuzzOp.WriteFbaFile(Path.Combine(dir, $"Fba{fileIndex}.cs")), 758var newPath = Path.Combine(dir, "moved_" + Path.GetFileName(oldPath)); 765return new FuzzOp.WriteFbaFile(Path.Combine(dirList[random.Next(dirList.Length)], $"NewFba{workspace.Files.Count + random.Next(100)}.cs")); 768return new FuzzOp.WriteOrdinaryCs(Path.Combine(dirList[random.Next(dirList.Length)], $"NewOrd{workspace.Files.Count + random.Next(100)}.cs")); 771return new FuzzOp.WriteCsproj(Path.Combine(dirList[random.Next(dirList.Length)], $"New{workspace.Files.Count + random.Next(100)}.csproj"));
LspFileChangeWatcherTests.cs (1)
91var filePath = Path.Combine(tempDirectory.Path, "SingleFile.txt");
Utilities\AbstractLanguageServerClientTests.cs (2)
46var projectPath = Path.Combine(projectDirectory.Path, "Project.csproj"); 60var codePath = Path.Combine(projectDirectory.Path, "Code.cs");
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
89: Path.Combine(Path.GetTempPath(), pipeName + ".sock");
Utilities\TestPaths.cs (2)
25=> Path.Combine(AppContext.BaseDirectory, LanguageServerSubdirectory); 27=> Path.Combine(GetLanguageServerDirectory(), LanguageServerAssemblyFileName);
VirtualProjectXmlProviderTests.cs (1)
155var content = await projectProvider.GetVirtualProjectContentAsync(Path.Combine(tempDir.Path, "BAD"), LoggerFactory.CreateLogger<VirtualProjectXmlProviderTests>(), CancellationToken.None);
VSCodeSettingsTests.cs (1)
60var settingsPath = Path.Combine(settingsDirectory.Path, "settings.json");
WorkspaceProjectFactoryServiceTests.cs (2)
61return Path.Combine("Z:\\", relativePath); 63return Path.Combine("//", relativePath);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (2)
DeclarePublicAPIAnalyzerTestsBase.cs (2)
921var shippedFilePath = Path.Combine(tempPath, ShippedFileName); 922var unshippedFilePath = Path.Combine(tempPath, UnshippedFileName);
Microsoft.CodeAnalysis.Razor.Workspaces (7)
CodeActions\Razor\ComponentAccessibilityCodeActionProvider.cs (1)
106var newComponentPath = Path.Combine(directoryName, $"{startTag.Name.Content}.razor");
CodeActions\Razor\ExtractToComponentCodeActionResolver.cs (1)
47var templatePath = Path.Combine(directoryName, "Component.razor");
Formatting\FormattingLogger.cs (1)
33var filePath = Path.Combine(_logFolder, fileName);
Formatting\FormattingLoggerFactory.cs (1)
25var logFolder = Path.Combine(BaseLogDir, folder);
GoToDefinition\AbstractDefinitionService.cs (2)
169var candidatePath = Path.GetFullPath(Path.Combine(projectDirectory, relativePath)); 183var candidatePath = Path.GetFullPath(Path.Combine(currentDocumentDirectory, normalizedPath));
Rename\RenameService.cs (1)
147return Path.Combine(directoryName, newFileName);
Microsoft.CodeAnalysis.Rebuild.UnitTests (7)
RebuildCommandLineTests.cs (7)
26internal static string OutputDirectory { get; } = Path.Combine(TestableCompiler.RootDirectory, "output"); 38FilePathToStreamMap.Add(Path.Combine(BuildPaths.WorkingDirectory, filePath), new TestableFile(content)); 45filePath = Path.Combine(OutputDirectory, filePath); 194AddSourceFile(Path.Combine("dir1", "lib1.cs"), @" 228Permutate(new CommandInfo($"lib4.cs {Path.Combine("dir1", "lib1.cs")} /target:library", "test.dll", null), 390AddSourceFile(Path.Combine("dir1", "lib1.vb"), @" 424new CommandInfo(@$"lib2.vb {Path.Combine("dir1", "lib1.vb")} /target:library /debug:embedded", "test.dll", null),
Microsoft.CodeAnalysis.Remote.Razor (3)
RazorAssemblyLoadContext.cs (1)
31var fileName = Path.Combine(_baseDirectory, assemblyName.Name + ".dll");
RemoteMefComposition.cs (2)
125var tempFilePath = Path.Combine(cacheDirectory, Path.GetRandomFileName()); 180return Path.Combine(cacheDirectory, $"razor.mef.{hashAsBase64String}.cache");
Microsoft.CodeAnalysis.Remote.Razor.UnitTests (4)
RemoteMefCompositionTest.cs (4)
73File.WriteAllText(Path.Combine(cacheDirectory, Path.GetRandomFileName()), ""); 74File.WriteAllText(Path.Combine(cacheDirectory, Path.GetRandomFileName()), ""); 75File.WriteAllText(Path.Combine(cacheDirectory, Path.GetRandomFileName()), ""); 76File.WriteAllText(Path.Combine(cacheDirectory, Path.GetRandomFileName()), "");
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteAnalyzerPathResolver.cs (1)
20=> Path.GetFullPath(Path.Combine(_baseDirectory, Path.GetFileName(analyzerPath)));
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
284var logPath = Path.Combine(Path.GetTempPath(), "VSLogs");
Microsoft.CodeAnalysis.Remote.Workspaces (2)
ExportProviderBuilder.cs (2)
112return Path.Combine(CacheDirectory, $"{CatalogPrefix}.{ComputeAssemblyHash(AssemblyPaths)}{CatalogSuffix}"); 160var tempFilePath = Path.Combine(directory, Path.GetRandomFileName());
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Verifiers\CSharpSourceGeneratorVerifier`1+Test.cs (1)
139var filePath = Path.Combine(resourceDirectory, name);
Verifiers\VisualBasicSourceGeneratorVerifier`1+Test.cs (1)
124var filePath = Path.Combine(resourceDirectory, name);
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\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.Scripting.Desktop.UnitTests (2)
MetadataShadowCopyProviderTests.cs (2)
230Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @"a.xml"), sc.DocumentationFile.FullPath); 242Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @"a.xml"), sc.DocumentationFile.FullPath);
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
TestRuntimeMetadataReferenceResolver.cs (2)
31string testDependencyAssemblyPath = Path.Combine(testDir, name + ".dll"); 38string fxAssemblyPath = Path.Combine(fxDir, name + ".dll");
Microsoft.CodeAnalysis.Test.Utilities (31)
Assert\ArtifactUploadUtil.cs (4)
78uploadDir = Path.Combine(uploadDir, _baseDirectoryName); 85File.Copy(filePath, Path.Combine(uploadDir, fileName)); 91var destDirectory = Path.Combine(uploadDir, Path.GetFileName(directory)); 103destFilePath = Path.Combine(destDirectory, destFilePath);
Assert\ConditionalFactAttribute.cs (1)
174var path = Path.GetFullPath(Path.Combine(tempDir, "aux.txt"));
CompilationVerifier.cs (4)
111string modulePath = Path.Combine(dumpDir, emitData.EmittedModule.SimpleName + extension); 213string pePath = Path.Combine(dumpDirectory, fileName + module.Kind.GetDefaultExtension()); 230pdbPath = Path.Combine(dumpDirectory, fileName + ".pdb"); 262File.WriteAllText(Path.Combine(dumpDirectory, "log.txt"), sb.ToString());
DotNetCoreSdk.cs (2)
29&& File.Exists(Path.Combine(directory, dotNetExeName)); 41ExePath = Path.Combine(dotNetInstallDir, dotNetExeName);
Metadata\IlasmUtilities.cs (2)
43return Path.Combine( 82assemblyPath = Path.Combine(
Platform\CoreClr\AssemblyLoadContextUtils.cs (1)
32var assemblyPath = Path.Combine(_probingPath, $"{assemblyName.Name}.dll");
TempFiles\TempDirectory.cs (5)
36string dir = System.IO.Path.Combine(basePath, Guid.NewGuid().ToString()); 60string filePath = System.IO.Path.Combine(_path, name); 70string filePath = System.IO.Path.Combine(_path, name); 80string filePath = System.IO.Path.Combine(_path, name ?? System.IO.Path.GetFileName(originalPath)); 91string dirPath = System.IO.Path.Combine(_path, name);
TempFiles\TempFile.cs (1)
38_path = System.IO.Path.Combine(directory ?? TempRoot.Root, prefix + Guid.NewGuid() + (extension ?? ".tmp"));
TempFiles\TempRoot.cs (2)
45tempDirectory = new DirectoryInfo(Path.GetFullPath(Path.Combine(realPath, relativePath))); 50Root = Path.Combine(tempDirectory.FullName, "RoslynTests");
TestableCompiler.cs (8)
51clientDir: Path.Combine(RootDirectory, "compiler"), 52workingDir: Path.Combine(RootDirectory, "source"), 53sdkDir: Path.Combine(RootDirectory, "sdk"), 78filePath = Path.Combine(BuildPaths.WorkingDirectory, filePath); 86filePath = Path.Combine(BuildPaths.SdkDirectory!, filePath); 94filePath = Path.Combine(BuildPaths.WorkingDirectory, filePath); 174args.Add($@"-vbruntime:""{Path.Combine(buildPaths.SdkDirectory, "Microsoft.VisualBasic.dll")}"""); 217fileSystem.Map[Path.Combine(sdkPath, referenceInfo.FileName)] = new TestableFile(referenceInfo.ImageBytes);
TestHelpers.cs (1)
205=> Path.Combine(Path.GetTempPath(), suffix);
Microsoft.CodeAnalysis.UnitTests (15)
AnalyzerAssemblyLoaderTests.cs (3)
276var path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".dll"); 341var analyzerPath = Path.Combine(tempDir.CreateDirectory("a").Path, "analyzer.dll"); 461var assemblyPath = Path.Combine(assemblyDir, assemblyFileName);
Analyzers\AnalyzerFileReferenceTests.cs (3)
66var path1 = Path.Combine(TempRoot.Root, "dir"); 164AnalyzerFileReference reference = CreateAnalyzerFileReference(Path.Combine(TempRoot.Root, "random.dll")); 482var generatorPath = Path.Combine(directory.Path, $"generator_{targetFramework}.dll");
FileSystem\PathUtilitiesTests.cs (4)
123: Path.Combine(expectedParentPath, directoryName); 392Assert.Equal(Path.Combine(path1, path2), PathUtilities.CombinePaths(path1, path2)); 409Assert.Equal(Path.Combine(path1, path2), PathUtilities.CombinePaths(path1, path2)); 421Assert.Equal(Path.Combine(path1, path2), PathUtilities.CombinePaths(path1, path2));
ShadowCopyAnalyzerPathResolverTests.cs (5)
55var analyzerPath = Path.Combine(TempRoot.CreateDirectory().Path, "analyzer.dll"); 63var analyzerPath = Path.Combine(TempRoot.CreateDirectory().Path, "analyzer.dll"); 78var analyzer1Path = Path.Combine(dir, "analyzer1.dll"); 80var analyzer2Path = Path.Combine(dir, "analyzer2.dll"); 103var filePath = Path.Combine(groupDir, name);
Microsoft.CodeAnalysis.Workspaces (17)
Rename\ConflictEngine\MutableConflictResolution.cs (2)
106var newDocumentFilePath = Path.Combine(directory, newName); 121newDocumentFilePath = Path.Combine(directory, newName);
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\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
35DotNetPath = Path.Combine(programFilesPath, "dotnet");
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\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
152Path.Combine(directoryName, LockFile),
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\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
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.CodeAnalysis.Workspaces.MSBuild.UnitTests (17)
DefaultBinLogPathProviderTests.cs (2)
27var logPath = Path.Combine(RelativeLogDirectory, LogFileName + LogExtension); 35var logPath = Path.Combine(LogDirectory, LogFileName);
NetCoreTests.cs (3)
57RunDotNet($@"msbuild ""{normalizedPath}"" /t:restore /bl:{Path.Combine(SolutionDirectory.Path, "restore.binlog")}"); 63var arguments = $@"msbuild ""{normalizedPath}"" /bl:{Path.Combine(SolutionDirectory.Path, "build.binlog")}"; 111var binLogPath = Path.Combine(projectDir, "build.binlog");
NewlyCreatedProjectsFromDotNetNew.cs (4)
39var globalJsonPath = Path.Combine(GetSolutionFolder(), "global.json"); 184return Path.Combine(projectDirectory, $"{projectName}.{projectExtension}"); 229var tempGlobalJsonPath = Path.Combine(outputDirectory, "global.json"); 239binlogPath = Path.Combine(helixDumpFolder, Path.ChangeExtension(Path.GetFileName(projectFilePath), ".binlog"));
ProjectGuardFiles.cs (5)
19File.WriteAllText(Path.Combine(Path.GetTempPath(), "global.json"), 26File.WriteAllText(Path.Combine(Path.GetTempPath(), "Directory.Build.props"), 44File.WriteAllText(Path.Combine(Path.GetTempPath(), "Directory.Build.rsp"), 49File.WriteAllText(Path.Combine(Path.GetTempPath(), "Directory.Build.targets"), 58File.WriteAllText(Path.Combine(Path.GetTempPath(), "NuGet.Config"),
Utilities\DotNetSdkMSBuildInstalled.cs (1)
18var solution = Path.Combine(GetSolutionFolder(), "Roslyn.slnx");
VisualStudioMSBuildWorkspaceTests.cs (1)
835var expectedOutputPath = Path.Combine(Path.GetDirectoryName(project.FilePath), @"bin");
WorkspaceTestBase.cs (1)
38return Path.Combine(this.SolutionDirectory.Path, NormalizePath(relativeFileName));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
SolutionUtilities.cs (1)
116assemblyPath: Path.Combine(TempRoot.Root, name),
Workspaces\TestWorkspace_XmlConsumption.cs (1)
676var filePath = resolveFilePath is null or true ? Path.Combine(TestWorkspace.RootDirectory, fileName) : fileName;
Workspaces\TestWorkspace_XmlCreation.cs (1)
43file, Path.Combine(folders, GetDefaultTestSourceDocumentName(index++, extension)), folders: folders, parseOptions: parseOptions, isMarkup: isMarkup));
Microsoft.CodeAnalysis.Workspaces.UnitTests (58)
CommandLineProject\CommandLineProjectTests.cs (7)
24var commandLine = Path.Combine("..", "goo.cs"); 65var commandLine = Path.Combine("subdir", "goo.cs"); 78var commandLine = Path.Combine(baseDir, "goo.cs"); 113var commandLine = Path.Combine("..", "goo.cs"); 142Assert.Equal(Path.Combine(baseDir, ".editorconfig"), document.FilePath); 150var relativePath = Path.Combine(".", Path.GetFileName(pathToAssembly)); 165var relativePath = Path.Combine(".", Path.GetFileName(pathToAssembly));
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
56var commandLine = $"goo.cs {Path.Combine("subdir", "bar.cs")} /out:goo.dll /target:library"; 71Assert.Equal(Path.Combine(baseDir, "goo.cs"), gooDoc.FilePath);
GeneratedCodeRecognitionTests.cs (1)
83var document = project.AddDocument(fileName, "", filePath: Path.Combine(TestHelpers.GetRootedPath(), fileName));
SolutionTests\MetadataServiceTests.cs (1)
54var nonExistentPath = Path.Combine(TempRoot.Root, Guid.NewGuid().ToString() + ".dll");
SolutionTests\SolutionTests.cs (43)
57.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))) 58.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", SourceText.From("public class Goo { }", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "goo.cs")) 60.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(editorConfig ?? "#empty", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")))); 1103.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll")).WithChecksumAlgorithm(SourceHashAlgorithm.Sha1)) 1104.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, "proj2", "proj2", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj2.dll"))) 1105.AddDocument(d1, "d1.cs", SourceText.From("class D1;", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "d1.cs")) 1106.AddDocument(d2, "d2.cs", SourceText.From("class D2;", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "d2.cs")) 1109.AddAnalyzerConfigDocument(c1, "c1", SourceText.From("#empty1", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")) 1110.AddAnalyzerConfigDocument(c2, "c2", SourceText.From("#empty2", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")); 1120loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class NewD1;", Encoding.UTF32, SourceHashAlgorithm.Sha256), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD1.cs"))), 1121filePath: Path.Combine(s_projectDir, "newD1.cs"), 1129loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class NewD3;", Encoding.UTF8, SourceHashAlgorithms.Default), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD3.cs"))), 1130filePath: Path.Combine(s_projectDir, "newD3.cs"), 1139loader: TextLoader.From(TextAndVersion.Create(SourceText.From("new text1", Encoding.UTF32, SourceHashAlgorithm.Sha256), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD1.cs"))), 1140filePath: Path.Combine(s_projectDir, "newA1.txt"), 1148loader: TextLoader.From(TextAndVersion.Create(SourceText.From("new text3", Encoding.UTF8, SourceHashAlgorithms.Default), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD3.cs"))), 1149filePath: Path.Combine(s_projectDir, "newA3.txt"), 1158loader: TextLoader.From(TextAndVersion.Create(SourceText.From("#new empty1", Encoding.UTF32, SourceHashAlgorithm.Sha256), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD1.cs"))), 1159filePath: Path.Combine(s_projectDir, "newC1"), 1167loader: TextLoader.From(TextAndVersion.Create(SourceText.From("#new empty3", Encoding.UTF8, SourceHashAlgorithms.Default), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD3.cs"))), 1168filePath: Path.Combine(s_projectDir, "newC3"), 1175var generatedOutputDir = Path.Combine(TempRoot.Root, "obj"); 1322var docPath = Path.Combine(s_projectDir, "d.cs"); 1325.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "P1", "P1", LanguageNames.CSharp, Path.Combine(s_projectDir, "P1.dll"), parseOptions: parseOptionsA, compilationOptions: compilationOptions)) 1336projectId, VersionStamp.Default, "P2", "P2", LanguageNames.CSharp, Path.Combine(s_projectDir, "P2.dll"), parseOptions: parseOptionsB, compilationOptions: compilationOptions, 1359.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1394.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1429.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1464.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1542var objDir = Path.Combine(TempRoot.Root, "obj"); 1543var binDir = Path.Combine(TempRoot.Root, "bin"); 1544var otherDir = Path.Combine(TempRoot.Root, "other"); 1553.WithOutputFilePath(Path.Combine(binDir, "output.dll")) 1555assemblyPath: Path.Combine(objDir, "output.dll"), 2394var sourcePathOptions = project2.State.GetAnalyzerOptionsForPath(Path.Combine(s_projectDir, "x.cs"), CancellationToken.None); 2454var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2485var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2642var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2671var filePath = Path.Combine(TempRoot.Root, "x.cs"); 5711projectPath = string.IsNullOrEmpty(projectPath) ? projectPath : Path.Combine(TempRoot.Root, projectPath); 5712configPath = Path.Combine(TempRoot.Root, configPath); 5713sourcePath = string.IsNullOrEmpty(sourcePath) ? sourcePath : Path.Combine(TempRoot.Root, sourcePath); 5945.WithCompilationOutputInfo(new CompilationOutputInfo(assemblyPath: Path.Combine(TempRoot.Root, "assembly.dll"), generatedFilesOutputDirectory: null));
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
43var generatedFilesOutputDir = Path.Combine(TempRoot.Root, "gendir"); 1467var analyzerPath = Path.Combine(tempDirectory.Path, "Microsoft.CodeAnalysis.TestAnalyzerReference.dll");
UtilityTest\FilePathUtilitiesTests.cs (2)
33Assert.Equal(expected: Path.Combine("Delta", "Doc.txt"), actual: result); 55Assert.Equal(expected: Path.Combine("..", "Doc.txt"), actual: result);
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.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.Arcade.Sdk.Tests (12)
CentralPackageManagementTests.cs (4)
35var directoryPackagesPropsPath = Path.Combine(s_repoRoot, "Directory.Packages.props"); 107string importPath = Path.GetFullPath(Path.Combine(directory, project)); 149if (File.Exists(Path.Combine(dir, "Directory.Packages.props")) && 160if (File.Exists(Path.Combine(dir, "Directory.Packages.props")) &&
GenerateResxSourceTests.cs (1)
29var actualFile = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName());
GetLicenseFilePathTests.cs (2)
18var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 20var licensePath = Path.Combine(dir, licenseFileName);
Utilities\TestApp.cs (2)
23_logOutputDir = Path.Combine(logOutputDir, Path.GetFileName(workDir)); 112var destFileName = Path.Combine(destDir, srcFileName.Substring(srcDir.Length).TrimStart(new[] { Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar }));
Utilities\TestProjectFixture.cs (3)
35_testAssets = Path.Combine(AppContext.BaseDirectory, "testassets"); 36_boilerPlateDir = Path.Combine(_testAssets, "boilerplate"); 41var testAppFiles = Path.Combine(_testAssets, name);
Microsoft.DotNet.ArcadeAzureIntegration (1)
AzureCliCredentialWithAzNoUpdateWrapper.cs (1)
62fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
Microsoft.DotNet.Baselines.Tasks (1)
PRCreator.cs (1)
108string path = Path.Combine(relativePath, item.Path);
Microsoft.DotNet.Build.Manifest.Tests (6)
BuildModelFactoryTests.cs (6)
99var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 228var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 350var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.zip")); 387var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 433var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 582var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg"));
Microsoft.DotNet.Build.Tasks.Feed (15)
src\common\LatestLinksManager.cs (1)
142return Path.Combine(latestLinkShortUrlPrefix, blobIdWithoutVersions).Replace("\\", "/");
src\ConfigureInputFeed.cs (1)
30string nugetConfigLocation = Path.Combine(RepoRoot, "NuGet.config");
src\PublishArtifactsInManifestBase.cs (10)
499string localSymbolPath = Path.Combine(temporarySymbolsDirectory, symbolPackageName); 558int result = await helper.AddPackagesToRequest(requestName, symbolPackages.Select(x => Path.Combine(BlobAssetsBasePath, x.Id))); 800FileInfo pdbStagingPath = new(Path.Combine(pdbStagePath, subPath)); 828FileInfo looseFileStagePath = new(Path.Combine(pdbStagePath, relativePath)); 1230Path.Combine(PackageAssetsBasePath, $"{package.Id}.{package.Version}.nupkg"); 1273Path.GetFullPath(Path.Combine(ArtifactsBasePath, Guid.NewGuid().ToString())); 1275string localPackagePath = Path.Combine(temporaryPackageDirectory, packageFilename); 1585Path.GetFullPath(Path.Combine(ArtifactsBasePath, Guid.NewGuid().ToString())); 1668var localBlobPath = Path.Combine(temporaryBlobDirectory, fileName); 1748var localBlobPath = Path.Combine(BlobAssetsBasePath, fileName);
src\PublishBuildToMaestro.cs (1)
142string mergedManifestPath = Path.Combine(GetAzDevStagingDirectory(), MergedManifestFileName);
src\PublishSignedAssets.cs (2)
81string packagesFolder = Path.Combine(assetsFolder, "packages"); 97string localPackagePath = Path.Combine(packagesFolder, $"{package.Id}.{package.Version}.nupkg");
Microsoft.DotNet.Build.Tasks.Feed.Tests (14)
DownloadFileTests.cs (8)
55var testFile = Path.Combine("Symbols", _testTextFile); 124var testFile = Path.Combine("Symbols", _testTextFile); 193var testFile = Path.Combine("Symbols", _testTextFile); 196Content = new ByteArrayContent(TestInputs.ReadAllBytes(Path.Combine("Symbols", _testTextFile))) 201Content = new ByteArrayContent(TestInputs.ReadAllBytes(Path.Combine("Symbols", _testSymbolPackage))) 272var testFile = Path.Combine("Symbols", _testTextFile); 328var testFile = Path.Combine("Symbols", _testTextFile); 402var testFile = Path.Combine("Symbols", _testTextFile);
GeneralTests.cs (3)
130var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.zip")); 138var content = TestInputs.ReadAllBytes(Path.Combine("Nupkgs", $"{feedResponseContentName}.zip")); 163var testPackageName = Path.Combine("Nupkgs", "test-package-a.zip");
PublishArtifactsInManifestTests.cs (3)
121var manifestFullPath = TestInputs.GetFullPath(Path.Combine("Manifests", "SampleV3.xml")); 147var manifestFullPath = TestInputs.GetFullPath(Path.Combine("Manifests", "SampleV4.xml")); 282var testPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg"));
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)
255return Path.Combine(nupkgOutputDirectory, $"{id}.{version}{nupkgExtension}"); 361string packedPackageSourcePath = Path.Combine(Path.GetDirectoryName(fileName), string.Join(".", _packageNamePrefix, Path.GetFileName(fileName)));
PackageItem.cs (1)
52TargetPath = Path.Combine(TargetPath, sourceFile);
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
HarvestPackageTests.cs (1)
68string packagesCandidate = Path.Combine(candidate, "packages");
Microsoft.DotNet.Build.Tasks.Templating.Tests (6)
GenerateFileFromTemplateTests.cs (6)
16string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 17string filePath = Path.Combine(tempDir, "Directory.Build.props"); 43string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 44string filePath = Path.Combine(tempDir, "Directory.Build.props"); 68string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 69string filePath = Path.Combine(tempDir, "Directory.Build.props");
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.VisualStudio.Tests (30)
OptProf\GenerateTrainingInputFilesTests.cs (23)
137var dir = Path.Combine(temp, Guid.NewGuid().ToString()); 140var configPath = Path.Combine(dir, "OptProf.json"); 143var insertionDir = Path.Combine(dir, "Insertion"); 145CreateVsix(Path.Combine(insertionDir, "Setup.vsix"), manifestContent: s_manifestJson); 147var outputDir = Path.Combine(dir, "Output"); 161Path.Combine(outputDir, @"DDRIT.RPS.CSharp"), 162Path.Combine(outputDir, @"TeamEng"), 163Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations"), 164Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging"), 165Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.EditingAndDesigner"), 166Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\System.Collections.Immutable.0.IBC.json"), 167Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\System.Collections.Immutable.1.IBC.json"), 168Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\xyzMicrosoft.CodeAnalysis.0.IBC.json"), 169Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.EditingAndDesigner\xyzMicrosoft.CodeAnalysis.CSharp.0.IBC.json"), 170Path.Combine(outputDir, @"TeamEng\Configurations"), 171Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble"), 172Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble\xyzMicrosoft.CodeAnalysis.0.IBC.json"), 173Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble\xyzMicrosoft.CodeAnalysis.CSharp.0.IBC.json"), 174Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble\xyzMicrosoft.CodeAnalysis.VisualBasic.0.IBC.json") 178var json = File.ReadAllText(Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\System.Collections.Immutable.0.IBC.json")); 189json = File.ReadAllText(Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\System.Collections.Immutable.1.IBC.json")); 200json = File.ReadAllText(Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.EditingAndDesigner\xyzMicrosoft.CodeAnalysis.CSharp.0.IBC.json")); 210json = File.ReadAllText(Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble\xyzMicrosoft.CodeAnalysis.VisualBasic.0.IBC.json"));
OptProf\GenerateTrainingPropsFileTests.cs (4)
16var dir = Path.Combine(temp, Guid.NewGuid().ToString()); 27var actual = File.ReadAllText(Path.Combine(dir, "dotnet.roslyn.props")); 44var dir = Path.Combine(temp, Guid.NewGuid().ToString()); 55var actual = File.ReadAllText(Path.Combine(dir, "ProfilingInputs.props"));
OptProf\GetRunSettingsSessionConfigurationTests.cs (3)
416var dir = Path.Combine(temp, Guid.NewGuid().ToString()); 419var configPath = Path.Combine(dir, "OptProf.json"); 422var bootstrapperPath = Path.Combine(dir, "BootstrapperInfo.json");
Microsoft.DotNet.Build.Tasks.Workloads (33)
EmbeddedTemplates.cs (1)
41string destinationPath = Path.Combine(destinationFolder, destinationFilename);
Msi\MsiBase.wix.cs (1)
155string eulaRtf = Path.Combine(WixSourceDirectory, "eula.rtf");
Msi\WorkloadManifestMsi.wix.cs (6)
50string packageContentWxs = Path.Combine(WixSourceDirectory, "PackageContent.wxs"); 51string packageDataDirectory = Path.Combine(Package.DestinationDirectory, "data"); 77jsonContentWxs = Path.Combine(WixSourceDirectory, "JsonContent.wxs"); 80jsonDirectory = Path.Combine(WixSourceDirectory, "json"); 83string jsonFullPath = Path.GetFullPath(Path.Combine(jsonDirectory, "WorkloadPackGroups.json")); 157ITaskItem msi = Link(candle.OutputPath, Path.Combine(outputPath, OutputName), iceSuppressions);
Msi\WorkloadPackGroupMsi.wix.cs (2)
40string packageContentWxs = Path.Combine(WixSourceDirectory, $"PackageContent.{pack.Id}.wxs"); 143string msiFileName = Path.Combine(outputPath, OutputName);
Msi\WorkloadPackMsi.wix.cs (2)
31string packageContentWxs = Path.Combine(WixSourceDirectory, "PackageContent.wxs"); 77ITaskItem msi = Link(candle.OutputPath, Path.Combine(outputPath, OutputName), iceSuppressions);
Msi\WorkloadSetMsi.wix.cs (3)
32string packageContentWxs = Path.Combine(WixSourceDirectory, "PackageContent.wxs"); 33string packageDataDirectory = Path.Combine(_package.DestinationDirectory, "data"); 74ITaskItem msi = Link(candle.OutputPath, Path.Combine(outputPath, OutputName), iceSuppressions);
ProjectTemplateBase.cs (1)
62public string SourceDirectory => Path.Combine(BaseIntermediateOutputPath, "src");
Swix\ComponentSwixProject.cs (1)
79Path.Combine(base.GetRelativePackagePath(), "_package.json");
Swix\MsiSwixProject.wix.cs (2)
104return Path.Combine(relativePath, Path.GetFileName(_msi.ItemSpec)); 115using StreamWriter msiWriter = File.CreateText(Path.Combine(ProjectSourceDirectory, "msi.swr"));
Swix\SwixProjectBase.cs (1)
52protected string SwixDirectory => Path.Combine(SourceDirectory, "swix");
VisualStudioWorkloadTaskBase.wix.cs (2)
67protected string MsiOutputPath => Path.Combine(BaseOutputPath, "msi"); 72protected string PackageRootDirectory => Path.Combine(BaseIntermediateOutputPath, "pkg");
WorkloadManifestPackage.wix.cs (1)
111string secondaryManifest = Path.Combine(DestinationDirectory, ManifestFileName);
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"));
WorkloadPackPackage.wix.cs (2)
71string sourcePackage = Path.Combine(packageSource, $"{pack.AliasTo[rid]}.{pack.Version}.nupkg"); 99yield return (Path.Combine(packageSource, $"{pack.Id}.{pack.Version}.nupkg"), CreateVisualStudioWorkload.SupportedPlatforms);
WorkloadSetPackage.wix.cs (1)
100string dataDirectory = Path.Combine(DestinationDirectory, "data");
Microsoft.DotNet.Build.Tasks.Workloads.Tests (47)
CreateVisualStudioWorkloadSetTests.cs (4)
22string baseIntermediateOutputPath = Path.Combine(Path.GetTempPath(), "WLS"); 31new TaskItem(Path.Combine(TestAssetsPath, "microsoft.net.workloads.9.0.100.9.0.100-baseline.1.23464.1.nupkg")) 71string msiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(workloadSetSwixItem.ItemSpec), "msi.swr")); 82string packageGroupSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(workloadSetPackageGroupSwixItem.ItemSpec), "packageGroup.swr"));
CreateVisualStudioWorkloadTests.cs (8)
26string baseIntermediateOutputPath = Path.Combine(Path.GetTempPath(), "WL"); 35new TaskItem(Path.Combine(TestBase.TestAssetsPath, "microsoft.net.workload.emscripten.manifest-6.0.200.6.0.4.nupkg")) 95Path.Combine(Path.GetDirectoryName( 100Path.Combine(Path.GetDirectoryName( 144string packMsiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(pythonPackSwixItem.ItemSpec), "msi.swr")); 162string baseIntermediateOutputPath = Path.Combine(Path.GetTempPath(), "WLa64"); 171new TaskItem(Path.Combine(TestBase.TestAssetsPath, "microsoft.net.workload.emscripten.manifest-6.0.200.6.0.4.nupkg")) 230Path.Combine(Path.GetDirectoryName(
MsiTests.cs (9)
23string packageRootDirectory = Path.Combine(PackageRootDirectory, Guid.NewGuid().ToString("N")); 35ITaskItem msi603 = BuildManifestMsi(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg"), 36msiOutputPath: Path.Combine(MsiOutputPath, "mrec")); 48ITaskItem msi603 = BuildManifestMsi(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg")); 52ITaskItem msi604 = BuildManifestMsi(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.4.nupkg")); 82string packageRootDirectory = Path.Combine(PackageRootDirectory, Guid.NewGuid().ToString("N")); 83TaskItem packageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg")); 112string packageRootDirectory = Path.Combine(PackageRootDirectory, Guid.NewGuid().ToString("N")); 113string packagePath = Path.Combine(TestAssetsPath, "microsoft.ios.templates.15.2.302-preview.14.122.nupkg");
PackageTests.cs (4)
20string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, "pkg"); 22TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.300.6.0.22.nupkg")); 46string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, "wls-pkg"); 48ITaskItem workloadSetPackageItem = new TaskItem(Path.Combine(TestAssetsPath, "microsoft.net.workloads.9.0.100.9.0.100-baseline.1.23464.1.nupkg"));
SwixComponentTests.cs (12)
31string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 35string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 60string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 65string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 89string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 94string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 115string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 129string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 158string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 174string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 189string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 199File.OpenRead(Path.Combine(TestAssetsPath, filename)), filename);
SwixPackageGroupTests.cs (3)
25string destinationBaseDirectory = Path.Combine(BaseIntermediateOutputPath, destinationDirectory); 26TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, manifestPackageFilename)); 37string packageGroupSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(packageGroupItem.ItemSpec), "packageGroup.swr"));
SwixPackageTests.cs (3)
44string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, Path.GetRandomFileName()); 45string packagePath = Path.Combine(TestAssetsPath, $"microsoft.ios.templates.{packageVersion}.nupkg"); 62string msiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "msi.swr"));
TestBase.cs (4)
14public static readonly string MsiOutputPath = Path.Combine(BaseOutputPath, "msi"); 15public static readonly string TestAssetsPath = Path.Combine(AppContext.BaseDirectory, "testassets"); 17public static readonly string WixToolsetPath = Path.Combine(TestAssetsPath, "wix"); 19public static readonly string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, "pkg");
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.GenAPI (1)
GenAPITask.cs (1)
290return File.CreateText(Path.Combine(outFilePath, filename));
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.Helix.Sdk (7)
CommandPayload.cs (2)
23var dir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"))); 56var scriptFile = new FileInfo(Path.Combine(Directory.FullName, name));
DownloadFromResultsContainer.cs (5)
52DirectoryInfo directory = Directory.CreateDirectory(Path.Combine(OutputDirectory, JobId)); 53using (FileStream stream = File.Open(Path.Combine(directory.FullName, MetadataFile), FileMode.Create, FileAccess.Write)) 77DirectoryInfo destinationDir = Directory.CreateDirectory(Path.Combine(directoryPath, workItemName)); 82string destinationFile = Path.Combine(destinationDir.FullName, file); 86Directory.CreateDirectory(Path.Combine(destinationDir.FullName, Path.GetDirectoryName(file)));
Microsoft.DotNet.Helix.Sdk.Tests (2)
HelpersTests.cs (2)
48string target = Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") ?? Environment.GetEnvironmentVariable("TEMP") ?? Environment.GetEnvironmentVariable("TMPDIR"), "my-test-file-123456.snt"); 54target = Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_PAYLOAD"), "my-test-file-123456.snt");
Microsoft.DotNet.Internal.SymbolHelper (9)
SymbolUploadHelper.cs (6)
292string entryPath = Path.Combine(packageExtractDir, entry.FullName); 307manifest = Path.Combine(packageExtractDir, "correlatedSymKeysManifest.json"); 381string convertedPdbPath = Path.Combine(convertedPdbFolder, Path.GetFileName(file)); 399private static string GetConvertedPdbFolder(string filesDir) => Path.Combine(filesDir, ConversionFolderName); 403string tempDir = Path.Combine(_workingDir, Path.GetRandomFileName()); 406tempDir = Path.Combine(_workingDir, Path.GetRandomFileName());
SymbolUploadHelperFactory.cs (3)
46installDirectory ??= Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 158string zipFilePath = Path.Combine(installDirectory, "symbol.zip"); 170private static string GetSymbolToolPathFromInstallDir(string installDirectory) => Path.Combine(installDirectory, "symbol.exe");
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.MacOsPkg.Tests (5)
UnpackPackTests.cs (5)
44(Path.Combine("Payload", "Sample.txt"), nonExecutableFileMode), 51(Path.Combine("Payload", "test.app"), nonExecutableFileMode), 56(Path.Combine("Contents", "Info.plist"), nonExecutableFileMode), 136string componentPkgPath = Path.Combine(unpackInstallerPath, "Simple.pkg"); 155string componentPkgPath = Path.Combine(unpackInstallerPath, "WithApp.pkg");
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.NuGetRepack.Tests (34)
ReplacePackagePartsTests.cs (3)
18var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 22File.WriteAllBytes(originalNupkgPath = Path.Combine(dir, TestResources.MiscPackages.NameSigned), TestResources.MiscPackages.Signed); 25File.WriteAllText(replacementFilePath = Path.Combine(dir, "Replacement.txt"), "<replacement>");
VersionUpdaterTests.cs (31)
59var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 63File.WriteAllBytes(a_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameA), TestResources.DailyBuildPackages.TestPackageA); 64File.WriteAllBytes(b_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameB), TestResources.DailyBuildPackages.TestPackageB); 65File.WriteAllBytes(c_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameC), TestResources.DailyBuildPackages.TestPackageC); 66File.WriteAllBytes(d_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameD), TestResources.DailyBuildPackages.TestPackageD); 67File.WriteAllBytes(g_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameG), TestResources.DailyBuildPackages.TestPackageG); 69var a_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameA); 70var b_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameB); 71var c_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameC); 72var d_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameD); 73var g_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameG); 75var a_rel = Path.Combine(dir, TestResources.ReleasePackages.NameA); 76var b_rel = Path.Combine(dir, TestResources.ReleasePackages.NameB); 77var c_rel = Path.Combine(dir, TestResources.ReleasePackages.NameC); 78var d_rel = Path.Combine(dir, TestResources.ReleasePackages.NameD); 79var g_rel = Path.Combine(dir, TestResources.ReleasePackages.NameG); 102var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 106File.WriteAllBytes(e_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameE), TestResources.DailyBuildPackages.TestPackageE); 107File.WriteAllBytes(f_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameF), TestResources.DailyBuildPackages.TestPackageF); 109var e_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameE); 110var f_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameF); 112var e_rel = Path.Combine(dir, TestResources.ReleasePackages.NameE); 113var f_rel = Path.Combine(dir, TestResources.ReleasePackages.NameF); 130var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 134File.WriteAllBytes(a_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameA), TestResources.DailyBuildPackages.TestPackageA); 135File.WriteAllBytes(b_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameB), TestResources.DailyBuildPackages.TestPackageB); 136File.WriteAllBytes(c_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameC), TestResources.DailyBuildPackages.TestPackageC); 169var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 170var outputDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 174File.WriteAllBytes(dotnet_tool = Path.Combine(dir, TestResources.MiscPackages.NameDotnetTool), TestResources.MiscPackages.DotnetTool); 176File.WriteAllBytes(normal_package_b_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameB), TestResources.DailyBuildPackages.TestPackageB);
Microsoft.DotNet.Open.Api.Tools.Tests (26)
OpenApiAddFileTests.cs (1)
46Assert.Contains($"The project '{Path.Combine(_tempDir.Root, csproj)}' does not exist.", _error.ToString());
OpenApiAddURLTests.cs (16)
37var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 70var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 103var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 136var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 168var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 200var firstJsonFile = Path.Combine(_tempDir.Root, firstExpectedJsonName); 228var secondJsonFile = Path.Combine(_tempDir.Root, secondExpectedJsonName); 260var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 292var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 308var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl, "--output-file", Path.Combine("outputdir", "file.yaml") }); 312var expectedJsonName = Path.Combine("outputdir", "file.yaml"); 324var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 340var outputFile = Path.Combine("outputdir", "file.yaml"); 345var expectedJsonName = Path.Combine("outputdir", "file.yaml"); 357var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 442var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName);
OpenApiRefreshTests.cs (3)
25var expectedJsonPath = Path.Combine(_tempDir.Root, "filename.json"); 55var expectedJsonPath = Path.Combine(_tempDir.Root, "filename.json"); 83var expectedJsonPath = Path.Combine(_tempDir.Root, "filename.json");
OpenApiRemoveTests.cs (2)
56Assert.False(File.Exists(Path.Combine(_tempDir.Root, nswagJsonFile))); 186Assert.False(File.Exists(Path.Combine(_tempDir.Root, nswagJsonFile)));
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
30public string Path => System.IO.Path.Combine(_directory.Root, _filename);
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this); 59using (var stream = File.OpenRead(Path.Combine("TestContent", $"{name}.txt"))) 98File.WriteAllText(Path.Combine(Root, filename), contents);
Microsoft.DotNet.RemoteExecutor (5)
RemoteExecutor.cs (3)
76string dotnetExe = IOPath.Combine(directory, hostName); 650.Select(asm => System.IO.Path.Combine(AppContext.BaseDirectory, asm.GetName().Name + ".runtimeconfig.json")) 655.Select(asm => System.IO.Path.Combine(AppContext.BaseDirectory, asm.GetName().Name + ".deps.json"))
RemoteInvokeHandle.cs (1)
157string miniDmpPath = Path.Combine(uploadPath, $"{Process.Id}.{Path.GetRandomFileName()}.dmp");
RemoteInvokeOptions.cs (1)
37public string ExceptionFile { get; } = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.SetupNugetSources.Tests (24)
BoundaryConditionTests.cs (6)
44var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 72var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 101var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 119var nonExistentPath = Path.Combine(_testOutputDirectory, "nonexistent.config"); 141var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 170var configPath = Path.Combine(_testOutputDirectory, "nuget.config");
CredentialHandlingTests.cs (5)
48var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 86var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 128var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 160var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 198var configPath = Path.Combine(_testOutputDirectory, "nuget.config");
FeedEnablingTests.cs (5)
53var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 93var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 127var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 160var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 193var configPath = Path.Combine(_testOutputDirectory, "nuget.config");
InternalFeedAdditionTests.cs (3)
54var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 87var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 124var configPath = Path.Combine(_testOutputDirectory, "nuget.config");
NoChangeScenarioTests.cs (2)
49var configPath = Path.Combine(_testOutputDirectory, "nuget.config"); 73var configPath = Path.Combine(_testOutputDirectory, "nuget.config");
SetupNugetSourcesFixture.cs (3)
21var scaffoldRoot = Path.Combine(AppContext.BaseDirectory, "RepoScaffold"); 38Directory.CreateDirectory(Path.Combine(destinationDir, relative)); 44var destPath = Path.Combine(destinationDir, relative);
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.SignCheckLibrary (23)
Interop\StructuredStorage.cs (2)
118string storageFullName = Path.Combine(storageDir, storageName + storageExtension); 146string path = Path.Combine(dir, (string)record["Name"]);
Utils.cs (1)
206string keyPath = Path.Combine(tempDir, Path.GetFileName(keyUrl));
Verification\ArchiveVerifier.cs (3)
108Path.Combine(svr.VirtualPath, archiveEntry.RelativePath)); 136Path.Combine(svr.VirtualPath, fullName), fullName); 141archiveMap[fullName], svr.VirtualPath, Path.Combine(svr.VirtualPath, fullName), e);
Verification\DebVerifier.cs (2)
30signableContent = Path.Combine(tempDir, "signableContent"); 85string entryPath = Path.Combine(workingDir, archiveEntry.RelativePath);
Verification\ExeVerifier.cs (1)
44var payloadPath = Path.Combine(svr.VirtualPath, Path.GetFileName(file));
Verification\LzmaVerifier.cs (2)
30string destinationFile = Path.Combine(tempPath, Path.GetFileNameWithoutExtension(path)); 35svr.NestedResults.Add(VerifyFile(destinationFile, parent, Path.Combine(svr.VirtualPath, destinationFile), containerPath: null));
Verification\MachOVerifier.cs (1)
149string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\MsiVerifier.cs (4)
43string targetPath = Path.Combine(svr.TempPath, name); 57SignatureVerificationResult packageFileResult = VerifyFile(installPackage.Files[key].TargetPath, svr.Filename, Path.Combine(svr.VirtualPath, originalFiles[key]), containerPath: null); 84string binaryFilePath = Path.Combine(svr.TempPath, binaryFile); 86SignatureVerificationResult binaryStreamResult = VerifyFile(binaryFilePath, svr.Filename, Path.Combine(svr.VirtualPath, binaryFile), containerPath: null);
Verification\MspVerifier.cs (1)
31svr.NestedResults.Add(VerifyFile(file, svr.Filename, Path.Combine(svr.VirtualPath, file), containerPath: null));
Verification\MsuVerifier.cs (1)
36SignatureVerificationResult cabEntryResult = VerifyFile(cabFile, svr.Filename, Path.Combine(svr.VirtualPath, cabFile), cabFileFullName);
Verification\PgpVerifier.cs (2)
49string signatureDocument = Path.Combine(tempDir, Path.GetFileName(signature)); 62string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\PkgVerifier.cs (1)
37string extractionPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\RpmVerifier.cs (2)
50string signatureDocument = Path.Combine(tempDir, "signableContent"); 51string signableContent = Path.Combine(tempDir, "pgpSignableContent");
Microsoft.DotNet.SignCheckTask (3)
src\SignCheck.cs (3)
21private static readonly string _appData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SignCheck"); 211string downloadPath = Path.Combine(_appData, Path.GetFileName(uriResult.LocalPath)); 488string downloadPath = Path.Combine(_appData, Path.GetFileName(uri.LocalPath));
Microsoft.DotNet.SignTool (37)
src\BatchSignUtil.cs (1)
168var workingDirectory = Path.Combine(_signTool.TempDir, "engines");
src\Configuration.cs (1)
127_pathToContainerUnpackingDirectory = Path.Combine(tempDir, "ContainerSigning");
src\SignTool.cs (10)
137var dir = Path.Combine(_args.TempDir, "Signing"); 152var signProjectPath = Path.Combine(dir, $"Round{round}-Sign.proj"); 155status = RunMSBuild(buildEngine, signProjectPath, Path.Combine(_args.LogDir, $"{signingLogName}.binlog"), Path.Combine(_args.LogDir, $"{signingLogName}.log"), Path.Combine(_args.LogDir, $"{signingLogName}.error.log")); 184var notarizeProjectPath = Path.Combine(dir, $"Round{round}-Notarize.proj"); 201Path.Combine(_args.LogDir, $"{notarizeLogName}.binlog"), 202Path.Combine(_args.LogDir, $"{notarizeLogName}.log"), 203Path.Combine(_args.LogDir, $"{notarizeLogName}.error.log"), 315var zipFilePath = Path.Combine(Path.GetDirectoryName(fullPath), Path.GetFileName(fullPath) + ".zip");
src\VerifySignatures.cs (6)
37string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 72string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 79string signableContent = Path.Combine(tempDir, "signableContent"); 80string pgpSignableContent = Path.Combine(tempDir, "pgpSignableContent"); 231string keyPath = Path.Combine(tempDir, Path.GetFileName(keyUrl)); 258string entryPath = Path.Combine(workingDir, entry.RelativePath);
src\ZipData.cs (19)
230string createFileName = Path.Combine(workingDir, "create.cmd"); 231string outputFileName = Path.Combine(outputDir, FileSignInfo.FileName); 307string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 347string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 447string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 488string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 594string controlLayout = Path.Combine(workingDir, "control"); 595string dataLayout = Path.Combine(workingDir, "data"); 602string controlArchive = Path.Combine(workingDir, controlEntry.RelativePath); 608string sumsFile = Path.Combine(workingDir, "md5sums"); 622File.Copy(sumsFile, Path.Combine(controlLayout, "md5sums"), overwrite: true); 625string controlFile = Path.Combine(controlLayout, "control"); 647using FileStream fileStream = File.OpenRead(Path.Combine(controlLayout, relativeName)); 769string workingDir = Path.Combine(tempDir, Guid.NewGuid().ToString().Split('-')[0]); 771string layout = Path.Combine(workingDir, "layout"); 778File.Copy(signedPart.FileSignInfo.FullPath, Path.Combine(layout, signedPart.RelativeName), overwrite: true); 782string payload = Path.Combine(workingDir, "payload.cpio"); 806string file = Path.Combine(workingDir, kind); 852string outputPath = Path.Combine(layout, entry.RelativePath);
Microsoft.DotNet.SignTool.Tests (61)
SignToolTests.cs (61)
264_tmpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 290dstDir = Path.Combine(dstDir, relativePath); 294var dstPath = Path.Combine(dstDir, name); 306var dstPath = Path.Combine(_tmpDir, name); 408string tempDir = Path.Combine(_tmpDir, "verification"); 414string controlLayout = Path.Combine(tempDir, "control"); 415string dataLayout = Path.Combine(tempDir, "data"); 426string md5sumsContents = File.ReadAllText(Path.Combine(controlLayout, "md5sums")); 435string layoutFilePath = Path.Combine(dataLayout, targetSystemFilePath); 460string layoutPath = Path.Combine(dataLayout, symlinkPath); 466string resolvedTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(layoutPath)!, expectedTarget)); 473string controlFileContents = File.ReadAllText(Path.Combine(controlLayout, "control")); 480string archive = Path.Combine(destinationFolder, entry.RelativePath); 492string tempDir = Path.Combine(_tmpDir, "verification"); 495string layout = Path.Combine(tempDir, "layout"); 507string layoutFilePath = Path.Combine(layout, targetSystemFilePath); 529string layoutPath = Path.Combine(layout, symlinkPath); 535string resolvedTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(layoutPath)!, expectedTarget)); 563string tempDir = Path.Combine(_tmpDir, "verification"); 566string layout = Path.Combine(tempDir, "tgz"); 575string layoutPath = Path.Combine(layout, symlinkPath); 581string resolvedTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(layoutPath)!, expectedTarget)); 836<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, fileToTest))}""> 983$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "CoreLibCrossARM.dll"))}""> 986<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "AspNetCoreCrossLib.dll"))}""> 1057$@"SIGN004: Signing 3rd party library '{Path.Combine(_tmpDir, "EmptyPKT.dll")}' with Microsoft certificate 'Microsoft400'. The library is considered 3rd party library due to its copyright: ''." 1118$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "engines\\0\\MsiBootstrapper.exe-engine.exe"))}""> 1124$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithWix.nupkg"))}""> 1393$"{Path.Combine(_tmpDir, "ContainerSigning", "6", "InnerZipFile.zip")} -> {Path.Combine(_tmpDir, "InnerZipFile.zip")}", 1394$"{Path.Combine(_tmpDir, "ContainerSigning", "6", "InnerZipFile.zip.sig")} -> {Path.Combine(_tmpDir, "InnerZipFile.zip.sig")}" 1420<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.zip"))}""> 1423<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.tgz"))}""> 1465<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1522<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1593<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1600<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg"))}""> 1653<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "NestedPkg.pkg.zip"))}""> 1699<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "WithApp.pkg.zip"))}""> 1791ValidateProducedTarGZipContent(Path.Combine(_tmpDir, "testSymlinks.tgz"), new[] 1982$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.deb"))}""> 2000ValidateProducedDebContent(Path.Combine(_tmpDir, "test.deb"), expectedFilesOriginalHashes, signableFiles, expectedControlFileContent, expectedSymlinks); 2025$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.rpm"))}""> 2057$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.rpm"))}""> 2074ValidateProducedRpmContent(Path.Combine(_tmpDir, "test.rpm"), expectedFilesOriginalHashes, signableFiles, originalUncompressedPayloadChecksum, expectedSymlinks); 2248$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiBootstrapper.exe"))}""> 2301$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiBootstrapper5.exe"))}""> 2341$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiSetup.msi"))}""> 2355var badPath = Path.Combine(GetWixToolPath(), "badpath"); 2442$"{Path.Combine(_tmpDir, "ContainerSigning", "6", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "PackageWithRelationships.vsix")}" 2467<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2503$"{Path.Combine(_tmpDir, "ContainerSigning", "4", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "PackageWithRelationships.vsix")}" 2528<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "TestSpaces.vsix"))}""> 2580<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 2585<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2647<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2687<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 3180$@"SIGN004: Signing 3rd party library '{Path.Combine(_tmpDir, "EmptyPKT.dll")}' with Microsoft certificate 'DLLCertificate'. The library is considered 3rd party library due to its copyright: ''.", 3185$@"SIGN004: Signing 3rd party library '{Path.Combine(_tmpDir, "Simple.exe")}' with Microsoft certificate 'MacDeveloperHarden'. The library is considered 3rd party library due to its copyright: ''." 3402string createFileName = Path.Combine(workingDir, "create.cmd"); 3403string outputFileName = Path.Combine(outputDir, expectedExe); 3413File.Delete(Path.Combine(workingDir, "bundle.wxs"));
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.SwaggerGenerator.CmdLine (1)
Program.cs (1)
107string fullPath = Path.Combine(outputDirectory.FullName, path);
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
85string fullPath = Path.Combine(outputDirectory.FullName, path);
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.DotNet.XliffTasks.Tests (5)
ResxDocumentTests.cs (2)
55string expectedAbsoluteLocation = Path.Combine( 76Path.Combine(sourceFolder, "Resources.resx"));
VsctDocumentTests.cs (3)
77string expectedAbsoluteLocation = Path.Combine( 99Path.Combine(sourceFolder, "Resources.resx")); 119Path.Combine(Directory.GetCurrentDirectory(), "Resources.resx"));
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.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
97outputPath = Path.Combine(OutputDirectory, outputPath);
Microsoft.Extensions.ApiDescription.Client.Tests (38)
GetOpenApiReferenceMetadataTest.cs (10)
25var outputPath = Path.Combine("obj", "NSwagClient.cs"); 80var outputPath = Path.Combine("obj", $"NSwagClient.cs"); 140var outputPath = Path.Combine("obj", "NSwagClient.cs"); 200var outputPath = Path.Combine(Path.GetTempPath(), $"{className}.cs"); 306var error = Resources.FormatDuplicateFileOutputPaths(Path.Combine("obj", "NSwagClient.cs")); 353var expectedOutputPath = Path.Combine("bin", outputPath); 417var expectedOutputPath = Path.Combine("bin", outputPath); 483var outputPath1 = Path.Combine("obj", $"{className12}.cs"); 484var outputPath2 = Path.Combine("obj", $"{className12}.ts"); 485var outputPath3 = Path.Combine("obj", $"{className3}.cs");
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
30public string Path => System.IO.Path.Combine(_directory.Root, _filename);
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this); 59using (var stream = File.OpenRead(Path.Combine("TestContent", $"{name}.txt"))) 98File.WriteAllText(Path.Combine(Root, filename), contents);
TargetTest.cs (24)
37var directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "build")); 40file.CopyTo(Path.Combine(build.Root, file.Name), overwrite: true); 45file.CopyTo(Path.Combine(build.Root, file.Name), overwrite: true); 52file.CopyTo(Path.Combine(files.Root, file.Name), overwrite: true); 59file.CopyTo(Path.Combine(tasks.Root, file.Name), overwrite: true); 80Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output); 102Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.ts")}", process.Output); 103Assert.Contains($"TypeScriptCompile: {Path.Combine("obj", "azureMonitorClient.ts")}", process.Output); 125Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output); 126Assert.Contains($"FileWrites: {Path.Combine("obj", "NSwagClient.cs")}", process.Output); 127Assert.Contains($"FileWrites: {Path.Combine("obj", "swashbuckleClient.cs")}", process.Output); 179$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 204$"Options: '--an-option' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 229$"Options: '' OutputPath: '{Path.Combine("generated", "azureMonitorClient.cs")}'", 256$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 281$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.ts")}'", 306$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 331$"Options: '--an-option' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 358$"Options: '' OutputPath: '{Path.Combine("obj", "Custom.cs")}'", 382$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 388$"Options: '' OutputPath: '{Path.Combine("obj", "NSwagClient.cs")}'", 394$"Options: '' OutputPath: '{Path.Combine("obj", "swashbuckleClient.cs")}'", 423$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 429$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.ts")}'",
Microsoft.Extensions.ApiDescription.Tool.Tests (39)
GetDocumentTests.cs (35)
25var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 35"--file-list", Path.Combine(outputPath.FullName, "file-list.cache") 39using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 51var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 61"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 66using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 77var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 87"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 93using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 104var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 114"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 119var expectedDocumentPath = Path.Combine(outputPath.FullName, "Sample_internal.json"); 126using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 138var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 148"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 154Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 155Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 156Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_invalid.json"))); 167var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 177"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 182Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 183Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}_internal.json"))); 184Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 185Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 194var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 204"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 211Assert.False(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 212Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 213Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 220var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 230"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 235Assert.False(File.Exists(Path.Combine(outputPath.FullName, ".json"))); 236Assert.False(File.Exists(Path.Combine(outputPath.FullName, "_internal.json"))); 237Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 238Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json")));
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
30public string Path => System.IO.Path.Combine(_directory.Root, _filename);
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this); 59using (var stream = File.OpenRead(Path.Combine("TestContent", $"{name}.txt"))) 98File.WriteAllText(Path.Combine(Root, filename), contents);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Infrastructure\RedisTestConfig.cs (1)
157Path.Combine(tempPath, FunctionalTestsRedisServerExeName + ".exe");
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.FileProviders.Embedded.Tests (4)
ManifestEmbeddedFileProviderTests.cs (4)
65var jqueryValidate = provider.GetFileInfo(Path.Combine("wwwroot", "jquery.validate.js")); 72var jqueryMin = provider.GetFileInfo(Path.Combine("wwwroot", "jquery.min.js")); 79var siteCss = provider.GetFileInfo(Path.Combine("wwwroot", "site.css")); 164var jqueryValidate = provider.GetFileInfo(Path.Combine(folder, file));
Microsoft.Extensions.FileProviders.Physical (6)
PhysicalFileProvider.cs (1)
232fullPath = Path.GetFullPath(Path.Combine(Root, path));
PhysicalFilesWatcher.cs (4)
202var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 320string oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1)); 821while (Path.Combine(watchDir, _expectedName) is var childPath && Directory.Exists(childPath)) 857string 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.Localization.Tests (5)
ResourceManagerStringLocalizerFactoryTest.cs (5)
67var resourceLocationAttribute = new ResourceLocationAttribute(Path.Combine("My", "Resources")); 136var resourcePath = Path.Combine("My", "Resources"); 164var resourcePath = Path.Combine("My", "Resources"); 189locOptions.ResourcesPath = Path.Combine("My", "Resources"); 269locOptions.ResourcesPath = Path.Combine("My", "Resources");
Microsoft.Extensions.Logging.AzureAppServices (2)
FileLoggerProvider.cs (1)
66return Path.Combine(_path, $"{_fileName}{group.Year:0000}{group.Month:00}{group.Day:00}.txt");
SiteConfigurationProvider.cs (1)
14var settingsFile = Path.Combine(settingsFolder, "settings.json");
Microsoft.Extensions.ML.Tests (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.SecretManager.Tools.Tests (16)
InitCommandTest.cs (2)
92var projectFile = Path.Combine(projectDir, "TestProject.csproj"); 104var projectFile = Path.Combine(projectDir, "TestProject.csproj");
MsBuildProjectFinderTest.cs (1)
25Assert.Equal(Path.Combine(files.Root, filename), finder.FindMsBuildProject(null));
SecretManagerTests.cs (7)
44var project = Path.Combine(_fixture.CreateProject(id), "TestProject.csproj"); 54var project = Path.Combine(_fixture.CreateProject("<"), "TestProject.csproj"); 87secretManager.RunInternal("init", "--file", Path.Combine(dir, "app.cs")); 95var cwd = Path.Combine(projectPath, "nested1"); 201Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Project file path {0}.", Path.Combine(projectPath, "TestProject.csproj")), _console.GetOutput()); 208Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Project file path {0}.", Path.Combine(projectPath, "TestProject.csproj")), _console.GetOutput()); 360var project = Path.Combine(projectPath, "TestProject.csproj");
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
30public string Path => System.IO.Path.Combine(_directory.Root, _filename);
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this); 59using (var stream = File.OpenRead(Path.Combine("TestContent", $"{name}.txt"))) 98File.WriteAllText(Path.Combine(Root, filename), contents);
TemporaryFileProvider.cs (1)
21File.WriteAllText(Path.Combine(Root, filename), contents, Encoding.UTF8);
UserSecretsTestFixture.cs (1)
69Path.Combine(projectPath.FullName, "TestProject.csproj"),
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.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
87? Path.Combine(workItemRoot, "snapshots")
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.Sdk.Razor.SourceGenerators.UnitTests (1)
RazorSourceGeneratorTestsBase.cs (1)
309dll = Path.Combine(_baseDirectory, Path.GetFileName(assembly));
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.Extensibility.Testing.Xunit (10)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\DataCollectionService.cs (2)
247return Path.Combine(Path.GetFullPath(logDirectory), $"{timestamp:HH.mm.ss}-{testName}-{errorId}{logId}.{extension}"); 255return Path.GetFullPath(Path.Combine(Environment.GetEnvironmentVariable("XUNIT_LOGS"), "Screenshots"));
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\VisualStudioInstanceFactory.cs (7)
223vsInstallDir = Path.GetFullPath(Path.Combine(vsInstallDir, @"..\..")); 305var vsExeFile = Path.Combine(installationPath, @"Common7\IDE\devenv.exe"); 306var vsRegEditExeFile = Path.Combine(installationPath, @"Common7\IDE\VsRegEdit.exe"); 307var vsixInstallerExeFile = Path.Combine(installationPath, @"Common7\IDE\VSIXInstaller.exe"); 366var installerLog = Path.Combine(Path.GetTempPath(), logFileName); 369var logDestination = Path.Combine(logDir, logFileName); 441var path = Path.Combine(temporaryFolder, extensionFileName);
src\VisualStudio\IntegrationTest\Harness\XUnitShared\InProcess\VisualStudio_InProc.cs (1)
53var path = Path.Combine(directory, new AssemblyName(e.Name).Name + ".dll");
Microsoft.VisualStudio.LanguageServices (13)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (2)
60var vsFeedbackTempDir = Path.Combine(_tempDir, VSFeedbackSemaphoreDir); 61_vsFeedbackSemaphoreFullPath = Path.Combine(vsFeedbackTempDir, VSFeedbackSemaphoreFileName);
Implementation\AbstractEditorFactory.cs (1)
407var editorConfigFile = Path.Combine(folder, EditorConfigFileName);
Interactive\VsResetInteractive.cs (2)
128var scriptsDir = Path.Combine(projectDir, "Scripts"); 129var outputDir = Path.Combine(projectDir, relativeOutputPath);
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
282ProjectSystemProject.OutputFilePath = FileUtilities.NormalizeAbsolutePath(Path.Combine(outputDirectory, targetFileName));
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (2)
139yield return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), @"Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5"); 140yield return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), @"Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0");
ProjectSystem\SdkAnalyzerAssemblyRedirector.cs (2)
39return Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"CommonExtensions\Microsoft\DotNet")); 72var metadataFilePath = Path.Combine(insertedAnalyzersDirectory, "metadata.json");
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
965filePath = Path.Combine(folderPath, uniqueName);
Watson\FaultReporter.cs (1)
284var logPath = Path.Combine(Path.GetTempPath(), "VSLogs");
Workspace\SourceGeneratedFileManager.cs (1)
99_temporaryDirectory = PathUtilities.EnsureTrailingSeparator(Path.Combine(Path.GetTempPath(), "VSGeneratedDocuments"));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (20)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
873solution = solution.AddDocument(id, "file.cs", "class C { void M() }", filePath: Path.Combine(_persistentFolder.Path, "file.cs")); 893solution = solution.AddDocument(id, "file.cs", "class C { void M() }", filePath: Path.Combine(_persistentFolder.Path, "file.cs"));
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (2)
166Path.Combine(Path.GetDirectoryName(project.ProjectFilePath), "generated"), 169var path = Path.Combine(TempRoot.Root, "generated");
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (4)
94var expectedNewBinPath = Path.Combine(Path.GetTempPath(), newBinPath); 101var absoluteObjPath = Path.GetFullPath(Path.Combine(Path.GetTempPath(), relativeObjPath)); 198var path = Path.Combine(TempRoot.Root, "generated"); 206Path.Combine(Path.GetDirectoryName(cpsProject.ProjectFilePath), "gen2"),
ProjectSystemShim\CSharpHelpers.cs (1)
44var binOutputPath = GetOutputPathFromArguments(commandLineArguments) ?? Path.Combine(projectFilePath, projectName + ".dll");
ProjectSystemShim\LegacyProject\SourceFileHandlingTests.cs (1)
68project.AddFileEx(Path.Combine(projectFolder, "Cat.cs"), null);
ProjectSystemShim\SdkAnalyzerAssemblyRedirectorTests.cs (6)
26var vsDir = Path.Combine(testDir.Path, "vs"); 41var vsDir = Path.Combine(testDir.Path, "vs"); 56var vsDir = Path.Combine(testDir.Path, "vs"); 73var vsDir = Path.Combine(testDir.Path, "vs"); 102var vsDir = Path.Combine(testDir.Path, "vs"); 122var metadataFilePath = Path.Combine(root, "metadata.json");
ProjectSystemShim\TempPECompilerServiceTests.cs (2)
31pszOutputFileName: Path.Combine(directory.Path, "Output.dll"), 37optionValues: [Path.Combine(directory.Path, "MissingReference.dll")]);
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (2)
72var outputs = new CompilationOutputFilesWithImplicitPdbPath(Path.Combine(dir.Path, "nonexistent.dll")); 87var debugDirPdbPath = Path.Combine(dir.Path, "nonexistent.pdb");
Microsoft.VisualStudio.LanguageServices.Implementation (5)
CodeModel\RootCodeModel.cs (1)
59var absoluteFilePath = Path.GetFullPath(Path.Combine(projectDirectory, locationString));
ProjectSystem\CPS\CPSProject_IWorkspaceProjectContext.cs (2)
124_projectSystemProject.OutputFilePath = Path.Combine(rootDirectory, value); 201return Path.Combine(rootDirectory, value);
ProjectSystem\CPS\CPSProjectFactory.cs (1)
169path = Path.Combine(PathUtilities.GetDirectoryName(projectFilePath), path);
SolutionExplorer\AnalyzersCommandHandler.cs (1)
528var fullFilePath = Path.Combine(projectDirectory, fileName);
Microsoft.VisualStudio.LanguageServices.Razor (3)
ProjectSystem\RenameProjectTreeHandler.cs (1)
48var newFilePath = Path.Combine(Path.GetDirectoryName(oldFilePath), value);
Rename\RazorRefactorNotifyService.cs (1)
107var newFileName = Path.Combine(Path.GetDirectoryName(razorFileName), newName + ".razor");
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorAnalyzerAssemblyRedirector.cs (1)
91objectPoolRedirect.path = Path.Combine(Path.GetDirectoryName(compilerAssemblyLocation)!, $"{objectPoolRedirect.name}.dll");
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (10)
Cohost\CohostInlineCompletionEndpointTest.cs (1)
190if (File.Exists(Path.Combine(current.FullName, fileName)))
Cohost\CohostRoslynRenameTest.cs (1)
265var razorDocument = CreateProjectAndRazorDocument(razorFile.Text, additionalFiles: [(Path.Combine(TestProjectData.SomeProjectPath, "File.cs"), csharpFile.Text)]);
LanguageClient\ViewCodeCommandHandlerTests.cs (1)
129razorFilePath = Path.Combine(files.TempDir, razorFileName);
LanguageConfigurationTest.cs (2)
157var outputLocalPath = Path.Combine(baseDirectory, "language-configuration.json"); 188if (File.Exists(Path.Combine(current.FullName, fileName)))
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\PromoteUsingDirectiveTests.cs (3)
34(FileUri(Path.Combine("..", "_Imports.razor")), """ 62(FileUri(Path.Combine("..", "_Imports.razor")), """ 87(FileUri(Path.Combine("..", "_ViewImports.cshtml")), """
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSemanticTokensRangeEndpointTest.cs (1)
461var baselineFileFullPath = Path.Combine(projectPath, baselineFileName);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\CSharpSyntaxFormattingOptionsTest_Generator.cs (1)
99var testFileName = Path.Combine(projectPath, """Endpoints\Shared\Formatting\Formatting\CSharpSyntaxFormattingOptionsTest.cs""");
Microsoft.VisualStudio.Razor.IntegrationTests (19)
Formatting\FormatDocumentTests.cs (1)
71File.WriteAllText(Path.Combine(path, fileName), actual);
InProcess\EditorInProcess_Commands.cs (1)
141return Path.Combine(projectPath, relativeFilePath);
InProcess\SolutionExplorerInProcess.cs (3)
31var projectPath = Path.Combine(await GetDirectoryNameAsync(cancellationToken), projectName); 103var filePath = Path.Combine(projectDirectory, fileName); 252return Path.Combine(projectPath, relativeFilePath);
MEFComponentTests.cs (2)
18var cmcPath = Path.Combine(hiveDirectory, "ComponentModelCache"); 22var mefErrorFile = Path.Combine(cmcPath, "Microsoft.VisualStudio.Default.err");
RazorProjectConstants.cs (8)
15internal static readonly string FetchDataRazorFile = Path.Combine(s_pagesDir, "FetchData.razor"); 16internal static readonly string CounterRazorFile = Path.Combine(s_pagesDir, "Counter.razor"); 17internal static readonly string IndexRazorFile = Path.Combine(s_pagesDir, "Index.razor"); 20internal static readonly string SemanticTokensFile = Path.Combine(s_pagesDir, "SemanticTokens.razor"); 21internal static readonly string MainLayoutFile = Path.Combine(s_sharedDir, "MainLayout.razor"); 22internal static readonly string NavMenuFile = Path.Combine(s_sharedDir, "NavMenu.razor"); 23internal static readonly string SurveyPromptFile = Path.Combine(s_sharedDir, "SurveyPrompt.razor"); 24internal static readonly string ErrorCshtmlFile = Path.Combine(s_pagesDir, "Error.cshtml");
VisualStudioLogging.cs (4)
111var extensionsDir = Path.Combine(hiveDirectory, "Extensions"); 112var compatListFile = Path.Combine(extensionsDir, "CompatibilityList.xml"); 124var microsoftDir = Path.Combine(extensionsDir, "Microsoft"); 142var isolationIni = Path.Combine(devenvPath, "devenv.isolation.ini");
Microsoft.VisualStudio.RazorExtension (3)
SyntaxVisualizer\SyntaxVisualizerControl.xaml.cs (3)
29private static readonly string s_baseTempPath = Path.Combine(Path.GetTempPath(), "RazorDevTools"); 272var tempPath = Path.Combine(s_baseTempPath, Guid.NewGuid().ToString("N")); 274var tempFileName = Path.Combine(tempPath, fileName);
Microsoft.VisualStudioCode.Razor.IntegrationTests (25)
DiagnosticsTests.cs (3)
72var fileName = Path.Combine(TestServices.Workspace.WorkspacePath, "Components/Pages/Home.razor"); 92var fileName = Path.Combine(TestServices.Workspace.WorkspacePath, "Components/Pages/Home.razor"); 110var fileName = Path.Combine(TestServices.Workspace.WorkspacePath, "UnusedDirective.cshtml");
Services\EditorService.cs (1)
30var filePath = Path.Combine(TestServices.Workspace.WorkspacePath, _currentOpenFile);
Services\PlaywrightService.cs (1)
54var filepath = Path.Combine(screenshotsDir, filename);
Services\TestSettings.cs (6)
92var vscodeTestDir = Path.Combine(repoRoot, ".vscode-test"); 94settings.ExtensionsDir = Path.Combine(vscodeTestDir, "extensions"); 95settings.UserDataDir = Path.Combine(vscodeTestDir, "user-data"); 96settings.ScreenshotsDir = Path.Combine(vscodeTestDir, "screenshots"); 97settings.FailureLogsDir = Path.Combine(vscodeTestDir, "failure-logs"); 108if (File.Exists(Path.Combine(dir.FullName, "Razor.slnx")))
Services\VSCodeService.cs (9)
240var testLogsDir = Path.Combine(failureLogsDir, $"FAILED_{timestamp}_{sanitizedName}"); 275return Path.Combine(testServices.Settings.UserDataDir, "logs"); 287var destFile = Path.Combine(destDir, Path.GetFileName(file)); 293var destSubDir = Path.Combine(destDir, Path.GetFileName(dir)); 308var vscodeDir = Path.Combine(workspacePath, ".vscode"); 311var settingsPath = Path.Combine(vscodeDir, "settings.json"); 341var userSettingsDir = Path.Combine(testServices.Settings.UserDataDir, "User"); 344var settingsPath = Path.Combine(userSettingsDir, "settings.json"); 418var backupPath = Path.Combine(testServices.Settings.UserDataDir, "Backups");
Services\VSCodeService.Installer.cs (4)
23var vscodeDir = Path.Combine(installDir, "vscode"); 52var archivePath = Path.Combine(installDir, GetArchiveFileName()); 410return Path.Combine(vscodeDir, "Code.exe"); 419return Path.Combine(vscodeDir, "code");
Services\WorkspaceService.cs (1)
30_workspacePath = Path.Combine(Path.GetTempPath(), $"vscode-razor-test-{Guid.NewGuid():N}");
Microsoft.VisualStudioCode.RazorExtension (2)
Services\VSCodeRemoteServicesInitializer.cs (1)
48RemoteMefComposition.CacheDirectory = Path.Combine(Path.GetDirectoryName(this.GetType().Assembly.Location)!, "cache");
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorAnalyzerAssemblyRedirector.cs (1)
91objectPoolRedirect.path = Path.Combine(Path.GetDirectoryName(compilerAssemblyLocation)!, $"{objectPoolRedirect.name}.dll");
Microsoft.VisualStudioCode.RazorExtension.UnitTests (5)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\PromoteUsingDirectiveTests.cs (3)
34(FileUri(Path.Combine("..", "_Imports.razor")), """ 62(FileUri(Path.Combine("..", "_Imports.razor")), """ 87(FileUri(Path.Combine("..", "_ViewImports.cshtml")), """
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSemanticTokensRangeEndpointTest.cs (1)
461var baselineFileFullPath = Path.Combine(projectPath, baselineFileName);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\CSharpSyntaxFormattingOptionsTest_Generator.cs (1)
99var testFileName = Path.Combine(projectPath, """Endpoints\Shared\Formatting\Formatting\CSharpSyntaxFormattingOptionsTest.cs""");
MSBuild (13)
CommandLine\CommandLineParser.cs (1)
656string autoResponseFile = Path.Combine(path, autoResponseFileName);
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");
NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
OutOfProcTaskHostNode.cs (1)
1296? 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");
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TypeLoader.cs (1)
76microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
XMake.cs (3)
2336Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}"); 3702$"logFile={Path.Combine(Directory.GetCurrentDirectory(), logFileName)}"); 3719fileParameters += $"logFile={Path.Combine(Directory.GetCurrentDirectory(), msbuildLogFileName)}";
MSBuild.Benchmarks (11)
DefiningProjectModifiersBenchmark.cs (8)
35string srcDir = Path.Combine(_tempDir, "src"); 41File.WriteAllText(Path.Combine(srcDir, $"File{i}.cs"), string.Empty); 50root.FullPath = Path.Combine(_tempDir, "SingleProject.csproj"); 55itemGroup.AddItem("Compile", Path.Combine(srcDir, $"File{i}.cs")); 69importRoot.FullPath = Path.Combine(_tempDir, "Imported.props"); 73importItemGroup.AddItem("Compile", Path.Combine(srcDir, $"File{i}.cs")); 80mainRoot.FullPath = Path.Combine(_tempDir, "MainProject.csproj"); 85mainItemGroup.AddItem("Compile", Path.Combine(srcDir, $"File{i}.cs"));
ItemSpecModifiersCachingBenchmark.cs (3)
41string filePath = Path.Combine(srcDir, $"File{i}.cs"); 49root.FullPath = Path.Combine(_tempDir, "Test.csproj"); 54itemGroup.AddItem("Compile", Path.Combine(srcDir, $"File{i}.cs"));
MSBuildTaskHost (6)
CommunicationsUtilities.cs (1)
664string filePath = Path.Combine(s_debugDumpPath, fileName);
OutOfProcTaskHostNode.cs (1)
528? File.CreateText(Path.Combine(FileUtilities.TempFileDirectory, $"MSBuild_NodeShutdown_{EnvironmentUtilities.CurrentProcessId}.txt"))
Utilities\ExceptionHandling.cs (1)
109s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
Utilities\FileUtilities.cs (1)
269string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec));
Utilities\FileUtilities.ItemSpecModifiers.cs (2)
364return Path.Combine(rootDir, directory); 431_ = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
NonDISample (1)
Program.cs (1)
13var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
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");
PrepareTests (15)
MinimizeUtil.cs (12)
27var duplicateDirectory = Path.Combine(destinationDirectory, duplicateDirectoryName); 38var outputPath = Path.Combine(destinationDirectory, individualFile); 40CreateHardLink(outputPath, Path.Combine(sourceDirectory, individualFile)); 53var artifactsDir = Path.Combine(sourceDirectory, "artifacts/bin"); 56Path.Combine(sourceDirectory, "eng"), 82var currentOutputDirectory = Path.Combine(destinationDirectory, currentRelativeDirectory); 95RelativePath: Path.Combine(currentRelativeDirectory, fileName), 101var destFilePath = Path.Combine(currentOutputDirectory, fileName); 109RelativePath: Path.Combine(currentRelativeDirectory, fileName), 133var destFilePath = Path.Combine(destinationDirectory, item.RelativePath); 141string getPeFilePath(Guid mvid) => Path.Combine(duplicateDirectory, getPeFileName(mvid)); 199File.WriteAllText(Path.Combine(destinationDirectory, rehydrateAllFilename), rehydrateAllBuilder.ToString());
TestDiscovery.cs (3)
23var testDiscoveryWorkerFolder = Path.Combine(binDirectory, "TestDiscoveryWorker"); 69var testDiscoveryWorkerFolder = Path.Combine(binDirectory, "TestDiscoveryWorker"); 88var pathToOutput = Path.Combine(Path.GetDirectoryName(pathToAssembly)!, "testlist.json");
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\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),
Replay (14)
Replay.cs (7)
54outputDirectory = Path.Combine(Path.GetTempPath(), "replay"); 132using var compilerServerLogger = new CompilerServerLogger("replay", Path.Combine(options.OutputDirectory, "server.log")); 254var outputDirectory = Path.Combine(options.OutputDirectory, outputName); 310fileName = Path.Combine(hashSet.Count.ToString(), fileName); 313var filePath = Path.Combine(outputDirectory, fileName); 321var generatedDir = Path.Combine(outputDirectory, "generated"); 342internal string TempDirectory { get; } = Path.Combine(outputDirectory, "temp");
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\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
97var filePath = Path.Combine(item, fileName);
RepoTasks (8)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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.Compilers.Extension (2)
CompilerPackage.cs (2)
176return Path.Combine(localAppData, $@"Microsoft\MSBuild\{version}"); 181return Path.Combine(await GetMSBuildPathAsync(cancellationToken).ConfigureAwait(true), relativePath);
Roslyn.Diagnostics.Analyzers (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
Roslyn.Test.Performance.Utilities (27)
Benchview.cs (14)
81var consumptionXml = Path.Combine(GetCPCDirectoryPath(), "consumptionTempResults.xml"); 87var consumptionXml = Path.Combine(GetCPCDirectoryPath(), "consumptionTempResults.xml"); 92var submissionJson = CreateSubmissionJson(s_submissionType, submissionName, s_branch, Path.Combine(s_outputDirectory, "measurement.json")); 95var uploadPy = Path.Combine(s_scriptDirectory, "upload.py"); 115var measurementPy = Path.Combine(s_scriptDirectory, "measurement.py"); 116var measurementJson = Path.Combine(s_outputDirectory, "measurement.json"); 127var submissionMetadataPy = Path.Combine(s_scriptDirectory, "submission-metadata.py"); 128var buildPy = Path.Combine(s_scriptDirectory, "build.py"); 129var machinedataPy = Path.Combine(s_scriptDirectory, "machinedata.py"); 130var submissionPy = Path.Combine(s_scriptDirectory, "submission.py"); 132var submissionMetadataJson = Path.Combine(s_outputDirectory, "submission-metadata.json"); 133var buildJson = Path.Combine(s_outputDirectory, "build.json"); 134var machinedataJson = Path.Combine(s_outputDirectory, "machinedata.json"); 153string submissionJson = Path.Combine(s_outputDirectory, "submission.json");
Logger.cs (1)
48_file = Path.Combine(TestUtilities.GetCPCDirectoryPath(), "perf-log.txt");
RelativeDirectory.cs (1)
104var zipPath = Path.Combine(TempDirectory, zipFileName);
ScenarioGenerator.cs (1)
21_fullPath = Path.Combine(TestUtilities.GetCPCDirectoryPath(), "scenarios.xml");
TestUtilities.cs (1)
54return Path.Combine(GetCPCDirectoryPath(), "ViBenchToJson.exe");
TraceManager.cs (3)
19var cpcFullPath = Path.Combine(TestUtilities.GetCPCDirectoryPath(), "CPC.exe"); 66var scenariosXmlPath = Path.Combine(GetCPCDirectoryPath(), "scenarios.xml"); 67var consumptionTempResultsPath = Path.Combine(GetCPCDirectoryPath(), "ConsumptionTempResults.xml");
VsPerfTest.cs (6)
50var dir = Path.Combine(Path.GetDirectoryName(MyWorkingDirectory), "csharp"); 54var logDirectory = Path.Combine(TempDirectory, _testName); 56Directory.CreateDirectory(Path.Combine(logDirectory, "PerfResults")); 59var taoTestFileTemplatePath = Path.Combine(dir, _testTemplateName); 68File.WriteAllText(Path.Combine(TempDirectory, _testTemplateName), finalTest); 92ShellOutVital(TaoPath, $"{Path.Combine(TempDirectory, _testTemplateName)} -perf -host:vs -roslynonly -rootsuffix:{_rootSuffix}", TempDirectory);
Roslyn.VisualStudio.Next.UnitTests (13)
Remote\SnapshotSerializationTests.cs (6)
59.AddAnalyzerReference(new AnalyzerFileReference(Path.Combine(TempRoot.Root, "path1"), new TestAnalyzerAssemblyLoader())) 63.WithAnalyzerReferences([new AnalyzerFileReference(Path.Combine(TempRoot.Root, "path2"), new TestAnalyzerAssemblyLoader())]) 392var reference = new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing_reference"), new MissingAnalyzerLoader()); 406var reference = new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing_reference"), new MissingAnalyzerLoader()); 504var analyzer = new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing_reference"), new MissingAnalyzerLoader()); 538var analyzer = serializer.CreateChecksum(new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing"), new MissingAnalyzerLoader()), CancellationToken.None);
Services\ServiceHubServicesTests.cs (6)
451assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 774assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 1511assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 1596assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 1675assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 1759assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"),
Services\SolutionServiceTests.cs (1)
349var configPath = Path.Combine(Path.GetTempPath(), ".editorconfig");
RulesetToEditorconfigConverter (2)
Program.cs (1)
18Path.Combine(Environment.CurrentDirectory, ".editorconfig");
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
RulesetToEditorconfigConverter.UnitTests (4)
RulesetToEditorconfigConverterTests.cs (4)
18var directory = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 22var ruleset = Path.Combine(directory.FullName, PrimaryRulesetName); 28var includedRuleset = Path.Combine(directory.FullName, IncludedRulesetName); 32var editorconfigPath = Path.Combine(directory.FullName, ".editorconfig");
RunTests (28)
AssemblyScheduler.cs (1)
251var testListPath = Path.Combine(assemblyDirectory!, "testlist.json");
HelixTestRunner.cs (15)
65var payloadsDir = Path.Combine(options.ArtifactsDirectory, "payloads"); 80var helixFilePath = Path.Combine(options.ArtifactsDirectory, "helix.proj"); 83var arguments = $"build -bl:{Path.Combine(logsDir, "helix.binlog")} {helixFilePath}"; 98File.Copy(helixFilePath, Path.Combine(logsDir, "helix.proj")); 150var duplicateDir = Path.Combine(Path.GetDirectoryName(artifactsDir)!, ".duplicate"); 196var workItemPayloadDir = Path.Combine(payloadsDir, helixWorkItem.DisplayName); 199var binDir = Path.Combine(artifactsDir, "bin"); 207var targetDir = Path.Combine(workItemPayloadDir, name); 208var sourceDir = Path.Combine(binDir, name); 215Path.Combine(workItemPayloadDir, rspFileName), 219path: Path.Combine(workItemPayloadDir, "eng"), 222path: Path.Combine(workItemPayloadDir, "global.json"), 226File.WriteAllText(Path.Combine(workItemPayloadDir, commandFileName), commandContent); 229File.WriteAllText(Path.Combine(workItemPayloadDir, postCommandFileName), postCommandContent); 489var destinationPath = Path.Combine(logsDir, relativePath);
Options.cs (2)
277while (dir != null && !File.Exists(Path.Combine(dir, programName))) 282return dir == null ? null : Path.Combine(dir, programName);
ProcessTestExecutor.cs (3)
98var sdkDir = Path.Combine(dotnetDir, "sdk"); 106return Path.Combine(options.TestResultsDirectory, fileName); 116var rspFilePath = Path.Combine(getRspDirectory(), $"vstest_{workItemInfo.PartitionIndex}.rsp");
Program.cs (6)
190var logFilePath = Path.Combine(options.LogFilesDirectory, "runtests.log"); 256var screenshotPath = Path.Combine(options.LogFilesDirectory, $"timeout.png"); 271var dumpFilePath = Path.Combine(dumpDir, $"{proc.ProcessName}-{counter}.dmp"); 283var binDirectory = Path.Combine(options.ArtifactsDirectory, "bin"); 295var configDirectory = Path.Combine(project, options.Configuration); 311var filePath = Path.Combine(targetFrameworkDirectory, fileName);
TestRunner.cs (1)
200var outputLogPath = Path.Combine(_options.LogFilesDirectory, $"xUnitFailure-{testResult.DisplayName}.log");
SemanticSearch.BuildTask (2)
GenerateFilteredReferenceAssembliesTask.cs (2)
124var filteredReferencePath = Path.Combine(OutputDir, assemblyName + ".dll"); 155string outputFilePath = Path.Combine(ApisDir, assemblyName + ".txt");
ServerComparison.FunctionalTests (2)
Helpers.cs (2)
19var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "FunctionalTests.slnf")); 35var content = File.ReadAllText(Path.Combine(applicationBasePath, nginxConfig));
Sockets.BindTests (2)
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
Sockets.FunctionalTests (2)
src\Shared\TestResources.cs (2)
12public static string TestCertificatePath { get; } = Path.Combine(_baseDir, "testCert.pfx"); 13public static string GetCertPath(string name) => Path.Combine(_baseDir, name);
StaticFilesAuth (4)
Startup.cs (4)
30var basePath = Path.Combine(HostingEnvironment.ContentRootPath, "PrivateFiles"); 31var usersPath = Path.Combine(basePath, "Users"); 47var userPath = Path.Combine(usersPath, userName); 86var files = new PhysicalFileProvider(Path.Combine(env.ContentRootPath, "PrivateFiles"));
Stress.ApiService (2)
Program.cs (2)
294var xmlLarge = File.ReadAllText(Path.Combine("content", "books.xml")); 301var jsonLarge = File.ReadAllText(Path.Combine("content", "example.json"));
System.CodeDom (1)
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\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.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\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\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\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
83string newPath = Path.GetFullPath(Path.Combine(FullPath, path));
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
62path = Combine(Interop.Sys.GetCwd(), path);
src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (5)
194string sharedMemoryFilePath = Path.Combine(sessionDirectory, id.Name); 368string sharedMemoryFilePath = Path.Combine(sessionDirectoryPath, _id.Name); 536string tempPath = Path.Combine(SharedFilesPath, SharedMemoryUniqueTempNameTemplate); 767string runtimeTempDirectory = Path.Combine( 773string sharedMemoryDirectory = Path.Combine(
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
345string requestedAssemblyPath = Path.Combine(Path.GetDirectoryName(requestorPath)!, requestedAssemblyName.Name + ".dll");
src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
71string path = Path.Combine(_mediator.ModuleDir, fileName);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
181string libraryPath = Path.Combine(searchPath, libraryName);
src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (2)
416string sessionDirectory = Path.Combine(lockFileDirectory, Id.GetSessionDirectoryName()); 423string lockFilePath = Path.Combine(sessionDirectory, Id.Name);
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.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.Security.Cryptography (4)
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
407return Path.Combine(s_crlDir, localFileName);
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (3)
207destinationFilename = Path.Combine(_storePath, thumbprint + PfxExtension); 308string builtPath = Path.Combine(_storePath, pathBuilder.ToString()); 330return Path.Combine(s_userStoreRoot, directoryName);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
27using StreamWriter sw = new StreamWriter($"{Path.Combine(path, classname)}.cs");
Templates.Blazor.Tests (43)
BlazorTemplateTest.cs (1)
62var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory);
BlazorWasmTemplateTest.cs (8)
31var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 32Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 107var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 111Assert.False(File.Exists(Path.Combine(publishDir, "service-worker.published.js")), "service-worker.published.js should not be published"); 112Assert.True(File.Exists(Path.Combine(publishDir, "service-worker.js")), "service-worker.js should be published"); 113Assert.True(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "service-worker-assets.js should be published"); 129var fullPath = Path.Combine(basePath, path); 133return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (3)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory); 107var fullPath = Path.Combine(basePath, path); 111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (3)
18Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"), 19Path.Combine(Environment.CurrentDirectory, "aspnetcore-https.json"), 20Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"),
src\ProjectTemplates\Shared\Project.cs (8)
220var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 235var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 241var publishDir = Path.Combine(TemplatePublishDir, "wwwroot"); 330var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 359var fullPath = Path.Combine(TemplateOutputDir, path); 507return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 629var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 631var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
80project.TemplateOutputDir = Path.Combine(basePath, $"AspNet.{project.ProjectGuid}");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
49: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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}");
WebWorkerTemplateE2ETest.cs (10)
105var workerLibDir = Path.Combine(parentDir, "WorkerLib"); 125var workerLibDir = Path.Combine(parentDir, "WorkerLib"); 179var csprojPath = Path.Combine(hostProject.TemplateOutputDir, $"{hostProject.ProjectName}.csproj"); 204var testComponentSource = Path.Combine(TestAssetsPath, "WebWorkerTest.razor"); 210pagesDir = Path.Combine(hostProject.TemplateOutputDir, "Pages"); 213Path.Combine(pagesDir, "WebWorkerTest.razor"), 219var workerMethodsSource = Path.Combine(TestAssetsPath, "TestWorkerMethods.cs"); 220File.Copy(workerMethodsSource, Path.Combine(workerLibDir, "TestWorkerMethods.cs"), overwrite: true); 229var objDirectory = Path.Combine(hostProject.TemplateOutputDir, "obj"); 260var endpointsManifest = Path.Combine(outputDir,
Templates.Blazor.WebAssembly.Auth.Tests (27)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (3)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory); 107var fullPath = Path.Combine(basePath, path); 111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (3)
18Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"), 19Path.Combine(Environment.CurrentDirectory, "aspnetcore-https.json"), 20Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"),
src\ProjectTemplates\Shared\Project.cs (8)
220var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 235var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 241var publishDir = Path.Combine(TemplatePublishDir, "wwwroot"); 330var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 359var fullPath = Path.Combine(TemplateOutputDir, path); 507return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 629var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 631var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
80project.TemplateOutputDir = Path.Combine(basePath, $"AspNet.{project.ProjectGuid}");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
49: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
196opts.AddUserProfilePreference("download.default_directory", Path.Combine(userProfileDirectory, "Downloads"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
152var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Blazor.WebAssembly.Tests (35)
BlazorWasmTemplateTest.cs (8)
35var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 36Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 45var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 46Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 55var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 56Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 65var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 66Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (3)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory); 107var fullPath = Path.Combine(basePath, path); 111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (3)
18Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"), 19Path.Combine(Environment.CurrentDirectory, "aspnetcore-https.json"), 20Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"),
src\ProjectTemplates\Shared\Project.cs (8)
220var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 235var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 241var publishDir = Path.Combine(TemplatePublishDir, "wwwroot"); 330var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 359var fullPath = Path.Combine(TemplateOutputDir, path); 507return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 629var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 631var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
80project.TemplateOutputDir = Path.Combine(basePath, $"AspNet.{project.ProjectGuid}");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
49: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
196opts.AddUserProfilePreference("download.default_directory", Path.Combine(userProfileDirectory, "Downloads"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
152var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Mvc.Tests (30)
BlazorTemplateTest.cs (1)
184var singleProjectPath = Path.Combine(project.TemplateOutputDir, $"{project.ProjectName}.csproj");
RazorPagesTemplateTest.cs (2)
310var fullPath = Path.Combine(basePath, path); 314return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (3)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory); 107var fullPath = Path.Combine(basePath, path); 111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (3)
18Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"), 19Path.Combine(Environment.CurrentDirectory, "aspnetcore-https.json"), 20Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"),
src\ProjectTemplates\Shared\Project.cs (8)
220var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 235var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 241var publishDir = Path.Combine(TemplatePublishDir, "wwwroot"); 330var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 359var fullPath = Path.Combine(TemplateOutputDir, path); 507return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 629var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 631var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
80project.TemplateOutputDir = Path.Combine(basePath, $"AspNet.{project.ProjectGuid}");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
49: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
196opts.AddUserProfilePreference("download.default_directory", Path.Combine(userProfileDirectory, "Downloads"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
152var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Tests (36)
BaselineTest.cs (1)
124var fullPath = Path.Combine(basePath, path);
ByteOrderMarkTest.cs (3)
107var AssetsDir = Path.Combine(currentDirectory, "Assets"); 108var path = Path.Combine(projectName, "content"); 109var templateDirectoryPath = Path.Combine(AssetsDir, path);
IdentityUIPackageTest.cs (2)
161var fullPath = Path.Combine(basePath, path); 165return File.ReadAllText(Path.Combine(basePath, path));
NewlineEndingTest.cs (3)
87var AssetsDir = Path.Combine(currentDirectory, "Assets"); 88var path = Path.Combine(projectName, "content"); 89var templateDirectoryPath = Path.Combine(AssetsDir, path);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (3)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory); 107var fullPath = Path.Combine(basePath, path); 111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (3)
18Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"), 19Path.Combine(Environment.CurrentDirectory, "aspnetcore-https.json"), 20Path.Combine(AppContext.BaseDirectory, "aspnetcore-https.json"),
src\ProjectTemplates\Shared\Project.cs (8)
220var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 235var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 241var publishDir = Path.Combine(TemplatePublishDir, "wwwroot"); 330var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 359var fullPath = Path.Combine(TemplateOutputDir, path); 507return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 629var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 631var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
80project.TemplateOutputDir = Path.Combine(basePath, $"AspNet.{project.ProjectGuid}");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
49: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
196opts.AddUserProfilePreference("download.default_directory", Path.Combine(userProfileDirectory, "Downloads"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
152var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Test.Utilities (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
TestDiscoveryWorker (1)
Program.cs (1)
47outputFilePath = Path.Combine(Path.GetDirectoryName(assemblyFilePath)!, "testlist.json");
TestProject.AppHost (1)
TestProgram.cs (1)
73var serviceAPath = Path.Combine(Projects.TestProject_AppHost.ProjectPath, @"..\TestProject.ServiceA\TestProject.ServiceA.csproj");
TestTasks (1)
InjectRequestHandler.cs (1)
61File.Copy(Path.Combine(outputFolder, bitnessString, aspnetcoreV2Name), Path.Combine(outputFolder, aspnetcoreV2Name), overwrite: true);
Text.Analyzers (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
102var path = Path.Combine(parentPath, directoryName); 472/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 481/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
63? Path.Combine(thisAssemblyFolder, assemblySimpleName + ".dll")
ThreadSafeTaskAnalyzer.Tests (1)
TestHelpers.cs (1)
204var systemRuntime = System.IO.Path.Combine(runtimeDir, "System.Runtime.dll");
vbc (8)
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\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
97var filePath = Path.Combine(item, fileName);
src\Compilers\Shared\Vbc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, VisualBasicCompiler.ResponseFileName);
VBCSCompiler (25)
src\Compilers\Server\VBCSCompiler\CompilationCache.cs (16)
150var cachedAssemblyPath = Path.Combine(entryDir, AssemblyFileName); 202return !File.Exists(Path.Combine(entryDir, cachedFileName)); 212File.Copy(Path.Combine(entryDir, cachedFileName), targetPath, overwrite: true); 233var dllCacheDir = Path.Combine(_cachePath, dllName); 259var keyPath = Path.Combine(entryPath, dllName + ".key"); 293var dllCacheDir = Path.Combine(_cachePath, dllName); 313stagingDir = Path.Combine(dllCacheDir, hashKey + "." + Guid.NewGuid().ToString("N") + ".tmp"); 316File.Copy(outputFiles.AssemblyPath, Path.Combine(stagingDir, AssemblyFileName), overwrite: false); 318tryCopyOptional(outputFiles.PdbPath, Path.Combine(stagingDir, PdbFileName)); 319tryCopyOptional(outputFiles.RefAssemblyPath, Path.Combine(stagingDir, RefAssemblyFileName)); 320tryCopyOptional(outputFiles.XmlDocPath, Path.Combine(stagingDir, XmlDocFileName)); 322File.WriteAllText(Path.Combine(stagingDir, dllName + ".key"), deterministicKey, Encoding.UTF8); 323File.WriteAllText(Path.Combine(stagingDir, CreatedFileName), DateTimeOffset.UtcNow.ToString("O", CultureInfo.InvariantCulture)); 448var path = Path.Combine(entryDir, LastUsedFileName); 544var lastUsedPath = Path.Combine(entryDir, LastUsedFileName); 572var createdPath = Path.Combine(entryDir, CreatedFileName);
src\Compilers\Server\VBCSCompiler\CSharpCompilerServer.cs (1)
22: this(metadataProvider, Path.Combine(buildPaths.ClientDirectory, ResponseFileName), args, buildPaths, libDirectory, analyzerLoader, driverCache, logger)
src\Compilers\Server\VBCSCompiler\VisualBasicCompilerServer.cs (1)
22: this(metadataProvider, Path.Combine(buildPaths.ClientDirectory, ResponseFileName), args, buildPaths, libDirectory, analyzerLoader, driverCache, logger)
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\Compilers\Shared\CompilerServerLogger.cs (1)
127loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
97var filePath = Path.Combine(item, fileName);
VBCSCompiler.UnitTests (120)
CompilationCacheBehaviorTests.cs (17)
59File.Delete(Path.Combine(workingDirectory.Path, outputFileName)); 65Assert.True(File.Exists(Path.Combine(workingDirectory.Path, outputFileName))); 77var touchedFilesBase = Path.Combine(workingDirectory.Path, "touched"); 97File.Delete(Path.Combine(workingDirectory.Path, outputFileName)); 139File.Delete(Path.Combine(workingDirectory.Path, outputFileName)); 208File.Delete(Path.Combine(workingDirectory.Path, consumerOutputFileName)); 223var generatedFilesDirectory = Path.Combine(workingDirectory.Path, "generated"); 246File.Delete(Path.Combine(workingDirectory.Path, outputFileName)); 288Assert.True(File.Exists(Path.Combine(workingDirectory.Path, keyFileName))); 290File.Delete(Path.Combine(workingDirectory.Path, outputFileName)); 291File.Delete(Path.Combine(workingDirectory.Path, pdbFileName)); 292File.Delete(Path.Combine(workingDirectory.Path, keyFileName)); 297Assert.True(File.Exists(Path.Combine(workingDirectory.Path, outputFileName))); 298Assert.True(File.Exists(Path.Combine(workingDirectory.Path, pdbFileName))); 299Assert.False(File.Exists(Path.Combine(workingDirectory.Path, keyFileName))); 413var path = Path.Combine(directory.Path, assemblyName + ".dll"); 443var filePath = Path.Combine(currentDirectory.Path, "netstandard.dll");
CompilationCacheTests.cs (84)
102AssemblyPath = Path.Combine(outputDir, "Util.dll"), 123File.WriteAllBytes(Path.Combine(entryDir, "assembly"), [1, 2, 3]); 127AssemblyPath = Path.Combine(outputDir, dllName), 149File.WriteAllBytes(Path.Combine(entryDir, "assembly"), [1]); 150File.WriteAllBytes(Path.Combine(entryDir, "pdb"), [2]); 151File.WriteAllBytes(Path.Combine(entryDir, "refassembly"), [3]); 152File.WriteAllBytes(Path.Combine(entryDir, "xmldoc"), [4]); 156AssemblyPath = Path.Combine(outputDir, dllName), 157PdbPath = Path.Combine(outputDir, "MyLib.pdb"), 159XmlDocPath = Path.Combine(outputDir, "MyLib.xml"), 162Directory.CreateDirectory(Path.Combine(outputDir, "ref")); 185File.WriteAllBytes(Path.Combine(entryDir, "assembly"), [10]); 189AssemblyPath = Path.Combine(outputDir, dllName), 190PdbPath = Path.Combine(outputDir, "MyLib.pdb"), 215File.WriteAllBytes(Path.Combine(entryDir, "assembly"), [1, 2, 3]); 219AssemblyPath = Path.Combine(outputDir, dllName), 241Directory.CreateDirectory(Path.Combine(cacheDir, dllName)); 245AssemblyPath = Path.Combine(outputDir, dllName), 267var assemblyPath = Path.Combine(outputDir, dllName); 268var pdbPath = Path.Combine(outputDir, "MyLib.pdb"); 270var xmlPath = Path.Combine(outputDir, "MyLib.xml"); 271Directory.CreateDirectory(Path.Combine(outputDir, "ref")); 288Assert.Equal([10, 20, 30], File.ReadAllBytes(Path.Combine(entryDir, "assembly"))); 289Assert.Equal([40, 50], File.ReadAllBytes(Path.Combine(entryDir, "pdb"))); 290Assert.Equal([60], File.ReadAllBytes(Path.Combine(entryDir, "refassembly"))); 291Assert.Equal([70, 80, 90], File.ReadAllBytes(Path.Combine(entryDir, "xmldoc"))); 292Assert.Equal(deterministicKey, File.ReadAllText(Path.Combine(entryDir, dllName + ".key"), Encoding.UTF8)); 305var assemblyPath = Path.Combine(outputDir, dllName); 319Assert.True(File.Exists(Path.Combine(entryDir, "assembly"))); 320Assert.False(File.Exists(Path.Combine(entryDir, "pdb"))); 321Assert.False(File.Exists(Path.Combine(entryDir, "refassembly"))); 322Assert.False(File.Exists(Path.Combine(entryDir, "xmldoc"))); 350var assemblyPath = Path.Combine(outputDir, dllName); 368Assert.Equal([10, 20, 30], File.ReadAllBytes(Path.Combine(entryDir, "assembly"))); 387var assemblyPath = Path.Combine(outputDir, dllName); 393AssemblyPath = Path.Combine(restoreDir, dllName), 436File.WriteAllText(Path.Combine(oldEntryDir, dllName + ".key"), oldKeyContent, Encoding.UTF8); 438File.WriteAllBytes(Path.Combine(oldEntryDir, "assembly"), [1]); 463File.WriteAllBytes(Path.Combine(entryDir, "assembly"), [1, 2, 3]); 467AssemblyPath = Path.Combine(outputDir, dllName), 474var lastUsedPath = Path.Combine(entryDir, "last-used"); 487var assemblyPath = Path.Combine(outputDir, dllName); 495var lastUsedPath = Path.Combine(entryDir, "last-used"); 508var assemblyPath = Path.Combine(outputDir, dllName); 515var createdPath = Path.Combine(entryDir, "created"); 532File.WriteAllBytes(Path.Combine(entry1, "assembly"), [1]); 533File.WriteAllText(Path.Combine(entry1, "created"), now.AddHours(-1).ToString("O")); 534File.WriteAllText(Path.Combine(entry1, "last-used"), now.AddSeconds(1).ToString("O")); 538File.WriteAllBytes(Path.Combine(entry2, "assembly"), [2]); 539File.WriteAllText(Path.Combine(entry2, "created"), now.AddSeconds(1).ToString("O")); 540File.WriteAllText(Path.Combine(entry2, "last-used"), now.AddSeconds(1).ToString("O")); 544File.WriteAllBytes(Path.Combine(entry3, "assembly"), [3]); 545File.WriteAllText(Path.Combine(entry3, "created"), now.AddHours(-2).ToString("O")); 546File.WriteAllText(Path.Combine(entry3, "last-used"), now.AddHours(-1).ToString("O")); 565File.WriteAllBytes(Path.Combine(entry, "assembly"), [1]); 566File.WriteAllText(Path.Combine(entry, "created"), now.AddHours(-2).ToString("O")); 567File.WriteAllText(Path.Combine(entry, "last-used"), now.ToString("O")); 587File.WriteAllBytes(Path.Combine(entry, "assembly"), [1]); 588File.WriteAllText(Path.Combine(entry, "created"), now.AddHours(-2).ToString("O")); 589File.WriteAllText(Path.Combine(entry, "last-used"), now.ToString("O")); 607File.WriteAllBytes(Path.Combine(oldEntry, "assembly"), [1, 2, 3]); 608File.WriteAllText(Path.Combine(oldEntry, "last-used"), DateTimeOffset.UtcNow.AddHours(-2).ToString("O")); 612File.WriteAllBytes(Path.Combine(newEntry, "assembly"), [4, 5, 6]); 613File.WriteAllText(Path.Combine(newEntry, "last-used"), DateTimeOffset.UtcNow.ToString("O")); 631File.WriteAllBytes(Path.Combine(entry1, "assembly"), [1]); 632File.WriteAllText(Path.Combine(entry1, "last-used"), DateTimeOffset.UtcNow.ToString("O")); 634File.WriteAllBytes(Path.Combine(entry2, "assembly"), [2]); 635File.WriteAllText(Path.Combine(entry2, "last-used"), DateTimeOffset.UtcNow.ToString("O")); 650var dllDir = Path.Combine(cacheDir, "Orphan.dll"); 651var entryDir = Path.Combine(dllDir, "hash_orphan"); 653File.WriteAllBytes(Path.Combine(entryDir, "assembly"), [1]); 654File.WriteAllText(Path.Combine(entryDir, "last-used"), DateTimeOffset.UtcNow.AddHours(-2).ToString("O")); 667var dllDir = Path.Combine(cacheDir, "Lib.dll"); 668var stagingDir = Path.Combine(dllDir, "somehash.abc123.tmp"); 671var usedDir = Path.Combine(dllDir, "hash_used"); 673File.WriteAllBytes(Path.Combine(usedDir, "assembly"), [1]); 674File.WriteAllText(Path.Combine(usedDir, "last-used"), DateTimeOffset.UtcNow.ToString("O")); 687var dllDir = Path.Combine(cacheDir, "Lib.dll"); 688var oldEntry = Path.Combine(dllDir, "hash_old"); 690File.WriteAllBytes(Path.Combine(oldEntry, "assembly"), [1]); 691File.WriteAllText(Path.Combine(oldEntry, "last-used"), DateTimeOffset.UtcNow.AddHours(-2).ToString("O")); 693var newEntry = Path.Combine(dllDir, "hash_current"); 695File.WriteAllBytes(Path.Combine(newEntry, "assembly"), [2]); 696File.WriteAllText(Path.Combine(newEntry, "last-used"), DateTimeOffset.UtcNow.ToString("O"));
CompilerServerApiTest.cs (1)
145var vbcsFilePath = Path.Combine(toolDir, "VBCSCompiler.dll");
CompilerServerTests.cs (15)
97var filePath = Path.Combine(currentDirectory.Path, "netstandard.dll"); 224return new DisposableFile(Path.Combine(directory.Path, resultFileName)); 418var compilerServerExecutable = Path.Combine(basePath, "VBCSCompiler.exe"); 526Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 556Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 573Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "missingfile.exe"))); 591Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 616Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "app.exe"))); 634Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "missingfile.exe"))); 663Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hellovb.exe"))); 692Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "app.exe"))); 1030$"src1.cs /shared:{serverData.PipeName} /nologo /t:library /out:" + Path.Combine(libDirectory.Path, "lib.dll"), 1081$"src1.vb /shared:{serverData.PipeName} /vbruntime* /nologo /t:library /out:" + Path.Combine(libDirectory.Path, "lib.dll"), 1364var tmp = Path.Combine(_tempDirectory.Path, "Temp"); 1398var tmp = Path.Combine(_tempDirectory.Path, "Temp");
TouchedFileLoggingTests.cs (2)
60var touchedBase = Path.Combine(touchedDir.Path, "touched"); 111var touchedBase = Path.Combine(touchedDir.Path, "touched");
VBCSCompilerServerTests.cs (1)
39var baseDirectory = Path.Combine(Path.GetTempPath(), TestBase.GetUniqueName());
WindowsBase.Tests (1)
Helpers.cs (1)
14public static string GetResourcePath(string name) => Path.GetFullPath(Path.Combine("Resources", name));
xunit.console (9)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
211var assemblyPath = Path.Combine(Path.GetFullPath(assemblyFolder), assemblyName);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (2)
50var refsPath = Path.Combine(_basePath, RefsDirectoryName); 74var sharedRefs = Path.Combine(sharedDirectory, RefsDirectoryName);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ReferenceAssemblyPathResolver.cs (2)
65var relativeToReferenceAssemblies = Path.Combine(_defaultReferenceAssembliesPath, path); 76var fallbackFile = Path.Combine(fallbackPath, name);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ResolverUtils.cs (3)
15path = Path.Combine(library.Name.ToLowerInvariant(), library.Version.ToLowerInvariant()); 18packagePath = Path.Combine(basePath, path); 29fullName = Path.GetFullPath(Path.Combine(basePath, assemblyPath));
ConsoleRunner.cs (1)
138foreach (var dllFile in Directory.GetFiles(runnerPath, "*.dll").Select(f => Path.Combine(runnerPath, f)))
Yarp.AppHost (1)
Program.cs (1)
21.WithStaticFiles(Path.Combine("..", "static-content"))