3354 references to Combine
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
226string uniqueFileName = Path.Combine(directoryName, $"{fileNameWithoutExtension}-Unique{extension}");
aspire (4)
Commands\DeployCommand.cs (1)
24protected override string GetDefaultOutputPath(ArgumentResult result) => Path.Combine(Environment.CurrentDirectory, "deploy");
Commands\RunCommand.cs (1)
285var logFilePath = Path.Combine(logsPath, $"apphost-{Environment.ProcessId}-{DateTime.UtcNow:yyyy-MM-dd-HH-mm-ss}.log");
DotNetCliRunner.cs (1)
390var socketPath = Path.Combine(aspireCliPath, $"cli.sock.{uniqueSocketPathSegment}");
Projects\ProjectLocator.cs (1)
93var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath);
Aspire.Cli.Tests (25)
DotNet\DotNetCliRunnerTests.cs (6)
20var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 63var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 95var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 137var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 178var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 222var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj"));
E2E\ExecTests.cs (3)
22Path.Combine(DatabaseMigration_AppHost.ProjectPath, "DatabaseMigration.AppHost.csproj"); 197var migrationDirectory = Path.Combine(projectDirectory!, "Migrations"); 224var migrationFiles = Directory.GetFiles(Path.Combine((string)projectDirectory!, "Migrations"));
Projects\ProjectLocatorTests.cs (16)
28var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 50var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 54var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 58var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 88var targetAppHostProjectFile = new FileInfo(Path.Combine(targetAppHostDirectory.FullName, "TargetAppHost.csproj")); 92var otherAppHostProjectFile = new FileInfo(Path.Combine(otherAppHostDirectory.FullName, "OtherAppHost.csproj")); 96var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 123var realAppHostProjectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "RealAppHost.csproj")); 128var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 166var projectFile1 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost1.csproj")); 169var projectFile2 = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost2.csproj")); 188var appHostProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 191var webProject = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "WebProject.csproj")); 238var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 256var projectFile = new FileInfo(Path.Combine(workspace.WorkspaceRoot.FullName, "AppHost.csproj")); 277var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj"));
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
29protected string JsonSchemaPath => Path.Combine(AppContext.BaseDirectory, "ConfigurationSchema.json");
Aspire.Dashboard.Tests (9)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
53WebRootPath = Path.Combine(aspireAssemblyDirectory, "wwwroot"),
Integration\StartupTests.cs (4)
137var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 236var fileConfigDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 546var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 801var 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.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 />"); 151File.Copy(Path.Combine(BuildEnvironment.TestAssetsPath, "EndPointWriterHook_cs"), Path.Combine(project.AppHostProjectDirectory, "EndPointWriterHook.cs")); 152string programCsPath = Path.Combine(project.AppHostProjectDirectory, "AppHost.cs"); 322workingDirectory ??= Path.Combine(RootDir, $"{Id}.AppHost"); 326var res = await restoreCmd.ExecuteAsync($"restore \"-bl:{Path.Combine(LogPath!, $"{Id}-restore.binlog")}\" /p:TreatWarningsAsErrors=true"); 329var 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"); 92string workloadsProjString = Path.Combine("tests", "workloads.proj"); 104.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 127.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 149sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 166NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 187DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 200LogRootPath = 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 (17)
ApplicationModel\AspireStore.cs (1)
60var finalFilePath = Path.Combine(_basePath, $"{name}.{Convert.ToHexString(hash.GetCurrentHash())[..12].ToLowerInvariant()}{ext}");
Dcp\DcpOptions.cs (2)
141options.ExtensionsPath = Path.Combine(dcpDir, "ext"); 142options.BinPath = Path.Combine(options.ExtensionsPath, "bin");
Dcp\Locations.cs (2)
12public string DcpKubeconfigPath => Path.Combine(DcpSessionDir, "kubeconfig"); 14public string DcpLogSocket => Path.Combine(DcpSessionDir, "output.sock");
Devcontainers\DevcontainerSettingsWriter.cs (5)
150yield return Path.Combine(userHomeDir, VscodeRemotePathSegment); 154var vscodeServerPath = Path.Combine(userHomeDir, VscodeServerPathSegment); 155var vscodeInsidersServerPath = Path.Combine(userHomeDir, VscodeInsidersServerPathSegment); 159yield return Path.Combine(vscodeServerPath, LocalDevcontainerSettingsPath); 164yield return Path.Combine(vscodeInsidersServerPath, LocalDevcontainerSettingsPath);
DistributedApplicationBuilder.cs (1)
271return new AspireStore(Path.Combine(aspireDir, ".aspire"));
ExecutableResourceBuilderExtensions.cs (1)
55workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory));
ProjectResourceBuilderExtensions.cs (3)
280projectPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath)); 721var appSettingsPath = Path.Combine(projectDirectoryPath, "appsettings.json"); 723var appSettingsEnvironmentPath = Path.Combine(projectDirectoryPath, $"appsettings.{env}.json");
Publishing\ManifestPublisher.cs (1)
42_options.Value.OutputPath = Path.Combine(_options.Value.OutputPath, "aspire-manifest.json");
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
83null => Path.Combine("Properties", "launchSettings.json"),
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
39Path.Combine("ref", $"net{s_targetFrameworkVersion}"));
Aspire.Hosting.Azure (10)
AzureBicepResource.cs (3)
100? Path.Combine(directory ?? Directory.CreateTempSubdirectory("aspire").FullName, $"{Name.ToLowerInvariant()}.module.bicep") 101: Path.Combine(TempDirectory, $"{Name.ToLowerInvariant()}.module.bicep"); 112: Path.Combine(directory, $"{TemplateResourceName.ToLowerInvariant()}");
AzureBicepResourceExtensions.cs (1)
27var path = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, bicepFile));
AzureProvisioningResource.cs (2)
84var moduleSourcePath = Path.Combine(generationPath, "main.bicep"); 92var moduleDestinationPath = Path.Combine(directory ?? generationPath, $"{Name}.module.bicep");
AzurePublishingContext.cs (3)
147var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 306var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 415var bicepPath = Path.Combine(outputDirectoryPath, $"{MainInfrastructure.BicepName}.bicep");
Provisioning\Internal\BicepCompiler.cs (1)
89var fullPath = Path.Combine(directory, command);
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
83null => Path.Combine("Properties", "launchSettings.json"),
Aspire.Hosting.Azure.Tests (19)
AzureAppServiceTests.cs (2)
184File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 353Path.Combine(tempDir.Path, "aspire-manifest.json"),
AzureContainerAppsTests.cs (2)
62File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), ""); 1564await VerifyFile(Path.Combine(tempDir.Path, "aspire-manifest.json"));
AzureEnvironmentResourceTests.cs (5)
34var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 71var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 123var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 172var mainBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "main.bicep")); 207var mainBicepPath = Path.Combine(tempDir.Path, "main.bicep");
AzureEventHubsExtensionsTests.cs (1)
186Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
AzureManifestUtils.cs (2)
37if (pathNode?.ToString() is not { } path || !File.Exists(Path.Combine(manifestDir, path))) 42var bicepText = await File.ReadAllTextAsync(Path.Combine(manifestDir, path));
AzureResourceOptionsTests.cs (3)
23var outputPath = Path.Combine(tempDir.FullName, "aspire-manifest.json"); 42var sbBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 44var sqlBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sql-server.module.bicep"));
AzureStorageExtensionsTests.cs (1)
62Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
tests\Shared\TestModuleInitializer.cs (2)
16? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, "Snapshots") 23directory: Path.Combine(projectDirectory, target),
tests\Shared\VerifyExtensions.cs (1)
14? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, directory)
Aspire.Hosting.Containers.Tests (7)
ContainerResourceTests.cs (1)
221Assert.Equal(Path.Combine(basePath, "source"), mountAnnotation.Source);
DockerSocketBindMountTests.cs (2)
24var dockerFilePath = Path.Combine(dir.Path, "Dockerfile"); 48var infoFile = Path.Combine(outDir.Path, "docker-info.txt");
WithDockerfileTests.cs (4)
235var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 283var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 330var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json"); 376var manifestOutputPath = Path.Combine(tempContextPath, "aspire-manifest.json");
Aspire.Hosting.Docker (4)
DockerComposePublishingContext.cs (3)
145var outputFile = Path.Combine(OutputPath, "docker-compose.yaml"); 153var envFilePath = Path.Combine(OutputPath, ".env"); 201Directory.CreateDirectory(Path.Combine(OutputPath, composeService.Name));
src\Shared\PublishingContextUtils.cs (1)
18return Path.Combine(context.OutputPath, environment.Name);
Aspire.Hosting.Docker.Tests (21)
DockerComposePublisherTests.cs (16)
97var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 98var envPath = Path.Combine(tempDir.Path, ".env"); 130var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 131var envPath = Path.Combine(tempDir.Path, ".env"); 158var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 193var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 242var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 244var envPath = Path.Combine(tempDir.Path, ".env"); 255var envFilePath = Path.Combine(tempDir.Path, ".env"); 286var envFilePath = Path.Combine(tempDir.Path, ".env"); 341var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 367var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 393var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 421var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 453var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 478var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
DockerComposeTests.cs (2)
54var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml"); 79var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml");
tests\Shared\TestModuleInitializer.cs (2)
16? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, "Snapshots") 23directory: Path.Combine(projectDirectory, target),
tests\Shared\VerifyExtensions.cs (1)
14? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, directory)
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (1)
242Assert.Equal(Path.Combine(builder.AppHostDirectory, "mygarnetdata"), volumeAnnotation.Source);
GarnetFunctionalTests.cs (1)
127bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (1)
143Assert.Equal(Path.Combine(appBuilder.AppHostDirectory, "kafka-data"), volumeAnnotation.Source);
KafkaFunctionalTests.cs (1)
138bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Keycloak.Tests (4)
KeycloakPublicApiTests.cs (3)
155var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 178var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 182var filePath = Path.Combine(tempDirectory, file);
KeycloakResourceBuilderTests.cs (1)
83Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
Aspire.Hosting.Kubernetes (4)
KubernetesPublishingContext.cs (3)
134var outputFile = Path.Combine(templatesFolder, fileName); 162var outputFile = Path.Combine(OutputPath!, "values.yaml"); 182var outputFile = Path.Combine(OutputPath, "Chart.yaml");
src\Shared\PublishingContextUtils.cs (1)
18return Path.Combine(context.OutputPath, environment.Name);
Aspire.Hosting.Kubernetes.Tests (9)
KubernetesEnvironmentResourceTests.cs (2)
26var chartYaml = Path.Combine(tempDir.FullName, "Chart.yaml"); 27var valuesYaml = Path.Combine(tempDir.FullName, "values.yaml");
KubernetesPublisherTests.cs (4)
63var filePath = Path.Combine(tempDir.Path, expectedFile); 102var deploymentPath = Path.Combine(tempDir.Path, "templates/service/deployment.yaml"); 157var filePath = Path.Combine(tempDir.Path, expectedFile); 208var filePath = Path.Combine(tempDir.Path, expectedFile);
tests\Shared\TestModuleInitializer.cs (2)
16? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, "Snapshots") 23directory: Path.Combine(projectDirectory, target),
tests\Shared\VerifyExtensions.cs (1)
14? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, directory)
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
96bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.MongoDB.Tests (5)
MongoDbFunctionalTests.cs (5)
136bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 258var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 263var initFilePath = Path.Combine(bindMountPath, "mongo-init.js"); 356var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 361var initFilePath = Path.Combine(initFilesPath, "mongo-init.js");
Aspire.Hosting.MySql.Tests (4)
MySqlFunctionalTests.cs (4)
305var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 311File.WriteAllText(Path.Combine(bindMountPath, "init.sql"), """ 392var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 398File.WriteAllText(Path.Combine(initFilesPath, "init.sql"), """
Aspire.Hosting.NodeJs (2)
NodeExtensions.cs (2)
32workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory)); 62workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory));
Aspire.Hosting.NodeJs.Tests (3)
NodeAppFixture.cs (3)
33var scriptPath = Path.Combine(_nodeAppPath, "app.js"); 77File.WriteAllText(Path.Combine(tempDir, "app.js"), 97File.WriteAllText(Path.Combine(tempDir, "package.json"),
Aspire.Hosting.Oracle.Tests (2)
OracleFunctionalTests.cs (2)
274File.WriteAllText(Path.Combine(bindMountPath, "01_init.sql"), $""" 366File.WriteAllText(Path.Combine(initFilesPath, "01_init.sql"), $"""
Aspire.Hosting.PostgreSQL.Tests (5)
PostgresFunctionalTests.cs (5)
225bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 368var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 374File.WriteAllText(Path.Combine(bindMountPath, "init.sql"), """ 456var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 462File.WriteAllText(Path.Combine(initFilesPath, "init.sql"), """
Aspire.Hosting.Python (2)
PythonAppResourceBuilderExtensions.cs (1)
116appDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, appDirectory));
PythonProjectResourceBuilderExtensions.cs (1)
119projectDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectDirectory));
Aspire.Hosting.Python.Tests (6)
AddPythonAppTests.cs (6)
25var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 57var manifestPath = Path.Combine(projectDirectory, "aspire-manifest.json"); 248var projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 271var scriptPath = Path.Combine(projectDirectory, "main.py"); 274var requirementsPath = Path.Combine(projectDirectory, "requirements.txt"); 278var dockerFilePath = Path.Combine(projectDirectory, "Dockerfile");
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)
278var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Seq.Tests (2)
AddSeqTests.cs (1)
160Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
SeqFunctionalTests.cs (1)
97bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
170var path = Path.Combine(source, dir);
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
155bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
348null => Path.Combine("Properties", "launchSettings.json"),
Aspire.Hosting.Testing.Tests (3)
TestingBuilderTests.cs (1)
52var 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")))
Aspire.Hosting.Tests (29)
MSBuildTests.cs (8)
22var libraryDirectory = Path.Combine(tempDirectory.Path, "Library"); 25File.WriteAllText(Path.Combine(libraryDirectory, "Library.csproj"), """ 36File.WriteAllText(Path.Combine(libraryDirectory, "Class1.cs"), """ 44var appHostDirectory = Path.Combine(tempDirectory.Path, "AppHost"); 47File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), $""" 73File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), """ 78File.WriteAllText(Path.Combine(appHostDirectory, "Directory.Build.props"), $""" 87File.WriteAllText(Path.Combine(appHostDirectory, "Directory.Build.targets"), $"""
ProjectResourceTests.cs (4)
45var projectDirectoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 46var projectFilePath = Path.Combine(projectDirectoryPath, "Project.csproj"); 47var propertiesDirectoryPath = Path.Combine(projectDirectoryPath, "Properties"); 48var launchSettingsFilePath = Path.Combine(propertiesDirectoryPath, "launchSettings.json");
PublishAsDockerfileTests.cs (1)
218var projectPath = Path.Combine(path, "project.csproj");
Schema\SchemaTests.cs (9)
50var tempContextPath = Path.Combine(tempPath, Path.GetRandomFileName()); 52var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile"); 62var tempContextPath = Path.Combine(tempPath, Path.GetRandomFileName()); 64var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile"); 80var tempContextPath = Path.Combine(tempPath, Path.GetRandomFileName()); 82var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile"); 113var tempDockerfilePath = Path.Combine(tempContextPath, "Dockerfile"); 209var relativePath = Path.Combine("Schema", "aspire-8.0.json"); 222var builder = TestDistributedApplicationBuilder.Create(["--publisher", "manifest", "--output-path", Path.Combine(manifestDir, "not-used.json")]);
Utils\DockerfileUtils.cs (2)
40var tempContextPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 43var tempDockerfilePath = Path.Combine(tempContextPath, dockerfileName);
Utils\ManifestUtils.cs (2)
28var context = new ManifestPublishingContext(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer); 44var 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)
238Assert.Equal(Path.Combine(builder.AppHostDirectory, "myValkeydata"), volumeAnnotation.Source);
ValkeyFunctionalTests.cs (1)
83bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Yarp.Tests (4)
tests\Shared\TestModuleInitializer.cs (2)
16? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, "Snapshots") 23directory: Path.Combine(projectDirectory, target),
tests\Shared\VerifyExtensions.cs (1)
14? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, directory)
YarpConfigGeneratorTests.cs (1)
277var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml");
Aspire.Playground.Tests (1)
tests\Aspire.TestUtilities\FileUtil.cs (1)
44var fullPath = Path.Combine(directory, command);
Aspire.Templates.Tests (43)
AppHostTemplateTests.cs (1)
27var projectPath = Path.Combine(project.RootDir, $"{projectId}.csproj");
BuildAndRunTemplateTests.cs (1)
82var cpmFilePath = Path.Combine(project.RootDir, "Directory.Packages.props");
NewUpAndBuildSupportProjectTemplatesTests.cs (2)
25var topLevelDir = Path.Combine(BuildEnvironment.TestRootPath, id + "_root"); 54project.AppHostProjectDirectory = Path.Combine(topLevelDir, id + ".AppHost");
StarterTemplateRunTestsBase.cs (1)
117string 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.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 />"); 151File.Copy(Path.Combine(BuildEnvironment.TestAssetsPath, "EndPointWriterHook_cs"), Path.Combine(project.AppHostProjectDirectory, "EndPointWriterHook.cs")); 152string programCsPath = Path.Combine(project.AppHostProjectDirectory, "AppHost.cs"); 322workingDirectory ??= Path.Combine(RootDir, $"{Id}.AppHost"); 326var res = await restoreCmd.ExecuteAsync($"restore \"-bl:{Path.Combine(LogPath!, $"{Id}-restore.binlog")}\" /p:TreatWarningsAsErrors=true"); 329var 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"); 92string workloadsProjString = Path.Combine("tests", "workloads.proj"); 104.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 127.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 149sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 166NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 187DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 200LogRootPath = 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 (1)
FileUtil.cs (1)
44var fullPath = Path.Combine(directory, command);
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)
251buildAssetRelativePath = 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)
104debugPath ??= 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 (2)
PrepareForReadyToRunCompilation.cs (2)
135var outputR2RImage = Path.Combine(OutputPath, outputR2RImageRelativePath); 237var compositeR2RImage = Path.Combine(OutputPath, compositeR2RImageRelativePath);
csc (8)
src\Compilers\Shared\BuildServerConnection.cs (4)
435var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 656var result = Path.Combine(tempPath!, ".roslyn"); 664FilePath = Path.Combine(mutexDirectory, name); 665GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\CompilerServerLogger.cs (1)
128loggingFilePath = 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)
63var filePath = Path.Combine(item, fileName);
CSharpSyntaxGenerator (4)
Program.cs (4)
98var outputMainFile = Path.Combine(outputLocation.Trim('"'), $"CSharp.Generated.g4"); 138var outputMainFile = Path.Combine(outputPath, $"{prefix}.Main.Generated.cs"); 139var outputInternalFile = Path.Combine(outputPath, $"{prefix}.Internal.Generated.cs"); 140var 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)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var 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-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")); 170string programFilePath = Path.Combine(this.MSBuildProj.DirectoryPath, "Program.cs"); 177var paramsFilePath = Path.Combine(this.MSBuildProj.DirectoryPath, s_bootstrapperParamsFileName);
CommandProcessorOptions.cs (4)
390Path.GetDirectoryName(this.OutputFile.FullName) : Path.GetDirectoryName(Path.Combine(Directory.GetCurrentDirectory(), this.OutputFile.OriginalPath())); 397new DirectoryInfo(Path.Combine(workingDirectory, this.UpdateServiceReferenceFolder)) : 410this.OutputDir = new DirectoryInfo(Path.Combine(workingDirectory, originalDirSpec)); 836string 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}\\**")), 876outputPath = Path.Combine(this.DirectoryPath, outputPath.Trim(new char[] { '\"' })); 880Path.Combine(outputPath, $"{Path.GetFileNameWithoutExtension(this.FileName)}.deps.json") : 914dependency = ProjectDependency.FromAssembly(Path.Combine(outputPath, assetPath));
Shared\Options\UpdateOptions.cs (1)
109this.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)
76Directory.CreateDirectory(Path.Combine(this_TestCaseOutputDir, "SvcutilBootstrapper")); 99File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.cs"), Path.Combine(this_TestCaseOutputDir, "FullFramework.cs"), true); 100File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.csproj"), Path.Combine(this_TestCaseOutputDir, "FullFramework.csproj"), true); 103var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 120this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testCaseName); 122this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 123this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{testCaseName}.log"); 124this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testCaseName); 127File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, "Program.cs"), Path.Combine(this_TestCaseOutputDir, "Program.cs"), true); 128File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, $"{testCaseName}.csproj"), Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), true); 129this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), null, CancellationToken.None); 135var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 148this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testClientFolder); 151this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 152this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{this_TestCaseName}.log"); 153this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testClientFolder); 156FileUtil.CopyDirectory(Path.Combine(g_TestCasesDir, this_TestCaseName), this_TestGroupOutputDir, true); 157this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None); 165var outDir = Path.Combine(this_TestCaseOutputDir, "ServiceReference"); 187var paramsFilePath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.params.json");
ProjectUtils.cs (5)
24var srcProgramFile = Path.Combine(projectDir, "Program.cs"); 25var dstProgramFile = Path.Combine(projectDir, $"{Path.GetFileNameWithoutExtension(filePath)}.cs"); 33FileUtil.TryDeleteDirectory(Path.Combine(Path.GetDirectoryName(filePath), "obj")); 177var outputDir = Path.Combine(project.DirectoryPath, referenceFolderName); 180var dstParamsFile = Path.Combine(outputDir, Path.GetFileName(srcParamsFile));
TestInit.cs (26)
60File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.props"), "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" />"); 61File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.targets"), "<Project></Project>"); 93var filePath = Path.Combine(this_TestGroupProjDir, this_TestGroupProjectName); 111var projectPath = Path.Combine(outputDir, $"{projectName}.csproj"); 112var programPath = Path.Combine(outputDir, $"{projectName}.cs"); 144g_TestResultsDir = Path.Combine(g_TestOutputDir, "TestResults"); 145g_TestBootstrapDir = Path.Combine(g_TestOutputDir, "TestBootstrap"); 146g_TestCasesDir = Path.Combine(vsTestsRoot, "TestCases"); 147g_BaselinesDir = Path.Combine(vsTestsRoot, "Baselines"); 173File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.props"), "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" />"); 174File.WriteAllText(Path.Combine(g_TestOutputDir, "Directory.Build.targets"), "<Project></Project>"); 210var projectPath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"); 234var projectPath = Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"); 242this_TestCaseOutputDir = Path.Combine(this_TestGroupOutputDir, testCaseName); 247this_TestCaseBootstrapDir = Path.Combine(this_TestGroupBootstrapDir, testCaseName); 250this_TestCaseLogFile = Path.Combine(this_TestGroupOutputDir, $"{testCaseName}.log"); 266this_TestCaseBaselinesDir = Path.Combine(this_TestGroupBaselinesDir, testCaseName); 267var linuxBaselinePath = Path.Combine(this_TestCaseBaselinesDir, "Linux"); 268if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile)))) 353var linuxBaselinePath = Path.Combine(this_TestCaseBaselinesDir, "Linux"); 354if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile)))) 428var expected = Path.Combine(baselineDir, relativePath); 446var globalScriptPath = Path.Combine(g_TestOutputDir, @"TestScripts\deleteAll.cmd"); 537if (!Directory.Exists(Path.Combine(vstestDir, "TestCases"))) 606File.WriteAllText(Path.Combine(directory, "global.json"), globalConfig); 624File.WriteAllText(Path.Combine(g_TestOutputDir, "nuget.config"), nugetConfigText.Replace("$svcutilTestFeed$", g_SvcutilNugetFeed));
UnitTest.cs (6)
218var wsdlFilesDstDir = Path.Combine(this_TestGroupOutputDir, "wsdl"); 222FileUtil.CopyDirectory(wsdlFilesSrcDir.Replace("$testCasesDir$", g_TestCasesDir), Path.Combine(wsdlFilesDstDir, "WcfProjectNService"), overwrite: true); 224Directory.CreateDirectory(Path.Combine(this_TestGroupOutputDir, "wsdl")); 329var jsonFileSrcPath = Path.Combine(jsonFilesRoot, jsonFile); 330var jsonFileDstPath = Path.Combine(this_TestCaseOutputDir, Path.GetFileName(jsonFileSrcPath)); 353var outJsonFile = Path.Combine(outputDir, Path.GetFileName(jsonFileSrcPath));
dotnet-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 (16)
Program.cs (12)
433var fileWithPath = Path.Combine(directory.FullName, args.PropsFileName); 442fileWithPath = Path.Combine(directory.FullName, args.PropsFileToDisableNetAnalyzersInNuGetPackageName); 542var fileWithPath = Path.Combine(directory.FullName, args.AnalyzerDocumentationFileName); 638var fileWithPath = Path.Combine(directory.FullName, args.AnalyzerSarifFileName); 732Validate(Path.Combine(directory.FullName, args.AnalyzerSarifFileName), stringWriter.ToString(), fileNamesWithValidationFailures); 774var fileWithPath = Path.Combine(directory.FullName, "RulesMissingDocumentation.md"); 1079return Path.Combine(assemblyDir, assembly); 1110var rulesetFilePath = Path.Combine(directory.FullName, rulesetFileName); 1174var directory = Directory.CreateDirectory(Path.Combine(analyzerEditorconfigsDir, editorconfigFolder)); 1175var editorconfigFilePath = Path.Combine(directory.FullName, ".editorconfig"); 1398var configFilePath = Path.Combine(directory.FullName, fileName.ToLowerInvariant()); 1610var fileWithPath = Path.Combine(directory.FullName, targetsFileName);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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"); 231var diagLog = Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_UPLOAD_ROOT"), "vstest.log"); 316ProcessUtil.PrintMessage($"Copying: {file} to {Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, logName)}"); 317File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, logName)); 330ProcessUtil.PrintMessage($"Copying: {file} to {Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, fileName)}"); 331File.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.sln"); 55var solutionPath = Path.Combine(roslynRoot, "Roslyn.sln");
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.sln");
NavigateToBenchmarks.cs (2)
48_solutionPath = Path.Combine(roslynRoot, @"Roslyn.sln"); 58_solutionPath = Path.Combine(roslynRoot, @"Roslyn.sln");
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)
71var requestHandlerPath = Path.Combine(GetANCMRequestHandlerPath(deploymentResult, _handlerVersion20), "aspnetcorev2_outofprocess.dll"); 216file.CopyTo(Path.Combine(toInfo.FullName, file.Name)); 246var destinationDirectory = new DirectoryInfo(Path.Combine(contentRoot, sourceDirectory.Name)); 266var 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, "W3SVC1"); 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)
93WebConfigHelpers.AddOrModifyAspNetCoreSection("stdoutLogFile", Path.Combine("Q:", "std"))); 134AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log")); 150AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
146return Path.Combine(siteRoot, "web.config");
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (3)
52(args, contentRoot) => $"{args} CreateFile \"{Path.Combine(contentRoot, "Started.txt")}\""); 58await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.ContentRoot, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue); 102await 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, "W3SVC1"); 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)
107using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 125using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 179File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 281Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 282Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 346File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 406File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 447File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 624parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 648parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 687parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 741var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 742var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 961deploymentParameters.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, "W3SVC1"); 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)
107using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 125using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 179File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 281Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 282Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 346File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 406File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 447File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 624parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 648parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 687parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 741var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 742var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll");
IIS.NewShim.FunctionalTests (29)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (8)
71return Path.Combine(folder, result.DeploymentParameters.SiteName); 75return Path.Combine(folder, "W3SVC1"); 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)
107using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 125using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 179File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 281Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 282Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 346File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 406File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 447File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 624parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 648parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 687parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 741var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 742var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll");
IIS.ShadowCopy.Tests (33)
ShadowCopyTests.cs (21)
63var tempDirectoryPath = Path.Combine(deploymentResult.ContentRoot, directoryName); 150var deleteDirPath = Path.Combine(deploymentResult.ContentRoot, "wwwroot/deletethis"); 152File.WriteAllText(Path.Combine(deleteDirPath, "file.dll"), ""); 181DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true); 208DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true); 220Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped"); 231Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "2")), "Expected 2 shadow copy directory"); 248DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true); 249DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "3"), copySubDirs: true); 250DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "10"), copySubDirs: true); 262Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped"); 273Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "11")), "Expected 11 shadow copy directory"); 279Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "1")), "Expected 1 shadow copy directory to be deleted"); 280Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "3")), "Expected 3 shadow copy directory to be deleted"); 292DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true); 305Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy"))); 322DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true); 335Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy"))); 347var directoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 415string tempPath = Path.Combine(destDirName, file.Name); 428string 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, "W3SVC1"); 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)
71var requestHandlerPath = Path.Combine(GetANCMRequestHandlerPath(deploymentResult, _handlerVersion20), "aspnetcorev2_outofprocess.dll"); 216file.CopyTo(Path.Combine(toInfo.FullName, file.Name)); 246var destinationDirectory = new DirectoryInfo(Path.Combine(contentRoot, sourceDirectory.Name)); 266var 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, "W3SVC1"); 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)
93WebConfigHelpers.AddOrModifyAspNetCoreSection("stdoutLogFile", Path.Combine("Q:", "std"))); 134AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log")); 150AssertLogs(Path.Combine(deploymentResult.ContentRoot, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
146return Path.Combine(siteRoot, "web.config");
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
107using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 125using (var stream = File.Open(Path.Combine(deploymentResult.ContentRoot, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) 179File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "Microsoft.AspNetCore.Server.IIS.dll"), "");
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"))); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 281Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"), 282Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), 346File.WriteAllText(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll"), ""); 406File.Delete(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll")); 447File.Delete(Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll")); 624parameters.TransformArguments((arguments, root) => Path.Combine(pathWithSpace, arguments)); 648parameters.TransformArguments((arguments, root) => Path.Combine("bin", arguments) + " \"extra argument\""); 687parameters.TransformPath((path, root) => Path.Combine(pathWithSpace, path)); 741var applicationDll = Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.dll"); 742var handlerDll = Path.Combine(deploymentResult.ContentRoot, "aspnetcorev2_inprocess.dll"); 961deploymentParameters.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");
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)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
188File.WriteAllText(System.IO.Path.Combine(hostingEnv.ContentRootPath, "Started.txt"), "");
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
85using (var depsFileStream = File.Create(Path.Combine(SharedFrameworkDirectory, $"{sharedFxName}.deps.json")))
InteractiveHost.UnitTests (3)
AbstractInteractiveHostTests.cs (1)
48while (dir != null && !File.Exists(Path.Combine(dir, "dotnet.exe")))
InteractiveHostDesktopTests.cs (1)
304Assert.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)
54var root = Path.Combine(Environment.CurrentDirectory, "h2spec");
Http3\Http3TlsTests.cs (1)
513return 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 (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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.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", "net10.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)
195IEnumerable<string> dlls = Directory.GetFiles(Path.Combine(_targetingPackRoot, "ref"), "*.dll", SearchOption.AllDirectories); 305var analyzersDir = Path.Combine(_targetingPackRoot, "analyzers"); 369var 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 (8)
BrowserManagerConfiguration.cs (2)
76BaseArtifactsFolder = Path.GetFullPath(configuration.GetValue(nameof(BaseArtifactsFolder), Path.Combine(Directory.GetCurrentDirectory(), "playwright"))); 189folderPath = Path.Combine(BaseArtifactsFolder, folderPath);
BrowserTestBase.cs (5)
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.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.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 (9)
Repositories\FileSystemXmlRepositoryTests.cs (9)
19? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ASP.NET") 20: Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".aspnet"); 21var expectedDir = new DirectoryInfo(Path.Combine(baseDir, "DataProtection-Keys")).FullName; 205var filePath1 = Path.Combine(dirInfo.FullName, "friendly1.xml"); 206var filePath2 = Path.Combine(dirInfo.FullName, "friendly2.xml"); 207var filePath3 = Path.Combine(dirInfo.FullName, "friendly3.xml"); 222fileLock2 = new FileStream(Path.Combine(dirInfo.FullName, "friendly2.xml"), FileMode.Open, FileAccess.ReadWrite, FileShare.None); 255var filePath = Path.Combine(dirInfo.FullName, "friendly1.xml"); 318string 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)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var 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)
154var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.IISExpress, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64) 209var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.Kestrel, RuntimeFlavor.CoreClr, RuntimeArchitectures.Current) 240var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "DefaultBuilder.slnf")); 243return 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)
372return 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.Extensions.Tests (3)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
165project = project.AddDocument("TestMapActions.cs", SourceText.From(source, Encoding.UTF8), filePath: Path.Combine(currentDirectory, "TestMapActions.cs")).Project;
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
359var baselineFilePath = Path.Combine(baselineFilePathRoot!, $"{callerName}.generated.txt"); 430dll = Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(assembly));
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 (2)
Infrastructure\ResourceFile.cs (1)
229var fullPath = Path.Combine(projectPath, resourceName);
SimpleWithWebApplicationBuilderTests.cs (1)
205expectedWebRoot = Path.GetFullPath(Path.Combine(builder.GetSetting(WebHostDefaults.ContentRootKey), webRoot));
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)
402var contentRootCandidate = Path.Combine( 406var contentRootMarker = Path.Combine( 511var 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.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
99? Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT"), "snapshots")
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\OpenApiDocumentIntegrationTests.cs (1)
36var outputDirectory = Path.Combine(baseSnapshotsDirectory, version.ToString());
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
57var path = Path.Combine(AppContext.BaseDirectory, "TestDocument.txt");
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)
185var file = Path.Combine(DeploymentParameters.PublishedApplicationRootPath, debugLogLocation); 308_configPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("D")); 309_applicationHostConfig = Path.Combine(_configPath, "applicationHost.config"); 510HelixHelper.PreserveFile(Path.Combine(DeploymentParameters.PublishedApplicationRootPath, "web.config"), fileNamePrefix + ".web.config"); 511HelixHelper.PreserveFile(Path.Combine(_configPath, "applicationHost.config"), fileNamePrefix + ".applicationHost.config"); 512HelixHelper.PreserveFile(Path.Combine(Environment.SystemDirectory, @"inetsrv\config\ApplicationHost.config"), fileNamePrefix + ".inetsrv.applicationHost.config"); 513HelixHelper.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)
132WebConfigHelpers.AddOrModifyAspNetCoreSection("stdoutLogFile", Path.Combine(path, "std")));
IISExpressDeployer.cs (2)
69var entryPoint = Path.Combine(dllRoot, DeploymentParameters.ApplicationName + executableExtension); 298var 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)
39var certificatePath = Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!); 45var certificateKeyPath = Path.Combine(HostEnvironment.ContentRootPath, certInfo.KeyPath); 74return (new X509Certificate2(Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!), certInfo.Password), fullChain);
ListenOptionsHttpsExtensions.cs (3)
39return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName))); 53return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName), password)); 68return 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)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var 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 (10)
KestrelConfigurationLoaderTests.cs (8)
972var oldDir = Directory.CreateDirectory(Path.Combine(tempDir, "old")); 973var newDir = Directory.CreateDirectory(Path.Combine(tempDir, "new")); 974var oldCertPath = Path.Combine(oldDir.FullName, "tls.key"); 975var newCertPath = Path.Combine(newDir.FullName, "tls.key"); 977var dirLink = Directory.CreateSymbolicLink(Path.Combine(tempDir, "link"), "./old"); 978var fileLink = File.CreateSymbolicLink(Path.Combine(tempDir, "tls.key"), "./link/tls.key"); 1023dirLink = Directory.CreateSymbolicLink(Path.Combine(tempDir, "link"), "./new"); 1898return 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.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
64var 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 (9)
StaticAssetsIntegrationTests.cs (9)
325var filePath = Path.Combine(webRoot, "sample.txt"); 382File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified"); 435File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified"); 444Assert.Equal(GetGzipEtag(Path.Combine(webRoot, "sample.txt")), response.Headers.ETag.Tag); 473var contentRoot = Path.Combine(AppContext.BaseDirectory, appName); 474var webRoot = Path.Combine(contentRoot, "wwwroot"); 482var manifestPath = Path.Combine(AppContext.BaseDirectory, $"{appName}.staticwebassets.endpoints.json"); 491var filePath = Path.Combine(webRoot, resource.Path); 514var compressedFilePath = Path.Combine(webRoot, resource.Path + ".gz");
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)
158builder.UseContentRoot(Path.GetFullPath(Path.Combine(directoryInfo.FullName, solutionRelativePath)));
Microsoft.AspNetCore.Tests (19)
WebApplicationTests.cs (19)
389var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 390var webRoot = Path.Combine(contentRoot, "wwwroot"); 409var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 410var webRoot = Path.Combine(contentRoot, "wwwroot"); 466var contentRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 500var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 502var fullWebRootPath = Path.Combine(contentRoot, "wwwroot2"); 529var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 531var fullWebRootPath = Path.Combine(contentRoot, "wwwroot"); 571var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 573var fullWebRootPath = Path.Combine(contentRoot, "wwwroot"); 786var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 789var fullWebRootPath = Path.Combine(contentRoot, webRoot); 829var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 832var fullWebRootPath = Path.Combine(contentRoot, webRoot); 878var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 881var fullWebRootPath = Path.Combine(contentRoot, webRoot); 2214var wwwroot = Path.Combine(AppContext.BaseDirectory, "wwwroot"); 2247var 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.Tasks.CodeAnalysis (10)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (3)
54internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 125(false, _) => Path.Combine(ToolPath ?? "", ToolExe) 188return Path.Combine(buildTaskDirectory, "bincore");
src\Compilers\Shared\BuildServerConnection.cs (4)
435var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 656var result = Path.Combine(tempPath!, ".roslyn"); 664FilePath = Path.Combine(mutexDirectory, name); 665GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\CompilerServerLogger.cs (1)
128loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
63var filePath = Path.Combine(item, fileName);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (9)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (2)
54internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 125(false, _) => Path.Combine(ToolPath ?? "", ToolExe)
src\Compilers\Shared\BuildServerConnection.cs (4)
435var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 656var result = Path.Combine(tempPath!, ".roslyn"); 664FilePath = Path.Combine(mutexDirectory, name); 665GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\CompilerServerLogger.cs (1)
128loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
63var filePath = Path.Combine(item, fileName);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (24)
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 (2)
38_msbuildExecutable = Path.Combine(s_msbuildDirectory, "MSBuild.exe"); 93return new DisposableFile(Path.Combine(directory.Path, resultFileName));
MSBuildManagedToolTests.cs (2)
19? Path.Combine("bincore", "csc.dll") 22Assert.Equal(Path.Combine(taskPath, relativePath), task.PathToBuiltInTool);
TargetTests.cs (1)
902var path = Path.Combine(Path.GetDirectoryName(assembly.Location)!, "Microsoft.Managed.Core.targets");
TestUtilities\DotNetSdkTestBase.cs (11)
73=> dotnetDir != null && File.Exists(Path.Combine(dotnetDir, s_dotnetExeName)) && Directory.Exists(GetSdkPath(dotnetDir, s_dotnetSdkVersion)); 98var filePath = Path.Combine(objDirectory, projectFileName + ".TestHelpers.g.props"); 116var filePath = Path.Combine(objDirectory, projectFileName + ".TestHelpers.g.targets"); 151DotNetPath = Path.Combine(s_dotnetInstallDir, s_dotnetExeName); 153var sdksDir = Path.Combine(s_dotnetSdkPath ?? string.Empty, "Sdks"); 174var csharpCoreTargets = Path.Combine(testBinDirectory, "Microsoft.CSharp.Core.targets"); 175var visualBasicCoreTargets = Path.Combine(testBinDirectory, "Microsoft.VisualBasic.Core.targets"); 196Assert.True(File.Exists(Path.Combine(ObjDir.Path, "project.assets.json"))); 197Assert.True(File.Exists(Path.Combine(ObjDir.Path, ProjectFileName + ".nuget.g.props"))); 198Assert.True(File.Exists(Path.Combine(ObjDir.Path, ProjectFileName + ".nuget.g.targets"))); 221var evaluationResultsFile = Path.Combine(OutDir.Path, "EvaluationResult.txt");
Microsoft.Cci.Extensions (2)
HostEnvironment.cs (2)
152string combinedPath = Path.Combine(libPath, assemblyPath); 199path = Path.Combine(probeDir, referencedAssembly.Name.Value + extension);
Microsoft.CodeAnalysis (20)
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)
1753var 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); 223var assemblyPath = Path.Combine(Directory, unmanagedDllName + ".dll");
DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
35DotNetPath = Path.Combine(programFilesPath, "dotnet");
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (3)
87ShadowDirectory = Path.Combine(BaseDirectory, shadowDirectoryName); 158var analyzerShadowPath = Path.Combine(analyzerShadowDir, Path.GetFileName(originalAnalyzerPath)); 186return Path.Combine(ShadowDirectory, shadowDirName);
DiaSymReader\SymUnmanagedFactory.cs (1)
120var moduleHandle = LoadLibrary(Path.Combine(dir, DiaSymReaderModuleName));
FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (2)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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)
1404metadataReferences.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); 421(Path.Combine(folder, "ABClass1.cs"), code1), 422(Path.Combine(folder, "ABClass2.cs"), code2), 435var folder = Path.Combine("B", "C"); 577(Path.Combine(folder, "Class1.cs"), code1), 583(Path.Combine(folder, "Class1.cs"), fixed1), 692(Path.Combine(folder, "Class1.cs"), code1), 698(Path.Combine(folder, "Class1.cs"), fixed1), 802(Path.Combine(folder1, "Class1.cs"), code1), 803(Path.Combine(folder2, "Class2.cs"), code2), 804(Path.Combine(folder3, "Class3.cs"), code3), 809(Path.Combine(folder1, "Class1.cs"), fixed1), 810(Path.Combine(folder2, "Class2.cs"), fixed2), 811(Path.Combine(folder3, "Class3.cs"), fixed3), 953(Path.Combine(folder1, "Class1.cs"), code1), 954(Path.Combine(folder2, "Class2.cs"), code2), 955(Path.Combine(folder3, "Class3.cs"), code3), 962Sources = { (Path.Combine(project2folder, "P.cs"), project2Source) }, 963AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) }, 971(Path.Combine(folder1, "Class1.cs"), fixed1), 972(Path.Combine(folder2, "Class2.cs"), fixed2), 973(Path.Combine(folder3, "Class3.cs"), fixed3), 980Sources = { (Path.Combine(project2folder, "P.cs"), project2FixedSource) }, 981AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) },
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (181)
CommandLineTestBase.cs (2)
32MscorlibFullPath = Path.Combine(SdkDirectory, "mscorlib.dll"); 41File.WriteAllBytes(Path.Combine(dir.Path, "mscorlib.dll"), Net461.ReferenceInfos.mscorlib.ImageBytes);
CommandLineTests.cs (160)
52private static readonly string s_CSharpCompilerExecutable = Path.Combine( 54Path.Combine("dependency", "csc.exe")); 79s_CSharpScriptExecutable = s_CSharpCompilerExecutable.Replace("csc.exe", Path.Combine("csi", "csi.exe")); 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"))); 1998Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2011Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2018Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2085Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.PdbPath); 2086Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2090Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.PdbPath); 2091Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2098Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2102Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2137Assert.Equal(Path.Combine(Path.GetPathRoot(WorkingDirectory), @"MyFolder\MyPdb.pdb"), parsedArgs.PdbPath); 2201Assert.Equal(Path.Combine(WorkingDirectory, "sl.json"), parsedArgs.SourceLink); 2205Assert.Equal(Path.Combine(WorkingDirectory, "sl.json"), parsedArgs.SourceLink); 2209Assert.Equal(Path.Combine(WorkingDirectory, "s l.json"), parsedArgs.SourceLink); 2243var peStream = File.OpenRead(Path.Combine(dir.Path, "a.exe")); 2275var pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")); 2304var pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")); 2323new[] { "a.cs", "b.cs", "c.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2329new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2335new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2341new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2347new[] { "a,b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2353new[] { "a.txt", "a.cs", "b.cs", "c.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2467using (var peReader = new PEReader(File.OpenRead(Path.Combine(dir.Path, "embed.exe")))) 2474MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.Path, "embed.pdb")))) 2502symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.Path, "embed.pdb"))); 2873Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")); 2874Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah"), actual: parsedArgs.RuleSetPath); 2878Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")); 2879Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual: parsedArgs.RuleSetPath); 3581" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(40,13): error CS0103: The name 'Goo' does not exist in the current context 3582" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(50,13): error CS0103: The name 'Goo' does not exist in the current context 3604" + Path.Combine(dir.Path, @"a.cs") + @"(8,13): error CS0103: The name 'Goo' does not exist in the current context 3608" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(40,13): error CS0103: The name 'Goo' does not exist in the current context 3609" + Path.GetFullPath(Path.Combine(dir.Path, @"..\b.cs")) + @"(50,13): error CS0103: The name 'Goo' does not exist in the current context 3616" + Path.Combine(dir.Path, @"a.cs") + @"(32,13): error CS0103: The name 'Goo' does not exist in the current context 3784Assert.Equal(Path.Combine(baseDirectory, "MyBinary.dll"), parsedArgs.GetOutputFilePath(parsedArgs.OutputFileName)); 4095Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.DocumentationPath); 4199Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 4490using (var metadata = ModuleMetadata.CreateFromImage(File.ReadAllBytes(Path.Combine(dir.Path, "aa.exe")))) 5646Assert.Equal(Path.Combine(WorkingDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile); 6046var assemblyName = AssemblyName.GetAssemblyName(Path.Combine(tempDir, name)); 7079using (var metadata = ModuleMetadata.CreateFromImage(File.ReadAllBytes(Path.Combine(dir.Path, expectedOutputName)))) 7817IntPtr lib = LoadLibraryEx(Path.Combine(dir.Path, outputFileName), IntPtr.Zero, 0x00000002); 8252Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))); 8444CleanupAllGeneratedFiles(Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(source)), Path.GetFileName(source))); 8536exitCode = CreateCSharpCompiler(null, baseDir, new[] { "/nologo", "/preferreduilang:en", Path.Combine(baseDir, "nonexistent.cs"), source.ToString() }).Run(outWriter); 8538Assert.Equal("error CS2001: Source file '" + Path.Combine(baseDir, "nonexistent.cs") + "' could not be found.", outWriter.ToString().Trim()); 8699System.IO.File.Delete(System.IO.Path.Combine(baseDir, "goo.dll")); 8980var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9002var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9025var xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml"); 9049var sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json"); 9077string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 9102string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 9128string xmlPath = Path.Combine(WorkingDirectory, "Test.xml"); 9231string xmlPath = Path.Combine(WorkingDirectory, "Test.xml"); 9874Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles.Single().Path); 9879Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9880Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9885Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9886Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[1].Path); 9890Assert.Equal(Path.Combine(WorkingDirectory, "..\\web.config"), args.AdditionalFiles.Single().Path); 9900Assert.Equal(Path.Combine(baseDir.Path, "web1.config"), args.AdditionalFiles[0].Path); 9901Assert.Equal(Path.Combine(baseDir.Path, "web2.config"), args.AdditionalFiles[1].Path); 9902Assert.Equal(Path.Combine(baseDir.Path, "web3.config"), args.AdditionalFiles[2].Path); 9907Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9908Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9913Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9914Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9919Assert.Equal(Path.Combine(WorkingDirectory, "web.config"), args.AdditionalFiles[0].Path); 9920Assert.Equal(Path.Combine(WorkingDirectory, "app.manifest"), args.AdditionalFiles[1].Path); 9925Assert.Equal(Path.Combine(WorkingDirectory, "web.config,app.manifest"), args.AdditionalFiles[0].Path); 9930Assert.Equal(Path.Combine(WorkingDirectory, "web.config:app.manifest"), args.AdditionalFiles[0].Path); 9946Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths.Single()); 9951Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[0]); 9952Assert.Equal(Path.Combine(WorkingDirectory, "subdir\\.editorconfig"), args.AnalyzerConfigPaths[1]); 9957Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[0]); 9958Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[1]); 9962Assert.Equal(Path.Combine(WorkingDirectory, "..\\.editorconfig"), args.AnalyzerConfigPaths.Single()); 9967Assert.Equal(Path.Combine(WorkingDirectory, ".editorconfig"), args.AnalyzerConfigPaths[0]); 9968Assert.Equal(Path.Combine(WorkingDirectory, "subdir\\.editorconfig"), args.AnalyzerConfigPaths[1]); 11368Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))); 11383using (var reader = new StreamReader(Path.Combine(dir.ToString(), "doc.xml"))) 11389output = ProcessUtilities.RunAndGetOutput(Path.Combine(dir.ToString(), "out.exe"), startFolder: dir.ToString()); 11406Assert.Equal(Path.Combine(baseDirectory, @"a.pdb"), args.PdbPath); 11439AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11443AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path)); 11447AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path)); 11451AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11455AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11459AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11464AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11469AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11474AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path)); 11593var dir = Path.Combine(WorkingDirectory, "a"); 11596Assert.Equal(Path.Combine(dir, @"data.pdb"), parsedArgs.PdbPath); 11619var exePath = Path.Combine(dir.Path, "a.exe"); 11631var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11638var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11645var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11653var pdbPath = Path.Combine(dir.Path, @"pdb\a.pdb"); 11660var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11667var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11674var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11738dir.CopyFile(Path.Combine(Path.GetDirectoryName(s_CSharpCompilerExecutable), "csc.rsp")); 11799var exe = Path.Combine(dir.Path, "a.exe"); 11808var doc = Path.Combine(dir.Path, "doc.xml"); 11832var refDll = Path.Combine(refDir.Path, "a.dll"); 11863var dll = Path.Combine(dir.Path, "a.dll"); 11866var refDll = Path.Combine(dir.Path, Path.Combine("ref", "a.dll")); 11915var refDll = Path.Combine(dir.Path, "a.dll"); 11926var pdb = Path.Combine(dir.Path, "a.pdb"); 11929var doc = Path.Combine(dir.Path, "doc.xml"); 12247var cscCopy = Path.Combine(dir.Path, "csc.exe"); 12291var exePath = Path.Combine(dir.Path, "a.exe"); 13478string binaryPath = Path.Combine(dir.Path, "temp.dll"); 13481string pdbPath = Path.Combine(dir.Path, pdbName); 13484string xmlDocFilePath = Path.Combine(dir.Path, docName); 13524string binaryPath = Path.Combine(dir.Path, "temp.dll"); 13527string pdbPath = Path.Combine(dir.Path, pdbName); 13530string xmlDocFilePath = Path.Combine(dir.Path, docName); 13574string binaryPath = Path.Combine(dir.Path, "temp.dll"); 13577string pdbPath = Path.Combine(dir.Path, pdbName); 13580string xmlDocFilePath = Path.Combine(dir.Path, docName); 13605string binaryPath = Path.Combine(dir.Path, "temp.dll"); 14043using (Stream peStream = File.OpenRead(Path.Combine(dir.Path, "checksum.exe")), pdbStream = File.OpenRead(Path.Combine(dir.Path, "checksum.pdb"))) 14115ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource1 } } } }); 14122ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource2 } } } }); 14185var generatedPath = Path.Combine(subdir, generatedFileName); 14224var path = Path.Combine(dir.Path, Guid.NewGuid().ToString() + ".dll"); 14280var generatedDirPath = Path.Combine(dir.Path, "noexist"); 14308ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource } } } }); 14335Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory); 14339Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory); 14343Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory); 14347Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory); 14349var absPath = Path.Combine(root, "outdir"); 14358absPath = Path.Combine(root, "generated files"); 14402string[] writtenText = File.ReadAllLines(Path.Combine(dir.Path, "touched.write")); 15397var generatorPath = Path.Combine(directory.Path, "generator.dll"); 15433Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.Path, additionalFilePath1))); 15434Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.Path, additionalFilePath2))); 15440string 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 (57)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (4)
58var path = Path.Combine(Path.GetTempPath(), nameof(PdbSourceDocumentTests)); 331return Path.Combine(path, "reference.dll"); 336return Path.Combine(path, "source.cs"); 341return Path.Combine(path, "reference.pdb");
PdbSourceDocument\ImplementationAssemblyLookupServiceTests.cs (32)
49File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 87File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 129File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 172var dllFilePath = Path.Combine(path, "implementation.dll"); 173var sourceCodePath = Path.Combine(path, "implementation.cs"); 174var pdbFilePath = Path.Combine(path, "implementation.pdb"); 180var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 225var dllFilePath = Path.Combine(path, "implementation.dll"); 226var sourceCodePath = Path.Combine(path, "implementation.cs"); 227var pdbFilePath = Path.Combine(path, "implementation.pdb"); 240var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 286var dllFilePath = Path.Combine(path, "implementation.dll"); 287var sourceCodePath = Path.Combine(path, "implementation.cs"); 288var pdbFilePath = Path.Combine(path, "implementation.pdb"); 301var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 341var dllFilePath = Path.Combine(path, "implementation.dll"); 342var sourceCodePath = Path.Combine(path, "implementation.cs"); 343var pdbFilePath = Path.Combine(path, "implementation.pdb"); 356var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 392var dllFilePath = Path.Combine(path, "implementation.dll"); 393var sourceCodePath = Path.Combine(path, "implementation.cs"); 394var pdbFilePath = Path.Combine(path, "implementation.pdb"); 407var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 457var dllFilePath = Path.Combine(path, "implementation.dll"); 458var sourceCodePath = Path.Combine(path, "implementation.cs"); 459var pdbFilePath = Path.Combine(path, "implementation.pdb"); 472var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 515var dllFilePath = Path.Combine(path, "implementation.dll"); 516var sourceCodePath = Path.Combine(path, "implementation.cs"); 517var pdbFilePath = Path.Combine(path, "implementation.pdb"); 530var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 538var realImplementationDllFilePath = Path.Combine(path, "realimplementation.dll");
PdbSourceDocument\PdbFileLocatorServiceTests.cs (3)
35var pdbFilePath = Path.Combine(path, "SourceLink.pdb"); 66var pdbFilePath = Path.Combine(path, "SourceLink.pdb"); 95var pdbFilePath = Path.Combine(path, "SourceLink.pdb");
PdbSourceDocument\PdbSourceDocumentLoaderServiceTests.cs (2)
38var sourceFilePath = Path.Combine(path, "SourceLink.cs"); 73var sourceFilePath = Path.Combine(path, "SourceLink.cs");
PdbSourceDocument\PdbSourceDocumentTests.cs (15)
404Directory.CreateDirectory(Path.Combine(path, "ref")); 405Directory.CreateDirectory(Path.Combine(path, "lib")); 409var (project, symbol) = await CompileAndFindSymbolAsync(Path.Combine(path, "ref"), Location.Embedded, Location.OnDisk, sourceText, c => c.GetMember("C.E"), buildReferenceAssembly: true); 412CompileTestSource(Path.Combine(path, "lib"), sourceText, project, Location.Embedded, Location.Embedded, buildReferenceAssembly: false, windowsPdb: false); 445File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 489File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 533var implementationDllFilePath = Path.Combine(sharedDir, "implementation.dll"); 534var sourceCodePath = Path.Combine(sharedDir, "implementation.cs"); 535var pdbFilePath = Path.Combine(sharedDir, "implementation.pdb"); 541var typeForwardDllFilePath = Path.Combine(sharedDir, "reference.dll"); 542sourceCodePath = Path.Combine(sharedDir, "reference.cs"); 543pdbFilePath = Path.Combine(sharedDir, "reference.pdb"); 551File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 940CompileTestSource(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)
87var escapedPath = Path.Combine(TestWorkspace.RootDirectory, "test1.cs").Replace("\\", "\\\\");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
4635var dllPath = Path.Combine(tmpDir.Path, "assemblyname.dll"); 4636var pdbPath = Path.Combine(tmpDir.Path, "assemblyname.pdb");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\EditAndContinueTestBase.cs (4)
251File.WriteAllBytes(Path.Combine(outputDirectory, baseName + ".dll" + extSuffix), baseline.EmittedAssemblyData.ToArray()); 252File.WriteAllBytes(Path.Combine(outputDirectory, baseName + ".pdb" + extSuffix), baseline.EmittedAssemblyPdb.ToArray()); 256File.WriteAllBytes(Path.Combine(outputDirectory, $"{baseName}.{i + 1}.metadata{extSuffix}"), diffs[i].MetadataDelta.ToArray()); 257File.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.UnitTests (32)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (5)
41AddTestDocument(source, path: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 458AddTestDocument(source, path: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 659var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 705var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 732var filePath = Path.Combine(TempRoot.Root, "src.cs");
EditAndContinue\Helpers\EditingTestBase.cs (1)
132=> Path.Combine(TempRoot.Root, documentIndex.ToString() + ".cs");
SemanticSearch\CSharpSemanticSearchServiceTests.cs (1)
24private static readonly string s_referenceAssembliesDir = Path.Combine(Path.GetDirectoryName(typeof(CSharpSemanticSearchServiceTests).Assembly.Location!)!, "SemanticSearchRefs");
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (25)
35=> Path.Combine(Directory, Path.Combine(folders)); 39var filePath = Path.Combine(directory ?? Directory, fileName); 421(Path.Combine(folder, "ABClass1.cs"), code1), 422(Path.Combine(folder, "ABClass2.cs"), code2), 435var folder = Path.Combine("B", "C"); 577(Path.Combine(folder, "Class1.cs"), code1), 583(Path.Combine(folder, "Class1.cs"), fixed1), 692(Path.Combine(folder, "Class1.cs"), code1), 698(Path.Combine(folder, "Class1.cs"), fixed1), 802(Path.Combine(folder1, "Class1.cs"), code1), 803(Path.Combine(folder2, "Class2.cs"), code2), 804(Path.Combine(folder3, "Class3.cs"), code3), 809(Path.Combine(folder1, "Class1.cs"), fixed1), 810(Path.Combine(folder2, "Class2.cs"), fixed2), 811(Path.Combine(folder3, "Class3.cs"), fixed3), 953(Path.Combine(folder1, "Class1.cs"), code1), 954(Path.Combine(folder2, "Class2.cs"), code2), 955(Path.Combine(folder3, "Class3.cs"), code3), 962Sources = { (Path.Combine(project2folder, "P.cs"), project2Source) }, 963AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) }, 971(Path.Combine(folder1, "Class1.cs"), fixed1), 972(Path.Combine(folder2, "Class2.cs"), fixed2), 973(Path.Combine(folder3, "Class3.cs"), fixed3), 980Sources = { (Path.Combine(project2folder, "P.cs"), project2FixedSource) }, 981AnalyzerConfigFiles = { (Path.Combine(project2Directory, ".editorconfig"), project2EditorConfig) },
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (7)
CommandLineRunnerTests.cs (2)
252var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "@arg1"))}"; 399var 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)
1238string dir = Path.Combine(Path.GetDirectoryName(file.Path), "subdir"); 1240string scriptPath = Path.Combine(dir, "a.csx"); 1243$@"#r ""{Path.Combine("..", libFileName)}""", 1260string scriptPath = Path.Combine(dir, "a.csx");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
4305driverOptions: 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"); 234var newSubmissionFilePath = Path.Combine(hostPathDirectory, $"Submission{SubmissionCount}{_languageInfo.Extension}");
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)
67var result = compilation.Emit(Path.Combine(directory, $"{simpleName}.dll")); 103File.Move(Path.Combine(dir1, fileName), Path.Combine(dir2, fileName)); 112expectedAssembly = context.LoadFromAssemblyPath(Path.Combine(dir2, fileName)); 159var serviceHubFolder = Path.Combine(dir, RazorAnalyzerAssemblyResolver.ServiceHubCoreFolderName);
Microsoft.CodeAnalysis.Features (16)
EditAndContinue\TraceLog.cs (4)
44path = Path.Combine(_logDirectory, _traceLog._name + ".log"); 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);
MetadataAsSource\MetadataAsSourceFileService.cs (3)
52private readonly string _rootTemporaryPath = Path.Combine(Path.GetTempPath(), MetadataAsSource); 62_rootTemporaryPathWithGuid = Path.Combine(_rootTemporaryPath, guidString); 107var providerTempPath = Path.Combine(_rootTemporaryPathWithGuid, provider.GetType().Name);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
81dllPath = Path.Combine(basePath, $"{assemblyName}.dll");
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
51var filePath = Path.Combine(tempFilePath, Path.GetFileName(sourceDocument.FilePath));
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
237var tempFilePath = Path.Combine(tempPath, projectId.Id.ToString());
SemanticSearch\SemanticSearchUtilities.cs (3)
33public static readonly string ReferenceAssembliesDirectory = Path.Combine(s_thisAssemblyDirectory, ReferenceAssemblyDirectoryName); 63=> Path.Combine(s_thisAssemblyDirectory, QueryDocumentName + (language == LanguageNames.CSharp ? ".cs" : ".vb")); 66=> Path.Combine(s_thisAssemblyDirectory, ConfigDocumentName);
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (2)
183Path.Combine(_cacheDirectoryInfo.FullName, ConvertToFileName(_source) + ".txt")); 344var tempFilePath = Path.Combine(_cacheDirectoryInfo.FullName, guidString + ".tmp");
Workspace\CompileTimeSolutionProvider.cs (1)
216return Path.Combine(prefix, GetIdentifierFromPath(relativeDocumentPath)) + ".g.cs";
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\ActiveStatementsDescription.cs (1)
145var documentName = filePaths?[sourceIndex] ?? Path.Combine(TempRoot.Root, TestWorkspace.GetDefaultTestSourceDocumentName(sourceIndex, extension ?? ""));
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
154=> projectDirectory?.CreateFile(fileName).WriteAllText(content, Encoding.UTF8).Path ?? Path.Combine(TempRoot.Root, fileName); 342[(source, sourceFilePath ?? Path.Combine(TempRoot.Root, "test1.cs"))],
EditAndContinue\Extensions.cs (1)
131assemblyPath: Path.Combine(TempRoot.Root, projectName + ".dll"),
Snippets\AbstractSnippetProviderTests.cs (2)
45filePath: Path.Combine(TempRoot.Root, "TestDocument")); 52filePath: Path.Combine(TempRoot.Root, ".editorconfig"));
Microsoft.CodeAnalysis.Features.UnitTests (21)
EditAndContinue\CompileTimeSolutionProviderTests.cs (3)
30var projectFilePath = Path.Combine(TempRoot.Root, "a.csproj"); 44assemblyPath: Path.Combine(TempRoot.Root, "proj"), 114assemblyPath: Path.Combine(TempRoot.Root, "proj"),
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (14)
124AddDocument(CreateDesignTimeOnlyDocument(projectPId, name: "dt1.cs", path: Path.Combine(dir.Path, "dt1.cs"))). 397var designTimeOnlyFilePath = Path.Combine(dir.Path, designTimeOnlyFileName); 1637var pathA = Path.Combine(TempRoot.Root, "A.cs"); 1638var pathB = Path.Combine(TempRoot.Root, "B.cs"); 1639var pathC = Path.Combine(TempRoot.Root, "C.cs"); 1640var pathD = Path.Combine(TempRoot.Root, "D.cs"); 1641var pathX = Path.Combine(TempRoot.Root, "X"); 1642var pathY = Path.Combine(TempRoot.Root, "Y"); 1643var pathCommon = Path.Combine(TempRoot.Root, "Common.cs"); 1715var pathX = Path.Combine(TempRoot.Root, "X.cs"); 1716var pathA = Path.Combine(TempRoot.Root, "A.cs"); 1896var pathA = Path.Combine(TempRoot.Root, "A.txt"); 3540AddDocument("DocB", source1, filePath: Path.Combine(TempRoot.Root, "DocB.cs")).Project; 4037var filePath = withPath ? Path.Combine(TempRoot.Root, "test.cs") : null;
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
83solution = solution.AddDocument(id, name, text, filePath: Path.Combine(TempRoot.Root, name));
EditAndContinue\EmitSolutionUpdateResultsTests.cs (2)
72var razorPath2 = Path.Combine(TempRoot.Root, "a.razor"); 77AddDocument(sourcePath, SourceText.From("class C {}", Encoding.UTF8), filePath: Path.Combine(TempRoot.Root, sourcePath));
EditAndContinue\WatchHotReloadServiceTests.cs (1)
203.AddAdditionalDocument("A.txt", "text", filePath: Path.Combine(TempRoot.Root, "A.txt"))
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (1)
167Path.Combine(Path.GetTempPath(), "InteractiveHostShadow"),
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// Relative and absolute paths treated the same as <see cref="Path.Combine(string, string)"/>.
Microsoft.CodeAnalysis.LanguageServer (9)
DotnetCliHelper.cs (2)
119var vstestConsole = Path.Combine(dotnetSdkFolder, "vstest.console.dll"); 141var filePath = Path.Combine(item, fileName);
HostWorkspace\BinLogPathProvider.cs (1)
44var binaryLogPath = Path.Combine(binaryLogDirectory, $"LanguageServerDesignTimeBuild-{_binaryLogGuidSuffix}-{numericSuffix}.binlog");
HostWorkspace\WorkspaceProject.cs (1)
187return Path.Combine(fileDirectory, propertyValue);
Program.cs (2)
97var cacheDirectory = Path.Combine(Path.GetDirectoryName(typeof(Program).Assembly.Location)!, "cache"); 327return Path.Combine(Path.GetTempPath(), pipeName + ".sock");
Services\ExtensionAssemblyManager.cs (2)
148var assemblyPath = Path.Combine(devKitDependencyDirectory, simpleName + ".dll"); 213var assemblyPath = Path.Combine(_extensionDirectory, simpleName + ".dll");
Services\StarredCompletions\StarredCompletionsAssemblyHelper.cs (1)
59return Path.Combine(starredCompletionComponentPath, CompletionsDllName);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\Extensions.cs (1)
46var path = Path.Combine(directoryName, document.Name);
Features\DecompiledSource\AssemblyResolver.cs (1)
157var moduleFileName = Path.Combine(baseDirectory, moduleName);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
CodeActions\CodeActionResolveTests.cs (2)
295var newDocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(Path.Combine(Path.GetDirectoryName(project.FilePath)!, "ABC.cs")); 423Path.Combine(Path.GetDirectoryName(existingDocument.FilePath)!, "BCD.cs"));
Diagnostics\PullDiagnosticTests.cs (1)
1587Assert.Equal(ProtocolConversions.CreateAbsoluteDocumentUri(Path.Combine(TestWorkspace.RootDirectory, "test1.cs")), results[0].TextDocument!.DocumentUri);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (6)
Utilities\AbstractLanguageServerClientTests.cs (2)
45var projectPath = Path.Combine(projectDirectory.Path, "Project.csproj"); 59var codePath = Path.Combine(projectDirectory.Path, "Code.cs");
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
77: Path.Combine(Path.GetTempPath(), pipeName + ".sock");
VirtualProjectXmlProviderTests.cs (1)
153var content = await projectProvider.GetVirtualProjectContentAsync(Path.Combine(tempDir.Path, "BAD"), LoggerFactory.CreateLogger<VirtualProjectXmlProviderTests>(), CancellationToken.None);
WorkspaceProjectFactoryServiceTests.cs (2)
64return Path.Combine("Z:\\", relativePath); 66return Path.Combine("//", relativePath);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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)
1079var shippedFilePath = Path.Combine(tempPath, ShippedFileName); 1082var unshippedFilePath = Path.Combine(tempPath, UnshippedFileName);
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.ServiceHub (2)
Host\RemoteAnalyzerPathResolver.cs (1)
20=> Path.GetFullPath(Path.Combine(_baseDirectory, Path.GetFileName(analyzerPath)));
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
271var logPath = Path.Combine(Path.GetTempPath(), "VSLogs");
Microsoft.CodeAnalysis.Remote.Workspaces (2)
ExportProviderBuilder.cs (2)
109return Path.Combine(CacheDirectory, $"{CatalogPrefix}.{ComputeAssemblyHash(AssemblyPaths)}{CatalogSuffix}"); 157var tempFilePath = Path.Combine(directory, Path.GetRandomFileName());
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (29)
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 (3)
99string modulePath = Path.Combine(dumpDir, emitData.EmittedModule.SimpleName + extension); 218pdbPath = Path.Combine(dumpDirectory, fileName + ".pdb"); 250File.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\Desktop\AppDomainUtils.cs (1)
48var fullPath = Path.Combine(
Platform\Desktop\CLRHelpers.cs (1)
185private static readonly string s_resourceFilePath = Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorrc.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 (1)
22Root = Path.Combine(Path.GetTempPath(), "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);
Microsoft.CodeAnalysis.UnitTests (14)
AnalyzerAssemblyLoaderTests.cs (3)
278var path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".dll"); 343var analyzerPath = Path.Combine(tempDir.CreateDirectory("a").Path, "analyzer.dll"); 463var 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 (3)
364Assert.Equal(Path.Combine(path1, path2), PathUtilities.CombinePaths(path1, path2)); 381Assert.Equal(Path.Combine(path1, path2), PathUtilities.CombinePaths(path1, path2)); 393Assert.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.VisualBasic.CommandLine.UnitTests (141)
CommandLineTests.vb (133)
40Private Shared ReadOnly s_basicCompilerExecutable As String = Path.Combine( 42Path.Combine("dependency", "vbc.exe")) 247Dim exePath = Path.Combine(dir.Path, "temp.exe") 266Dim xmlPath = Path.Combine(dir.Path, docName) 765Path.Combine(_baseDirectory, "a.vb"), 766Path.Combine(_baseDirectory, "b.vb") 2868Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")) 2869Assert.Equal(expected:=Path.Combine(TempRoot.Root, "blah"), actual:=parsedArgs.RuleSetPath) 2873Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")) 2874Assert.Equal(expected:=Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual:=parsedArgs.RuleSetPath) 3137Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink) 3141Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink) 3145Assert.Equal(Path.Combine(_baseDirectory, "s l.json"), parsedArgs.SourceLink) 3182Dim peStream = File.OpenRead(Path.Combine(dir.Path, "a.exe")) 3215Dim pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")) 3234{"a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3240{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3246{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3252{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3258{"a,b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3264{"a,b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3270{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3276{"a.txt", "a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3385Using peReader As New PEReader(File.OpenRead(Path.Combine(dir.Path, "embed.exe"))) 3392MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.Path, "embed.pdb")))) 3416symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.Path, "embed.pdb"))) 3632Dim pdbPath = Path.Combine(dir.Path, "a.pdb") 3642Dim exePath = Path.Combine(dir.Path, "a.exe") 3653Dim pePdbPath = Path.Combine(dir.Path, "a.pdb") 3678Dim pePdbPath = Path.Combine(dir.Path, "a.pdb") 3684Dim pdbPath = Path.Combine(dir.Path, "a.pdb") 3690Dim pdbPath = Path.Combine(dir.Path, "a.pdb") 4127Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4253Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4272Assert.True(File.Exists(Path.Combine(dir.ToString(), "MyXml.xml"))) 4291Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4310Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 4329Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 4348Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 4414Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4419Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4430Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4454Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.DocumentationPath) 4510Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4525Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4530Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4535Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4574Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path) 4973AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\", "d:\x\y\z", Path.Combine(_baseDirectory, "abc")) 4977AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\Windows", Path.Combine(_baseDirectory, "abc\def")) 5139newVbCore.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "Microsoft.VisualBasic.dll"))) 5230sysRuntime.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.Runtime.dll"))) 5249msCorLib.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorlib.dll"))) 5252output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path) 5258output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path) 5285" /t:library /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & 5295msCorLib.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorlib.dll"))) 6838Dim library As IntPtr = LoadLibraryEx(Path.Combine(dir.Path, outputFileName), IntPtr.Zero, 2) 7152Dim systemLocation = Path.Combine(corlibDir, "System.dll") 7153Dim msvbLocation = Path.Combine(corlibDir, "Microsoft.VisualBasic.dll") 7218Dim systemLocation = Path.Combine(corlibDir, "System.dll") 7219Dim msvbLocation = Path.Combine(corlibDir, "Microsoft.VisualBasic.dll") 7621" & Path.GetFullPath(Path.Combine(dir.Path, "..\b.vb")) & "(40) : error BC30451: 'Goo' is not declared. It may be inaccessible due to its protection level. 7624" & Path.GetFullPath(Path.Combine(dir.Path, "..\b.vb")) & "(50) : error BC30451: 'Goo' is not declared. It may be inaccessible due to its protection level. 7767Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles.Single().Path) 7772Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7773Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7778Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7779Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(1).Path) 7783Assert.Equal(Path.Combine(_baseDirectory, "..\web.config"), args.AdditionalFiles.Single().Path) 7793Assert.Equal(Path.Combine(baseDir.Path, "web1.config"), args.AdditionalFiles(0).Path) 7794Assert.Equal(Path.Combine(baseDir.Path, "web2.config"), args.AdditionalFiles(1).Path) 7795Assert.Equal(Path.Combine(baseDir.Path, "web3.config"), args.AdditionalFiles(2).Path) 7800Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7801Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7806Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7807Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7812Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7817Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7822Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7823Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7828Assert.Equal(Path.Combine(_baseDirectory, "web.config:app.manifest"), args.AdditionalFiles(0).Path) 7843Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths.Single()) 7848Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7849Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7854Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7855Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(1)) 7859Assert.Equal(Path.Combine(_baseDirectory, "..\.editorconfig"), args.AnalyzerConfigPaths.Single()) 7864Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7865Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7870Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7871Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7876Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig:.editorconfig"), args.AnalyzerConfigPaths(0)) 8661Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 8681Using reader As New StreamReader(Path.Combine(dir.ToString(), "doc.xml")) 8686output = ProcessUtilities.RunAndGetOutput(Path.Combine(dir.ToString(), "out.exe"), startFolder:=dir.ToString()) 9250Assert.Equal(Path.Combine(_baseDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile) 9352Dim exe = Path.Combine(dir.Path, "a.exe") 9361Dim doc = Path.Combine(dir.Path, "doc.xml") 9387Dim refDll = Path.Combine(refDir.Path, "a.dll") 9423Dim vb = Path.Combine(dir.Path, "a.vb") 9425Dim dll = Path.Combine(dir.Path, "a.dll") 9428Dim refDll = Path.Combine(dir.Path, Path.Combine("ref", "a.dll")) 9470Dim refDll = Path.Combine(dir.Path, "a.dll") 9481Dim pdb = Path.Combine(dir.Path, "a.pdb") 9484Dim doc = Path.Combine(dir.Path, "doc.xml") 9558Assert.True(File.Exists(Path.Combine(dir.Path, expectedFile)), "Expected to find: " & expectedFile) 9559Assert.False(File.Exists(Path.Combine(dir.Path, unexpectedFile)), "Didn't expect to find: " & unexpectedFile) 9567Dim exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe") 9586Dim exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe") 9606Dim xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml") 9627Dim sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json") 9699Dim exePath = Path.Combine(dir.Path, "a.exe") 10002Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10005Dim pdbPath As String = Path.Combine(dir.Path, "temp.pdb") 10008Dim docPath As String = Path.Combine(dir.Path, docName) 10054Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10057Dim pdbPath As String = Path.Combine(dir.Path, "temp.pdb") 10060Dim docPath As String = Path.Combine(dir.Path, docName) 10111Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10114Dim pdbPath As String = Path.Combine(dir.Path, "temp.pdb") 10117Dim docPath As String = Path.Combine(dir.Path, docName) 10148Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10575Dim generatedDirPath = Path.Combine(dir.Path, "noexist") 10608{{Path.Combine(generatedDir.Path, generatorPrefix), New Dictionary(Of String, String)() From 10648Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory) 10652Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory) 10656Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory) 10660Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory) 10662Dim absPath = Path.Combine(root, "outdir") 10671absPath = Path.Combine(root, "generated files") 10909Dim generatorPath = Path.Combine(directory.Path, "generator.dll")
SarifErrorLoggerTests.vb (5)
50Dim errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt") 85Dim errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt") 126Dim errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt") 164Dim errorLogFile = Path.Combine(outputDir.Path, "ErrorLog.txt") 165Dim outputFilePath = Path.Combine(outputDir.Path, "test.dll")
TouchedFileLoggingTests.vb (3)
36Dim touchedBase = Path.Combine(touchedDir.Path, "touched") 67Dim touchedBase = Path.Combine(touchedDir.Path, "touched") 109Dim touchedBase = Path.Combine(touchedDir.Path, "touched")
Microsoft.CodeAnalysis.Workspaces (13)
Rename\ConflictEngine\MutableConflictResolution.cs (2)
106var newDocumentFilePath = Path.Combine(directory, newName); 121newDocumentFilePath = Path.Combine(directory, newName);
src\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
35DotNetPath = Path.Combine(programFilesPath, "dotnet");
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (3)
87ShadowDirectory = Path.Combine(BaseDirectory, shadowDirectoryName); 158var analyzerShadowPath = Path.Combine(analyzerShadowDir, Path.GetFileName(originalAnalyzerPath)); 186return Path.Combine(ShadowDirectory, shadowDirName);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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 (4)
MSBuild\MSBuildWorkspace.cs (1)
467? Path.Combine(Path.Combine([.. info.Folders]), fileName)
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (2)
76.Select(p => Path.Combine(p, "mono")) 140var monoMSBuildDirPath = Path.Combine(monoLibDirPath, "msbuild");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Rpc\Contracts\MonoMSBuildDiscovery.cs (2)
76.Select(p => Path.Combine(p, "mono")) 140var monoMSBuildDirPath = Path.Combine(monoLibDirPath, "msbuild");
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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.UnitTests (13)
NetCoreTests.cs (2)
54var arguments = $@"msbuild ""{solutionOrProjectFileName}"" /t:restore /bl:{Path.Combine(SolutionDirectory.Path, "restore.binlog")}"; 60var arguments = $@"msbuild ""{solutionOrProjectFileName}"" /bl:{Path.Combine(SolutionDirectory.Path, "build.binlog")}";
NewlyCreatedProjectsFromDotNetNew.cs (3)
38var globalJsonPath = Path.Combine(GetSolutionFolder(), "global.json"); 164return Path.Combine(projectDirectory, $"{projectName}.{projectExtension}"); 207var tempGlobalJsonPath = Path.Combine(outputDirectory, "global.json");
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.sln");
VisualStudioMSBuildWorkspaceTests.cs (1)
833var expectedOutputPath = Path.Combine(Path.GetDirectoryName(project.FilePath), @"bin");
WorkspaceTestBase.cs (1)
35return Path.Combine(this.SolutionDirectory.Path, relativeFileName);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
SolutionUtilities.cs (1)
116assemblyPath: Path.Combine(TempRoot.Root, name),
Workspaces\TestWorkspace_XmlConsumption.cs (1)
675var filePath = Path.Combine(TestWorkspace.RootDirectory, fileName);
Workspaces\TestWorkspace_XmlCreation.cs (1)
43file, Path.Combine(folders, GetDefaultTestSourceDocumentName(index++, extension)), folders: folders, parseOptions: parseOptions, isMarkup: isMarkup));
Microsoft.CodeAnalysis.Workspaces.UnitTests (45)
CommandLineProject\CommandLineProjectTests.cs (3)
140Assert.Equal(Path.Combine(@"C:\ProjectDirectory", ".editorconfig"), document.FilePath); 148var relativePath = Path.Combine(".", Path.GetFileName(pathToAssembly)); 163var relativePath = Path.Combine(".", Path.GetFileName(pathToAssembly));
SolutionTests\SolutionTests.cs (40)
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")))); 1089.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))) 1090.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, "proj2", "proj2", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj2.dll"))) 1091.AddDocument(d1, "d1.cs", SourceText.From("class D1;", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "d1.cs")) 1092.AddDocument(d2, "d2.cs", SourceText.From("class D2;", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "d2.cs")) 1095.AddAnalyzerConfigDocument(c1, "c1", SourceText.From("#empty1", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")) 1096.AddAnalyzerConfigDocument(c2, "c2", SourceText.From("#empty2", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")); 1106loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class NewD1;", Encoding.UTF32, SourceHashAlgorithm.Sha256), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD1.cs"))), 1107filePath: Path.Combine(s_projectDir, "newD1.cs"), 1115loader: TextLoader.From(TextAndVersion.Create(SourceText.From("class NewD3;", Encoding.UTF8, SourceHashAlgorithms.Default), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD3.cs"))), 1116filePath: Path.Combine(s_projectDir, "newD3.cs"), 1125loader: TextLoader.From(TextAndVersion.Create(SourceText.From("new text1", Encoding.UTF32, SourceHashAlgorithm.Sha256), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD1.cs"))), 1126filePath: Path.Combine(s_projectDir, "newA1.txt"), 1134loader: TextLoader.From(TextAndVersion.Create(SourceText.From("new text3", Encoding.UTF8, SourceHashAlgorithms.Default), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD3.cs"))), 1135filePath: Path.Combine(s_projectDir, "newA3.txt"), 1144loader: TextLoader.From(TextAndVersion.Create(SourceText.From("#new empty1", Encoding.UTF32, SourceHashAlgorithm.Sha256), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD1.cs"))), 1145filePath: Path.Combine(s_projectDir, "newC1"), 1153loader: TextLoader.From(TextAndVersion.Create(SourceText.From("#new empty3", Encoding.UTF8, SourceHashAlgorithms.Default), VersionStamp.Create(), filePath: Path.Combine(s_projectDir, "newD3.cs"))), 1154filePath: Path.Combine(s_projectDir, "newC3"), 1161var generatedOutputDir = Path.Combine(TempRoot.Root, "obj"); 1298.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1333.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1368.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1403.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1481var objDir = Path.Combine(TempRoot.Root, "obj"); 1482var binDir = Path.Combine(TempRoot.Root, "bin"); 1483var otherDir = Path.Combine(TempRoot.Root, "other"); 1492.WithOutputFilePath(Path.Combine(binDir, "output.dll")) 1494assemblyPath: Path.Combine(objDir, "output.dll"), 2330var sourcePathOptions = project2.State.GetAnalyzerOptionsForPath(Path.Combine(s_projectDir, "x.cs"), CancellationToken.None); 2390var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2421var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2472var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2501var filePath = Path.Combine(TempRoot.Root, "x.cs"); 5556projectPath = string.IsNullOrEmpty(projectPath) ? projectPath : Path.Combine(TempRoot.Root, projectPath); 5557configPath = Path.Combine(TempRoot.Root, configPath); 5558sourcePath = string.IsNullOrEmpty(sourcePath) ? sourcePath : Path.Combine(TempRoot.Root, sourcePath); 5790.WithCompilationOutputInfo(new CompilationOutputInfo(assemblyPath: Path.Combine(TempRoot.Root, "assembly.dll"), generatedFilesOutputDirectory: null));
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
45var generatedFilesOutputDir = Path.Combine(TempRoot.Root, "gendir"); 1443var analyzerPath = Path.Combine(tempDirectory.Path, "Microsoft.CodeAnalysis.TestAnalyzerReference.dll");
Microsoft.Data.Analysis.Tests (2)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (2)
57OutDir = Path.Combine(currentAssemblyLocation.Directory.FullName, "TestOutput"); 108return Path.GetFullPath(Path.Combine(DataDir, name));
Microsoft.DotNet.Arcade.Sdk (5)
src\CheckRequiredDotNetVersion.cs (1)
44var globalJsonPath = Path.Combine(RepositoryRoot, "global.json");
src\ExtractNgenMethodList.cs (1)
83var outputFilePath = Path.Combine(OutputDirectory, outputFileName);
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 (8)
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)
64fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe");
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 (4)
src\common\LatestLinksManager.cs (1)
156return Path.Combine(latestLinkShortUrlPrefix, blobIdWithoutVersions).Replace("\\", "/");
src\ConfigureInputFeed.cs (1)
30string nugetConfigLocation = Path.Combine(RepoRoot, "NuGet.config");
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)
113var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.zip")); 121var content = TestInputs.ReadAllBytes(Path.Combine("Nupkgs", $"{feedResponseContentName}.zip")); 146var testPackageName = Path.Combine("Nupkgs", "test-package-a.zip");
PublishArtifactsInManifestTests.cs (3)
37var manifestFullPath = TestInputs.GetFullPath(Path.Combine("Manifests", "SampleV3.xml")); 63var manifestFullPath = TestInputs.GetFullPath(Path.Combine("Manifests", "SampleV4.xml")); 118var testPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg"));
Microsoft.DotNet.Build.Tasks.Installers (17)
src\BuildFPMToolPreReqs.cs (4)
213parameters.Add(string.Concat("-p ", Path.Combine(OutputDir, configJson.Package_Name + ".rpm"))); 215if (configJson.After_Install_Source != null) parameters.Add(string.Concat("--after-install ", Path.Combine(InputDir, EscapeArg(configJson.After_Install_Source)))); 216if (configJson.After_Remove_Source != null) parameters.Add(string.Concat("--after-remove ", Path.Combine(InputDir, EscapeArg(configJson.After_Remove_Source)))); 223if (configJson.Install_Root != null) parameters.Add(string.Concat(Path.Combine(InputDir, "package_root/="), configJson.Install_Root)); // Package Files
src\Common\Internal\AssemblyResolver.cs (3)
46probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 58probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 68probingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);
src\CreateLightCommandPackageDrop.cs (2)
32string packageDropOutputFolder = Path.Combine(LightCommandWorkingDir, Path.GetFileName(InstallerFile)); 54var destinationPath = Path.Combine(packageDropOutputFolder, Path.GetFileName(WixProjectFile));
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 (7)
HarvestPackage.cs (1)
252version = VersionUtility.GetAssemblyVersion(Path.Combine(packagePath, refAssm))?.ToString() ?? version;
NuGetPack.cs (2)
249return Path.Combine(nupkgOutputDirectory, $"{id}.{version}{nupkgExtension}"); 355string packedPackageSourcePath = Path.Combine(Path.GetDirectoryName(fileName), string.Join(".", _packageNamePrefix, Path.GetFileName(fileName)));
PackageItem.cs (1)
52TargetPath = Path.Combine(TargetPath, sourceFile);
src\Common\Internal\AssemblyResolver.cs (3)
46probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 58probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 68probingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);
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, $"{Identity}"); 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)
34ITaskItem msi603 = BuildManifestMsi(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg"), 35msiOutputPath: Path.Combine(MsiOutputPath, "mrec")); 46string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, "pkg"); 49ITaskItem msi603 = BuildManifestMsi(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg")); 53ITaskItem msi604 = BuildManifestMsi(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.4.nupkg")); 83string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, "pkg"); 84TaskItem packageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg")); 113string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, "pkg"); 114string 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.GenAPI (1)
GenAPITask.cs (1)
290return File.CreateText(Path.Combine(outFilePath, filename));
Microsoft.DotNet.GenFacades (3)
RoslynBuildTask.cs (3)
63Assembly asm = loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{name.Name}.dll")); 73loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{codeAnalysisCsharpName}.dll")) : 74loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{codeAnalysisName}.dll"));
Microsoft.DotNet.Helix.Sdk (10)
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)));
src\Common\Internal\AssemblyResolver.cs (3)
46probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 58probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName); 68probingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);
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 (7)
src\AssemblyResolution.cs (1)
33var fullPath = Path.Combine(Path.GetDirectoryName(typeof(AssemblyResolution).Assembly.Location), "System.Collections.Immutable.dll");
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)
123string tempPackagePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 237NewPackage = Path.Combine(DestinationFolder, packageId + "." + packageVersion + ".nupkg");
src\UpdatePackageVersionTask.cs (1)
91File.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)
38var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 71var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 104var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 137var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 169var jsonFile = Path.Combine(_tempDir.Root, expectedJsonName); 202var firstJsonFile = Path.Combine(_tempDir.Root, firstExpectedJsonName); 230var secondJsonFile = Path.Combine(_tempDir.Root, secondExpectedJsonName); 262var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 294var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 310var run = app.Execute(new[] { "add", "url", FakeOpenApiUrl, "--output-file", Path.Combine("outputdir", "file.yaml") }); 314var expectedJsonName = Path.Combine("outputdir", "file.yaml"); 326var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 343var outputFile = Path.Combine("outputdir", "file.yaml"); 348var expectedJsonName = Path.Combine("outputdir", "file.yaml"); 360var resultFile = Path.Combine(_tempDir.Root, expectedJsonName); 445var 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.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 (13)
Interop\StructuredStorage.cs (2)
113string storageFullName = Path.Combine(storageDir, storageName + storageExtension); 141string path = Path.Combine(dir, (string)record["Name"]);
Verification\ArchiveVerifier.cs (2)
96Path.Combine(svr.VirtualPath, archiveEntry.RelativePath)); 121Path.Combine(svr.VirtualPath, fullName), fullName);
Verification\ExeVerifier.cs (1)
47var 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\MsiVerifier.cs (4)
41string targetPath = Path.Combine(svr.TempPath, name); 55SignatureVerificationResult packageFileResult = VerifyFile(installPackage.Files[key].TargetPath, svr.Filename, Path.Combine(svr.VirtualPath, originalFiles[key]), containerPath: null); 81string binaryFilePath = Path.Combine(svr.TempPath, binaryFile); 83SignatureVerificationResult binaryStreamResult = VerifyFile(binaryFilePath, svr.Filename, Path.Combine(svr.VirtualPath, binaryFile), containerPath: null);
Verification\MspVerifier.cs (1)
29svr.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);
Microsoft.DotNet.SignCheckTask (4)
src\Common\Internal\AssemblyResolution.cs (1)
33var fullPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "System.Collections.Immutable.dll");
src\SignCheck.cs (3)
21private static readonly string _appData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SignCheck"); 205string downloadPath = Path.Combine(_appData, Path.GetFileName(uriResult.LocalPath)); 477string downloadPath = Path.Combine(_appData, Path.GetFileName(uri.LocalPath));
Microsoft.DotNet.SignTool (19)
src\BatchSignUtil.cs (1)
168var workingDirectory = Path.Combine(_signTool.TempDir, "engines");
src\Common\Internal\AssemblyResolution.cs (1)
33var fullPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "System.Collections.Immutable.dll");
src\Configuration.cs (1)
130_pathToContainerUnpackingDirectory = Path.Combine(tempDir, "ContainerSigning");
src\SignTool.cs (10)
143var dir = Path.Combine(_args.TempDir, "Signing"); 151var signProjectPath = Path.Combine(dir, $"Round{round}-Sign.proj"); 154status = RunMSBuild(buildEngine, signProjectPath, Path.Combine(_args.LogDir, $"{signingLogName}.binlog"), Path.Combine(_args.LogDir, $"{signingLogName}.log"), Path.Combine(_args.LogDir, $"{signingLogName}.error.log")); 168var notarizeProjectPath = Path.Combine(dir, $"Round{round}-Notarize.proj"); 171status = RunMSBuild(buildEngine, notarizeProjectPath, Path.Combine(_args.LogDir, $"{notarizeLogName}.binlog"), Path.Combine(_args.LogDir, $"{notarizeLogName}.log"), Path.Combine(_args.LogDir, $"{notarizeLogName}.error.log")); 228var zipFilePath = Path.Combine(Path.GetDirectoryName(fullPath), Path.GetFileName(fullPath) + ".zip");
src\ZipData.cs (6)
247string createFileName = Path.Combine(workingDir, "create.cmd"); 248string outputFileName = Path.Combine(outputDir, FileSignInfo.FileName); 320string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 346string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 399var extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 424var extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString());
Microsoft.DotNet.SignTool.Tests (47)
SignToolTests.cs (47)
266_tmpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 288dstDir = Path.Combine(dstDir, relativePath); 292var dstPath = Path.Combine(dstDir, name); 304var dstPath = Path.Combine(_tmpDir, name); 405string tempDir = Path.Combine(_tmpDir, "verification"); 411string controlLayout = Path.Combine(tempDir, "control"); 412string dataLayout = Path.Combine(tempDir, "data"); 420string md5sumsContents = File.ReadAllText(Path.Combine(controlLayout, "md5sums")); 429string layoutFilePath = Path.Combine(dataLayout, targetSystemFilePath); 450string controlFileContents = File.ReadAllText(Path.Combine(controlLayout, "control")); 457string archive = Path.Combine(destinationFolder, entry.RelativePath); 468string tempDir = Path.Combine(_tmpDir, "verification"); 471string layout = Path.Combine(tempDir, "layout"); 481string layoutFilePath = Path.Combine(layout, targetSystemFilePath); 765<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, fileToTest))}""> 912$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "CoreLibCrossARM.dll"))}""> 915<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "AspNetCoreCrossLib.dll"))}""> 986$@"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: ''." 1047$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "engines\\0\\MsiBootstrapper.exe-engine.exe"))}""> 1053$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithWix.nupkg"))}""> 1306<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1363<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1433<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1438<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1491<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "NestedPkg.pkg.zip"))}""> 1537<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "WithApp.pkg.zip"))}""> 1728$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.deb"))}""> 1742ValidateProducedDebContent(Path.Combine(_tmpDir, "test.deb"), expectedFilesOriginalHashes, signableFiles, expectedControlFileContent); 1767$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.rpm"))}""> 1799$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.rpm"))}""> 1812ValidateProducedRpmContent(Path.Combine(_tmpDir, "test.rpm"), expectedFilesOriginalHashes, signableFiles, originalUncompressedPayloadChecksum); 1984$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiBootstrapper.exe"))}""> 2023$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiSetup.msi"))}""> 2036var badPath = Path.Combine(GetWixToolPath(), "badpath"); 2122$"{Path.Combine(_tmpDir, "ContainerSigning", "6", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "PackageWithRelationships.vsix")}" 2147<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2183$"{Path.Combine(_tmpDir, "ContainerSigning", "4", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "PackageWithRelationships.vsix")}" 2208<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "TestSpaces.vsix"))}""> 2260<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 2265<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2327<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2367<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 2843$@"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: ''.", 2848$@"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: ''." 2986string createFileName = Path.Combine(workingDir, "create.cmd"); 2987string outputFileName = Path.Combine(outputDir, expectedExe); 2997File.Delete(Path.Combine(workingDir, "Bundle.wixobj"));
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.StrongName (1)
src\Common\Internal\AssemblyResolution.cs (1)
33var fullPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "System.Collections.Immutable.dll");
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.Evaluation.Integration.Tests (1)
ResultsTests.cs (1)
33Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()),
Microsoft.Extensions.AI.Evaluation.Reporting (10)
Storage\DiskBasedResponseCache.cs (4)
287=> Path.Combine(storageRootPath, "cache"); 290=> Path.Combine(keyPath, "entry.json"); 293=> Path.Combine(keyPath, "contents.data"); 297string 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)); 269var executionDir = new DirectoryInfo(Path.Combine(_resultsRootPath, executionName)); 302var scenarioDir = new DirectoryInfo(Path.Combine(executionDir.FullName, scenarioName)); 338var resultFile = new FileInfo(Path.Combine(scenarioDir.FullName, $"{iterationName}.json"));
Microsoft.Extensions.AI.Templates.Tests (13)
Infrastructure\Project.cs (1)
31_startupProjectFullPath = Path.Combine(rootPath, _startupProjectRelativePath);
Infrastructure\TemplateExecutionTestClassFixtureBase.cs (6)
37_templateTestOutputPath = Path.Combine(WellKnownPaths.TemplateSandboxOutputRoot, outputFolderName); 38_customHivePath = Path.Combine(_templateTestOutputPath, "hive"); 52var installSandboxPath = Path.Combine(_templateTestOutputPath, "install"); 55var installNuGetConfigPath = Path.Combine(installSandboxPath, "nuget.config"); 71var outputFolderPath = Path.Combine(_templateTestOutputPath, outputFolderName); 87var templateNuGetConfigPath = Path.Combine(outputFolderPath, "nuget.config");
Infrastructure\WellKnownPaths.cs (6)
31TemplateSandboxRoot = Path.Combine(ThisProjectRoot, "TemplateSandbox"); 32TemplateSandboxOutputRoot = Path.Combine(TemplateSandboxRoot, "output"); 33TemplateInstallNuGetConfigPath = Path.Combine(TemplateSandboxRoot, "nuget.template_install.config"); 34TemplateTestNuGetConfigPath = Path.Combine(TemplateSandboxRoot, "nuget.template_test.config"); 43NuGetPackagesPath = Path.Combine(TemplateSandboxOutputRoot, "packages"); 52var 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)
38var directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "build")); 41file.CopyTo(Path.Combine(build.Root, file.Name), overwrite: true); 46file.CopyTo(Path.Combine(build.Root, file.Name), overwrite: true); 53file.CopyTo(Path.Combine(files.Root, file.Name), overwrite: true); 60file.CopyTo(Path.Combine(tasks.Root, file.Name), overwrite: true); 81Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output); 103Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.ts")}", process.Output); 104Assert.Contains($"TypeScriptCompile: {Path.Combine("obj", "azureMonitorClient.ts")}", process.Output); 126Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output); 127Assert.Contains($"FileWrites: {Path.Combine("obj", "NSwagClient.cs")}", process.Output); 128Assert.Contains($"FileWrites: {Path.Combine("obj", "swashbuckleClient.cs")}", process.Output); 180$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 205$"Options: '--an-option' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 230$"Options: '' OutputPath: '{Path.Combine("generated", "azureMonitorClient.cs")}'", 257$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 282$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.ts")}'", 307$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 332$"Options: '--an-option' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 359$"Options: '' OutputPath: '{Path.Combine("obj", "Custom.cs")}'", 383$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 389$"Options: '' OutputPath: '{Path.Combine("obj", "NSwagClient.cs")}'", 395$"Options: '' OutputPath: '{Path.Combine("obj", "swashbuckleClient.cs")}'", 424$"Options: '' OutputPath: '{Path.Combine("obj", "azureMonitorClient.cs")}'", 430$"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.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
83pathToFile = System.IO.Path.Combine(System.IO.Path.GetFileName(directory), pathToFile);
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)
318FileInfo memoryUsageInBytesFile = new(Path.Combine(path, "memory.current"));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Linux\OSFileSystemTests.cs (1)
22Path.Combine(Directory.GetCurrentDirectory(), "fixtures"), "*.slice");
Linux\Resources\HardcodedValueFileSystem.cs (1)
41.Select(x => Path.Combine(directory, x.Value))
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 (4)
PhysicalFileProvider.cs (1)
238fullPath = Path.GetFullPath(Path.Combine(Root, path));
PhysicalFilesWatcher.cs (2)
189var pollingChangeToken = new PollingFileChangeToken(new FileInfo(Path.Combine(_root, filePath))); 293string oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1));
PollingWildCardChangeToken.cs (1)
171string filePath = Path.Combine(_directoryInfo.FullName, path);
Microsoft.Extensions.FileSystemGlobbing (5)
Abstractions\DirectoryInfoWrapper.cs (2)
77new DirectoryInfo(Path.Combine(_directoryInfo.FullName, name)), 103=> new FileInfoWrapper(new FileInfo(Path.Combine(_directoryInfo.FullName, name)));
InMemoryDirectoryInfo.cs (2)
61fileList.Add(Path.GetFullPath(Path.Combine(normalizedRoot, fileWithNormalSeparators))); 134return new InMemoryDirectoryInfo(Path.Combine(FullName, path), _files, true);
MatcherExtensions.cs (1)
64result.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 (15)
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 (6)
43var project = Path.Combine(_fixture.CreateProject(id), "TestProject.csproj"); 53var project = Path.Combine(_fixture.CreateProject("<"), "TestProject.csproj"); 74var cwd = Path.Combine(projectPath, "nested1"); 175Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Project file path {0}.", Path.Combine(projectPath, "TestProject.csproj")), _console.GetOutput()); 182Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Project file path {0}.", Path.Combine(projectPath, "TestProject.csproj")), _console.GetOutput()); 333var 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)
63Path.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"); 124var tokenPath = Path.Combine(s_serviceAccountPath, "token"); 130var certPath = Path.Combine(s_serviceAccountPath, "ca.crt");
Microsoft.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
85? Path.Combine(workItemRoot, "snapshots")
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
112File.WriteAllText(Path.Combine(_directory, _fileName), report, Encoding.UTF8);
src\Generators\Shared\GeneratorUtilities.cs (1)
166? 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)
166? 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)
166? 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)
166? 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)
166? 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)
166? 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.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 (18)
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 (4)
128while (Directory.Exists(mlNetTempDir = Path.Combine(Path.GetFullPath(tempPath), $"ml_dotnet{dirNumber++}"))) ; 129var path = Path.Combine(mlNetTempDir, Path.GetRandomFileName()); 247string tempPath = Path.Combine(root, Path.GetRandomFileName()); 263_ectx.Check(entityPath == Path.Combine(root, pathEnt));
Utilities\PathUtils.cs (2)
92assemblyDir = Path.Combine(assemblyDir, customSearchDir); 105var candidate = Path.Combine(dir, fileName);
Utilities\ResourceManagerUtils.cs (5)
114if (!Uri.TryCreate(Path.Combine(MlNetResourcesUrl, relativeUrl), UriKind.Absolute, out var absoluteUrl)) 206var appDataDir = Path.Combine(appDataBaseDir, "mlnet-resources"); 207var absDir = Path.Combine(string.IsNullOrEmpty(envDir) ? appDataDir : envDir, dir); 208var filePath = Path.Combine(absDir, fileName); 263string tempPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path), "temp-resource-" + guid.ToString()));
Microsoft.ML.Core.Tests (16)
UnitTests\FileSource.cs (7)
32var file1 = Path.Combine(dirName, "a.txt"); 33var file2 = Path.Combine(dirName, "b.txt"); 41fileSource = new MultiFileSource(Path.Combine(dirName, "...")); 57var fileDataA = Path.Combine(dataDir, "a.txt"); 58var fileDataB = Path.Combine(dataDir, "b.txt"); 67var fileDataSA = Path.Combine(subFolder1Dir, "a.txt"); 68var fileDataSB = Path.Combine(subFolder2Dir, "b.txt");
UnitTests\TestEntryPoints.cs (3)
4560TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS1.csv")), "sep=, col=Features:R4:1 header=+", 4589TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "real_1.csv")), "sep=, col=Features:R4:1 header=+", 4613TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS2.csv")), "sep=, col=Features:R4:1 header=+",
UnitTests\TestModelLoad.cs (2)
27using (var modelStream = File.OpenRead(Path.Combine("TestModels", "BinaryLoader-v3.11.0.0.zip"))) 45using (var modelStream = File.OpenRead(Path.Combine("TestModels", "ConcatTransform.zip")))
UnitTests\TestResourceDownload.cs (4)
67if (File.Exists(Path.Combine(saveToDir, fileName))) 68Fail($"File '{Path.Combine(saveToDir, fileName)}' should have been deleted."); 96if (File.Exists(Path.Combine(saveToDir, fileName))) 97Fail($"File '{Path.Combine(saveToDir, fileName)}' should have been deleted.");
Microsoft.ML.Data (3)
Commands\CrossValidationCommand.cs (1)
581return Path.Combine(Path.GetDirectoryName(outputModelFile),
Commands\TrainTestCommand.cs (1)
191var tempFilePath = hasOutfile ? null : Path.Combine(((IHostEnvironmentInternal)Host).TempFilePath, Path.GetRandomFileName());
Utilities\ModelFileUtils.cs (1)
188ent = rep.OpenEntryOrNull(dir = Path.Combine(DirDataLoaderModel, "Loader"), ModelLoadContext.ModelStreamName);
Microsoft.ML.DnnImageFeaturizer.AlexNet (1)
AlexNetExtension.cs (1)
28return AlexNet(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.DnnImageFeaturizer.ResNet101 (1)
ResNet101Extension.cs (1)
28return ResNet101(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.DnnImageFeaturizer.ResNet18 (1)
ResNet18Extension.cs (1)
28return ResNet18(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.DnnImageFeaturizer.ResNet50 (1)
ResNet50Extension.cs (1)
28return ResNet50(dnnModelContext, env, outputColumnName, inputColumnName, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DnnImageModels"));
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
472: Path.Combine(ctx.Directory, "PredictorModels"); 504var dir = Path.Combine(ctx.Directory, "PredictorModels");
Microsoft.ML.GenAI.Core.Tests (1)
CasualLMDatasetTest.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)
635string tempDirectory = Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, Path.GetRandomFileName());
Microsoft.ML.TensorFlow.Tests (20)
TensorflowTests.cs (20)
35tempFolder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 36assetsPath = Path.Combine(tempFolder, "assets"); 37parentWorkspacePath = Path.Combine(assetsPath, "cached"); 75_fullImagesetFolderPath = Path.Combine( 765var varDir = Path.Combine(modelLocation, "variables"); 1446if (Directory.Exists(workspacePath) && File.Exists(Path.Combine(workspacePath, trainSetBottleneckCachedValuesFileName)) 1447&& File.Exists(Path.Combine(workspacePath, validationSetBottleneckCachedValuesFileName))) 1462string workspacePath = Path.Combine(TensorFlowScenariosTestsFixture.parentWorkspacePath, finalImagesFolderName + "_" + (int)arch); 1747Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.TrainSetBottleneckCachedValuesFileName))); 1748Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.ValidationSetBottleneckCachedValuesFileName))); 1847string fullImagesetFolderPath = Path.Combine( 1955UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 1957if (!Directory.Exists(Path.Combine(imagesDownloadFolder, filenameAlias))) 1958Directory.Move(Path.Combine(imagesDownloadFolder, Path.GetFileNameWithoutExtension(fileName)), Path.Combine(imagesDownloadFolder, "FPTSUT")); 1968UnZip(Path.Combine(imagesDownloadFolder, fileName), imagesDownloadFolder); 1980string relativeFilePath = Path.Combine(destDir, destFileName); 2009if (File.Exists(Path.Combine(destFolder, flag))) 2013File.Create(Path.Combine(destFolder, flag)); 2036string 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 (23)
BpeTests.cs (7)
353using Stream vocabStream = File.OpenRead(Path.Combine(@"Gpt-2", "vocab.json")); 354using Stream mergesStream = File.OpenRead(Path.Combine(@"Gpt-2", "merges.txt")); 367string vocabFile = Path.Combine(@"Gpt-2", "vocab.json"); 368string mergesFile = Path.Combine(@"Gpt-2", "merges.txt"); 533using Stream vocabStream = File.OpenRead(Path.Combine(@"Gpt-2", "vocab.json")); 534using Stream mergesStream = File.OpenRead(Path.Combine(@"Gpt-2", "merges.txt")); 878using 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"));
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)
119var tempDirPath = Path.GetFullPath(Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, nameof(DnnRetrainTransformer) + "_" + Guid.NewGuid())); 131string fullFilePath = Path.Combine(tempDirPath, relativeFile); 410var path = Path.Combine(modelDir, DefaultModelFileNames.TmpMlnetModel); 417var variablesPath = Path.Combine(modelDir, DefaultModelFileNames.VariablesFolder); 421File.Copy(f, Path.Combine(archivePath, Path.GetFileName(f))); 440var destination = Path.Combine(variablesPath, DefaultModelFileNames.Data); 447var destination = Path.Combine(variablesPath, DefaultModelFileNames.Index); 534_modelLocation = Path.IsPathRooted(modelLocation) ? modelLocation : Path.Combine(Directory.GetCurrentDirectory(), modelLocation); 706Path.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, 872Path.Combine(_options.WorkspacePath, _options.ValidationSetBottleneckCachedValuesFileName), 970trainWriter = tf.summary.FileWriter(Path.Combine(_options.WorkspacePath, "train"), 1165var evalGraph = LoadMetaGraph(Path.Combine(_resourcePath, ModelFileName[_options.Arch])); 1329var modelFilePath = Path.Combine(_resourcePath, modelFileName);
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.LanguageServices (11)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (2)
63var vsFeedbackTempDir = Path.Combine(_tempDir, VSFeedbackSemaphoreDir); 64_vsFeedbackSemaphoreFullPath = Path.Combine(vsFeedbackTempDir, VSFeedbackSemaphoreFileName);
Implementation\AbstractEditorFactory.cs (1)
397var 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\VisualStudioWorkspaceImpl.cs (1)
994filePath = Path.Combine(folderPath, uniqueName);
Watson\FaultReporter.cs (1)
271var logPath = Path.Combine(Path.GetTempPath(), "VSLogs");
Workspace\SourceGeneratedFileManager.cs (1)
94_temporaryDirectory = PathUtilities.EnsureTrailingSeparator(Path.Combine(Path.GetTempPath(), "VSGeneratedDocuments"));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (14)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
876solution = solution.AddDocument(id, "file.cs", "class C { void M() }", filePath: Path.Combine(_persistentFolder.Path, "file.cs")); 896solution = solution.AddDocument(id, "file.cs", "class C { void M() }", filePath: Path.Combine(_persistentFolder.Path, "file.cs"));
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (2)
167Path.Combine(Path.GetDirectoryName(project.ProjectFilePath), "generated"), 170var 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)
57var binOutputPath = GetOutputPathFromArguments(commandLineArguments) ?? Path.Combine(projectFilePath, projectName + ".dll");
ProjectSystemShim\LegacyProject\SourceFileHandlingTests.cs (1)
68project.AddFileEx(Path.Combine(projectFolder, "Cat.cs"), null);
ProjectSystemShim\TempPECompilerServiceTests.cs (2)
31pszOutputFileName: Path.Combine(directory.Path, "Output.dll"), 37optionValues: [Path.Combine(directory.Path, "MissingReference.dll")]);
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (2)
74var outputs = new CompilationOutputFilesWithImplicitPdbPath(Path.Combine(dir.Path, "nonexistent.dll")); 89var debugDirPdbPath = Path.Combine(dir.Path, "nonexistent.pdb");
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (4)
MockExtensionManager.vb (2)
35Return content.RelativePath.Replace("$RootFolder$", Path.Combine(TempRoot.Root, "ResolvedRootFolder")) 37Return content.RelativePath.Replace("$ShellFolder$", Path.Combine(TempRoot.Root, "ResolvedShellFolder"))
ProjectSystemShim\Framework\TestEnvironment.vb (1)
152Dim result = Path.Combine(dir, projectName + ".vbproj")
ProjectSystemShim\VisualBasicHelpers\MockCompilerHost.vb (1)
32Return Path.Combine(_sdkPath, fileName)
Microsoft.VisualStudio.LanguageServices.UnitTests (29)
CodeModel\CSharp\RootCodeModelTests.vb (4)
180Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.cs"), filePath) 217Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.g.cs"), filePath) 262Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.cs"), filePath) 307Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.cs"), filePath)
CodeModel\VisualBasic\RootCodeModelTests.vb (4)
115Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.vb"), filePath) 150Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.g.vb"), filePath) 191Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.vb"), filePath) 232Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "C.vb"), filePath)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (6)
25Path.Combine(TempRoot.Root, "ResolvedRootFolder\test\test.dll"), 26Path.Combine(TempRoot.Root, "ResolvedShellFolder\test\test.dll"), 27Path.Combine(TempRoot.Root, "InstallPath\test\test.dll") 42Path.Combine(TempRoot.Root, "InstallPath\installPath1"), 43Path.Combine(TempRoot.Root, "InstallPath\installPath2"), 44Path.Combine(TempRoot.Root, "InstallPath\installPath3")
GenerateType\GenerateTypeViewModelTests.vb (1)
758Dim pathString = Path.Combine(projectRootFolder, randomFileName)
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (2)
427Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "TestFile.cs"), options.FilePath) 867Assert.Equal(Path.Combine(TestWorkspace.RootDirectory, "TestFile.vb"), options.FilePath)
ProjectSystemShim\FileChangeWatcherTests.vb (1)
22_tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName())
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (1)
109Path.Combine(TempRoot.Root, "File.dll")
ProjectSystemShim\VisualStudioRuleSetTests.vb (9)
23_tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName()) 45Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 85Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 88Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") 129Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 132Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") 173Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 222Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 260Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset")
ReferenceManager\VisualStudioMetadataReferenceManagerTests.vb (1)
20Dim enterprisePath = Path.Combine(assemblyDir, "System.EnterpriseServices.dll")
NonDISample (1)
Program.cs (1)
13var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
PrepareTests (14)
MinimizeUtil.cs (11)
22var duplicateDirectory = Path.Combine(destinationDirectory, duplicateDirectoryName); 33var outputPath = Path.Combine(destinationDirectory, individualFile); 35CreateHardLink(outputPath, Path.Combine(sourceDirectory, individualFile)); 48var artifactsDir = Path.Combine(sourceDirectory, "artifacts/bin"); 51Path.Combine(sourceDirectory, "eng"), 77var currentOutputDirectory = Path.Combine(destinationDirectory, currentRelativeDirectory); 90RelativePath: Path.Combine(currentRelativeDirectory, fileName), 96var destFilePath = Path.Combine(currentOutputDirectory, fileName); 114var destFilePath = Path.Combine(destinationDirectory, item.RelativePath); 122string getPeFilePath(Guid mvid) => Path.Combine(duplicateDirectory, getPeFileName(mvid)); 180File.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)
1356string applicationManifestFileLocation = Path.Combine( Path.GetDirectoryName(fileName),
Replay (14)
Replay.cs (7)
59outputDirectory = Path.Combine(Path.GetTempPath(), "replay"); 83using var compilerServerLogger = new CompilerServerLogger("replay", Path.Combine(options.OutputDirectory, "server.log")); 199var outputDirectory = Path.Combine(options.OutputDirectory, outputName); 255fileName = Path.Combine(hashSet.Count.ToString(), fileName); 258var filePath = Path.Combine(outputDirectory, fileName); 266var generatedDir = Path.Combine(outputDirectory, "generated"); 287internal string TempDirectory { get; } = Path.Combine(outputDirectory, "temp");
src\Compilers\Shared\BuildServerConnection.cs (4)
435var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 656var result = Path.Combine(tempPath!, ".roslyn"); 664FilePath = Path.Combine(mutexDirectory, name); 665GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\CompilerServerLogger.cs (1)
128loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
63var filePath = Path.Combine(item, fileName);
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 (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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); 92var args = $"{Path.Combine(TempDirectory, _testTemplateName)} -perf -host:vs -roslynonly -rootsuffix:{_rootSuffix}";
Roslyn.VisualStudio.Next.UnitTests (9)
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 (2)
448assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 787assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"),
Services\SolutionServiceTests.cs (1)
357var 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 (26)
AssemblyScheduler.cs (1)
251var testListPath = Path.Combine(assemblyDirectory!, "testlist.json");
HelixTestRunner.cs (13)
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), 219File.WriteAllText(Path.Combine(workItemPayloadDir, commandFileName), commandContent); 222File.WriteAllText(Path.Combine(workItemPayloadDir, postCommandFileName), postCommandContent); 473var 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)
198var logFilePath = Path.Combine(options.LogFilesDirectory, "runtests.log"); 264var screenshotPath = Path.Combine(options.LogFilesDirectory, $"timeout.png"); 279var dumpFilePath = Path.Combine(dumpDir, $"{proc.ProcessName}-{counter}.dmp"); 291var binDirectory = Path.Combine(options.ArtifactsDirectory, "bin"); 303var configDirectory = Path.Combine(project, options.Configuration); 319var filePath = Path.Combine(targetFrameworkDirectory, fileName);
TestRunner.cs (1)
200var outputLogPath = Path.Combine(_options.LogFilesDirectory, $"xUnitFailure-{testResult.DisplayName}.log");
SemanticSearch.BuildTask (2)
GenerateFilteredReferenceAssembliesTask.cs (2)
106var filteredReferencePath = Path.Combine(OutputDir, assemblyName + ".dll"); 137string 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)
223var xmlLarge = File.ReadAllText(Path.Combine("content", "books.xml")); 230var 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\Process.Unix.cs (4)
657string filenameInWorkingDirectory = Path.Combine(workingDirectory, filename); 712path = Path.Combine(Path.GetDirectoryName(path)!, filename); 722path = Path.Combine(Directory.GetCurrentDirectory(), filename); 747path = Path.Combine(subPath, program);
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)
122fileDestinationPath = 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)
316string 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)
102path = System.IO.Path.Combine(path, Interop.Libraries.MsQuic);
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (4)
142return Path.Combine(home, ".fonts"); 157config = Path.Combine(home, ".config"); 181string userDirsPath = Path.Combine(GetXdgConfig(homeDir), "user-dirs.dirs"); 245return 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\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\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)
307return 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 (33)
BlazorTemplateTest.cs (1)
62var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory);
BlazorWasmTemplateTest.cs (9)
29var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 30Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 105var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot"); 109Assert.False(File.Exists(Path.Combine(publishDir, "service-worker.published.js")), "service-worker.published.js should not be published"); 110Assert.True(File.Exists(Path.Combine(publishDir, "service-worker.js")), "service-worker.js should be published"); 111Assert.True(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "service-worker-assets.js should be published"); 127var fullPath = Path.Combine(basePath, path); 131return File.ReadAllText(Path.Combine(basePath, path)); 166var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
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 (7)
208var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 223var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 270var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 299var fullPath = Path.Combine(TemplateOutputDir, path); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 533var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 535var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
47: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
Templates.Blazor.WebAssembly.Auth.Tests (26)
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 (7)
208var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 223var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 270var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 299var fullPath = Path.Combine(TemplateOutputDir, path); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 533var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 535var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
47: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
183opts.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)
130var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Blazor.WebAssembly.Tests (34)
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 (7)
208var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 223var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 270var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 299var fullPath = Path.Combine(TemplateOutputDir, path); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 533var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 535var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
47: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
183opts.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)
130var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Mvc.Tests (29)
BlazorTemplateTest.cs (1)
176var 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 (7)
208var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 223var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 270var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 299var fullPath = Path.Combine(TemplateOutputDir, path); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 533var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 535var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
47: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
183opts.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)
130var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Tests (32)
BaselineTest.cs (1)
123var 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));
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 (7)
208var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll"); 223var projectDll = Path.Combine(TemplatePublishDir, $"{ProjectName}.dll"); 270var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 299var fullPath = Path.Combine(TemplateOutputDir, path); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 533var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 535var destination = Path.Combine(ArtifactsLogDir, ProjectName + ".binlog");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
47: Path.Combine("Hives", ".templateEngine"));
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
94var certPath = Path.Combine(sslCertDir, certificateNickname + ".pem"); 222var certPath = Path.Combine(certDir, nickname) + ".pem"; 341? Path.Combine("$HOME", certDir[homeDirectoryWithSlash.Length..]) 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 386var certPath = Path.Combine(certDir, nickname) + ".pem"; 525if (File.Exists(Path.Combine(searchFolder, command))) 911var linkPath = Path.Combine(certificateDirectory, $"{hash}.{i}");
src\Shared\E2ETesting\BrowserFixture.cs (1)
183opts.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)
130var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Test.Utilities (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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)
46outputFilePath = Path.Combine(Path.GetDirectoryName(assemblyFilePath)!, "testlist.json");
TestProject.AppHost (1)
TestProgram.cs (1)
62var 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 (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
450/// Combines paths with the same semantics as <see cref="Path.Combine(string, string)"/> 459/// 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")
vbc (8)
src\Compilers\Shared\BuildServerConnection.cs (4)
435var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 656var result = Path.Combine(tempPath!, ".roslyn"); 664FilePath = Path.Combine(mutexDirectory, name); 665GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\CompilerServerLogger.cs (1)
128loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
63var filePath = Path.Combine(item, fileName);
src\Compilers\Shared\Vbc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, VisualBasicCompiler.ResponseFileName);
VBCSCompiler (7)
src\Compilers\Shared\BuildServerConnection.cs (4)
435var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 656var result = Path.Combine(tempPath!, ".roslyn"); 664FilePath = Path.Combine(mutexDirectory, name); 665GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\CompilerServerLogger.cs (1)
128loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\NamedPipeUtil.cs (1)
36return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
63var filePath = Path.Combine(item, fileName);
VBCSCompiler.UnitTests (19)
CompilerServerApiTest.cs (1)
146var vbcsFilePath = Path.Combine(toolDir, "VBCSCompiler.dll");
CompilerServerTests.cs (15)
257return new DisposableFile(Path.Combine(directory.Path, resultFileName)); 451var compilerServerExecutable = Path.Combine(basePath, "VBCSCompiler.exe"); 559Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 589Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 606Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "missingfile.exe"))); 624Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 649Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "app.exe"))); 667Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "missingfile.exe"))); 696Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hellovb.exe"))); 725Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "app.exe"))); 1063$"src1.cs /shared:{serverData.PipeName} /nologo /t:library /out:" + Path.Combine(libDirectory.Path, "lib.dll"), 1114$"src1.vb /shared:{serverData.PipeName} /vbruntime* /nologo /t:library /out:" + Path.Combine(libDirectory.Path, "lib.dll"), 1397var tmp = Path.Combine(_tempDirectory.Path, "Temp"); 1431var tmp = Path.Combine(_tempDirectory.Path, "Temp"); 1461var compilerServerExecutable = Path.Combine(basePath, "VBCSCompiler.exe");
TouchedFileLoggingTests.cs (2)
60var touchedBase = Path.Combine(touchedDir.Path, "touched"); 111var touchedBase = Path.Combine(touchedDir.Path, "touched");
VBCSCompilerServerTests.cs (1)
40var baseDirectory = Path.Combine(Path.GetTempPath(), TestBase.GetUniqueName());
vbi (1)
Vbi.vb (1)
27responseFile:=Path.Combine(vbiDirectory, InteractiveResponseFileName),
VisualBasicSyntaxGenerator (4)
Program.vb (4)
75Dim mainFile = Path.Combine(outputPath, $"VisualBasic.Grammar.g4") 156Dim mainFile = Path.Combine(outputPath, $"{prefix}.Main.Generated.vb") 157Dim syntaxFile = Path.Combine(outputPath, $"{prefix}.Syntax.Generated.vb") 158Dim internalFile = Path.Combine(outputPath, $"{prefix}.Internal.Generated.vb")
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)))