4937 references to Combine
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
226string uniqueFileName = Path.Combine(directoryName, $"{fileNameWithoutExtension}-Unique{extension}");
aspire (2)
DotNetCliRunner.cs (1)
347var socketPath = Path.Combine(dotnetCliPath, $"cli.sock.{uniqueSocketPathSegment}");
Projects\ProjectLocator.cs (1)
69var qualifiedAppHostPath = Path.IsPathRooted(appHostPath) ? appHostPath : Path.Combine(settingsFile.Directory!.FullName, appHostPath);
Aspire.Cli.Tests (3)
Projects\ProjectLocatorTests.cs (3)
52var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 88var aspireSettingsFile = new FileInfo(Path.Combine(workspaceSettingsDirectory.FullName, "settings.json")); 211var appHostProjectFile = new FileInfo(Path.Combine(appHostDirectory.FullName, "AppHost.csproj"));
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
29protected string JsonSchemaPath => Path.Combine(AppContext.BaseDirectory, "ConfigurationSchema.json");
Aspire.Dashboard.Tests (9)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
54WebRootPath = Path.Combine(aspireAssemblyDirectory, "wwwroot"),
Integration\StartupTests.cs (4)
135var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 234var fileConfigDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 544var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 785var 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"); 84string workloadsProjString = Path.Combine("tests", "workloads.proj"); 96.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 119.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 141sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 158NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 179DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 192LogRootPath = 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 (11)
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");
DistributedApplicationBuilder.cs (1)
253return new AspireStore(Path.Combine(aspireDir, ".aspire"));
ExecutableResourceBuilderExtensions.cs (1)
49workingDirectory = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, workingDirectory));
ProjectResourceBuilderExtensions.cs (3)
280projectPath = PathNormalizer.NormalizePathForCurrentPlatform(Path.Combine(builder.AppHostDirectory, projectPath)); 720var appSettingsPath = Path.Combine(projectDirectoryPath, "appsettings.json"); 722var appSettingsEnvironmentPath = Path.Combine(projectDirectoryPath, $"appsettings.{env}.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)
125var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 246var modulePath = Path.Combine(moduleDirectory.FullName, $"{resource.Name}.bicep"); 353var bicepPath = Path.Combine(outputDirectoryPath, $"{MainInfrastructure.BicepName}.bicep");
Provisioning\Provisioners\BicepProvisioner.cs (1)
383var 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 (13)
AzureContainerAppsTests.cs (1)
66File.WriteAllText(Path.Combine(directory.FullName, "Dockerfile"), "");
AzureEnvironmentResourceTests.cs (4)
34var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 72var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 125var mainBicepPath = Path.Combine(tempDir.FullName, "main.bicep"); 174var mainBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "main.bicep"));
AzureEventHubsExtensionsTests.cs (1)
186Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
AzureManifestUtils.cs (2)
38if (pathNode?.ToString() is not { } path || !File.Exists(Path.Combine(manifestDir, path))) 43var bicepText = await File.ReadAllTextAsync(Path.Combine(manifestDir, path));
AzureResourceOptionsTests.cs (3)
23var outputPath = Path.Combine(tempDir.FullName, "aspire-manifest.json"); 42var actualBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 71actualBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sql-server.module.bicep"));
AzureStorageExtensionsTests.cs (1)
58Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
tests\Shared\VerifyExtensions.cs (1)
11? Path.Combine(Environment.GetEnvironmentVariable("HELIX_CORRELATION_PAYLOAD")!, directory)
Aspire.Hosting.Containers.Tests (5)
ContainerResourceTests.cs (1)
221Assert.Equal(Path.Combine(basePath, "source"), mountAnnotation.Source);
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.Tests (7)
DockerComposePublisherTests.cs (5)
66var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 67var envPath = Path.Combine(tempDir.Path, ".env"); 93var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 127var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml"); 171var composePath = Path.Combine(tempDir.Path, "docker-compose.yaml");
DockerComposeTests.cs (1)
46var composeFile = Path.Combine(tempDir.FullName, "docker-compose.yaml");
tests\Shared\VerifyExtensions.cs (1)
11? 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)
158var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 189var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 193var filePath = Path.Combine(tempDirectory, file);
KeycloakResourceBuilderTests.cs (1)
83Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
134var outputFile = Path.Combine(templatesFolder, fileName);
Aspire.Hosting.Kubernetes.Tests (5)
KubernetesEnvironmentResourceTests.cs (2)
24var chartYaml = Path.Combine(tempDir.FullName, "Chart.yaml"); 25var valuesYaml = Path.Combine(tempDir.FullName, "values.yaml");
KubernetesPublisherTests.cs (2)
61var filePath = Path.Combine(tempDir.Path, expectedFile); 99var deploymentPath = Path.Combine(tempDir.Path, "templates/service/deployment.yaml");
tests\Shared\VerifyExtensions.cs (1)
11? 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 (3)
MongoDbFunctionalTests.cs (3)
136bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 260var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 265var initFilePath = Path.Combine(bindMountPath, "mongo-init.js");
Aspire.Hosting.MySql.Tests (2)
MySqlFunctionalTests.cs (2)
305var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 311File.WriteAllText(Path.Combine(bindMountPath, "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 (2)
NodeAppFixture.cs (2)
77File.WriteAllText(Path.Combine(tempDir, "app.js"), 97File.WriteAllText(Path.Combine(tempDir, "package.json"),
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
276File.WriteAllText(Path.Combine(bindMountPath, "01_init.sql"), $"""
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
225bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 368var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 374File.WriteAllText(Path.Combine(bindMountPath, "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 (4)
AddPythonAppTests.cs (4)
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)
527Assert.Equal(Path.Combine(builder.AppHostDirectory, "mydata"), volumeAnnotation.Source);
RedisFunctionalTests.cs (1)
271var 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)
94bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
173var 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 (28)
MSBuildTests.cs (8)
23var libraryDirectory = Path.Combine(tempDirectory.FullName, "Library"); 26File.WriteAllText(Path.Combine(libraryDirectory, "Library.csproj"), """ 37File.WriteAllText(Path.Combine(libraryDirectory, "Class1.cs"), """ 45var appHostDirectory = Path.Combine(tempDirectory.FullName, "AppHost"); 48File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.csproj"), $""" 74File.WriteAllText(Path.Combine(appHostDirectory, "AppHost.cs"), """ 79File.WriteAllText(Path.Combine(appHostDirectory, "Directory.Build.props"), $""" 88File.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");
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"); 201var relativePath = Path.Combine("Schema", "aspire-8.0.json"); 214var 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(dotnetCliPath, $"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.Playground.Tests (1)
tests\Aspire.TestUtilities\FileUtil.cs (1)
44var fullPath = Path.Combine(directory, command);
Aspire.Templates.Tests (40)
BuildAndRunTemplateTests.cs (1)
82var cpmFilePath = Path.Combine(project.RootDir, "Directory.Packages.props");
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"); 84string workloadsProjString = Path.Combine("tests", "workloads.proj"); 96.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 119.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 141sdkForTemplatePath = Path.Combine(baseDir, sdkDirName); 158NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null; 179DotNet = Path.Combine(sdkForTemplatePath!, "dotnet"); 192LogRootPath = 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)
252buildAssetRelativePath = Path.Combine(folderRelativePath, buildAssetRelativePath);
OptProfCheckerUtil.cs (1)
65string 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)
137var path = Path.Combine(directory, relativePath);
SolutionCheckerUtil.cs (1)
91var 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)
96nugetPackageDirectory ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget"); 131filePath = Path.Combine(Path.GetDirectoryName(filePath)!, metadataReferenceInfo.FileName);
LocalSourceResolver.cs (1)
38onDiskPath = 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\Core\CommandLine\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\BuildServerConnection.cs (4)
438var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 659var result = Path.Combine(tempPath!, ".roslyn"); 667FilePath = Path.Combine(mutexDirectory, name); 668GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\Csc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, CSharpCompiler.ResponseFileName);
src\Compilers\Shared\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
61var filePath = Path.Combine(item, fileName);
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 (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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 (12)
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);
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)
43var path = Path.Combine(Path.GetFullPath(@"..\..\..\..\..\src\Compilers\CSharp\Portable\Generated"), Document + ".cs"); 56var 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)
134var tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
IdeCoreBenchmarks (16)
ClassificationBenchmarks.cs (2)
47_solutionPath = Path.Combine(roslynRoot, @"Roslyn.sln"); 57var solutionPath = Path.Combine(roslynRoot, "Roslyn.sln");
CSharpIdeAnalyzerBenchmarks.cs (2)
38_solutionPath = Path.Combine(roslynRoot, @"src\Tools\IdeCoreBenchmarks\Assets\Microsoft.CodeAnalysis.sln"); 49var 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)
31var 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)
53_solutionPath = Path.Combine(roslynRoot, @"Compilers.slnf"); 63_solutionPath = Path.Combine(roslynRoot, @"Roslyn.sln");
NavigateToBenchmarks.cs (2)
50_solutionPath = Path.Combine(roslynRoot, @"Roslyn.sln"); 60_solutionPath = Path.Combine(roslynRoot, @"Roslyn.sln");
Program.cs (1)
37return Path.Combine(Path.GetDirectoryName(sourceFilePath), @"..\..\..");
RenameBenchmarks.cs (1)
29_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 (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Metrics.Legacy (1)
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 (23)
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 (15)
62var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 74var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 106var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 123var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 197var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 215var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 233var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Development.json"); 251var appsettings = Path.Combine(Path.GetDirectoryName(project), "appsettings.Local.json"); 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"));
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)
376var profilePath = Path.Combine(Path.GetTempPath(), "blazor-chrome-debug"); 402var 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 (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
374Path.Combine(MacOSUserHttpsCertificateLocation, $"aspnetcore-localhost-{certificate.Thumbprint}.pfx");
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.Tests (1)
Integration\OpenApiDocumentIntegrationTests.cs (1)
38var 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 (10)
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)
40return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName))); 54return listenOptions.UseHttps(new X509Certificate2(Path.Combine(env.ContentRootPath, fileName), password)); 69return 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");
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 (123)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
1447using (StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, @"EngineTrace_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
214msbuildLocation = Path.Combine(msbuildExeName, ".exe");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
437if (s_pathToX64Clr2 == null || !FileUtilities.FileExistsNoThrow(Path.Combine(s_pathToX64Clr2, toolName))) 450if (s_pathToX32Clr2 == null || !FileUtilities.FileExistsNoThrow(Path.Combine(s_pathToX32Clr2, toolName))) 488return Path.Combine(toolPath, toolName);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
182string pluginPath = FileUtilities.NormalizePath(Path.Combine(item.Project.Directory, item.EvaluatedInclude));
BackEnd\Components\RequestBuilder\FullTracking.cs (1)
106tracking._tlogDirectory = Path.Combine(projectRootDirectory, tlogRelativeDirectoryValue);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
687outputItemFromTarget.ItemSpec = Path.Combine(projectDirectory[i], outputItemFromTarget.ItemSpec);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
349projectFiles[i] = Path.Combine(_requestEntry.ProjectRootDirectory, projectFiles[i]);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
987string oldestOutputFullPath = Path.Combine(projectDirectory, oldestOutput); 1012string candidateOutputFullPath = Path.Combine(projectDirectory, candidateOutput); 1047string unescapedInputFullPath = Path.Combine(projectDirectory, unescapedInput); 1202path1 = Path.Combine(_project.Directory, path1); 1205path2 = Path.Combine(_project.Directory, path2);
BackEnd\Components\Scheduler\Scheduler.cs (4)
2568using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerTrace_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true); 2592using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true); 2706using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true); 2746using StreamWriter file = FileUtilities.OpenWrite(string.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), EnvironmentUtilities.CurrentProcessId), append: true);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (4)
54Path.Combine(BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32, "SdkResolvers"), location); 81Path.Combine(BuildEnvironmentHelper.Instance.MSBuildToolsDirectoryRoot, "SdkResolvers"), location); 117var manifest = Path.Combine(subfolder.FullName, $"{subfolder.Name}.xml"); 118var assembly = Path.Combine(subfolder.FullName, $"{subfolder.Name}.dll");
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
85manifest.Path = System.IO.Path.Combine(manifestFolder, manifest.Path);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
986string filename = Path.Combine(FileUtilities.GetCacheDirectory(), String.Format(CultureInfo.InvariantCulture, "Configuration{0}.cache", _configId));
BackEnd\Shared\TargetResult.cs (2)
238string filename = Path.Combine(FileUtilities.GetCacheDirectory(), String.Format(CultureInfo.InvariantCulture, Path.Combine("Results{0}", "{1}.cache"), configId, targetToCache));
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
88return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
BuildCheck\Utilities\BuildCheckUtilities.cs (1)
15path = Path.Combine(Path.GetDirectoryName(projectFilePath)!, path);
BuildEnvironmentHelper.cs (7)
201var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 202var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 335.Select((name) => TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, name))) 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 618MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : null; 623? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
CommunicationsUtilities.cs (1)
843string.Format(CultureInfo.CurrentCulture, Path.Combine(s_debugDumpPath, fileName), EnvironmentUtilities.CurrentProcessId, nodeId), append: true))
Construction\Solution\ProjectInSolution.cs (1)
189_absolutePath = Path.Combine(ParentSolution.SolutionFileDirectory, _relativePath);
Construction\Solution\SolutionFile.cs (2)
1144string fullPathToEtpProj = Path.Combine(SolutionFileDirectory, etpProj.RelativePath); 1198RelativePath = Path.Combine(etpProjectRelativeDir, fileElementValue)
Construction\Solution\SolutionProjectGenerator.cs (4)
1030string localFile = Path.Combine(escapedSolutionDirectory, $"before.{escapedSolutionFileName}.targets"); 1034localFile = Path.Combine(escapedSolutionDirectory, $"after.{escapedSolutionFileName}.targets"); 1299baseName = Path.Combine(_solutionFile.SolutionFileDirectory, MakeIntoSafeItemName(project.GetUniqueProjectName())); 2298globalProperties.AddProperty(SolutionPathPropertyName, EscapingUtilities.Escape(Path.Combine(_solutionFile.SolutionFileDirectory, Path.GetFileName(_solutionFile.FullPath))));
DebugUtils.cs (4)
43debugDirectory = Path.Combine(Directory.GetCurrentDirectory(), "MSBuild_Logs"); 47debugDirectory = Path.Combine(FileUtilities.TempFileDirectory, "MSBuild_Logs"); 112var fullPath = Path.Combine(DebugPath, fileName); 118fullPath = Path.Combine(DebugPath, fileName);
Definition\ToolsetLocalReader.cs (1)
42System.IO.Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "Roslyn"),
Definition\ToolsetReader.cs (3)
190var xbuildToolsetsDir = Path.Combine(libraryPath, $"xbuild{Path.DirectorySeparatorChar}"); 197var binPath = Path.Combine(d, "bin"); 623Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, trimmedValue));
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
173list.Add(Path.GetFullPath(Path.Combine(state.EvaluationDirectory, item.ItemSpec)));
Evaluation\Evaluator.cs (4)
1190string projectFullPath = Path.Combine(projectDirectory, projectFile); 1847ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project), 1860ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project), 2091importFileUnescaped = Path.Combine(directoryOfImportingFile, importFileUnescaped);
Evaluation\Expander.cs (4)
2427rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 2460string combinedPath = Path.Combine(unescapedPath, relativePath); 2505rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath); 2582rootedPath = Path.Combine(baseDirectoryToUse, unescapedPath);
Evaluation\Expander\WellKnownFunctions.cs (2)
38var logFile = Path.Combine(Directory.GetCurrentDirectory(), fileName); 69returnVal = Path.Combine(arg0, arg1);
Evaluation\IntrinsicFunctions.cs (1)
297return Path.Combine(NativeMethodsShared.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
ExceptionHandling.cs (1)
356s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
FileMatcher.cs (3)
498longPath = Path.Combine(longPath, parts[i]); 1977var filespecUnescapedFullyQualified = Path.Combine(projectDirectoryUnescaped, filespecUnescaped); 2068fixedDirectoryPart = Path.Combine(projectDirectoryUnescaped, fixedDirectoryPart);
FileUtilities.cs (9)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 144cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 492return NormalizePath(Path.Combine(directory, file)); 704return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 783string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 861var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1309return paths.Aggregate(root, Path.Combine); 1481string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
FrameworkLocationHelper.cs (17)
410? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 420? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 430? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV30) 440? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV35) 450? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV40) 460? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV45) 470? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 480? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 561Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin"); 781var frameworkPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, prefix ?? string.Empty); 791return Path.Combine(complusInstallRoot, complusVersion); 932? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework") 933: Path.Combine(NativeMethodsShared.FrameworkBasePath, "xbuild-frameworks"); 1092string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix); 1402(!File.Exists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) && 1403!File.Exists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll")))) 1435frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Globbing\MSBuildGlob.cs (2)
143var rootedInput = Path.Combine(_state.Value.GlobRoot, stringToMatch); 239var parentedFixedPart = Path.Combine(globRoot, fixedDirPart);
Graph\GraphBuilder.cs (1)
305solutionGlobalPropertiesBuilder[SolutionProjectGenerator.SolutionPathPropertyName] = EscapingUtilities.Escape(Path.Combine(Solution.SolutionFileDirectory, Path.GetFileName(Solution.FullPath)));
InprocTrackingNativeMethods.cs (1)
208string fileTrackerPath = Path.Combine(buildToolsPath, fileTrackerDllName.Value);
Instance\TaskRegistry.cs (5)
88private static readonly string s_potentialTasksV4Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV4Filename); 107private static readonly string s_potentialTasksV12Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV12Filename); 126private static readonly string s_potentialTasksCoreLocation = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksCoreFilename); 369assemblyFile = Strings.WeakIntern(Path.Combine(directoryOfImportingFile, assemblyFile)); 384string replacedAssemblyFile = Path.Combine(Path.GetDirectoryName(assemblyFile), s_tasksCoreFilename);
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
73_archiveFilePath = Path.Combine(
Modifiers.cs (2)
566modifiedItemSpec = Path.Combine( 663fullPath = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
NamedPipeUtil.cs (1)
33return Path.Combine("/tmp", pipeName);
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TempFileUtilities.cs (5)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder); 186string file = Path.Combine(directory, $"{fileName}{extension}"); 210string destFile = Path.Combine(dest, fileInfo.Name); 215string destDir = Path.Combine(dest, subdirInfo.Name); 232: System.IO.Path.Combine(TempFileDirectory, name);
TypeLoader.cs (1)
55microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
Utilities\FileSpecMatchTester.cs (2)
68fileToMatch = FileUtilities.GetFullPathNoThrow(Path.Combine(_currentDirectory, fileToMatch)); 128var absoluteFixedDirPart = Path.Combine(currentDirectory, fixedDirPart);
Utilities\Utilities.cs (4)
490? Path.Combine(programFiles32, ReservedPropertyNames.extensionsPathSuffix) 506? Path.Combine( 525extensionsPath = Path.Combine(programFiles, ReservedPropertyNames.extensionsPathSuffix); 564string userExtensionsPath = Path.Combine(localAppData, ReservedPropertyNames.userExtensionsPathSuffix);
WindowsFileSystem.cs (3)
130var searchDirectoryPath = Path.Combine(directoryPath, "*"); 167result.Add(Path.Combine(directoryPath, findResult.CFileName)); 175Path.Combine(directoryPath, findResult.CFileName),
Microsoft.Build.BuildCheck.UnitTests (39)
ConfigurationProvider_Tests.cs (10)
33var configs = configurationProvider.GetConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 55var configs = configurationProvider.GetConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 89var customConfiguration = configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 115var buildConfig = configurationProvider.GetUserConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 146configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 151configurationProvider.CheckCustomConfigurationDataValidity(Path.Combine(workFolder1.Path, "test123.csproj"), "rule_id"); 178configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 183configurationProvider.CheckCustomConfigurationDataValidity(Path.Combine(workFolder1.Path, "test123.csproj"), "rule_id"); 209configurationProvider.GetCustomConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 214configurationProvider.CheckCustomConfigurationDataValidity(Path.Combine(workFolder1.Path, "test123.csproj"), "rule_id");
DoubleWritesAnalyzer_Tests.cs (1)
49{ "DestinationFiles", new TaskInvocationCheckData.TaskParameter(Path.Combine("outdir", "source1"), IsOutput: false) },
EditorConfigParser_Tests.cs (2)
66TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true); 98TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true);
EndToEndTests.cs (25)
37private static string TestAssetsRootPath { get; } = Path.Combine(AssemblyLocation, "TestAssets"); 162CopyFilesRecursively(Path.Combine(TestAssetsRootPath, testAssetsFolderName), workFolder.Path); 169_env.SetCurrentDirectory(Path.Combine(workFolder.Path, entryProjectName)); 176string[] depsFiles = Directory.GetFiles(Path.Combine(workFolder.Path, entryProjectName), $"{entryProjectName}.deps.json", SearchOption.AllDirectories); 272CopyFilesRecursively(Path.Combine(TestAssetsRootPath, testAssetsFolderName), workFolder.Path); 274_env.SetCurrentDirectory(Path.Combine(workFolder.Path, entryProjectName)); 377CopyFilesRecursively(Path.Combine(TestAssetsRootPath, testAssetsFolderName), workFolder.Path); 378ReplaceStringInFile(Path.Combine(workFolder.Path, $"{projectName}.csproj"), 593$"{logFile} -flp:logfile={Path.Combine(projectDirectory!, "logFile.log")};verbosity=diagnostic", 659string checkCandidatePath = Path.Combine(TestAssetsRootPath, "CheckCandidate"); 665string editorConfigName = Path.Combine(checkCandidatePath, EditorConfigFileName); 675$"{Path.Combine(checkCandidatePath, $"CheckCandidate.csproj")} /m:1 -nr:False -restore -check -verbosity:n", out bool success, timeoutMilliseconds: 1200_0000); 704$"{logFile} -flp:logfile={Path.Combine(projectDirectory!, "logFile.log")};verbosity=diagnostic {(checkRequested ? "-check" : string.Empty)}", 839var checkCandidatePath = Path.Combine(TestAssetsRootPath, checkCandidate); 843$"{Path.Combine(checkCandidatePath, $"{checkCandidate}.csproj")} /m:1 -nr:False -restore -check -verbosity:n", 872string checkCandidatePath = Path.Combine(TestAssetsRootPath, checkCandidate); 876string editorConfigName = Path.Combine(checkCandidatePath, EditorConfigFileName); 883$"{Path.Combine(checkCandidatePath, $"{checkCandidate}.csproj")} /m:1 -nr:False -restore -check -verbosity:n", out bool _); 901string checkCandidatePath = Path.Combine(TestAssetsRootPath, checkCandidate); 905string editorConfigName = Path.Combine(checkCandidatePath, EditorConfigFileName); 912$"{Path.Combine(checkCandidatePath, $"{checkCandidate}.csproj")} /m:1 -nr:False -restore -check -verbosity:n", out bool success); 948File.Copy(nugetTemplatePath, Path.Combine(workFolder.Path, nugetTemplateName)); 972var nugetTemplatePath = Path.Combine(checkCandidatePath, "nugetTemplate.config"); 981string checksPackagesPath = Path.Combine(Directory.GetParent(AssemblyLocation)?.Parent?.FullName ?? string.Empty, "CustomChecks"); 987doc.Save(Path.Combine(checkCandidatePath, "nuget.config"));
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.CommandLine.UnitTests (31)
PerfLog_Tests.cs (3)
42string projectPath = Path.Combine(projectFolder.Path, "ClassLibrary.csproj"); 65string perfLogPath = Path.Combine(perfLogFolder.Path, "logs"); 78string projectPath = Path.Combine(projectFolder.Path, "ClassLibrary.csproj");
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
XMake_Tests.cs (27)
1100string projectFileName = Path.Combine(tempdir, "msbEnvironmenttest.proj"); 1138string projectFileName = Path.Combine(tempdir, "msbLoggertest.proj"); 1139string logFile = Path.Combine(tempdir, "logFile"); 1185? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "notepad.exe") 1260string projectPath = Path.Combine(directory, "my.proj"); 1261string rspPath = Path.Combine(directory, AutoResponseFileName); 1367directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 1369string projectPath = Path.Combine(directory, "my.proj"); 1370string rspPath = Path.Combine(directory, AutoResponseFileName); 1373string exePath = Path.Combine(exeDirectory, MSBuildExeName); 1374string mainRspPath = Path.Combine(exeDirectory, AutoResponseFileName); 1411string projectPath = Path.Combine(directory, "my.proj"); 1412string rspPath = Path.Combine(directory, AutoResponseFileName); 1413string exePath = Path.Combine(directory, MSBuildExeName); 1986string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2009string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2127distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2140distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2153distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2166distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($";Parameter1;logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2183fileLoggerParameters = new[] { "Parameter1", "verbosity=Normal;logfile=" + Path.Combine("..", "cat.log") + ";Parameter1" }; 2199distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"Parameter1;Parameter;;;Parameter;Parameter;logFile={Path.Combine(Directory.GetCurrentDirectory(), "msbuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in" 2721string binlogPath = Path.Combine(testProject.TestRoot, match.Groups[1] + ".binlog"); 2769dest = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 2790File.Copy(file, Path.Combine(dest, Path.GetFileName(file))); 2796string destSubDir = Path.Combine(dest, dirName); 2835File.WriteAllText(Path.Combine(testProject.TestRoot, item.Key), item.Value);
Microsoft.Build.Engine.OM.UnitTests (109)
BuildEnvironmentHelper.cs (7)
201var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 202var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 335.Select((name) => TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, name))) 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 616MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : CurrentMSBuildToolsDirectory; 623? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
Construction\ConstructionEditing_Tests.cs (3)
3214string sdkPropsPath = Path.Combine(testSdkDirectory, "Sdk.props"); 3215string sdkTargetsPath = Path.Combine(testSdkDirectory, "Sdk.targets"); 3235var updated = Path.Combine(testProject.TestRoot, "updated.proj");
Construction\ProjectFormatting_Tests.cs (4)
409directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 412string file = Path.Combine(directory, "test.proj"); 464directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 467string file = Path.Combine(directory, "test.proj");
Construction\ProjectImportElement_Tests.cs (3)
241string testTempPath = Path.Combine(tempPath, "UnitTestsPublicOm"); 242string projectfile = Path.Combine(testTempPath, "a.proj"); 243string targetsFile = Path.Combine(tempPath, "x.targets");
Construction\ProjectRootElement_Tests.cs (10)
159Assert.Equal(project.FullPath, Path.Combine(Directory.GetCurrentDirectory(), "X")); 188projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"); 206ProjectRootElement projectXml2 = ProjectRootElement.Open(Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc")); 225ProjectRootElement projectXml2 = ProjectRootElement.Open(Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc")); 242projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"); 535string path = Path.Combine(toolsPath, target); 634directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 636string path = Path.Combine(directory, file); 667string path = Path.Combine(curDir, file); 668directory = Path.Combine(curDir, "bar");
DebugUtils.cs (4)
43debugDirectory = Path.Combine(Directory.GetCurrentDirectory(), "MSBuild_Logs"); 47debugDirectory = Path.Combine(FileUtilities.TempFileDirectory, "MSBuild_Logs"); 112var fullPath = Path.Combine(DebugPath, fileName); 118fullPath = Path.Combine(DebugPath, fileName);
Definition\DefinitionEditing_Tests.cs (10)
285string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;"); 668string wildcard = Path.Combine(directory, "*.xxx;"); 789string wildcard = Path.Combine(directory, "*.xxx;"); 1094string wildcard = Path.Combine(directory, "*.xxx;"); 1111ProjectCollection.Escape(Path.Combine(directory, "i2.xxx"))); 1134string wildcard = Path.Combine(directory, "*.xxx;"); 1143item.Rename(Path.Combine(directory, "i2.xxx")); 1389string wildcard = Path.Combine(directory, "*.xxx;"); 1408ProjectCollection.Escape(Path.Combine(directory, "i2.xxx"))); 2209string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;");
Definition\Project_Tests.cs (19)
685project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll")); 686projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll")); 690project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll")); 691projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll")); 1730testFileRoot = Path.Combine(Path.GetTempPath(), "foodir"); 1736string filePath = Path.Combine(testFileRoot, fileName); 1742projectConstruction.AddItem("foo", Path.Combine(testFileRoot, "*.foo")); 2490directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 2491string subdirectory = Path.Combine(directory, "sub"); 2494string projectPath = Path.Combine(subdirectory, "a.proj"); 2495string targetsPath = Path.Combine(directory, "b.targets"); 2603ProjectRootElement one = ProjectRootElement.Create(Path.Combine(myTempDir, "1.targets")); 2607ProjectRootElement two = ProjectRootElement.Create(Path.Combine(myTempDir, "2.targets")); 2611ProjectRootElement zero = ProjectRootElement.Create(Path.Combine(myTempDir, "0.targets")); 2615zero.AddImport(Path.Combine(myTempDir, "*.targets")); 3294var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "1.foo"); 3772var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "a.cs"); 4111string importPath = Path.Combine(pre.DirectoryPath, Guid.NewGuid().ToString()); 4154string importGlob = Path.Combine(pre.DirectoryPath, @"__NoMatch__\**");
Definition\ProjectItem_Tests.cs (11)
350directory = Path.Combine(Path.GetTempPath(), "a"); 356subdirectory = Path.Combine(directory, "b"); 362file = Path.Combine(subdirectory, "c"); 397directory = Path.Combine(Path.GetTempPath(), "a"); 403subdirectory = Path.Combine(directory, "b"); 409file = Path.Combine(subdirectory, "c"); 1092: Path.Combine(relativeFragmentFromRootToFile, file); 1985string projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1989string sourceFile = Path.Combine(projectDirectory, "a.cs"); 1990string renamedSourceFile = Path.Combine(projectDirectory, "b.cs"); 1994project.FullPath = Path.Combine(projectDirectory, "test.proj"); // assign a path so the wildcards can lock onto something.
ExceptionHandling.cs (1)
356s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
FileUtilities.cs (9)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 144cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 492return NormalizePath(Path.Combine(directory, file)); 704return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 783string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 861var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1309return paths.Aggregate(root, Path.Combine); 1481string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
Instance\ProjectInstance_Tests.cs (16)
285directory = Path.Combine(Path.GetTempPath(), "WildcardsInsideTargets"); 287file1 = Path.Combine(directory, "a.exe"); 288file2 = Path.Combine(directory, "b.exe"); 289file3 = Path.Combine(directory, "c.bat"); 294string path = Path.Combine(directory, "*.exe"); 420projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 421projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 456projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 457projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 502File.Create(Path.Combine(tempDir, "aItem.cs")).Dispose(); 504projA.FullPath = Path.Combine(tempDir, "a.proj"); 505projB.FullPath = Path.Combine(tempDir, "b.proj"); 530string projectA = Path.Combine(ObjectModelHelpers.TempProjectDir, "a.proj"); 531string projectB = Path.Combine(ObjectModelHelpers.TempProjectDir, "b.proj"); 533string includeFileA = Path.Combine(ObjectModelHelpers.TempProjectDir, "aaa4.cs"); 534string includeFileB = Path.Combine(ObjectModelHelpers.TempProjectDir, "bbb4.cs");
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TempFileUtilities.cs (5)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder); 186string file = Path.Combine(directory, $"{fileName}{extension}"); 210string destFile = Path.Combine(dest, fileInfo.Name); 215string destDir = Path.Combine(dest, subdirInfo.Name); 232: System.IO.Path.Combine(TempFileDirectory, name);
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
TransientIO.cs (1)
82var absolute = Path.GetFullPath(Path.IsPathRooted(relative) ? relative : Path.Combine(tempRoot, relative));
WindowsFileSystem.cs (3)
130var searchDirectoryPath = Path.Combine(directoryPath, "*"); 167result.Add(Path.Combine(directoryPath, findResult.CFileName)); 175Path.Combine(directoryPath, findResult.CFileName),
Microsoft.Build.Engine.UnitTests (477)
BackEnd\BinaryTranslator_Tests.cs (2)
551Assert.Equal(Path.Combine(directory, fileName), deserializedFullPath); 584Assert.Equal(fullPath, Path.Combine(deserializedDirectory, deserializedFileName));
BackEnd\BuildManager_Tests.cs (2)
350string shutdownProjectDirectory = Path.Combine(Path.GetTempPath(), String.Format(CultureInfo.InvariantCulture, "VSNodeShutdown_{0}_UnitTest", Process.GetCurrentProcess().Id)); 3639string rootProjectPath = Path.Combine(shutdownProjectDirectory, String.Format(CultureInfo.InvariantCulture, "RootProj_{0}.proj", Guid.NewGuid().ToString("N")));
BackEnd\CustomTaskHelper.cs (3)
29string[] referenceAssemblies = new string[] { "System.dll", Path.Combine(referenceAssembliesPath, "Microsoft.Build.Framework.dll"), Path.Combine(referenceAssembliesPath, "Microsoft.Build.Utilities.Core.dll"), Path.Combine(referenceAssembliesPath, "Microsoft.Build.Tasks.Core.dll") };
BackEnd\IntrinsicTask_Tests.cs (2)
3333string directoryForTest = Path.Combine(tempPath, "IncludeCheckOnMetadata_3\\Test"); 3334string fileForTest = Path.Combine(directoryForTest, "a.dll");
BackEnd\LoggingServicesLogMethod_Tests.cs (3)
443string testTempPath = Path.Combine(tempPath, "VerifyErrorPostfixForInvalidProjectFileException"); 444string projectFile = Path.Combine(testTempPath, "a.proj"); 445string targetsFile = Path.Combine(testTempPath, "x.targets");
BackEnd\SdkResolverLoader_Tests.cs (22)
62var d1 = Directory.CreateDirectory(Path.Combine(root, "Resolver1")); 65var f1 = Path.Combine(d1.FullName, "Resolver1.dll"); 68var f2 = Path.Combine(d1.FullName, "Dependency.dll"); 69var f3 = Path.Combine(d1.FullName, "InvalidName.dll"); 70var f4 = Path.Combine(d1.FullName, "NoResolver.txt"); 95var testFolder = Directory.CreateDirectory(Path.Combine(root, "MyTestResolver")); 97var wrongResolverDll = Path.Combine(testFolder.FullName, "MyTestResolver.dll"); 98var resolverManifest = Path.Combine(testFolder.FullName, "MyTestResolver.xml"); 99var assemblyToLoad = Path.Combine(root, "SomeOtherResolver.dll"); 221var resolverPath = Path.Combine(root, "MyTestResolver"); 222var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 246var resolverPath = Path.Combine(root, "MyTestResolver"); 247var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 273var resolverPath = Path.Combine(root, "MyTestResolver"); 274var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 297var resolverPath = Path.Combine(root, "MyTestResolver"); 313var resolverPath = Path.Combine(root, "MyTestResolver"); 314var resolverManifest = Path.Combine(resolverPath, "MyTestResolver.xml"); 372Directory.CreateDirectory(Path.Combine(testRoot, resolver1)); 374Directory.CreateDirectory(Path.Combine(additionalRoot, resolver1)); 378Directory.CreateDirectory(Path.Combine(testRoot, resolver2)); 382Directory.CreateDirectory(Path.Combine(additionalRoot, resolver3));
BackEnd\SdkResultOutOfProc_Tests.cs (7)
107string projectPath = Path.Combine(projectFolder, "TestProject.proj"); 142string entryProjectPath = Path.Combine(projectFolder, "EntryProject.proj"); 152string projectWithSdkImportPath = Path.Combine(projectFolder, "ProjectWithSdkImport.proj"); 216Directory.CreateDirectory(Path.Combine(projectFolder, "Sdk1")); 217Directory.CreateDirectory(Path.Combine(projectFolder, "Sdk2")); 241Path.Combine(projectFolder, "Sdk1"), 242Path.Combine(projectFolder, "Sdk2")
BackEnd\TargetUpToDateChecker_Tests.cs (1)
598string projectFile = Path.Combine(ObjectModelHelpers.TempProjectDir, "temp.proj");
BackEnd\TaskBuilder_Tests.cs (3)
647string customTaskFolder = Path.Combine(directoryName, "buildCrossTargeting"); 956string projectAPath = Path.Combine(ObjectModelHelpers.TempProjectDir, "a.proj"); 957string projectBPath = Path.Combine(ObjectModelHelpers.TempProjectDir, "b.proj");
BinaryLogger_Tests.cs (12)
358RunnerUtilities.ExecMSBuild($"{_logFile} -flp:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic", out success); 361string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log")); 415RunnerUtilities.ExecMSBuild($"{projectFile.Path} -nr:False -bl:{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile2.log")};verbosity=normal", out bool success); 420string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log")); 424string text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile2.log")); 427RunnerUtilities.ExecMSBuild($"{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile3.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile4.log")};verbosity=normal", out success); 429text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile3.log")); 433text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile4.log")); 478string symlinkPath = Path.Combine(testFolder2.Path, symlinkName); 479string symlinkLvl2Path = Path.Combine(testFolder2.Path, symlinkLvl2Name);
BuildEnvironmentHelper_Tests.cs (19)
27string expectedMSBuildPath = Path.Combine(msbuildPath, MSBuildExeName).ToLowerInvariant(); 45var msBuildPath = Path.Combine(path, MSBuildExeName); 46var msBuildConfig = Path.Combine(path, $"{MSBuildExeName}.config"); 72var msBuildPath = Path.Combine(msbuildBinDirectory, MSBuildExeName); 73var msBuildConfig = Path.Combine(msbuildBinDirectory, $"{MSBuildExeName}.config"); 74var vsMSBuildDirectory = Path.Combine(env.TempFolderRoot, "MSBuild"); 363BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.BuildDirectory, "amd64")); 379BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.BuildDirectory, "amd64")); 404var entryProcess = Path.Combine(Path.GetTempPath(), "foo.exe"); 420var msBuildAssembly = Path.Combine(env.BuildDirectory, "Microsoft.Build.dll"); 437var msBuildAssembly = Path.Combine(env.BuildDirectory64, "Microsoft.Build.dll"); 462public string MSBuildExePath64 => Path.Combine(BuildDirectory64, MSBuildExeName); 470BuildDirectory64 = Path.Combine(BuildDirectory, "amd64"); 477File.WriteAllText(Path.Combine(BuildDirectory, file), string.Empty); 483File.WriteAllText(Path.Combine(BuildDirectory64, file), string.Empty); 505public string MSBuildExePath => Path.Combine(BuildDirectory, MSBuildExeName); 516TempFolderRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 517BuildDirectory = Path.Combine(TempFolderRoot, "MSBuild"); 527Directory.CreateDirectory(Path.Combine(BuildDirectory, "amd64"));
BuildEventArgsSerialization_Tests.cs (1)
158projectFile: Path.Combine("a", "test.proj"),
ConsoleLogger_Tests.cs (2)
375string tempProjectDir = Path.Combine(Path.GetTempPath(), "EmptyTargetsOnDetailedButNotNotmal"); 376string tempProjectPath = Path.Combine(tempProjectDir, "test.proj");
Construction\ElementLocation_Tests.cs (3)
32Path.Combine(AppContext.BaseDirectory, "Microsoft.Common.targets"); 105file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 140file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Construction\SolutionFile_OldParser_Tests.cs (14)
170string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 221string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 222string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproja.proj"); 346string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 347string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj2.etp"); 541string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 542string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj2.etp"); 596Directory.CreateDirectory(Path.Combine(FileUtilities.TempFileDirectory, "ETPProjUpgradeTest")); 631string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp"); 689string proj1Path = Path.Combine(Path.GetTempPath(), "someproj.etp"); 773var solutionFolder = env.CreateFolder(Path.Combine(FileUtilities.GetTemporaryDirectory(), "sln")); 774env.CreateFolder(Path.Combine(solutionFolder.Path, "RelativePath")); 786proj.RelativePath.ShouldBe(Path.Combine("RelativePath", "project file")); 2429solution.ProjectsInOrder[0].AbsolutePath.ShouldBe(Path.GetFullPath(Path.Combine(Path.GetDirectoryName(solution.FullPath)!, expectedRelativePath)));
Construction\SolutionFilter_Tests.cs (17)
54TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "ClassLibrary"), createFolder: true); 55TransientTestFolder classLibSubFolder = testEnvironment.CreateFolder(Path.Combine(classLibFolder.Path, "ClassLibrary"), createFolder: true); 64TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "SimpleProject"), createFolder: true); 65TransientTestFolder simpleProjectSubFolder = testEnvironment.CreateFolder(Path.Combine(simpleProjectFolder.Path, "SimpleProject"), createFolder: true); 232TransientTestFolder src = testEnvironment.CreateFolder(Path.Combine(folder.Path, "src"), createFolder: true); 244Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build"", """ + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)) + @""", ""{69BE05E2-CBDA-4D27-9733-44E12B0F5627}"" 246Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""MSBuild"", """ + Path.Combine("src", Path.GetFileName(msbuild.Path)) + @""", ""{6F92CA55-1D15-4F34-B1FE-56C0B7EB455E}"" 248Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.CommandLine.UnitTests"", """ + Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)) + @""", ""{0ADDBC02-0076-4159-B351-2BF33FAA46B2}"" 250Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.Tasks.UnitTests"", """ + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)) + @""", ""{CF999BDE-02B3-431B-95E6-E88D621D9CBF}"" 270""" + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!).Replace("\\", "\\\\") + @""", 271""" + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!).Replace("\\", "\\\\") + @""" 276sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!)).ShouldBeTrue(); 277sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!)).ShouldBeTrue(); 280(sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)!)) 281|| sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(msbuild.Path)!)) 282|| sp.ProjectShouldBuild(Path.Combine("src", "notAProject.csproj"))) 293folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, $"test@folder%special$symbols"), createFolder: true);
Construction\SolutionProjectGenerator_Tests.cs (18)
122TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 132TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 167TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 183TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 242TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 258TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 910<ProjectConfiguration Project="{786E302A-96CE-43DC-B640-D6B6CC9BF6C0}" AbsolutePath="##temp##{{Path.Combine("Project1", "A.csproj")}}" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration> 911<ProjectConfiguration Project="{881C1674-4ECA-451D-85B6-D7C59B7F16FA}" AbsolutePath="##temp##{{Path.Combine("Project2", "B.csproj")}}" BuildProjectInSolution="True">Debug|AnyCPU<ProjectDependency Project="{4A727FF8-65F2-401E-95AD-7C8BBFBE3167}" /></ProjectConfiguration> 912<ProjectConfiguration Project="{4A727FF8-65F2-401E-95AD-7C8BBFBE3167}" AbsolutePath="##temp##{{Path.Combine("Project3", "C.csproj")}}" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration> 2600string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2620ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), 2659string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2679ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), 2737string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2757string projectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, projectName), 2769ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.props"), 2778ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.targets"), 2847projectInSolution.AbsolutePath.ShouldBe(Path.Combine(solution.SolutionFileDirectory, projectInSolution.RelativePath));
Definition\ProjectEvaluationContext_Tests.cs (37)
123{Path.Combine(_env.DefaultTestDirectory.Path, "1.file"), 1}, 124{Path.Combine(_env.DefaultTestDirectory.Path, "2.file"), 1} 182{ Path.Combine(_env.DefaultTestDirectory.Path, "1.file"), 2 } 378File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.cs"), ""); 388File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.cs"), ""); 438File.WriteAllText(Path.Combine(projectDirectory1, $"1.{evaluationCount}.cs"), ""); 439File.WriteAllText(Path.Combine(projectDirectory2, $"2.{evaluationCount}.cs"), ""); 445Path.Combine(projectDirectory1, "1"), 448<i Include=`{Path.Combine("**", "*.cs")}` /> 452Path.Combine(projectDirectory2, "2"), 455<i Include=`{Path.Combine("**", "*.cs")}` /> 472File.WriteAllText(Path.Combine(projectDirectory1, $"1.{evaluationCount}.cs"), ""); 473File.WriteAllText(Path.Combine(projectDirectory2, $"2.{evaluationCount}.cs"), ""); 493File.WriteAllText(Path.Combine(project1GlobDirectory, $"1.{evaluationCount}.cs"), ""); 494File.WriteAllText(Path.Combine(project2GlobDirectory, $"2.{evaluationCount}.cs"), ""); 500Path.Combine(project1Directory, "1"), 507Path.Combine(project2Directory, "2"), 529File.WriteAllText(Path.Combine(project1GlobDirectory, $"1.{evaluationCount}.cs"), ""); 530File.WriteAllText(Path.Combine(project2GlobDirectory, $"2.{evaluationCount}.cs"), ""); 555File.WriteAllText(Path.Combine(project1GlobDirectory, $"{evaluationCount}.cs"), ""); 562Path.Combine(project1Directory.Path, "1"), 570Path.Combine(project2Directory.Path, "2"), 591.Select(i => Path.Combine(project1Directory.Path, i)) 600File.WriteAllText(Path.Combine(project1GlobDirectory, $"{evaluationCount}.cs"), ""); 622File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 628Path.Combine(project1Directory.Path, "1"), 635Path.Combine(project2Directory.Path, "2"), 652.Select(i => Path.Combine(globFixedDirectoryPart, i)) 660File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 686? Path.Combine("..", "GlobDirectory") 702prependedGlobExpansion[i] = Path.Combine(itemSpecDirectoryPart, globExpansion[i]); 726File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 736File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), ""); 763File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.props"), $"<Project><ItemGroup><i Include=`{evaluationCount}.cs`/></ItemGroup></Project>".Cleanup()); 773File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.props"), $"<Project><ItemGroup><i Include=`{evaluationCount}.cs`/></ItemGroup></Project>".Cleanup()); 804var theFile = Path.Combine(projectDirectory, "0.cs"); 958projectContents.Select((p, i) => new ProjectSpecification(Path.Combine(_env.DefaultTestDirectory.Path, $"Project{i}.proj"), p)),
Definition\ToolsetConfigurationReaderTestHelper.cs (2)
32s_testFolderFullPath = Path.Combine(Path.GetTempPath(), "configFileTests"); 34string configFilePath = Path.Combine(s_testFolderFullPath, "test.exe.config");
EscapingInProjects_Tests.cs (5)
638string path = Path.Combine(Path.GetTempPath(), projectRelativePath); 639string projectAbsolutePath = Path.Combine(path, projectName); 1805File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "a.weirdo"), String.Empty); 1806File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "b.weirdo"), String.Empty); 1807File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "c.weirdo"), String.Empty);
Evaluation\Evaluator_Tests.cs (109)
107TransientTestFolder projDirectory = env.CreateFolder(Path.Combine(env.CreateNewTempPath().TempPath, projectPathCandidate), createFolder: true); 140yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}')""", true }; 141yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false }; 142yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}""", false }; 143yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "*.*proj")}""", true }; 146yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}')""", true }; 147yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false }; 148yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}""", false }; 149yield return new object[] { $@"Project=""{Path.Combine("realFolder", "*.*proj")}""", true }; 152yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}"" Condition=""Exists('{Path.Combine("realFolder", "realFile.csproj")}')""", true }; 153yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}"" Condition=""'true'""", true }; 154yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}""", true }; 155yield return new object[] { $@"Project=""{Path.Combine("realFolder", "*.*proj")}""", true }; 164yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "*.*proj")}""", true }; 333string targetDirectory = Path.Combine(tempPath, "VerifyConditionsInsideOutsideTargets"); 334string subDirectory = Path.Combine(targetDirectory, "subdir"); 336string testTargetPath = Path.Combine(targetDirectory, "test.targets"); 337string targetDirectoryTargetsPath = Path.Combine(targetDirectory, "targetdir.targets"); 338string targetDirectoryTargetsPath2 = Path.Combine(targetDirectory, "targetdir2.targets"); 339string subdirProjPath = Path.Combine(subDirectory, "test.proj"); 340string projectDirectoryTargetsPath = Path.Combine(subDirectory, "projdir.targets"); 341string projectDirectoryTargetsPath2 = Path.Combine(subDirectory, "projdir2.targets"); 342string textTextPath = Path.Combine(targetDirectory, "test.txt"); 462string targetDirectory = Path.Combine(tempPath, "VerifyConditionsInsideOutsideTargets"); 463string subDirectory = Path.Combine(targetDirectory, "subdir"); 465string testTargetPath = Path.Combine(targetDirectory, "test.targets"); 466string targetDirectoryTargetsPath = Path.Combine(targetDirectory, "targetdir.targets"); 467string targetDirectoryTargetsPath2 = Path.Combine(targetDirectory, "targetdir2.targets"); 468string subdirProjPath = Path.Combine(subDirectory, "test.proj"); 469string projectDirectoryTargetsPath = Path.Combine(subDirectory, "projdir.targets"); 470string projectDirectoryTargetsPath2 = Path.Combine(subDirectory, "projdir2.targets"); 471string textTextPath = Path.Combine(targetDirectory, "test.txt"); 489logger.AssertLogContains("PropertyOutsideTarget: " + Path.Combine("..", "test.txt")); 491logger.AssertLogContains("PropertyInsideTarget: " + Path.Combine("..", "test.txt")); 492logger.AssertLogContains("PropertyGroupInsideTarget: " + Path.Combine("..", "test.txt")); 534string targetDirectory = Path.Combine(tempPath, "VerifyUsedUnInitializedPropertyInImports"); 536string targetAPath = Path.Combine(targetDirectory, "targetA.targets"); 537string targetBPath = Path.Combine(targetDirectory, "targetB.targets"); 538string projectPath = Path.Combine(targetDirectory, "test.proj"); 581string targetDirectory = Path.Combine(tempPath, "EmptyPropertyIsThenSet"); 582string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 623string targetDirectory = Path.Combine(tempPath, "EmptyPropertyIsThenSet"); 624string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 669string targetDirectory = Path.Combine(tempPath, "SetPropertyToItself"); 670string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 715string targetDirectory = Path.Combine(tempPath, "UsePropertyInCondition"); 716string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 759string targetDirectory = Path.Combine(tempPath, "UsePropertyBeforeSet"); 760string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 805string targetDirectory = Path.Combine(tempPath, "UsePropertyBeforeSetDuplicates"); 806string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 1156directory = Path.Combine(Path.GetTempPath(), "fol$der"); 1157directory2 = Path.Combine(Path.GetTempPath(), "fol$der" + Path.DirectorySeparatorChar + "fol$der2"); 1160string importPathRelativeEscaped = Path.Combine("fol$(x)$der2", "Escap%3beab$(x)leChar$ac%3BtersInI*tPa?h"); 1161string importRelative1 = Path.Combine("fol$der2", "Escap;eableChar$ac;tersInImportPath"); 1162string importRelative2 = Path.Combine("fol$der2", "Escap;eableChar$ac;tersInI_XXXX_tPath"); 1163importPath1 = Path.Combine(directory, importRelative1); 1164importPath2 = Path.Combine(directory, importRelative2); 1185projectPath = Path.Combine(directory, "my.proj"); // project path has $ in too 2272string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative"); 2273string directory2 = Path.Combine(directory, "sub"); 2275VerifyImportTargetRelativePath(directory, directory2, new string[] { Path.Combine("**", "*.targets") }); 2284string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative2"); 2285string directory2 = Path.Combine(directory, "sub"); 2290new string[] { Path.Combine(directory2, "*.targets"), Path.Combine(directory, "*.targets") }); 2299string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative3"); 2300string directory2 = Path.Combine(directory, "sub"); 2321string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsFullPath"); 2322string directory2 = Path.Combine(directory, "sub"); 2325string file1 = Path.Combine(directory, "1.targets"); 2326string file2 = Path.Combine(directory2, "2.targets"); 2327string file3 = Path.Combine(directory2, "3.cpp.targets"); 3422string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyPropertySetInImportStillOverrides"); 3433string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3434string import = Path.Combine(projectDirectory, "import.proj"); 3483string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportDoesntAffectParentProjectAboveIt"); 3494string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3495string import = Path.Combine(projectDirectory, "import.proj"); 3543string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportAffectsParentProjectBelowIt"); 3554string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3555string import = Path.Combine(projectDirectory, "import.proj"); 3615string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyUnionBetweenImports"); 3626string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3627string import = Path.Combine(projectDirectory, "import.proj"); 3688string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDuplicateTreatAsLocalProperty"); 3699string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3700string import = Path.Combine(projectDirectory, "import.proj"); 3753string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyGlobalPropertyPassedToP2P"); 3764string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3765string project2 = Path.Combine(projectDirectory, "project2.proj"); 3815string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyLocalPropertyPropagatesIfExplicitlyPassedToP2P"); 3826string primaryProject = Path.Combine(projectDirectory, "project.proj"); 3827string project2 = Path.Combine(projectDirectory, "project2.proj"); 4400string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDTDProcessingIsDisabled"); 4411string projectFilename = Path.Combine(projectDirectory, "project.proj"); 4553string projectDirectory = Path.Combine(Path.GetTempPath(), "ThrownInvalidProjectExceptionProperlyHandled"); 4564string primaryProject = Path.Combine(projectDirectory, "project.proj"); 4565string import = Path.Combine(projectDirectory, "import.proj"); 5087string targetDirectory = Path.Combine(tempPath, "LogPropertyAssignments"); 5088string testTargetPath = Path.Combine(targetDirectory, "test.proj"); 5233string file0 = Path.Combine(directory, "my.proj"); 5234file1 = Path.Combine(directory, "1.targets"); 5235file2 = Path.Combine(directory2, "2.targets"); 5236file3 = Path.Combine(directory2, "3.cpp.targets"); 5237file4 = Path.Combine(directory2, "4.nottargets");
Evaluation\Expander_Tests.cs (30)
267Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"seconddirectory"), itemsDir[0].EvaluatedInclude); 287Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, itemsTrue[5].EvaluatedInclude); 343Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, result); 660Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, itemsTrue[5].EvaluatedInclude); 719Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"secondd;rectory"), items[5].EvaluatedInclude); 720Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"someo;herplace"), items[6].EvaluatedInclude); 763pi.SetMetadata("Meta9", Path.Combine("seconddirectory", "file.ext")); 764pi.SetMetadata("Meta10", String.Format(";{0};{1};", Path.Combine("someo%3bherplace", "foo.txt"), Path.Combine("secondd%3brectory", "file.ext"))); 2181pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2182pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2316pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2317pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2534pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2679pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2700Path.Combine(s_rootPathPrefix, "foo goo") + "`, `$(File)`))", 2713pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2718Path.Combine(s_rootPathPrefix, "foo baz") + @"`, `$(File)`))", 2731pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2736Path.Combine(s_rootPathPrefix, "foo baz") + @" `, `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance); 3389string directoryStart = Path.Combine(tempPath, "one\\two\\three\\four\\five"); 3619$"{Path.GetFullPath(Path.Combine("one", "two"))}{Path.DirectorySeparatorChar}", 4344string path = Path.Combine("foo", "bar"); 4874var expectedAlphaSquigglePath = Path.Combine("Alpha", ".squiggle"); 4875var expectedBetaSquigglePath = Path.Combine("Beta", ".squiggle"); 4921var alphaOnePath = Path.Combine("alpha", "One.cs"); 4922var alphaThreePath = Path.Combine("alpha", "Three.cs"); 4962var alphaBetaPath = Path.Combine("alpha", "beta"); 4963var alphaDeltaPath = Path.Combine("alpha", "delta"); 5145string reflectionInfoPath = Path.Combine(Directory.GetCurrentDirectory(), "PropertyFunctionsRequiringReflection");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (35)
50extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), GetExtensionTargetsFileContent1()); 55projColln.ResetToolsetsForTests(WriteConfigFileAndGetReader("MSBuildExtensionsPath", extnDir1, Path.Combine("tmp", "nonexistent"))); 92string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContentWithCondition); 95CreateAndBuildProjectForImportFromExtensionsPath(mainProjectPath, "MSBuildExtensionsPath", new string[] { extnDir1, Path.Combine("tmp", "nonexistent") }, 128string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent1); 129string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn2.proj"), 133new string[] { extnDir2, Path.Combine("tmp", "nonexistent"), extnDir1 }, 158string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent); 196string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 198string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn.proj"), 204new[] { extnDir1, Path.Combine("tmp", "nonexistent"), extnDir2 }, 246string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("circularwildcardtest", "extn.proj"), 248string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("circularwildcardtest", "extn.proj"), 250string extnDir3 = GetNewExtensionsPathAndCreateFile("extensions3", Path.Combine("circularwildcardtest", "extn3.proj"), 283string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent); 286CreateAndBuildProjectForImportFromExtensionsPath(mainProjectPath, "MSBuildExtensionsPath", new string[] { Path.Combine("tmp", "nonexistent"), extnDir1 }, 300extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent); 305Path.Combine("tmp", "nonexistent"))); 355string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent1); 356string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn.proj"), extnTargetsFileContent2); 359CreateAndBuildProjectForImportFromExtensionsPath(mainProjectPath, "MSBuildExtensionsPath", new string[] { extnDir2, Path.Combine("tmp", "nonexistent"), extnDir1 }, 399string extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), extnTargetsFileContent1); 400string extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("foo", "extn.proj"), extnTargetsFileContent2); 407projColln.ResetToolsetsForTests(WriteConfigFileAndGetReader("MSBuildExtensionsPath", Path.Combine("tmp", "non-existent"), extnDir1)); 486extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 488extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("bar", "extn2.proj"), 490extnDir3 = GetNewExtensionsPathAndCreateFile("extensions3", Path.Combine("xyz", "extn3.proj"), 566extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 627extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 837logger.AssertLogContains(@"MSB4226: The imported project """ + Path.Combine("$(UndefinedProperty)", "filenotfound.props") 889extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("foo", "extn.proj"), 891extnDir2 = GetNewExtensionsPathAndCreateFile("extensions2", Path.Combine("bar", "extn2.proj"), 999var extnDir = Path.Combine(ObjectModelHelpers.TempProjectDir, extnDirName); 1000Directory.CreateDirectory(Path.Combine(extnDir, Path.GetDirectoryName(relativeFilePath))); 1001File.WriteAllText(Path.Combine(extnDir, relativeFilePath), fileContents);
Evaluation\ItemSpec_Tests.cs (2)
48var projectFile = Path.Combine(absoluteRootPath, "build.proj"); 49var absoluteSpec = Path.Combine(absoluteRootPath, "s.cs");
Evaluation\Preprocessor_Tests.cs (13)
707directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 743<Import Project=""" + Path.Combine(directoryXmlCommentFriendly, "*.targets") + @"""> 745" + Path.Combine(directoryXmlCommentFriendly, "1.targets") + @" 758<Import Project=""" + Path.Combine(directoryXmlCommentFriendly, "*.targets") + @"""> 760" + Path.Combine(directoryXmlCommentFriendly, "2.targets") + @" 858string sdkPropsPath = Path.Combine(testSdkDirectory, "Sdk.props"); 859string sdkTargetsPath = Path.Combine(testSdkDirectory, "Sdk.targets"); 974string importedPropsPath = Path.Combine(testDirectory, "Import.props"); 981string projectPath = Path.Combine(testDirectory, "TestProject.csproj"); 1065string sdkPropsPath1 = Path.Combine(sdk1, "Sdk.props"); 1066string sdkTargetsPath1 = Path.Combine(sdk1, "Sdk.targets"); 1079string sdkPropsPath2 = Path.Combine(sdk2, "Sdk.props"); 1080string sdkTargetsPath2 = Path.Combine(sdk2, "Sdk.targets");
Evaluation\ProjectSdkImplicitImport_Tests.cs (6)
90_sdkPropsPath = Path.Combine(_testSdkDirectory, "Sdk.props"); 91_sdkTargetsPath = Path.Combine(_testSdkDirectory, "Sdk.targets"); 194File.WriteAllText(Path.Combine(testSdkDirectory, "Sdk.props"), $"<Project><PropertyGroup><InitialImportProperty>{sdkName}</InitialImportProperty></PropertyGroup></Project>"); 195File.WriteAllText(Path.Combine(testSdkDirectory, "Sdk.targets"), $"<Project><PropertyGroup><FinalImportProperty>{sdkName}</FinalImportProperty></PropertyGroup></Project>"); 359var p1Path = Path.Combine(projectFolder, "p1.proj"); 360var p2Path = Path.Combine(projectFolder, "p2.proj");
Evaluation\SdkResultEvaluation_Tests.cs (15)
130string projectPath = Path.Combine(_testFolder, "project.proj"); 163string projectPath = Path.Combine(_testFolder, "project.proj"); 193Path.Combine(_testFolder, "Sdk"), 200new[] { Path.Combine(_testFolder, "Sdk") }, 225string projectPath = Path.Combine(_testFolder, "project.proj"); 236Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk")); 288Path.Combine(_testFolder, "Sdk1"), 289Path.Combine(_testFolder, "Sdk2") 313string projectPath = Path.Combine(_testFolder, "project.proj"); 324Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk1")); 335Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk2")); 389new[] { Path.Combine(_testFolder, "Sdk") }, 405string projectPath = Path.Combine(_testFolder, "project.proj"); 416Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk")); 482string projectPath = Path.Combine(_testFolder, "project.proj");
FileLogger_Tests.cs (12)
338string directory = Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N")); 339string log = Path.Combine(directory, "build.log"); 497fileLogger.Parameters = "logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile.log"); 499Assert.Equal(0, string.Compare(fileLogger.InternalFilelogger.Parameters, "ForceNoAlign;ShowEventId;ShowCommandLine;logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile3.log") + ";", StringComparison.OrdinalIgnoreCase)); 503fileLogger.Parameters = "logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile.log"); 505Assert.Equal(0, string.Compare(fileLogger.InternalFilelogger.Parameters, "ForceNoAlign;ShowEventId;ShowCommandLine;logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "mylogfile4.log") + ";", StringComparison.OrdinalIgnoreCase)); 508Directory.CreateDirectory(Path.Combine(Directory.GetCurrentDirectory(), "tempura")); 517if (Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "tempura"))) 520FileUtilities.DeleteWithoutTrailingBackslash(Path.Combine(Directory.GetCurrentDirectory(), "tempura")); 522File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "mylogfile0.log")); 523File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "mylogfile3.log")); 524File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "mylogfile4.log"));
FileMatcher_Tests.cs (23)
65File.WriteAllBytes(Path.Combine(testFolder.Path, file), new byte[1]); 79TransientTestFolder tf2 = _env.CreateFolder(Path.Combine(testFolder.Path, "subfolder")); 80string symlinkPath = Path.Combine(tf2.Path, "mySymlink"); 104foreach (string fullPath in GetFilesComplexGlobbingMatchingInfo.FilesToCreate.Select(i => Path.Combine(testFolder.Path, i.ToPlatformSlash()))) 618return new string[] { Path.Combine(path, "LongDirectoryName") }; 625return new string[] { Path.Combine(path, "LongSubDirectory") }; 632return new string[] { Path.Combine(path, "LongFileName.txt") }; 639return new string[] { Path.Combine(path, "pomegranate") }; 995ValidateFileMatch(Path.Combine(".", "File.txt"), Path.Combine(".", "File.txt"), false); 996ValidateNoFileMatch(Path.Combine(".", "File.txt"), Path.Combine(".", "File.bin"), false); 1020ValidateFileMatch(Path.Combine("**", "*.cs"), Path.Combine("dir1", "dir2", "file.cs"), true); 1021ValidateFileMatch(Path.Combine("**", "*.cs"), "file.cs", true); 1224string workingPathSubfolder = Path.Combine(workingPath, "SubDir"); 1225string offendingPattern = Path.Combine(workingPath, @"*\..\bar"); 1238string fileName = Path.Combine(workingPath, "MyFile.txt"); 1239string offendingPattern = Path.Combine(workingPath, @"**\**"); 1255string workingPathSubdir = Path.Combine(workingPath, "subdir"); 1256string workingPathSubdirBing = Path.Combine(workingPathSubdir, "bing"); 1258string offendingPattern = Path.Combine(workingPath, @"**\sub*\*."); 2110if (normalizedCandidate == Path.Combine(path, pattern)) 2460return new string[] { Path.Combine(path, pattern) };
FileUtilities_Tests.cs (5)
418Assert.Equal(fullPath, FileUtilities.NormalizePath(Path.Combine(currentDirectory, filePath))); 432Assert.Equal(fullPath, FileUtilities.NormalizePath(Path.Combine(currentDirectory, filePath))); 812string directory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "subfolder"); 971Assert.Equal(Path.Combine(root, "1"), FileUtilities.GetFolderAbove(path, 4)); 985Path.Combine(root, "path1"),
FixPathOnUnix_Tests.cs (1)
52logger.AssertLogContains($"ItemMetadata: Md0 = {Path.Combine("lib", "foo.dll")}");
Globbing\MSBuildGlob_Tests.cs (4)
42var expectedRoot = Path.Combine(Directory.GetCurrentDirectory(), globRoot).WithTrailingSlash(); 119var expectedFixedDirectory = Path.Combine(globRoot, "b").WithTrailingSlash(); 318return Path.Combine(Directory.GetCurrentDirectory(), expectedFixedDirectoryPart).Replace("/", "\\").WithTrailingSlash(); 362var rootedFixedDirectoryPart = Path.Combine(FileUtilities.NormalizePath(globRoot), fixedDirectoryPart);
Graph\GetCompatiblePlatformGraph_Tests.cs (6)
354TransientTestFolder project1Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, firstProjectName), createFolder: true); 355TransientTestFolder project1SubFolder = testEnvironment.CreateFolder(Path.Combine(project1Folder.Path, firstProjectName), createFolder: true); 369TransientTestFolder project2Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, secondProjectName), createFolder: true); 370TransientTestFolder project2SubFolder = testEnvironment.CreateFolder(Path.Combine(project2Folder.Path, secondProjectName), createFolder: true); 380TransientTestFolder project3Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, thirdProjectName), createFolder: true); 381TransientTestFolder project3SubFolder = testEnvironment.CreateFolder(Path.Combine(project3Folder.Path, thirdProjectName), createFolder: true);
Graph\IsolateProjects_Tests.cs (1)
142_env.SetTempPath(Path.Combine(Directory.GetCurrentDirectory(), Guid.NewGuid().ToString("N")), deleteTempDirectory: true);
Graph\ProjectGraph_Tests.cs (8)
843string project1Path = Path.Combine(env.DefaultTestDirectory.Path, "Project1.csproj"); 844string project2Path = Path.Combine(env.DefaultTestDirectory.Path, "Project2.vcxproj"); 845string project3Path = Path.Combine(env.DefaultTestDirectory.Path, "Project3.vcxproj"); 846string project4Path = Path.Combine(env.DefaultTestDirectory.Path, "Project4.vcxproj"); 847string project5Path = Path.Combine(env.DefaultTestDirectory.Path, "Project5.vcxproj"); 848string project6Path = Path.Combine(env.DefaultTestDirectory.Path, "Project6.wapproj"); 849string project7Path = Path.Combine(env.DefaultTestDirectory.Path, "Project7.csproj"); 850string project8Path = Path.Combine(env.DefaultTestDirectory.Path, "Project8.csproj");
Instance\ProjectInstance_Internal_Tests.cs (2)
73project.TaskRegistry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t0", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af0")); 74project.TaskRegistry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t1", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af1a"));
NodeStatus_Transition_Tests.cs (2)
162Get-Content {{Path.Combine(directory, received)}} {{pipeline}} 165Get-Content {{Path.Combine(directory, verified)}} {{pipeline}}
PrintLineDebugger_Tests.cs (1)
191artifactsDirectory.ShouldEndWith(Path.Combine("log", "Debug"), Case.Sensitive);
ProjectCache\ProjectCacheTests.cs (2)
1716output = RunnerUtilities.RunProcessAndGetOutput(Path.Combine(directory.Path, "bin/net8.0/app"), "", out success, false, _output); 1724output = RunnerUtilities.RunProcessAndGetOutput(Path.Combine(directory.Path, "bin/net8.0/app"), "", out success, false, _output);
TerminalLogger_Tests.cs (2)
764RunnerUtilities.ExecMSBuild($"{projectFile.Path} /m /bl:{logFileWithTL} -flp:logfile={Path.Combine(logFolder.Path, "logFileWithTL.log")};verbosity=diagnostic -tl:on", out bool success); 768RunnerUtilities.ExecMSBuild($"{projectFile.Path} /m /bl:{logFileWithoutTL} -flp:logfile={Path.Combine(logFolder.Path, "logFileWithoutTL.log")};verbosity=diagnostic", out success);
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
TypeLoader_Dependencies_Tests.cs (9)
17private static readonly string ProjectFileFolder = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "TaskWithDependency"); 27string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 33string dllPath = Path.Combine(dir.Path, TaskDllFileName); 45string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 48var newTaskDllPath = Path.Combine(tempDir, TaskDllFileName); 65var originalTaskDllPath = Path.Combine(originalDirectory, TaskDllFileName); 66var originalDependencyDllPath = Path.Combine(originalDirectory, DependencyDllFileName); 70var newTaskDllPath = Path.Combine(temporaryDirectory, TaskDllFileName); 71var newDependencyDllPath = Path.Combine(temporaryDirectory, DependencyDllFileName);
TypeLoader_Tests.cs (13)
21private static readonly string ProjectFileFolder = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "PortableTask"); 67string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 75string dllPath = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, dllName); 84string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 90string dllPath = Path.Combine(dir.Path, DLLFileName); 104string newAssemblyLocation = Path.Combine(folder.Path, Path.GetFileName(currentAssembly)); 108string utilities = Path.Combine(portableTaskPath, utilitiesName); 109File.Copy(utilities, Path.Combine(folder.Path, utilitiesName)); 123string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 124string originalDLLPath = Path.Combine(dir.Path, DLLFileName); 148string projectFilePath = Path.Combine(dir.Path, ProjectFileName); 149string originalDLLPath = Path.Combine(dir.Path, DLLFileName); 174var newDllPath = Path.Combine(temporaryDirectory, DLLFileName);
Microsoft.Build.Framework.UnitTests (6)
FileClassifier_Tests.cs (5)
32classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test1")}"); 33classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test2")}"); 49classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test1")}"); 50classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test2")}"); 64classifier.RegisterImmutableDirectory($"{Path.Combine(volume, "Test1")}");
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.Tasks.CodeAnalysis (10)
ManagedToolTask.cs (3)
50internal string PathToBuiltInTool => Path.Combine(GetToolDirectory(), ToolName); 121(false, _) => Path.Combine(ToolPath ?? "", ToolExe) 184return Path.Combine(buildTaskDirectory, "bincore");
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\BuildServerConnection.cs (4)
438var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 659var result = Path.Combine(tempPath!, ".roslyn"); 667FilePath = Path.Combine(mutexDirectory, name); 668GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
61var filePath = Path.Combine(item, fileName);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (27)
CopyRefAssemblyTests.cs (2)
35SourcePath = Path.Combine(dir.Path, "does_not_exist.dll") 66var dest = Path.Combine(dir.Path, "dest.dll");
CscTests.cs (5)
658? Path.Combine("bincore", "csc.dll") 661Assert.Equal(Path.Combine(taskPath, relativePath), task.PathToBuiltInTool); 710_ = Directory.CreateDirectory(Path.Combine(Path.GetDirectoryName(dirPath), "bincore")); 723File.WriteAllText(Path.Combine(dirPath, "csc.exe"), "real code"); 738File.Copy(dllPath, Path.Combine(dirPath, Path.GetFileName(dllPath)));
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));
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.Build.Tasks.Core (136)
AddToWin32Manifest.cs (1)
170ManifestPath = Path.Combine(OutputDirectory, manifestName);
AssemblyDependency\Reference.cs (1)
573_fullPathWithoutExtension = Path.Combine(DirectoryName, FileNameWithoutExtension);
AssemblyDependency\ReferenceTable.cs (7)
945companionFile = Path.Combine(Path.GetDirectoryName(baseName), implementationFile); 988string satelliteAssembly = Path.Combine(subDirectory, satelliteFilename); 992reference.AddSatelliteFile(Path.Combine(cultureName, satelliteFilename)); 1011string serializationAssemblyPath = Path.Combine(reference.DirectoryName, serializationAssemblyFilename); 2760ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, satelliteFile)); 2773ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, serializationAssemblyFile)); 2784ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, scatterFile));
AssemblyDependency\Resolver.cs (2)
325fullPath = Path.Combine(directory, baseName); 381string fullPath = Path.Combine(directory, weakNameBase);
BootstrapperUtil\BootstrapperBuilder.cs (21)
174string strOutputExe = System.IO.Path.Combine(settings.OutputPath, SETUP_EXE); 361string setupSourceFile = System.IO.Path.Combine(bootstrapperPath, SETUP_BIN); 503private string BootstrapperPath => System.IO.Path.Combine(Path, ENGINE_PATH); 505private string PackagePath => System.IO.Path.Combine(Path, PACKAGE_PATH); 507private string SchemaPath => System.IO.Path.Combine(Path, SCHEMA_PATH); 528string startDirectory = System.IO.Path.Combine(BootstrapperPath, RESOURCES_PATH); 535string resourceDirectory = System.IO.Path.Combine(startDirectory, subDirectory); 536string resourceFilePath = System.IO.Path.Combine(resourceDirectory, SETUP_RESOURCES_FILE); 880string strSubDirectoryFullPath = System.IO.Path.Combine(packagePath, strSubDirectory); 883string strBaseManifestFilename = System.IO.Path.Combine(strSubDirectoryFullPath, ROOT_MANIFEST_FILE); 884string strBaseManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA); 922UpdatePackageFileNodes(packageFilesNode, System.IO.Path.Combine(packagePath, strSubDirectory), strSubDirectory); 935string strLangManifestFilename = System.IO.Path.Combine(strLanguageDirectory, CHILD_MANIFEST_FILE); 936string strLangManifestSchemaFileName = System.IO.Path.Combine(SchemaPath, MANIFEST_FILE_SCHEMA); 1172string strSourceFile = System.IO.Path.Combine(strSourcePath, relativePath); 1176targetPathAttribute.Value = System.IO.Path.Combine(strTargetPath, relativePath); 1179string newNameValue = System.IO.Path.Combine(strTargetPath, relativePath); 1468string strDestinationFileName = System.IO.Path.Combine(settings.OutputPath, packageFileDestination.Value); 2000using (var xmlwriter = new XmlTextWriter(System.IO.Path.Combine(s_logPath, fileName), Encoding.UTF8)) 2042using (var fileWriter = new StreamWriter(System.IO.Path.Combine(s_logPath, fileName), append)) 2203string logPath = System.IO.Path.Combine(
BootstrapperUtil\ResourceUpdater.cs (1)
40string filePath = Path.Combine(Directory.GetCurrentDirectory(), filename);
BootstrapperUtil\Util.cs (1)
200string msbuildExtensionPackagesPath = Path.Combine(BuildEnvironmentHelper.Instance.MSBuildExtensionsPath, BOOTSTRAPPER_MSBUILD_ADDITIONAL_PACKAGES_PATH);
BuildEnvironmentHelper.cs (7)
201var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 202var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 335.Select((name) => TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, name))) 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 616MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : CurrentMSBuildToolsDirectory; 623? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
CombinePath.cs (1)
70combinedPath.ItemSpec = Path.Combine(BasePath, path.ItemSpec);
Copy.cs (2)
776() => Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec)), 814() => Path.Combine(src, file),
CreateManifestResourceName.cs (2)
192if (File.Exists(Path.Combine(Path.GetDirectoryName(fileName), conventionDependentUpon))) 216string pathToDependent = Path.Combine(Path.GetDirectoryName(fileName), dependentUpon);
Culture.cs (1)
79info.cultureNeutralFilename = Path.Combine(baseFolder, fileName);
DebugUtils.cs (4)
43debugDirectory = Path.Combine(Directory.GetCurrentDirectory(), "MSBuild_Logs"); 47debugDirectory = Path.Combine(FileUtilities.TempFileDirectory, "MSBuild_Logs"); 112var fullPath = Path.Combine(DebugPath, fileName); 118fullPath = Path.Combine(DebugPath, fileName);
DownloadFile.cs (1)
180var destinationFile = new FileInfo(Path.Combine(destinationDirectory.FullName, filename));
ExceptionHandling.cs (1)
356s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
FileMatcher.cs (3)
498longPath = Path.Combine(longPath, parts[i]); 1977var filespecUnescapedFullyQualified = Path.Combine(projectDirectoryUnescaped, filespecUnescaped); 2068fixedDirectoryPart = Path.Combine(projectDirectoryUnescaped, fixedDirectoryPart);
FileUtilities.cs (9)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 144cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 492return NormalizePath(Path.Combine(directory, file)); 704return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 783string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 861var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1309return paths.Aggregate(root, Path.Combine); 1481string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
GenerateLauncher.cs (1)
101OutputEntryPoint = new TaskItem(Path.Combine(Path.GetDirectoryName(EntryPoint.ItemSpec), results.KeyFile));
GenerateResource.cs (6)
570commandLineBuilder.AppendFileNameIfNotNull(Path.Combine(_resgenPath, "resgen.exe")); 2670string priDirectory = Path.Combine(outFileOrDir ?? String.Empty, 2672currentOutputDirectory = Path.Combine(priDirectory, 2680currentOutputFile = Path.Combine(currentOutputDirectory, currentOutputFileNoPath); 2848string shorterPath = Path.Combine(outputDirectory ?? String.Empty, cultureName ?? String.Empty); 2853currentOutputFile = Path.Combine(shorterPath, currentOutputFileNoPath);
GetSDKReferenceFiles.cs (6)
514string xmlFile = Path.Combine(directory, fileNameNoExtension + ".xml"); 630string targetPath = Path.Combine(targetPathRoot, relativeToBase); 960referencesCacheFile = Path.Combine(_cacheFileDirectory, GetCacheFileName(saveContext.SdkIdentity, saveContext.SdkRoot, cacheFileInfo.Hash.ToString("X", CultureInfo.InvariantCulture))); 1085string referencesCacheFile = Path.Combine(cacheFileFolder, GetCacheFileName(sdkIdentity, sdkRoot, hash.ToString("X", CultureInfo.InvariantCulture))); 1165string redistPath = Path.Combine(sdkRoot, "Redist"); 1179string referencesPath = Path.Combine(sdkRoot, "References");
LC.cs (1)
170outputPath = Path.Combine(OutputDirectory, outputPath);
ManifestUtil\AssemblyIdentity.cs (2)
534string path = Path.Combine(searchPath, file); 541path = Path.Combine(searchPath, file);
ManifestUtil\DeployManifest.cs (3)
181string redistListPath = Path.Combine(referenceAssemblyPath, _redistListFolder); 182return Path.Combine(redistListPath, _redistListFile); 581manifestPath = Path.Combine(Path.GetDirectoryName(SourcePath), _entryPoint.TargetPath);
ManifestUtil\LauncherBuilder.cs (1)
56string strOutputExe = System.IO.Path.Combine(outputPath, launcherFilename);
ManifestUtil\Manifest.cs (4)
220defaultDir = Path.Combine(Directory.GetCurrentDirectory(), defaultDir); 329string resolvedPath = Path.Combine(searchPath, path); 518f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), f.TargetPath); 522f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), AssemblyName);
ManifestUtil\ManifestWriter.cs (1)
133File.Copy(temp, Path.Combine(Util.logPath, n + ".trust-file.xml"), true);
ManifestUtil\SecurityUtil.cs (3)
729hModule = NativeMethods.LoadLibraryExW(Path.Combine(clrDllDir, "clr.dll"), IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 875toolPath = Path.Combine(Directory.GetCurrentDirectory(), ToolName); 940return versionIndependentToolPath != null ? Path.Combine(versionIndependentToolPath, toolName) : null;
ManifestUtil\Util.cs (4)
268string logPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Microsoft\VisualStudio\8.0\VSPLOG"); 477s_logFileWriter = new StreamWriter(Path.Combine(logPath, "Microsoft.Build.Tasks.log"), false); 508string path = Path.Combine(logPath, filename); 538string path = Path.Combine(logPath, filename);
Modifiers.cs (2)
566modifiedItemSpec = Path.Combine( 663fullPath = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
Move.cs (1)
133destinationFile = Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec));
MSBuild.cs (1)
636outputItemFromTarget.ItemSpec = Path.Combine(projectDirectory[i], outputItemFromTarget.ItemSpec);
NativeMethods.cs (2)
1245private static readonly string s_gacPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, "gac"); 1459var path = Path.Combine(s_gacPath, assemblyNameVersion.Name);
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
RedistList.cs (3)
305string redistDirectory = Path.Combine(frameworkDirectory, RedistListFolder); 1043string subsetDirectory = Path.Combine(frameworkDirectory, subsetListFolder); 1050string subsetFilePath = Path.Combine(subsetDirectory, subsetName + ".xml");
ResolveCodeAnalysisRuleSet.cs (3)
86string fullName = Path.Combine(MSBuildProjectDirectory, CodeAnalysisRuleSet); 98string fullName = Path.Combine(directory, CodeAnalysisRuleSet); 111string fullName = Path.Combine(MSBuildProjectDirectory, CodeAnalysisRuleSet);
ResolveManifestFiles.cs (2)
377targetPath = Path.Combine(itemCulture.ToString(), targetPath); 860fusionName = Path.Combine(destSubDir, Path.GetFileNameWithoutExtension(item.ItemSpec));
ResolveSDKReference.cs (1)
1015_sdkManifestPath = Path.Combine(ResolvedPath, "SDKManifest.xml");
ResourceHandling\MSBuildResXReader.cs (1)
235fileName = Path.Combine(
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
567Path.Combine(ThisAssemblyDirectoryLazy.Value, ReferenceAssemblyDirectoryName), 570.FirstOrDefault(p => File.Exists(Path.Combine(p, assemblyFileName))); 574resolvedAssemblyReferences.Add(Path.Combine(resolvedDir, assemblyFileName)); 607path = Path.Combine(directory, name.Name + ".dll");
SdkToolsPathUtility.cs (5)
63ProcessorArchitecture.ARM => Path.Combine(sdkToolsPath, "arm"), 64ProcessorArchitecture.AMD64 => Path.Combine(sdkToolsPath, "x64"), 65ProcessorArchitecture.IA64 => Path.Combine(sdkToolsPath, "ia64"), 68pathToTool = Path.Combine(processorSpecificToolDirectory, toolName); 75pathToTool = Path.Combine(sdkToolsPath, toolName);
SystemState.cs (2)
465string pathFromRedistList = Path.Combine(a.FrameworkDirectory, filename); 585string fullPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(stateFile.ToString()), relativePath));
TempFileUtilities.cs (5)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder); 186string file = Path.Combine(directory, $"{fileName}{extension}"); 210string destFile = Path.Combine(dest, fileInfo.Name); 215string destDir = Path.Combine(dest, subdirInfo.Name); 232: System.IO.Path.Combine(TempFileDirectory, name);
Unzip.cs (1)
173string fullDestinationPath = Path.GetFullPath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName));
WindowsFileSystem.cs (3)
130var searchDirectoryPath = Path.Combine(directoryPath, "*"); 167result.Add(Path.Combine(directoryPath, findResult.CFileName)); 175Path.Combine(directoryPath, findResult.CFileName),
WriteCodeFragment.cs (1)
111OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, OutputFile.ItemSpec));
Microsoft.Build.Tasks.UnitTests (654)
AddToWin32Manifest_Tests.cs (6)
49task.ApplicationManifest = new TaskItem(Path.Combine(TestAssetsRootPath, manifestName)); 59string expectedManifest = Path.Combine(TestAssetsRootPath, $"{manifestName ?? "default.win32manifest"}_expected"); 109File.Copy(Path.Combine(TestAssetsRootPath, manifestName), Path.Combine(projectFolder.Path, manifestName)); 118byte[]? actualManifestBytes = AssemblyNativeResourceManager.GetResourceFromExecutable(Path.Combine(outputPath, "test.dll"), "#2", "#24"); 123string expectedManifest = Path.Combine(TestAssetsRootPath, $"{manifestName ?? "default.win32manifest"}_expected");
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
28_rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".UnitTest.RarCache");
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (189)
190protected static readonly string s_myProjectPath = Path.Combine(s_rootPathPrefix, "MyProject"); 199protected static readonly string s_myMissingAssemblyRelPath = Path.Combine("MyProject", "MyMissingAssembly.dll"); 200protected static readonly string s_myPrivateAssemblyRelPath = Path.Combine("MyProject", "MyPrivateAssembly.exe"); 202protected static readonly string s_frameworksPath = Path.Combine(s_rootPathPrefix, "Frameworks"); 204protected static readonly string s_myComponents2RootPath = Path.Combine(s_rootPathPrefix, "MyComponents2"); 205protected static readonly string s_myComponentsRootPath = Path.Combine(s_rootPathPrefix, "MyComponents"); 206protected static readonly string s_myComponents10Path = Path.Combine(s_myComponentsRootPath, "1.0"); 207protected static readonly string s_myComponents20Path = Path.Combine(s_myComponentsRootPath, "2.0"); 208protected static readonly string s_myComponentsMiscPath = Path.Combine(s_myComponentsRootPath, "misc"); 210protected static readonly string s_myComponentsV05Path = Path.Combine(s_myComponentsRootPath, "v0.5"); 211protected static readonly string s_myComponentsV10Path = Path.Combine(s_myComponentsRootPath, "v1.0"); 212protected static readonly string s_myComponentsV20Path = Path.Combine(s_myComponentsRootPath, "v2.0"); 213protected static readonly string s_myComponentsV30Path = Path.Combine(s_myComponentsRootPath, "v3.0"); 215protected static readonly string s_unifyMeDll_V05Path = Path.Combine(s_myComponentsV05Path, "UnifyMe.dll"); 216protected static readonly string s_unifyMeDll_V10Path = Path.Combine(s_myComponentsV10Path, "UnifyMe.dll"); 217protected static readonly string s_unifyMeDll_V20Path = Path.Combine(s_myComponentsV20Path, "UnifyMe.dll"); 218protected static readonly string s_unifyMeDll_V30Path = Path.Combine(s_myComponentsV30Path, "UnifyMe.dll"); 220protected static readonly string s_myComponents40ComponentPath = Path.Combine(s_myComponentsRootPath, "4.0Component"); 221protected static readonly string s_40ComponentDependsOnOnlyv4AssembliesDllPath = Path.Combine(s_myComponents40ComponentPath, "DependsOnOnlyv4Assemblies.dll"); 223protected static readonly string s_myLibrariesRootPath = Path.Combine(s_rootPathPrefix, "MyLibraries"); 224protected static readonly string s_myLibraries_V1Path = Path.Combine(s_myLibrariesRootPath, "v1"); 225protected static readonly string s_myLibraries_V2Path = Path.Combine(s_myLibrariesRootPath, "v2"); 226protected static readonly string s_myLibraries_V1_EPath = Path.Combine(s_myLibraries_V1Path, "E"); 228protected static readonly string s_myLibraries_ADllPath = Path.Combine(s_myLibrariesRootPath, "A.dll"); 229protected static readonly string s_myLibraries_BDllPath = Path.Combine(s_myLibrariesRootPath, "B.dll"); 230protected static readonly string s_myLibraries_CDllPath = Path.Combine(s_myLibrariesRootPath, "C.dll"); 231protected static readonly string s_myLibraries_TDllPath = Path.Combine(s_myLibrariesRootPath, "T.dll"); 233protected static readonly string s_myLibraries_V1_DDllPath = Path.Combine(s_myLibraries_V1Path, "D.dll"); 234protected static readonly string s_myLibraries_V1_E_EDllPath = Path.Combine(s_myLibraries_V1_EPath, "E.dll"); 235protected static readonly string s_myLibraries_V2_DDllPath = Path.Combine(s_myLibraries_V2Path, "D.dll"); 236protected static readonly string s_myLibraries_V1_GDllPath = Path.Combine(s_myLibraries_V1Path, "G.dll"); 237protected static readonly string s_myLibraries_V2_GDllPath = Path.Combine(s_myLibraries_V2Path, "G.dll"); 242protected static readonly string s_regress444809RootPath = Path.Combine(s_rootPathPrefix, "Regress444809"); 243protected static readonly string s_regress444809_ADllPath = Path.Combine(s_regress444809RootPath, "A.dll"); 244protected static readonly string s_regress444809_BDllPath = Path.Combine(s_regress444809RootPath, "B.dll"); 245protected static readonly string s_regress444809_CDllPath = Path.Combine(s_regress444809RootPath, "C.dll"); 246protected static readonly string s_regress444809_DDllPath = Path.Combine(s_regress444809RootPath, "D.dll"); 248protected static readonly string s_regress444809_V2RootPath = Path.Combine(s_regress444809RootPath, "v2"); 249protected static readonly string s_regress444809_V2_ADllPath = Path.Combine(s_regress444809_V2RootPath, "A.dll"); 251protected static readonly string s_regress442570_RootPath = Path.Combine(s_rootPathPrefix, "Regress442570"); 252protected static readonly string s_regress442570_ADllPath = Path.Combine(s_regress442570_RootPath, "A.dll"); 253protected static readonly string s_regress442570_BDllPath = Path.Combine(s_regress442570_RootPath, "B.dll"); 255protected static readonly string s_myAppRootPath = Path.Combine(s_rootPathPrefix, "MyApp"); 256protected static readonly string s_myApp_V05Path = Path.Combine(s_myAppRootPath, "v0.5"); 257protected static readonly string s_myApp_V10Path = Path.Combine(s_myAppRootPath, "v1.0"); 258protected static readonly string s_myApp_V20Path = Path.Combine(s_myAppRootPath, "v2.0"); 259protected static readonly string s_myApp_V30Path = Path.Combine(s_myAppRootPath, "v3.0"); 274protected static readonly string s_assemblyFolder_RootPath = Path.Combine(s_rootPathPrefix, "AssemblyFolder"); 275protected static readonly string s_assemblyFolder_SomeAssemblyDllPath = Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.dll"); 376Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), 377Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), 378Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), 379Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), 380Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), 381Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), 382Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), 383Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), 384Path.Combine(s_myVersion20Path, "System.Data.dll"), 385Path.Combine(s_myVersion20Path, "System.Xml.dll"), 386Path.Combine(s_myVersion20Path, "System.Xml.pdb"), 387Path.Combine(s_myVersion20Path, "System.Xml.xml"), 395Path.Combine(s_rootPathPrefix, s_myPrivateAssemblyRelPath), 396Path.Combine(s_myProjectPath, "MyCopyLocalAssembly.dll"), 397Path.Combine(s_myProjectPath, "MyDontCopyLocalAssembly.dll"), 398Path.Combine(s_myVersion20Path, "BadImage.dll"), // An assembly that will give a BadImageFormatException from GetAssemblyName 399Path.Combine(s_myVersion20Path, "BadImage.pdb"), 400Path.Combine(s_myVersion20Path, "MyGacAssembly.dll"), 401Path.Combine(s_myVersion20Path, "MyGacAssembly.pdb"), 403Path.Combine(s_myVersion20Path, "System.dll"), 404Path.Combine(s_myVersion40Path, "System.dll"), 405Path.Combine(s_myVersion90Path, "System.dll"), 406Path.Combine(s_myVersion20Path, "mscorlib.dll"), 407Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), 409Path.Combine(s_myProjectPath, "mscorlib.dll"), // This is an mscorlib.dll that has no metadata (i.e. GetAssemblyName returns null) 410Path.Combine(s_myProjectPath, "System.Data.dll"), // This is a System.Data.dll that has the wrong pkt, it shouldn't be matched. 411Path.Combine(s_myComponentsRootPath, "MyGrid.dll"), // A vendor component that we should find in the registry. 429Path.Combine(s_myComponentsV30Path, "MyControlWithFutureTargetNDPVersion.dll"), // The future version of a component. 430Path.Combine(s_myComponentsV20Path, "MyControlWithFutureTargetNDPVersion.dll"), // The current version of a component. 431Path.Combine(s_myComponentsV10Path, "MyNDP1Control.dll"), // A control that only has an NDP 1.0 version 432Path.Combine(s_myComponentsV20Path, "MyControlWithPastTargetNDPVersion.dll"), // The current version of a component. 433Path.Combine(s_myComponentsV10Path, "MyControlWithPastTargetNDPVersion.dll"), // The past version of a component. 437Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), // A devices mscorlib. 454Path.Combine(s_myAppRootPath, "DependsOnSimpleA.dll"), 502Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.pdb"), 503Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.xml"), 504Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.pri"), 505Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.licenses"), 506Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.config"), 515Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), 516Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), 517Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), 518Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), 519Path.Combine(s_myAppRootPath, "DependsOnWeaklyNamedUnified.dll"), 520Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), 526Path.Combine(s_myComponentsMiscPath, "DependsOnOnlyv4Assemblies.dll"), // Only depends on 4.0.0 assemblies 527Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), // Is in redist list and is a 9.0 assembly 528Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), // Depends on 9.0 assemblies 529Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), // Depends on 9.0 assemblies 530Path.Combine(s_myComponents10Path, "DependsOn9.dll"), // Depends on 9.0 assemblies 531Path.Combine(s_myComponents20Path, "DependsOn9.dll"), // Depends on 9.0 assemblies 549Path.Combine(s_myComponentsRootPath, "V.dll"), 550Path.Combine(s_myComponents2RootPath, "W.dll"), 551Path.Combine(s_myComponentsRootPath, "X.dll"), 552Path.Combine(s_myComponentsRootPath, "X.pdb"), 553Path.Combine(s_myComponentsRootPath, "Y.dll"), 554Path.Combine(s_myComponentsRootPath, "Z.dll"), 556Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), 557Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), 913Path.Combine(path, "en"), Path.Combine(path, "en-GB"), Path.Combine(path, "xx") 922Path.Combine(path, "en"), Path.Combine(path, "en-GB"), Path.Combine(path, "xx") 1076String.Equals(path, Path.Combine(s_myVersion20Path, "BadImage.dll"), StringComparison.OrdinalIgnoreCase)) 1078throw new System.BadImageFormatException(@"The format of the file '" + Path.Combine(s_myVersion20Path, "BadImage.dll") + "' is invalid"); 1083String.Equals(path, Path.Combine(s_myProjectPath, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 1084|| String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 1085|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)) 1093String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 1094|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)) 1105if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1110if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1115if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1203if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1208if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1213if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.XML.dll"), StringComparison.OrdinalIgnoreCase)) 1220if (String.Equals(path, Path.Combine(s_myProjectPath, "System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1227if (String.Equals(path, Path.Combine(s_myProjectPath, "System.Data.dll"), StringComparison.OrdinalIgnoreCase)) 1233if (path.EndsWith(Path.Combine(s_myVersion20Path, "MyGacAssembly.dll"))) 1239if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 1245if (String.Equals(path, Path.Combine(s_myVersion40Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 1251if (String.Equals(path, Path.Combine(s_myVersion90Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 1259String.Equals(path, Path.Combine(s_myVersion20Path, "System.Data.dll"), StringComparison.OrdinalIgnoreCase)) 1300if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), StringComparison.OrdinalIgnoreCase)) 1305if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1320if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1325if (String.Equals(path, Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1330if (String.Equals(path, Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 1381if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), StringComparison.OrdinalIgnoreCase)) 1387if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 1393if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), StringComparison.OrdinalIgnoreCase)) 1398if (String.Equals(path, Path.Combine(s_myComponents10Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 1403if (String.Equals(path, Path.Combine(s_myComponents20Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 1438if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.pdb"), StringComparison.OrdinalIgnoreCase)) 1486if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "V.dll"), StringComparison.OrdinalIgnoreCase)) 1490if (String.Equals(path, Path.Combine(s_myComponents2RootPath, "W.dll"), StringComparison.OrdinalIgnoreCase)) 1494if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.dll"), StringComparison.OrdinalIgnoreCase)) 1499if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Z.dll"), StringComparison.OrdinalIgnoreCase)) 1504if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Y.dll"), StringComparison.OrdinalIgnoreCase)) 1509if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), StringComparison.OrdinalIgnoreCase)) 1514if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), StringComparison.OrdinalIgnoreCase)) 1823if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1827else if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1831else if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1835else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1839else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1843else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1858if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1866if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1874if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase)) 1996if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2092String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase) 2093|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)) 2103if (String.Equals(path, Path.Combine(s_myAppRootPath, "DependsOnSimpleA.dll"), StringComparison.OrdinalIgnoreCase)) 2151if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "MyGrid.dll"), StringComparison.OrdinalIgnoreCase)) 2212if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnWeaklyNamedUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2220if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), StringComparison.OrdinalIgnoreCase)) 2228if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2236if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2244if (String.Equals(path, Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2252if (String.Equals(path, Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase)) 2276if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), StringComparison.OrdinalIgnoreCase)) 2286if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 2296if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), StringComparison.OrdinalIgnoreCase)) 2304if (String.Equals(path, Path.Combine(s_myComponents10Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 2312if (String.Equals(path, Path.Combine(s_myComponents20Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase)) 2345if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "V.dll"), StringComparison.OrdinalIgnoreCase)) 2353if (String.Equals(path, Path.Combine(s_myComponents2RootPath, "W.dll"), StringComparison.OrdinalIgnoreCase)) 2358if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.dll"), StringComparison.OrdinalIgnoreCase)) 2366if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Z.dll"), StringComparison.OrdinalIgnoreCase)) 2371if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Y.dll"), StringComparison.OrdinalIgnoreCase)) 2379if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), StringComparison.OrdinalIgnoreCase)) 2384if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), StringComparison.OrdinalIgnoreCase)) 2392if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2401if (String.Equals(path, Path.Combine(s_myVersion40Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2410if (String.Equals(path, Path.Combine(s_myVersion90Path, "System.dll"), StringComparison.OrdinalIgnoreCase)) 2990string redistListPath = Path.Combine(tempPath, Guid.NewGuid() + ".xml"); 2991string rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".RarCache");
AssemblyDependency\SuggestedRedirects.cs (2)
206warningMessage.ShouldContain(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.FourSpaceIndent", ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ReferenceDependsOn", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", Path.Combine(s_myLibraries_V1Path, "D.dll")))); 251warningMessage.ShouldContain(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.FourSpaceIndent", ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ReferenceDependsOn", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", Path.Combine(s_myLibraries_V1Path, "D.dll"))));
AssignLinkMetadata_Tests.cs (4)
80Assert.Equal(Path.Combine("SubFolder", "a.cs"), t.OutputItems[0].GetMetadata("Link")); 107Assert.Equal(Path.Combine("SubFolder", "a.cs"), t.OutputItems[0].GetMetadata("Link")); 158ITaskItem item = new TaskItem(Path.Combine("SubFolder", "a.cs")); 179FullPath = Path.Combine(Path.GetTempPath(), "a.proj")
CombinePath_Tests.cs (8)
26t.BasePath = Path.Combine("abc", "def"); 28string fullPath1 = Path.Combine(t.BasePath, path1); 29string path2 = Path.Combine("jkl", "mno.txt"); 30string fullPath2 = Path.Combine(t.BasePath, path2); 46t.BasePath = Path.Combine("abc", "def"); 77string path1 = Path.DirectorySeparatorChar + Path.Combine("ghi", "jkl.txt"); 78string path2 = Path.Combine("mno", "qrs.txt"); 79string fullPath2 = Path.Combine(t.BasePath, path2);
Copy_Tests.cs (54)
223Directory.Exists(Path.Combine(destinationFolder.Path, "source0")).ShouldBeTrue(); 224Directory.Exists(Path.Combine(destinationFolder.Path, "source1")).ShouldBeTrue(); 952string destinationFolder = Path.Combine(Path.GetTempPath(), "2A333ED756AF4dc392E728D0F874A398"); 953string destination1 = Path.Combine(destinationFolder, Path.GetFileName(source1)); 954string destination2 = Path.Combine(destinationFolder, Path.GetFileName(source2)); 1569string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A392"); 1570string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A393"); 1572string validOutFile = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A394"); 1657string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395"); 1728string file = Path.Combine(currdir, filename); 1780string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395"); 1781string invalidFile = NativeMethodsShared.IsUnixLike ? Path.Combine(temp, "!@#$%^&*()|") : "!@#$%^&*()|"; 1845string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 1846string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 1917string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 1918string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 1980new TaskItem(Path.Combine(tempPath, "a.cs")), 1981new TaskItem(Path.Combine(tempPath, "b.cs")), 1982new TaskItem(Path.Combine(tempPath, "a.cs")), 1983new TaskItem(Path.Combine(tempPath, "a.cs")), 2001DestinationFolder = new TaskItem(Path.Combine(tempPath, "foo")), 2037new TaskItem(Path.Combine(tempPath, "a.cs")), 2038new TaskItem(Path.Combine(tempPath, "b.cs")), 2039new TaskItem(Path.Combine(tempPath, "a.cs")), 2040new TaskItem(Path.Combine(tempPath, "a.cs")), 2041new TaskItem(Path.Combine(tempPath, "a.cs")), 2054new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs 2055new TaskItem(Path.Combine(tempPath, @"xa.cs")), // b.cs -> xa.cs should copy because it's a different source 2056new TaskItem(Path.Combine(tempPath, @"xb.cs")), // a.cs -> xb.cs should copy because it's a different destination 2057new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should copy because it's a different source from the b.cs copy done previously 2058new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should not copy because it's the same source 2087string xaPath = Path.Combine(tempPath, "xa.cs"); 2090Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[0].Key.Name); 2091Assert.Equal(Path.Combine(tempPath, "b.cs"), xaCopies[1].Key.Name); 2092Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[2].Key.Name); 2094string xbPath = Path.Combine(tempPath, "xb.cs"); 2097Assert.Equal(Path.Combine(tempPath, "a.cs"), xbCopies[0].Key.Name); 2111string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2112string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A399"); 2113string outFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A400"); 2549string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2550string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2619string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2620string destFile1 = Path.Combine(destFolder, Path.GetFileName(sourceFile1)); 2621string destFile2 = Path.Combine(destFolder, Path.GetFileName(sourceFile2)); 2626string nothingFile = Path.Combine(destFolder, "nothing.txt"); 2723string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2724string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2751string destLink = Path.Combine(destFolder, Path.GetFileNameWithoutExtension(sourceFile) + "." + n); 2805string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2806string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2871string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 2872string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 2940string destFile = Path.Combine(destFolder.Path, "The Destination");
CreateItem_Tests.cs (3)
173ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("Subdir", "Bar.txt"), "bar"); 178ObjectModelHelpers.AssertFileExistsInTempProjectDirectory(Path.Combine("Destination", "Foo.txt")); 203ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("Subdir", "Bar.txt"), "bar");
DirectoryBuildProjectImportTestBase.cs (1)
177Assert.Equal(Path.Combine(ObjectModelHelpers.TempProjectDir, DirectoryBuildProjectFile), project.GetPropertyValue(DirectoryBuildProjectPathPropertyName));
DownloadFile_Tests.cs (3)
77FileInfo file = new FileInfo(Path.Combine(folder.Path, "foo.txt")); 122FileInfo file = new FileInfo(Path.Combine(folder.Path, filename)); 156FileInfo file = new FileInfo(Path.Combine(folder.Path, filename));
Exec_Tests.cs (6)
335string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 372string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 410string newTmp = Path.Combine(FileUtilities.TempFileDirectory, directoryWithAmpersand); 447string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 579string folder = Path.Combine(Path.GetTempPath(), includeNonAnsiInCommand ? nonAnsiCharacters : ansiCharacters); 580string command = Path.Combine(folder, "test.cmd");
FormatUrl_Tests.cs (1)
77t.OutputUrl.ShouldBe(new Uri(Path.Combine(Environment.CurrentDirectory, t.InputUrl)).AbsoluteUri);
GenerateBindingRedirects_Tests.cs (1)
268TransientTestFolder testFolder = env.CreateFolder(Path.Combine(rootTestFolder.Path, "\uD873\uDD02\u9FA8\u82D8\u722B\u9EA4\u03C5\u33D1\uE038\u486B\u0033"));
GetFileHash_Tests.cs (1)
57Files = new[] { new TaskItem(Path.Combine(AppContext.BaseDirectory, "this_does_not_exist.txt")) },
GetInstalledSDKLocations_Tests.cs (3)
47string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory"); 98Directory.CreateDirectory(Path.Combine(tempPath, "Walls" + Path.DirectorySeparatorChar + "1.0" + Path.DirectorySeparatorChar)); 115string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
GetSDKReference_Tests.cs (69)
50string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies"); 51sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 52string referenceAssemblyDirectoryConfigx86 = Path.Combine(sdkDirectory, "References\\Retail\\X86"); 53string referenceAssemblyDirectoryConfigx64 = Path.Combine(sdkDirectory, "References\\Retail\\X64"); 54string referenceAssemblyDirectoryConfigNeutral = Path.Combine(sdkDirectory, "References\\Retail\\Neutral"); 55string referenceAssemblyDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\Neutral"); 56string referenceAssemblyDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\X86"); 57string referenceAssemblyDirectoryCommonConfigX64 = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\X64"); 59string redistDirectoryConfigx86 = Path.Combine(sdkDirectory, "Redist\\Retail\\X86"); 60string redistDirectoryConfigx64 = Path.Combine(sdkDirectory, "Redist\\Retail\\X64"); 61string redistDirectoryConfigNeutral = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 62string redistDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 63string redistDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\X86"); 64string redistDirectoryCommonConfigX64 = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\X64"); 66string designTimeDirectoryConfigx86 = Path.Combine(sdkDirectory, "DesignTime\\Retail\\X86"); 67string designTimeDirectoryConfigNeutral = Path.Combine(sdkDirectory, "DesignTime\\Retail\\Neutral"); 68string designTimeDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "DesignTime\\CommonConfiguration\\Neutral"); 69string designTimeDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "DesignTime\\CommonConfiguration\\X86"); 84Directory.CreateDirectory(Path.Combine(redistDirectoryConfigNeutral, "ASubDirectory\\TwoDeep")); 94string testWinMD = Path.Combine(referenceAssemblyDirectoryConfigx86, "A.winmd"); 95string testWinMD64 = Path.Combine(referenceAssemblyDirectoryConfigx64, "A.winmd"); 96string testWinMDNeutral = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "B.winmd"); 97string testWinMDNeutralWinXML = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "B.xml"); 98string testWinMDCommonConfigurationx86 = Path.Combine(referenceAssemblyDirectoryCommonConfigX86, "C.winmd"); 99string testWinMDCommonConfigurationx64 = Path.Combine(referenceAssemblyDirectoryCommonConfigX64, "C.winmd"); 100string testWinMDCommonConfigurationNeutral = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "D.winmd"); 101string testWinMDCommonConfigurationNeutralDupe = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "A.winmd"); 103string testRA = Path.Combine(referenceAssemblyDirectoryConfigx86, "E.dll"); 104string testRA64 = Path.Combine(referenceAssemblyDirectoryConfigx64, "E.dll"); 105string testRANeutral = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "F.dll"); 106string testRACommonConfigurationx86 = Path.Combine(referenceAssemblyDirectoryCommonConfigX86, "G.dll"); 107string testRACommonConfigurationx64 = Path.Combine(referenceAssemblyDirectoryCommonConfigX64, "G.dll"); 108string testRACommonConfigurationNeutral = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "H.dll"); 110string testRACommonConfigurationNeutralDupe = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "A.dll"); 112string redist = Path.Combine(redistDirectoryConfigx86, "A.dll"); 113string redist64 = Path.Combine(redistDirectoryConfigx64, "A.dll"); 114string redistNeutral = Path.Combine(redistDirectoryConfigNeutral, "ASubDirectory\\TwoDeep\\B.dll"); 115string redistNeutralPri = Path.Combine(redistDirectoryConfigNeutral, "B.pri"); 116string redistCommonConfigurationx86 = Path.Combine(redistDirectoryCommonConfigX86, "C.dll"); 117string redistCommonConfigurationx64 = Path.Combine(redistDirectoryCommonConfigX64, "C.dll"); 118string redistCommonConfigurationNeutral = Path.Combine(redistDirectoryCommonConfigNeutral, "D.dll"); 119string redistCommonConfigurationNeutralDupe = Path.Combine(redistDirectoryCommonConfigNeutral, "A.dll"); 154string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies"); 155sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\AnotherSDK\\2.0\\"); 156string referenceAssemblyDirectoryConfigx86 = Path.Combine(sdkDirectory, "References\\Retail\\X86"); 157string redistDirectoryConfigx86 = Path.Combine(sdkDirectory, "Redist\\Retail\\X86"); 165string testWinMD = Path.Combine(referenceAssemblyDirectoryConfigx86, "B.winmd"); 166string redist = Path.Combine(redistDirectoryConfigx86, "B.pri"); 167string redist2 = Path.Combine(redistDirectoryConfigx86, "B.dll"); 190private readonly string _cacheDirectory = Path.Combine(Path.GetTempPath(), "GetSDKReferenceFiles"); 299Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[0]); 300Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[1]); 305Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[0]); 306Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[1]); 311Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\X86\\"), sdkFolders[0]); 312Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[1]); 313Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\X86\\"), sdkFolders[2]); 314Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[3]); 433string winmd = Path.Combine(_sdkDirectory, "References\\Retail\\X86\\A.winmd"); 1236string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\B.pri"); 1237string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.pri"); 1238string referenceWinner = Path.Combine(_sdkDirectory, "References\\Retail\\Neutral\\B.WinMD"); 1239string referenceVictim = Path.Combine(_sdkDirectory2, "References\\Retail\\X86\\B.WinMD"); 1282string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\ASubDirectory\\TwoDeep\\B.dll"); 1283string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.dll"); 1325string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\B.pri"); 1326string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.pri"); 1327string referenceWinner = Path.Combine(_sdkDirectory, "References\\Retail\\Neutral\\B.WinMD"); 1328string referenceVictim = Path.Combine(_sdkDirectory2, "References\\Retail\\X86\\B.WinMD");
MakeDir_Tests.cs (7)
25string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A391"); 66string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38e"); 67string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38f"); 69string dir2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A390"); 129string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38C"); 175string dir = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38C"); 234string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A38d");
Move_Tests.cs (10)
420string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A392"); 421string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A393"); 423string validOutFile = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A394"); 594string file = Path.Combine(currdir, filename); 636string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395"); 681string destFolder = Path.Combine(temp, "2A333ED756AF4d1392E728D0F864A398"); 682string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile)); 735string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398"); 736string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A399"); 737string outFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A400");
NuGetPropsImportTests.cs (1)
66var nugetPropsRelativePath = Path.Combine(Path.GetDirectoryName(projectRelativePath), NuGetPropsProjectFile);
OutputPathTests.cs (4)
78var baseOutputPath = Path.Combine("build", "bin"); 114var baseOutputPath = Path.Combine("build", "bin"); 115var outputPath = Path.Combine("bin", "Debug"); 116var outputPathAlt = Path.Combine("bin", "Release");
PortableTasks_Tests.cs (3)
51var projFile = Path.Combine(folder, ProjectFileName); 59File.Copy(file.FullName, Path.Combine(folder, file.Name)); 60_outputHelper.WriteLine($"Copied {file.FullName} to {Path.Combine(folder, file.Name)}");
PrintLineDebugger_Tests.cs (1)
191artifactsDirectory.ShouldEndWith(Path.Combine("log", "Debug"), Case.Sensitive);
ProjectExtensionsImportTestBase.cs (1)
150string projectExtensionsDirectory = Path.Combine(ObjectModelHelpers.TempProjectDir, Path.GetDirectoryName(ImportProjectPath));
RARPrecomputedCache_Tests.cs (3)
31{ Path.Combine(standardCache.Path, "assembly1"), new SystemState.FileState(now) }, 32{ Path.Combine(standardCache.Path, "assembly2"), new SystemState.FileState(now) { Assembly = new Shared.AssemblyNameExtension("hi") } } }; 119{ Path.Combine(precomputedCache.Path, "assembly2"), new SystemState.FileState(DateTime.Now) { Assembly = new Shared.AssemblyNameExtension("hi") } },
ResolveAssemblyReference_CustomCultureTests.cs (5)
43var projectBFolder = Path.Combine(solutionPath, projectBName); 45var projBContent = File.ReadAllText(Path.Combine(testAssetsPath, projectBName)) 49env.CreateFile(Path.Combine(projectBFolder, projectBName), projBContent); 84var sourcePath = Path.Combine(sourceFolder, fileName); 86File.Copy(sourcePath, Path.Combine(destinationFolder, fileName));
ResolveCodeAnalysisRuleSet_Tests.cs (7)
78string codeAnalysisRuleSet = Path.Combine(Path.GetTempPath(), @"CodeAnalysis.ruleset"); 128string ruleSetFullPath = Path.Combine(projectDirectory, codeAnalysisRuleSet); 179string ruleSetFullPath = Path.Combine(directory, codeAnalysisRuleSet); 227task.CodeAnalysisRuleSet = Path.Combine(subdirectoryName, "CodeAnalysis.ruleset"); 249string codeAnalysisRuleSet = Path.Combine(subdirectoryName, "CodeAnalysis.ruleset"); 256string ruleSetFullPath = Path.Combine(projectDirectory, codeAnalysisRuleSet); 280task.CodeAnalysisRuleSet = Path.Combine(subdirectoryName, "CodeAnalysis.ruleset");
ResolveNonMSBuildProjectOutput_Tests.cs (44)
137projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 143projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 145projectOutputs, true, Path.Combine("obj", "correct.dll")); 149projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 150projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 151projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 157projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 158projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 159projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 160projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 162projectOutputs, true, Path.Combine("obj", "correct.dll")); 224projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-000000000000}", Path.Combine("obj", "managed.dll")); 225projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "unmanaged.dll")); 227TestUnresolvedReferencesHelper(projectRefs, projectOutputs, path => (path == Path.Combine("obj", "managed.dll")), out unresolvedOutputs, out resolvedOutputs); 230Assert.True(resolvedOutputs.Contains(Path.Combine("obj", "managed.dll"))); 231Assert.True(resolvedOutputs.Contains(Path.Combine("obj", "unmanaged.dll"))); 232Assert.Equal("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "managed.dll")]).GetMetadata("ManagedAssembly")); 233Assert.NotEqual("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "unmanaged.dll")]).GetMetadata("ManagedAssembly")); 250projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 251projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 252projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 265projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 266projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 267projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 268projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 273Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct.dll"))); 279projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 280projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 281projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 282projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 283projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-000000000000}", Path.Combine("obj", "correct2.dll")); 288Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct.dll"))); 289Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct2.dll"))); 294projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 295projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 296projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 307projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 308projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 309projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll")); 310projectOutputs.Add("{2F6BBCC3-7111-4116-A68B-34CFC76F37C5}", Path.Combine("obj", "correct.dll")); 316Assert.True(resolvedOutputs.ContainsKey(Path.Combine("obj", "correct.dll"))); 321projectOutputs.Add("{11111111-1111-1111-1111-111111111111}", Path.Combine("obj", "wrong.dll")); 322projectOutputs.Add("{11111111-1111-1111-1111-111111111112}", Path.Combine("obj", "wrong2.dll")); 323projectOutputs.Add("{11111111-1111-1111-1111-111111111113}", Path.Combine("obj", "wrong3.dll"));
ResolveSDKReference_Tests.cs (157)
123string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion"); 176string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 462string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyDependsOnWarningFromManifest"); 484string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 577string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit1"); 588string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 632string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit2"); 643string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 690string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit3"); 701string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 745string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit4"); 756string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 800string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit5"); 811string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 855string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit6"); 866string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 912string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit7"); 923string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 967string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit8"); 977string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1021string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit9"); 1032string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1491string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestWarnings"); 1498string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1550string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestErrors"); 1551string testDirectory = Path.Combine(testDirectoryRoot, "BadTestSDK\\2.0\\"); 1557string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1601string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion"); 1654string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1707string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "EmptySDKManifestAttributes"); 1734string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1792string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestAttributes"); 1816string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1890string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigAndArch"); 1911string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 1963string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly"); 1982string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2032string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "NoCopyOnPlatformIdentityFound"); 2047string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2099string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly"); 2120string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2173string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestOnlyHasArmLocation"); 2189string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2241string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestArmLocationWithOthers"); 2259string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2312string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistWarning"); 2330string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2384string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistError"); 2402string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2453string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureMatchesProject"); 2472string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2526string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifest"); 2546string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2591string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifestAndMetadata"); 2611string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2658string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsNotInManifest"); 2678string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2722string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsBadMetadata"); 2743string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2790string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilySameName"); 2821string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2822string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 2823string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 2888string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName"); 2919string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 2920string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 2921string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 2986string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName"); 3024string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3025string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 3026string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 3027string sdkManifestFile4 = Path.Combine(testDirectory4, "SDKManifest.xml"); 3099string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameSDKName"); 3130string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3131string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml"); 3132string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml"); 3205string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsVerifyManifestReading"); 3226string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3279string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata"); 3300string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3356string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadataButMetadataDoesNotMatch"); 3376string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3422string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata"); 3444string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3500string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureDoesNotMatchProject"); 3520string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3564string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject"); 3583string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3636string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject"); 3657string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml"); 3704string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework"); 3705string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 3706string archRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86"); 3707string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 3708string archCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86"); 3709string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 3711string sdkDirectory3 = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\FrameworkSDkWithManifest\\2.0\\"); 3712string archRedist3 = Path.Combine(sdkDirectory3, "Redist\\Retail\\x64"); 3713string archRedist33 = Path.Combine(sdkDirectory3, "Redist\\Retail\\Neutral"); 3714string archCommonRedist3 = Path.Combine(sdkDirectory3, "Redist\\CommonConfiguration\\x64"); 3785string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 3786string sdkManifestFile2 = Path.Combine(sdkDirectory3, "SDKManifest.xml"); 3787string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 3794string redist1 = Path.Combine(archRedist, "A.dll"); 3795string redist2 = Path.Combine(neutralRedist, "B.dll"); 3796string redist3 = Path.Combine(archCommonRedist, "C.dll"); 3797string redist4 = Path.Combine(neutralCommonRedist, "D.dll"); 3798string redist5 = Path.Combine(archRedist33, "A.dll"); 3799string redist6 = Path.Combine(archCommonRedist3, "B.dll"); 3847string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework"); 3848string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 3849string archRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86"); 3850string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 3851string archCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86"); 3852string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 3854string sdkDirectory3 = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\FrameworkSDkWithManifest\\2.0\\"); 3855string archRedist3 = Path.Combine(sdkDirectory3, "Redist\\Retail\\x64"); 3856string archRedist33 = Path.Combine(sdkDirectory3, "Redist\\Retail\\Neutral"); 3857string archCommonRedist3 = Path.Combine(sdkDirectory3, "Redist\\CommonConfiguration\\x64"); 3926string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 3927string sdkManifestFile2 = Path.Combine(sdkDirectory3, "SDKManifest.xml"); 3928string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 3935string redist1 = Path.Combine(archRedist, "A.dll"); 3936string redist2 = Path.Combine(neutralRedist, "B.dll"); 3937string redist3 = Path.Combine(archCommonRedist, "C.dll"); 3938string redist4 = Path.Combine(neutralCommonRedist, "D.dll"); 3939string redist5 = Path.Combine(archRedist3, "D.dll"); 3940string redist6 = Path.Combine(archRedist33, "A.dll"); 3941string redist7 = Path.Combine(archCommonRedist3, "B.dll"); 3991string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsTargetArchitectureDoesNotExists"); 3992string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 3993string x86Redist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86"); 3994string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 3995string x86CommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86"); 3996string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 4043string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 4044string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4050string redist1 = Path.Combine(x86CommonRedist, "A.dll"); 4051string redist2 = Path.Combine(x86Redist, "B.dll"); 4052string redist3 = Path.Combine(neutralRedist, "C.dll"); 4053string redist4 = Path.Combine(neutralCommonRedist, "D.dll"); 4100string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture"); 4101string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 4102string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 4103string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 4145string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml"); 4146string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4151string redist1 = Path.Combine(neutralRedist, "B.dll"); 4152string redist2 = Path.Combine(neutralCommonRedist, "C.dll"); 4220string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture"); 4221string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\v8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\"); 4222string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral"); 4223string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral"); 4284string redist1 = Path.Combine(neutralRedist, "B.dll"); 4285string redist2 = Path.Combine(neutralCommonRedist, "C.dll"); 4292string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4295string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
ResourceHandling\GenerateResource_Tests.cs (9)
112string expectedOutFile0 = Path.Combine(Path.GetTempPath(), Path.ChangeExtension(resxFile0, ".resources")); 113string expectedOutFile1 = Path.Combine(Path.GetTempPath(), "resx1.foo.resources"); 114string expectedOutFile2 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources")); 115string expectedOutFile3 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources")); 2992dir = Path.Combine(Path.GetTempPath(), "directory"); 3211t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3360t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3673env.CreateFolder(Path.Combine(env.DefaultTestDirectory.Path, "tmp_dir")), 4140Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "System.dll");
ResourceHandling\MSBuildResXReader_Tests.cs (2)
139File.Exists(Path.Combine("ResourceHandling", "TextFile1.txt")).ShouldBeTrue("Test deployment is missing None files"); 179Path.Combine(baseDir.Path, nameof(LoadsStringFromFileRefAsStringWithShiftJISEncoding) + ".resx"),
RoslynCodeTaskFactory_Tests.cs (1)
115string output = RunnerUtilities.ExecMSBuild(assemblyProj.Path + $" /p:OutDir={Path.Combine(folder.Path, "subFolder")} /restore", out bool success);
SecurityUtil_Tests.cs (3)
16private static string TestAssembliesPaths { get; } = Path.Combine(AppContext.BaseDirectory, "TestResources"); 25string clickOnceManifest = Path.Combine(TestAssembliesPaths, "ClickOnceProfile.pubxml"); 31string pathToCertificate = Path.Combine(TestAssembliesPaths, "mycert.pfx");
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Unzip_Tests.cs (15)
87_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 88_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 131_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 132_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 135Directory.Exists(Path.Combine(destination.Path, "emptyDir")); 236SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), } 269_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 270_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 298_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log); 299_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log); 332_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file1.js"), customMessage: _mockEngine.Log); 333_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "file1.js.map"), customMessage: _mockEngine.Log); 334_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file2.js"), customMessage: _mockEngine.Log); 335_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "readme.txt"), customMessage: _mockEngine.Log); 479string unzippedFilePath = Path.Combine(destination.Path, executableName);
VerifyFileHash_Tests.cs (1)
66File = Path.Combine(AppContext.BaseDirectory, "this_does_not_exist.txt"),
WriteCodeFragment_Tests.cs (9)
89string file = Path.Combine(Path.GetTempPath(), "CombineFileDirectory.tmp"); 108string expectedFile = Path.Combine(folder.ItemSpec, file.ItemSpec); 127TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp")); 175string folder = Path.Combine(Path.GetTempPath(), "foo" + Path.DirectorySeparatorChar); 176string file = Path.Combine(folder, "CombineFileDirectory.tmp"); 197string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp"); 224string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp"); 286string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp"); 415string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp");
WriteLinesToFile_Tests.cs (1)
301var file = Path.Combine(directory.Path, $"{Guid.NewGuid().ToString("N")}.tmp");
XmlPeek_Tests.cs (1)
363string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
XmlPoke_Tests.cs (1)
333string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
XslTransformation_Tests.cs (13)
863var testingDocsDir = Path.Combine("TestDocuments", "Fdl2Proto"); 865xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(testingDocsDir, "sila.xml")) }; 866xslPath = new TaskItem(Path.Combine(testingDocsDir, "fdl2proto.xsl")); 883using (StreamReader sr = new StreamReader(Path.Combine(testingDocsDir, "expected.proto"))) 950var otherXmlPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString())); 1051var otherXslPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString() + ".xslt")); 1058var myXmlPath1 = new TaskItem(Path.Combine(dir, "a.xml")); 1065var myXmlPath2 = new TaskItem(Path.Combine(dir, "b.xml")); 1107dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString()); 1111xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "doc.xml")) }; 1112xslPath = new TaskItem(Path.Combine(dir, "doc.xslt")); 1113xslCompiledPath = new TaskItem(Path.Combine(dir, "doc.dll")); 1114outputPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "testout.xml")) };
ZipDirectory_Tests.cs (2)
32string zipFilePath = Path.Combine(testEnvironment.CreateFolder(createFolder: true).Path, "test.zip"); 133SourceDirectory = new TaskItem(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")))
Microsoft.Build.UnitTests.Shared (20)
DummyMappedDrive.cs (2)
22_mappedPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 30File.Create(Path.Combine(_mappedPath, "x")).Dispose();
EngineTestEnvironment.cs (3)
127var projectDir = Path.GetFullPath(Path.Combine(TestRoot, relativePathFromRootToProject)); 130ProjectFile = Path.GetFullPath(Path.Combine(projectDir, projectFileName)); 198string binaryLoggerFilePath = Path.GetFullPath(Path.Combine(TestRoot, Guid.NewGuid().ToString() + ".binlog"));
EnvironmentProvider.cs (2)
66.Select(p => Path.Combine(p, commandNameWithExtension)) 108public static string? GetDotnetExePathFromFolder(string? netRootFolder) => Path.Combine(netRootFolder ?? string.Empty, Constants.DotNet + Constants.ExeSuffix);
ObjectModelHelpers.cs (10)
147expectedInclude = expectedInclude.Select(i => Path.Combine(testProject.TestRoot, i)).ToArray(); 579Assert.True(FileSystems.Default.FileExists(Path.Combine(TempProjectDir, fileRelativePath)), message); 739project.FullPath = Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj"); 843s_tempProjectDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 905string fullFilePath = Path.Combine(TempProjectDir, fileRelativePath); 982string projectFileFullPath = Path.Combine(TempProjectDir, projectFileRelativePath); 1017string projectFileFullPath = Path.Combine(TempProjectDir, projectFileRelativePath); 1616var projectDir = Path.Combine(root, relativePathFromRootToProject); 1619createdProjectFile = Path.Combine(projectDir, "build.proj"); 1629return Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
TestEnvironment.cs (3)
696Path = System.IO.Path.Combine(rootPath, fileName); 738return new TransientTestFolder(System.IO.Path.Combine(Path, directoryName)); 809string path = System.IO.Path.Combine(destination.Path, filename);
Microsoft.Build.Utilities.Core (95)
BuildEnvironmentHelper.cs (7)
201var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 202var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 335.Select((name) => TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, name))) 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 616MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : CurrentMSBuildToolsDirectory; 623? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
DebugUtils.cs (4)
43debugDirectory = Path.Combine(Directory.GetCurrentDirectory(), "MSBuild_Logs"); 47debugDirectory = Path.Combine(FileUtilities.TempFileDirectory, "MSBuild_Logs"); 112var fullPath = Path.Combine(DebugPath, fileName); 118fullPath = Path.Combine(DebugPath, fileName);
ExceptionHandling.cs (1)
356s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
FileMatcher.cs (3)
498longPath = Path.Combine(longPath, parts[i]); 1977var filespecUnescapedFullyQualified = Path.Combine(projectDirectoryUnescaped, filespecUnescaped); 2068fixedDirectoryPart = Path.Combine(projectDirectoryUnescaped, fixedDirectoryPart);
FileUtilities.cs (9)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 144cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 492return NormalizePath(Path.Combine(directory, file)); 704return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 783string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 861var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1309return paths.Aggregate(root, Path.Combine); 1481string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
FrameworkLocationHelper.cs (17)
410? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 420? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 430? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV30) 440? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV35) 450? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV40) 460? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV45) 470? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11) 480? Path.Combine(NativeMethodsShared.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20) 561Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin"); 781var frameworkPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, prefix ?? string.Empty); 791return Path.Combine(complusInstallRoot, complusVersion); 932? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework") 933: Path.Combine(NativeMethodsShared.FrameworkBasePath, "xbuild-frameworks"); 1092string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix); 1402(!File.Exists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) && 1403!File.Exists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll")))) 1435frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Modifiers.cs (2)
566modifiedItemSpec = Path.Combine( 663fullPath = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
PlatformManifest.cs (1)
94string platformManifestPath = Path.Combine(_pathToManifest, "Platform.xml");
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
SDKManifest.cs (1)
311string sdkManifestPath = Path.Combine(_pathToSdk, "SDKManifest.xml");
TempFileUtilities.cs (5)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder); 186string file = Path.Combine(directory, $"{fileName}{extension}"); 210string destFile = Path.Combine(dest, fileInfo.Name); 215string destDir = Path.Combine(dest, subdirInfo.Name); 232: System.IO.Path.Combine(TempFileDirectory, name);
ToolLocationHelper.cs (37)
658string legacyWindowsMetadataLocation = Path.Combine(sdkRoot, "Windows Metadata"); 1218return Path.Combine(sdkLocation, folderName); 1232: Path.Combine(matchingSdk.Path, folderName); 1430var folders = string.IsNullOrEmpty(subFolder) ? vsInstallFolders : vsInstallFolders.Select(i => Path.Combine(i, subFolder)); 1495string fullPath = Path.Combine(root, file); 1760if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll"))) 1834if (legacyMsCorlib20Path != null && FileSystems.Default.FileExists(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll"))) 1851if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll"))) 2546string pathToSDKManifest = Path.Combine(sdkVersionDirectory.FullName, "SDKManifest.xml"); 2621string platformSDKDirectory = Path.Combine(rootPathWithIdentifier.FullName, version); 2622string platformSDKManifest = Path.Combine(platformSDKDirectory, "SDKManifest.xml"); 2645string sdkFolderPath = Path.Combine(platformSDKDirectory, "ExtensionSDKs"); 2740string platformSDKManifest = Path.Combine(platformSDKDirectory, "SDKManifest.xml"); 2818string sdkManifestFileLocation = Path.Combine(directoryName, "SDKManifest.xml"); 2896string localAppdataFolder = Path.Combine(userLocalAppData, "Microsoft SDKs"); 2903string defaultProgramFilesLocation = Path.Combine( 3021string platformsRoot = Path.Combine(sdk.Path, platformsFolderName); 3049string pathToPlatformManifest = Path.Combine(platformVersion.FullName, "Platform.xml"); 3108string redistListFolder = Path.Combine(path, "RedistList"); 3109string redistFilePath = Path.Combine(redistListFolder, "FrameworkList.xml"); 3193pathToReturn = Path.Combine(pathToReturn, includeFramework); 3342pathToSdk = Path.Combine(pathToSdk, "x64"); 3345pathToSdk = Path.Combine(pathToSdk, "ia64"); 3353string filePath = Path.Combine(pathToSdk, fileName); 3469pathToSdk = Path.Combine(pathToSdk, "bin"); 3510pathToSdk = Path.Combine(pathToSdk, "x86"); 3513pathToSdk = Path.Combine(pathToSdk, "x64"); 3521string filePath = Path.Combine(pathToSdk, fileName); 3584toolPath = Path.Combine(toolPath, fileName); 3614return pathToFx == null ? null : Path.Combine(pathToFx, fileName); 3622public static string GetPathToSystemFile(string fileName) => Path.Combine(PathToSystem, fileName); 3854string frameworkIdentifierPath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier); 3912string frameworkProfilePath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier); 3913frameworkProfilePath = Path.Combine(frameworkProfilePath, frameworkVersion); 3914frameworkProfilePath = Path.Combine(frameworkProfilePath, "Profiles"); 3959string dotNextFx30RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV30); 3966string dotNextFx35RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV35);
ToolTask.cs (3)
515pathToTool = Path.Combine(ToolPath, ToolExe); 528pathToTool = Path.Combine(directory, ToolExe); 1333.Select(folderPath => Path.Combine(folderPath, filename))
WindowsFileSystem.cs (3)
130var searchDirectoryPath = Path.Combine(directoryPath, "*"); 167result.Add(Path.Combine(directoryPath, findResult.CFileName)); 175Path.Combine(directoryPath, findResult.CFileName),
Microsoft.Build.Utilities.UnitTests (147)
PlatformManifest_Tests.cs (2)
69File.WriteAllText(Path.Combine(manifestDirectory, "SomeOtherFile.xml"), "hello"); 326File.WriteAllText(Path.Combine(_manifestDirectory, "Platform.xml"), ObjectModelHelpers.CleanupFileContents(contents));
PrintLineDebugger_Tests.cs (1)
191artifactsDirectory.ShouldEndWith(Path.Combine("log", "Debug"), Case.Sensitive);
TaskItem_Tests.cs (1)
185Path.Combine(
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
ToolLocationHelper_Tests.cs (135)
70string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 78string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 79string referenceDirectory = Path.Combine(tempDirectory, Path.Combine("References", "Foo", "Bar")); 84File.WriteAllText(Path.Combine(referenceDirectory, "One.winmd"), "First"); 85File.WriteAllText(Path.Combine(referenceDirectory, "Two.winmd"), "Second"); 86File.WriteAllText(Path.Combine(referenceDirectory, "Three.winmd"), "Third"); 102string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 109File.WriteAllText(Path.Combine(referenceDirectory, "One.winmd"), "First"); 137returnValue.ShouldBe(Path.Combine(sdkRootPath, @"DesignTime\CommonConfiguration\Neutral")); 163returnValue.ShouldBe(Path.Combine(sdkRootPath, "UnionMetadata")); 170string platformRootFolder = Path.Combine(Path.GetTempPath(), @"MockSDK"); 171string sdkRootFolder = Path.Combine(platformRootFolder, @"Windows Kits\10"); 172string platformFolder = Path.Combine(sdkRootFolder, @"Platforms\UAP\10.0.14944.0"); 173string platformFilePath = Path.Combine(platformFolder, "Platform.xml"); 174string sdkManifestFilePath = Path.Combine(sdkRootFolder, "SDKManifest.xml"); 231string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 256string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 281string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 287File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), ""); 307string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 313File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "Garbaggggge"); 335string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSFN40"); 336string temp35Directory = Path.Combine(tempDirectory, "bin"); 337string temp40Directory = Path.Combine(temp35Directory, "NETFX 4.0 Tools"); 338string toolPath = Path.Combine(temp35Directory, "MyTool.exe"); 339string toolPath40 = Path.Combine(temp40Directory, "MyTool.exe"); 403string testPath = Path.Combine(tempPath, "HighestVersionOfTargetFrameworkIdentifierRootNoVersions"); 422string testPath = Path.Combine(tempPath, "HighestVersionOfTargetFrameworkIdentifierRootMultipleVersions"); 454string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSF40"); 455string temp35Directory = Path.Combine(tempDirectory, "bin"); 456string temp40Directory = Path.Combine(temp35Directory, "NETFX 4.0 Tools"); 457string toolPath = Path.Combine(temp35Directory, "MyTool.exe"); 458string toolPath40 = Path.Combine(temp40Directory, "MyTool.exe"); 542path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86dbg")); 554Path.Combine("{runtime-base}", "v1.3.x86dbg"), // Simulate "Orcas" as the current runtime.} 559path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86fre")); 571Path.Combine("{runtime-base}", "v1.1.x86dbg"), // Simulate "Everett" as the current runtime. 577path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86fre")); 589Path.Combine(@"{runtime-base}", "v1.1"), // Simulate "everett" as the current runtime 607string fakeWhidbeyPath = Path.Combine(tempPath, "v2.0.50224"); 608string fakeEverettPath = Path.Combine(tempPath, "v1.1.43225"); 695string tv12path = Path.Combine(ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, MSBuildExeName); 718string tv12path = Path.Combine(Path.GetFullPath(toolsPath32.EvaluatedValue), "msbuild.exe"); 919string pathToSdk35InstallRoot = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v7.0A\"); 920string pathToSdkV4InstallRootOnVS10 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v7.0A\"); 921string pathToSdkV4InstallRootOnVS11 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v8.0A\"); 925if (!Directory.Exists(Path.Combine(pathToSdkV4InstallRootOnVS11, "bin"))) 931string pathToSdkV4InstallRootOnVS12 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v8.1A\"); 939string pathToSdkV4InstallRootOnVS14 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v10.0A\"); 1276string expectedPath = Path.Combine(targetFrameworkRootPath, targetFrameworkIdentifier); 1277expectedPath = Path.Combine(expectedPath, "v" + targetFrameworkVersion); 1278expectedPath = Path.Combine(expectedPath, "Profile"); 1279expectedPath = Path.Combine(expectedPath, targetFrameworkProfile); 1294string expectedPath = Path.Combine(targetFrameworkRootPath, targetFrameworkIdentifier); 1295expectedPath = Path.Combine(expectedPath, "v" + targetFrameworkVersion); 1396string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsChain"); 1399string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1401string redist40 = Path.Combine(redist40Directory, "FrameworkList.xml"); 1409string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1411string expectedChainedPath = Path.Combine(tempDirectory, "v4.0"); 1438string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude"); 1441string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1446string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1468string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude"); 1471string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1476string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1498string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoFileList"); 1501string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1506string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1")); 1527string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsBadFile"); 1530string redist40 = Path.Combine(redist40Directory, "FrameworkList.xml"); 1536string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.0")); 1558string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPointsToInvalidInclude"); 1561string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1562string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1"); 1594string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistInvalidPathChars"); 1597string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1598string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1"); 1628string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPathTooLong"); 1631string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml"); 1632string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1"); 1671string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootGoodWithChain"); 1674string framework41redistDirectory = Path.Combine(framework41Directory, "RedistList"); 1675string framework41RedistList = Path.Combine(framework41redistDirectory, "FrameworkList.xml"); 1678string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList"); 1679string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml"); 1682string framework39redistDirectory = Path.Combine(framework39Directory, "RedistList"); 1683string framework39RedistList = Path.Combine(framework39redistDirectory, "FrameworkList.xml"); 1736string tempDirectory = Path.Combine(Path.GetTempPath(), "DisplayNameGeneration"); 1740string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList"); 1741string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml"); 1745string framework39redistDirectory = Path.Combine(framework39Directory, "RedistList"); 1746string framework39RedistList = Path.Combine(framework39redistDirectory, "FrameworkList.xml"); 1793string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootCircularReference"); 1797string framework41redistDirectory = Path.Combine(framework41Directory, "RedistList"); 1798string framework41RedistList = Path.Combine(framework41redistDirectory, "FrameworkList.xml"); 1802string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList"); 1803string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml"); 1975string combinedPath = Path.Combine(programFiles32, pathToCombineWith); 2507string rootDir = Path.Combine(env.DefaultTestDirectory.Path, "framework-root"); 2536string customFrameworkRootPath = Path.Combine(env.DefaultTestDirectory.Path, "framework-root"); 2559string rootDir = Path.Combine(env.CreateFolder().Path, "framework-root"); 2560string fallbackPath = Path.Combine(env.CreateFolder().Path, "framework-root"); 2590string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2603string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2620string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2637string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2652string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2669string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2732File.WriteAllText(Path.Combine(redistPath, "FrameworkList.xml"), string.Format(frameworkListXml, frameworkName)); 2733File.WriteAllText(Path.Combine(asmPath, "mscorlib.dll"), string.Empty); 3134string frameworkPath = Path.Combine(tmpRootDirectory, frameworkPathPattern); 3135string manifestFile = Path.Combine(frameworkPath, "SDKManifest.xml"); 3137string frameworkPath2 = Path.Combine(tmpRootDirectory, frameworkPathPattern2); 3138string manifestFile2 = Path.Combine(frameworkPath, "SDKManifest.xml"); 3281string manifestPath = Path.Combine(Path.GetTempPath(), "ManifestTmp"); 3287string manifestFile = Path.Combine(manifestPath, "SDKManifest.xml"); 3416string manifestPath = Path.Combine(Path.GetTempPath(), "ManifestTmp"); 3422string manifestFile = Path.Combine(manifestPath, "SDKManifest.xml"); 3546string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyGetInstalledSDKLocations"); 3578File.WriteAllText(Path.Combine(platformDirectory, "SDKManifest.xml"), "HI"); 3579File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "HI"); 3580string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 3615string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyGetInstalledSDKLocations2"); 3650File.WriteAllText(Path.Combine(platformDirectory, "SDKManifest.xml"), platformSDKManifestContents); 3651File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "HI"); 3652string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj"); 4110string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyFindRootFolderWhereAllFilesExist"); 4111string[] rootDirectories = new string[] { Path.Combine(testDirectoryRoot, "Root1"), Path.Combine(testDirectoryRoot, "Root2") }; 4116string subdir = Path.Combine(rootDirectories[i], "Subdir"); 4119File.Create(Path.Combine(rootDirectories[i], "file1.txt")).Close(); 4120File.Create(Path.Combine(subdir, fileInSubDir)).Close(); 4422string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory"); 4545string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
ToolTask_Tests.cs (7)
39_fullToolName = Path.Combine( 166t.FullToolName = Path.Combine(systemPath, NativeMethodsShared.IsWindows ? "attrib.exe" : "ps"); 387t.PathToToolUsed.ShouldBe(Path.Combine(systemPath, shellName)); 393t.PathToToolUsed.ShouldBe(Path.Combine(systemPath, copyName)); 438Path.Combine(systemPath, toolName)); 664string directoryNamedSameAsTool = Directory.CreateDirectory(Path.Combine(tempDirectory, toolName)).FullName; 695expectedCmdPath = new[] { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe").ToUpperInvariant() };
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)
334return Path.Combine(OutputDirectory, outputFileName); 354return PdbPath ?? Path.Combine(OutputDirectory, Path.ChangeExtension(outputFileName, ".pdb"));
CommandLine\CommandLineParser.cs (2)
458pdbPath = Path.ChangeExtension(Path.Combine(outputDirectory, outputFileName), ".pdb"); 483genericPath = 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); 221var 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 (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
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)
1406metadataReferences.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 (101)
CommandLineTestBase.cs (2)
32MscorlibFullPath = Path.Combine(SdkDirectory, "mscorlib.dll"); 41File.WriteAllBytes(Path.Combine(dir.Path, "mscorlib.dll"), Net461.ReferenceInfos.mscorlib.ImageBytes);
CommandLineTests.cs (80)
63var cscDllPath = Path.Combine( 65Path.Combine("dependency", "csc.dll")); 76s_CSharpScriptExecutable = s_CSharpCompilerExecutable.Replace("csc.dll", Path.Combine("csi", "csi.dll")); 153string exePath = Path.Combine(dir.Path, "temp.exe"); 173var xmlPath = Path.Combine(dir.Path, docName); 409var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path); 411Assert.Equal("星野 八郎太", File.ReadAllText(Path.Combine(dir.Path, "output.txt"), Encoding.GetEncoding(932))); 429var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path); 431Assert.Equal("星野 八郎太", File.ReadAllText(Path.Combine(dir.Path, "output.txt"), Encoding.GetEncoding(932))); 461AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path)); 478Func<string, string> prependBasePath = fileName => Path.Combine(basePath, fileName); 490{ Path.Combine(dirSubDir.Path, @"b.rsp"), @" 498{ Path.Combine(Path.GetPathRoot(basePath), @"d.rsp"), @" 1546Diagnostic(ErrorCode.ERR_OpenResponseFile).WithArguments(Path.Combine(WorkingDirectory, @"roslyn_test_non_existing_file"))); 2009Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2022Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2029Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2096Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.PdbPath); 2097Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2101Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.PdbPath); 2102Assert.Equal(Path.Combine(WorkingDirectory, "something.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2109Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2113Assert.Equal(Path.Combine(WorkingDirectory, "a.pdb"), parsedArgs.GetPdbFilePath("a.dll")); 2148Assert.Equal(Path.Combine(Path.GetPathRoot(WorkingDirectory), @"MyFolder\MyPdb.pdb"), parsedArgs.PdbPath); 2212Assert.Equal(Path.Combine(WorkingDirectory, "sl.json"), parsedArgs.SourceLink); 2216Assert.Equal(Path.Combine(WorkingDirectory, "sl.json"), parsedArgs.SourceLink); 2220Assert.Equal(Path.Combine(WorkingDirectory, "s l.json"), parsedArgs.SourceLink); 2254var peStream = File.OpenRead(Path.Combine(dir.Path, "a.exe")); 2286var pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")); 2315var pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")); 2334new[] { "a.cs", "b.cs", "c.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2340new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2346new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2352new[] { "a.cs", "b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2358new[] { "a,b.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2364new[] { "a.txt", "a.cs", "b.cs", "c.cs" }.Select(f => Path.Combine(WorkingDirectory, f)), 2478using (var peReader = new PEReader(File.OpenRead(Path.Combine(dir.Path, "embed.exe")))) 2485MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.Path, "embed.pdb")))) 2513symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.Path, "embed.pdb"))); 2884Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")); 2885Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah"), actual: parsedArgs.RuleSetPath); 2889Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")); 2890Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual: parsedArgs.RuleSetPath); 3795Assert.Equal(Path.Combine(baseDirectory, "MyBinary.dll"), parsedArgs.GetOutputFilePath(parsedArgs.OutputFileName)); 4106Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.DocumentationPath); 4210Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 6057var assemblyName = AssemblyName.GetAssemblyName(Path.Combine(tempDir, name)); 8263Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))); 8455CleanupAllGeneratedFiles(Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(source)), Path.GetFileName(source))); 8547exitCode = CreateCSharpCompiler(null, baseDir, new[] { "/nologo", "/preferreduilang:en", Path.Combine(baseDir, "nonexistent.cs"), source.ToString() }).Run(outWriter); 8549Assert.Equal("error CS2001: Source file '" + Path.Combine(baseDir, "nonexistent.cs") + "' could not be found.", outWriter.ToString().Trim()); 8710System.IO.File.Delete(System.IO.Path.Combine(baseDir, "goo.dll")); 8991var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9013var exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe"); 9036var xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml"); 9060var sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json"); 9088string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 9113string exePath = Path.Combine(Path.GetDirectoryName(sourcePath), "test.exe"); 11379Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))); 11394using (var reader = new StreamReader(Path.Combine(dir.ToString(), "doc.xml"))) 11400output = ProcessUtilities.RunAndGetOutput(Path.Combine(dir.ToString(), "out.exe"), startFolder: dir.ToString()); 11417Assert.Equal(Path.Combine(baseDirectory, @"a.pdb"), args.PdbPath); 11607Assert.Equal(Path.Combine(dir, @"data.pdb"), parsedArgs.PdbPath); 11630var exePath = Path.Combine(dir.Path, "a.exe"); 11642var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11649var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11656var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11664var pdbPath = Path.Combine(dir.Path, @"pdb\a.pdb"); 11671var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11678var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11685var pdbPath = Path.Combine(dir.Path, "a.pdb"); 11877var refDll = Path.Combine(dir.Path, Path.Combine("ref", "a.dll")); 14195var generatedPath = Path.Combine(subdir, generatedFileName); 14345Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory); 14349Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory); 14353Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory); 14357Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory); 14359var absPath = Path.Combine(root, "outdir"); 14368absPath = Path.Combine(root, "generated files");
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 (56)
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)
50File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 88File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 130File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 173var dllFilePath = Path.Combine(path, "implementation.dll"); 174var sourceCodePath = Path.Combine(path, "implementation.cs"); 175var pdbFilePath = Path.Combine(path, "implementation.pdb"); 181var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 226var dllFilePath = Path.Combine(path, "implementation.dll"); 227var sourceCodePath = Path.Combine(path, "implementation.cs"); 228var pdbFilePath = Path.Combine(path, "implementation.pdb"); 241var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 287var dllFilePath = Path.Combine(path, "implementation.dll"); 288var sourceCodePath = Path.Combine(path, "implementation.cs"); 289var pdbFilePath = Path.Combine(path, "implementation.pdb"); 302var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 342var dllFilePath = Path.Combine(path, "implementation.dll"); 343var sourceCodePath = Path.Combine(path, "implementation.cs"); 344var pdbFilePath = Path.Combine(path, "implementation.pdb"); 357var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 393var dllFilePath = Path.Combine(path, "implementation.dll"); 394var sourceCodePath = Path.Combine(path, "implementation.cs"); 395var pdbFilePath = Path.Combine(path, "implementation.pdb"); 408var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 458var dllFilePath = Path.Combine(path, "implementation.dll"); 459var sourceCodePath = Path.Combine(path, "implementation.cs"); 460var pdbFilePath = Path.Combine(path, "implementation.pdb"); 473var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 516var dllFilePath = Path.Combine(path, "implementation.dll"); 517var sourceCodePath = Path.Combine(path, "implementation.cs"); 518var pdbFilePath = Path.Combine(path, "implementation.pdb"); 531var typeForwardDllFilePath = Path.Combine(path, "typeforward.dll"); 539var 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)
405Directory.CreateDirectory(Path.Combine(path, "ref")); 406Directory.CreateDirectory(Path.Combine(path, "lib")); 410var (project, symbol) = await CompileAndFindSymbolAsync(Path.Combine(path, "ref"), Location.Embedded, Location.OnDisk, sourceText, c => c.GetMember("C.E"), buildReferenceAssembly: true); 413CompileTestSource(Path.Combine(path, "lib"), sourceText, project, Location.Embedded, Location.Embedded, buildReferenceAssembly: false, windowsPdb: false); 446File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 490File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 534var implementationDllFilePath = Path.Combine(sharedDir, "implementation.dll"); 535var sourceCodePath = Path.Combine(sharedDir, "implementation.cs"); 536var pdbFilePath = Path.Combine(sharedDir, "implementation.pdb"); 542var typeForwardDllFilePath = Path.Combine(sharedDir, "reference.dll"); 543sourceCodePath = Path.Combine(sharedDir, "reference.cs"); 544pdbFilePath = Path.Combine(sharedDir, "reference.pdb"); 552File.WriteAllText(Path.Combine(dataDir, "FrameworkList.xml"), """ 941CompileTestSource(dllFilePath, [Path.Combine(path, "source1.cs"), Path.Combine(path, "source2.cs")], pdbFilePath, "reference", [sourceText1, sourceText2], project, Location.Embedded, Location.Embedded, buildReferenceAssembly: false, windowsPdb: false);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
4634var dllPath = Path.Combine(tmpDir.Path, "assemblyname.dll"); 4635var 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)
45AddDocument("test.cs", SourceText.From(source, Encoding.UTF8), filePath: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 465AddDocument("test.cs", root, filePath: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 666var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 712var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 739var 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)
256var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "@arg1"))}"; 403var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "a + b"))}";
InteractiveSessionReferencesTests.cs (1)
145File.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 (2)
RazorAnalyzerAssemblyResolver.cs (2)
65var onDiskName = Path.Combine(directory, $"{fileName}.dll"); 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 (11)
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));
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)
214return Path.Combine(prefix, GetIdentifierFromPath(relativeDocumentPath)) + ".g.cs";
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\ActiveStatementsDescription.cs (1)
145var documentName = filePaths?[sourceIndex] ?? Path.Combine(TempRoot.Root, TestWorkspace.GetDefaultTestSourceDocumentName(sourceIndex, extension ?? ""));
EditAndContinue\EditAndContinueTestVerifier.cs (1)
466filePath: Path.Combine(TempRoot.Root, "project" + ProjectFileExtension),
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
154=> projectDirectory?.CreateFile(fileName).WriteAllText(content, Encoding.UTF8).Path ?? Path.Combine(TempRoot.Root, fileName); 290var sources = new[] { (source, sourceFilePath ?? Path.Combine(TempRoot.Root, "test1.cs")) };
EditAndContinue\Extensions.cs (1)
125assemblyPath: Path.Combine(TempRoot.Root, projectName + ".dll"),
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); 1549var pathA = Path.Combine(TempRoot.Root, "A.cs"); 1550var pathB = Path.Combine(TempRoot.Root, "B.cs"); 1551var pathC = Path.Combine(TempRoot.Root, "C.cs"); 1552var pathD = Path.Combine(TempRoot.Root, "D.cs"); 1553var pathX = Path.Combine(TempRoot.Root, "X"); 1554var pathY = Path.Combine(TempRoot.Root, "Y"); 1555var pathCommon = Path.Combine(TempRoot.Root, "Common.cs"); 1627var pathX = Path.Combine(TempRoot.Root, "X.cs"); 1628var pathA = Path.Combine(TempRoot.Root, "A.cs"); 1796var pathA = Path.Combine(TempRoot.Root, "A.txt"); 3432AddDocument("DocB", source1, filePath: Path.Combine(TempRoot.Root, "DocB.cs")).Project; 3923var 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)
73var razorPath2 = Path.Combine(TempRoot.Root, "a.razor"); 78AddDocument(sourcePath, SourceText.From("class C {}", Encoding.UTF8), filePath: Path.Combine(TempRoot.Root, sourcePath));
EditAndContinue\WatchHotReloadServiceTests.cs (1)
165.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 (10)
DotnetCliHelper.cs (2)
114var vstestConsole = Path.Combine(dotnetSdkFolder, "vstest.console.dll"); 136var filePath = Path.Combine(item, fileName);
HostWorkspace\BinlogNamer.cs (1)
43var binaryLogPath = Path.Combine(binaryLogDirectory, $"LanguageServerDesignTimeBuild-{_binaryLogGuidSuffix}-{numericSuffix}.binlog");
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (1)
37var dependency = Path.Combine(razorDir, dependencyName + ".dll");
HostWorkspace\WorkspaceProject.cs (1)
187return Path.Combine(fileDirectory, propertyValue);
Program.cs (2)
97var cacheDirectory = Path.Combine(Path.GetDirectoryName(typeof(Program).Assembly.Location)!, "cache"); 331return 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)
158var moduleFileName = Path.Combine(baseDirectory, moduleName);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
CodeActions\CodeActionResolveTests.cs (2)
295var newDocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(Path.Combine(Path.GetDirectoryName(project.FilePath)!, "ABC.cs")); 423Path.Combine(Path.GetDirectoryName(existingDocument.FilePath)!, "BCD.cs"));
Microsoft.CodeAnalysis.LanguageServer.UnitTests (5)
Utilities\AbstractLanguageServerClientTests.cs (2)
44var projectPath = Path.Combine(projectDirectory.Path, "Project.csproj"); 58var codePath = Path.Combine(projectDirectory.Path, "Code.cs");
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
78: Path.Combine(Path.GetTempPath(), pipeName + ".sock");
WorkspaceProjectFactoryServiceTests.cs (2)
65return Path.Combine("Z:\\", relativePath); 67return Path.Combine("//", relativePath);
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
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 (8)
RebuildCommandLineTests.cs (8)
26internal static string OutputDirectory { get; } = Path.Combine(TestableCompiler.RootDirectory, "output"); 38FilePathToStreamMap.Add(Path.Combine(BuildPaths.WorkingDirectory, filePath), new TestableFile(content)); 43FilePathToStreamMap.Add(Path.Combine(BuildPaths.SdkDirectory!, filePath), new TestableFile(imageBytes)); 50filePath = Path.Combine(OutputDirectory, filePath); 199AddSourceFile(Path.Combine("dir1", "lib1.cs"), @" 233Permutate(new CommandInfo($"lib4.cs {Path.Combine("dir1", "lib1.cs")} /target:library", "test.dll", null), 395AddSourceFile(Path.Combine("dir1", "lib1.vb"), @" 429new CommandInfo(@$"lib2.vb {Path.Combine("dir1", "lib1.vb")} /target:library /debug:embedded", "test.dll", null),
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
271var logPath = Path.Combine(Path.GetTempPath(), "VSLogs");
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ExportProviderBuilder.cs (1)
156var tempFilePath = Path.Combine(directory, Path.GetRandomFileName());
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
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)
330string pathWithoutExtension = Path.Combine(directory, simpleName); 345string 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)
44var corlibFriendPath = Path.Combine(s_corlibDirectory, fileName); 69var gacAssemblyRootDir = new DirectoryInfo(Path.Combine(gacPath, name)); 87var assemblyPath = Path.Combine(assemblyDir.ToString(), fileName);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
MetadataShadowCopyProviderTests.cs (2)
231Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @"a.xml"), sc.DocumentationFile.FullPath); 243Assert.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 (27)
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 (2)
217pdbPath = Path.Combine(dumpDirectory, fileName + ".pdb"); 249File.WriteAllText(Path.Combine(dumpDirectory, "log.txt"), sb.ToString());
DotNetCoreSdk.cs (2)
29&& File.Exists(Path.Combine(directory, dotNetExeName)); 41ExePath = Path.Combine(dotNetInstallDir, dotNetExeName);
Metadata\IlasmUtilities.cs (2)
43return Path.Combine( 82assemblyPath = Path.Combine(
Platform\CoreClr\AssemblyLoadContextUtils.cs (1)
32var assemblyPath = Path.Combine(_probingPath, $"{assemblyName.Name}.dll");
TempFiles\TempDirectory.cs (5)
36string dir = System.IO.Path.Combine(basePath, Guid.NewGuid().ToString()); 60string filePath = System.IO.Path.Combine(_path, name); 70string filePath = System.IO.Path.Combine(_path, name); 80string filePath = System.IO.Path.Combine(_path, name ?? System.IO.Path.GetFileName(originalPath)); 91string dirPath = System.IO.Path.Combine(_path, name);
TempFiles\TempFile.cs (1)
38_path = System.IO.Path.Combine(directory ?? TempRoot.Root, prefix + Guid.NewGuid() + (extension ?? ".tmp"));
TempFiles\TempRoot.cs (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)
39Private Shared ReadOnly s_basicCompilerExecutable As String = Path.Combine( 41Path.Combine("dependency", "vbc.exe")) 246Dim exePath = Path.Combine(dir.Path, "temp.exe") 265Dim xmlPath = Path.Combine(dir.Path, docName) 764Path.Combine(_baseDirectory, "a.vb"), 765Path.Combine(_baseDirectory, "b.vb") 2882Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")) 2883Assert.Equal(expected:=Path.Combine(TempRoot.Root, "blah"), actual:=parsedArgs.RuleSetPath) 2887Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")) 2888Assert.Equal(expected:=Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual:=parsedArgs.RuleSetPath) 3151Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink) 3155Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink) 3159Assert.Equal(Path.Combine(_baseDirectory, "s l.json"), parsedArgs.SourceLink) 3196Dim peStream = File.OpenRead(Path.Combine(dir.Path, "a.exe")) 3229Dim pdbStream = File.OpenRead(Path.Combine(dir.Path, "a.pdb")) 3248{"a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3254{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3260{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3266{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3272{"a,b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3278{"a,b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3284{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3290{"a.txt", "a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3399Using peReader As New PEReader(File.OpenRead(Path.Combine(dir.Path, "embed.exe"))) 3406MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.Path, "embed.pdb")))) 3430symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.Path, "embed.pdb"))) 3646Dim pdbPath = Path.Combine(dir.Path, "a.pdb") 3656Dim exePath = Path.Combine(dir.Path, "a.exe") 3667Dim pePdbPath = Path.Combine(dir.Path, "a.pdb") 3692Dim pePdbPath = Path.Combine(dir.Path, "a.pdb") 3698Dim pdbPath = Path.Combine(dir.Path, "a.pdb") 3704Dim pdbPath = Path.Combine(dir.Path, "a.pdb") 4141Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4267Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4286Assert.True(File.Exists(Path.Combine(dir.ToString(), "MyXml.xml"))) 4305Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4324Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 4343Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 4362Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 4428Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4433Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4444Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4468Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.DocumentationPath) 4524Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4539Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4544Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4549Assert.Equal(Path.Combine(baseDirectory, "a.xml"), parsedArgs.DocumentationPath) 4588Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path) 4987AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\", "d:\x\y\z", Path.Combine(_baseDirectory, "abc")) 4991AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\Windows", Path.Combine(_baseDirectory, "abc\def")) 5153newVbCore.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "Microsoft.VisualBasic.dll"))) 5244sysRuntime.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.Runtime.dll"))) 5263msCorLib.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorlib.dll"))) 5266output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path) 5272output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path) 5299" /t:library /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & 5309msCorLib.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorlib.dll"))) 6852Dim library As IntPtr = LoadLibraryEx(Path.Combine(dir.Path, outputFileName), IntPtr.Zero, 2) 7166Dim systemLocation = Path.Combine(corlibDir, "System.dll") 7167Dim msvbLocation = Path.Combine(corlibDir, "Microsoft.VisualBasic.dll") 7232Dim systemLocation = Path.Combine(corlibDir, "System.dll") 7233Dim msvbLocation = Path.Combine(corlibDir, "Microsoft.VisualBasic.dll") 7635" & Path.GetFullPath(Path.Combine(dir.Path, "..\b.vb")) & "(40) : error BC30451: 'Goo' is not declared. It may be inaccessible due to its protection level. 7638" & Path.GetFullPath(Path.Combine(dir.Path, "..\b.vb")) & "(50) : error BC30451: 'Goo' is not declared. It may be inaccessible due to its protection level. 7781Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles.Single().Path) 7786Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7787Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7792Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7793Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(1).Path) 7797Assert.Equal(Path.Combine(_baseDirectory, "..\web.config"), args.AdditionalFiles.Single().Path) 7807Assert.Equal(Path.Combine(baseDir.Path, "web1.config"), args.AdditionalFiles(0).Path) 7808Assert.Equal(Path.Combine(baseDir.Path, "web2.config"), args.AdditionalFiles(1).Path) 7809Assert.Equal(Path.Combine(baseDir.Path, "web3.config"), args.AdditionalFiles(2).Path) 7814Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7815Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7820Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7821Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7826Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7831Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7836Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7837Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7842Assert.Equal(Path.Combine(_baseDirectory, "web.config:app.manifest"), args.AdditionalFiles(0).Path) 7857Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths.Single()) 7862Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7863Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7868Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7869Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(1)) 7873Assert.Equal(Path.Combine(_baseDirectory, "..\.editorconfig"), args.AnalyzerConfigPaths.Single()) 7878Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7879Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7884Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7885Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7890Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig:.editorconfig"), args.AnalyzerConfigPaths(0)) 8675Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 8695Using reader As New StreamReader(Path.Combine(dir.ToString(), "doc.xml")) 8700output = ProcessUtilities.RunAndGetOutput(Path.Combine(dir.ToString(), "out.exe"), startFolder:=dir.ToString()) 9264Assert.Equal(Path.Combine(_baseDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile) 9366Dim exe = Path.Combine(dir.Path, "a.exe") 9375Dim doc = Path.Combine(dir.Path, "doc.xml") 9401Dim refDll = Path.Combine(refDir.Path, "a.dll") 9437Dim vb = Path.Combine(dir.Path, "a.vb") 9439Dim dll = Path.Combine(dir.Path, "a.dll") 9442Dim refDll = Path.Combine(dir.Path, Path.Combine("ref", "a.dll")) 9484Dim refDll = Path.Combine(dir.Path, "a.dll") 9495Dim pdb = Path.Combine(dir.Path, "a.pdb") 9498Dim doc = Path.Combine(dir.Path, "doc.xml") 9572Assert.True(File.Exists(Path.Combine(dir.Path, expectedFile)), "Expected to find: " & expectedFile) 9573Assert.False(File.Exists(Path.Combine(dir.Path, unexpectedFile)), "Didn't expect to find: " & unexpectedFile) 9581Dim exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe") 9600Dim exePath = Path.Combine(Path.GetDirectoryName(srcPath), "test.exe") 9620Dim xmlPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.xml") 9641Dim sourceLinkPath = Path.Combine(Path.GetDirectoryName(srcPath), "test.json") 9713Dim exePath = Path.Combine(dir.Path, "a.exe") 10016Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10019Dim pdbPath As String = Path.Combine(dir.Path, "temp.pdb") 10022Dim docPath As String = Path.Combine(dir.Path, docName) 10068Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10071Dim pdbPath As String = Path.Combine(dir.Path, "temp.pdb") 10074Dim docPath As String = Path.Combine(dir.Path, docName) 10125Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10128Dim pdbPath As String = Path.Combine(dir.Path, "temp.pdb") 10131Dim docPath As String = Path.Combine(dir.Path, docName) 10162Dim binaryPath As String = Path.Combine(dir.Path, "temp.dll") 10589Dim generatedDirPath = Path.Combine(dir.Path, "noexist") 10622{{Path.Combine(generatedDir.Path, generatorPrefix), New Dictionary(Of String, String)() From 10662Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory) 10666Assert.Equal(Path.Combine(baseDirectory, "outdir"), parsedArgs.GeneratedFilesOutputDirectory) 10670Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory) 10674Assert.Equal(Path.Combine(baseDirectory, "out dir"), parsedArgs.GeneratedFilesOutputDirectory) 10676Dim absPath = Path.Combine(root, "outdir") 10685absPath = Path.Combine(root, "generated files") 10923Dim generatorPath = Path.Combine(directory.Path, "generator.dll")
SarifErrorLoggerTests.vb (5)
49Dim errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt") 84Dim errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt") 125Dim errorLogFile = Path.Combine(errorLogDir.Path, "ErrorLog.txt") 163Dim errorLogFile = Path.Combine(outputDir.Path, "ErrorLog.txt") 164Dim 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 (16)
Rename\ConflictEngine\MutableConflictResolution.cs (2)
106var newDocumentFilePath = Path.Combine(directory, newName); 121newDocumentFilePath = Path.Combine(directory, newName);
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (3)
118var assemblyPath = Path.Combine(directory, simpleName + ".dll"); 135var analyzerFilePath = Path.Combine(directory, analyzerFileName); 221var assemblyPath = Path.Combine(Directory, unmanagedDllName + ".dll");
src\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
35DotNetPath = Path.Combine(programFilesPath, "dotnet");
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (3)
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)
220? Path.Combine(_commandLineArgumentsForCommandLine.OutputDirectory, _commandLineArgumentsForCommandLine.OutputFileName)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
src\Compilers\Shared\NamedPipeUtil.cs (1)
34return 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)
34return 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 (2)
SolutionUtilities.cs (1)
116assemblyPath: Path.Combine(TempRoot.Root, name),
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"); 2449var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2478var filePath = Path.Combine(TempRoot.Root, "x.cs"); 5531projectPath = string.IsNullOrEmpty(projectPath) ? projectPath : Path.Combine(TempRoot.Root, projectPath); 5532configPath = Path.Combine(TempRoot.Root, configPath); 5533sourcePath = string.IsNullOrEmpty(sourcePath) ? sourcePath : Path.Combine(TempRoot.Root, sourcePath); 5765.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.AsmDiff (1)
MarkdownDiffExporter.cs (1)
220return Path.Combine(directory, fileName + "_" + namespaceName + extension);
Microsoft.DotNet.Build.Manifest.Tests (6)
BuildModelFactoryTests.cs (6)
99var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 228var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 350var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.zip")); 387var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 433var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg")); 582var localPackagePath = TestInputs.GetFullPath(Path.Combine("Nupkgs", "test-package-a.1.0.0.nupkg"));
Microsoft.DotNet.Build.Tasks.Feed (15)
src\common\LatestLinksManager.cs (1)
156return Path.Combine(latestLinkShortUrlPrefix, blobIdWithoutVersions).Replace("\\", "/");
src\ConfigureInputFeed.cs (1)
30string nugetConfigLocation = Path.Combine(RepoRoot, "NuGet.config");
src\PublishArtifactsInManifestBase.cs (10)
451string localSymbolPath = Path.Combine(temporarySymbolsDirectory, symbolPackageName); 510int result = await helper.AddPackagesToRequest(requestName, symbolPackages.Select(x => Path.Combine(BlobAssetsBasePath, x.Id))); 750FileInfo pdbStagingPath = new(Path.Combine(pdbStagePath, subPath)); 778FileInfo looseFileStagePath = new(Path.Combine(pdbStagePath, relativePath)); 1180Path.Combine(PackageAssetsBasePath, $"{package.Id}.{package.Version}.nupkg"); 1223Path.GetFullPath(Path.Combine(ArtifactsBasePath, Guid.NewGuid().ToString())); 1225string localPackagePath = Path.Combine(temporaryPackageDirectory, packageFilename); 1493Path.GetFullPath(Path.Combine(ArtifactsBasePath, Guid.NewGuid().ToString())); 1576var localBlobPath = Path.Combine(temporaryBlobDirectory, fileName); 1656var localBlobPath = Path.Combine(BlobAssetsBasePath, fileName);
src\PublishBuildToMaestro.cs (1)
141string mergedManifestPath = Path.Combine(GetAzDevStagingDirectory(), MergedManifestFileName);
src\PublishSignedAssets.cs (2)
81string packagesFolder = Path.Combine(assetsFolder, "packages"); 97string localPackagePath = Path.Combine(packagesFolder, $"{package.Id}.{package.Version}.nupkg");
Microsoft.DotNet.Build.Tasks.Feed.Tests (13)
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 (2)
37var manifestFullPath = TestInputs.GetFullPath(Path.Combine("Manifests", "SampleV3.xml")); 63var manifestFullPath = TestInputs.GetFullPath(Path.Combine("Manifests", "SampleV4.xml"));
Microsoft.DotNet.Build.Tasks.Installers (14)
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\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 (4)
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);
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
HarvestPackageTests.cs (1)
68string packagesCandidate = Path.Combine(candidate, "packages");
Microsoft.DotNet.Build.Tasks.TargetFramework (3)
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.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 (6)
RoslynBuildTask.cs (3)
63Assembly asm = loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{name.Name}.dll")); 73loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{codeAnalysisCsharpName}.dll")) : 74loadFromPath(Path.Combine(RoslynAssembliesPath!, $"{codeAnalysisName}.dll"));
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 (7)
CommandPayload.cs (2)
23var dir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"))); 56var scriptFile = new FileInfo(Path.Combine(Directory.FullName, name));
DownloadFromResultsContainer.cs (5)
52DirectoryInfo directory = Directory.CreateDirectory(Path.Combine(OutputDirectory, JobId)); 53using (FileStream stream = File.Open(Path.Combine(directory.FullName, MetadataFile), FileMode.Create, FileAccess.Write)) 77DirectoryInfo destinationDir = Directory.CreateDirectory(Path.Combine(directoryPath, workItemName)); 82string destinationFile = Path.Combine(destinationDir.FullName, file); 86Directory.CreateDirectory(Path.Combine(destinationDir.FullName, Path.GetDirectoryName(file)));
Microsoft.DotNet.Helix.Sdk.Tests (2)
HelpersTests.cs (2)
48string target = Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") ?? Environment.GetEnvironmentVariable("TEMP") ?? Environment.GetEnvironmentVariable("TMPDIR"), "my-test-file-123456.snt"); 54target = Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_PAYLOAD"), "my-test-file-123456.snt");
Microsoft.DotNet.Internal.SymbolHelper (9)
SymbolUploadHelper.cs (6)
292string entryPath = Path.Combine(packageExtractDir, entry.FullName); 307manifest = Path.Combine(packageExtractDir, "correlatedSymKeysManifest.json"); 381string convertedPdbPath = Path.Combine(convertedPdbFolder, Path.GetFileName(file)); 399private static string GetConvertedPdbFolder(string filesDir) => Path.Combine(filesDir, ConversionFolderName); 403string tempDir = Path.Combine(_workingDir, Path.GetRandomFileName()); 406tempDir = Path.Combine(_workingDir, Path.GetRandomFileName());
SymbolUploadHelperFactory.cs (3)
46installDirectory ??= Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 158string zipFilePath = Path.Combine(installDirectory, "symbol.zip"); 170private static string GetSymbolToolPathFromInstallDir(string installDirectory) => Path.Combine(installDirectory, "symbol.exe");
Microsoft.DotNet.MacOsPkg.Core (4)
AppBundle.cs (1)
28bool containsAppBundleContents = Directory.Exists(Path.Combine(path, "Contents")) &&
Package.cs (3)
63string packageName = Path.Combine(dstPath, package.Value.Substring(1)); 64string tempDest = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 183string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.MacOsPkg.Tests (5)
UnpackPackTests.cs (5)
44(Path.Combine("Payload", "Sample.txt"), nonExecutableFileMode), 51(Path.Combine("Payload", "test.app"), nonExecutableFileMode), 56(Path.Combine("Contents", "Info.plist"), nonExecutableFileMode), 136string componentPkgPath = Path.Combine(unpackInstallerPath, "Simple.pkg"); 155string componentPkgPath = Path.Combine(unpackInstallerPath, "WithApp.pkg");
Microsoft.DotNet.NuGetRepack.Tasks (6)
src\NuGetVersionUpdater.cs (3)
66tempDirectoryOpt = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 116tempPathOpt = Path.Combine(tempDirectoryOpt, Guid.NewGuid().ToString()); 370string finalPath = Path.Combine(outDirectory, package.Id + "." + package.NewVersion + ".nupkg");
src\ReplacePackageParts.cs (2)
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)
Utils.cs (1)
207string keyPath = Path.Combine(tempDir, Path.GetFileName(keyUrl));
Verification\ArchiveVerifier.cs (2)
96Path.Combine(svr.VirtualPath, archiveEntry.RelativePath)); 121Path.Combine(svr.VirtualPath, fullName), fullName);
Verification\DebVerifier.cs (2)
30signableContent = Path.Combine(tempDir, "signableContent"); 85string entryPath = Path.Combine(workingDir, archiveEntry.RelativePath);
Verification\LinuxPackageVerifier.cs (1)
36string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\LzmaVerifier.cs (2)
30string destinationFile = Path.Combine(tempPath, Path.GetFileNameWithoutExtension(path)); 35svr.NestedResults.Add(VerifyFile(destinationFile, parent, Path.Combine(svr.VirtualPath, destinationFile), containerPath: null));
Verification\MachOVerifier.cs (1)
149string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\PkgVerifier.cs (1)
37string extractionPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\RpmVerifier.cs (3)
27using var dataStream = File.OpenWrite(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString())); 43string signatureDocument = Path.Combine(tempDir, "signableContent"); 44string signableContent = Path.Combine(tempDir, "pgpSignableContent");
Microsoft.DotNet.SignCheckTask (3)
src\SignCheck.cs (3)
21private static readonly string _appData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SignCheck"); 205string downloadPath = Path.Combine(_appData, Path.GetFileName(uriResult.LocalPath)); 477string downloadPath = Path.Combine(_appData, Path.GetFileName(uri.LocalPath));
Microsoft.DotNet.SignTool (35)
src\BatchSignUtil.cs (1)
168var workingDirectory = Path.Combine(_signTool.TempDir, "engines");
src\Configuration.cs (1)
125_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\VerifySignatures.cs (6)
44string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 85string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 92string signableContent = Path.Combine(tempDir, "signableContent"); 93string pgpSignableContent = Path.Combine(tempDir, "pgpSignableContent"); 270string keyPath = Path.Combine(tempDir, Path.GetFileName(keyUrl)); 297string entryPath = Path.Combine(workingDir, relativePath);
src\ZipData.cs (17)
259string createFileName = Path.Combine(workingDir, "create.cmd"); 260string outputFileName = Path.Combine(outputDir, FileSignInfo.FileName); 332string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 358string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 569string controlLayout = Path.Combine(workingDir, "control"); 570string dataLayout = Path.Combine(workingDir, "data"); 577string controlArchive = Path.Combine(workingDir, relativePath); 583string sumsFile = Path.Combine(workingDir, "md5sums"); 597File.Copy(sumsFile, Path.Combine(controlLayout, "md5sums"), overwrite: true); 600string controlFile = Path.Combine(controlLayout, "control"); 665using var dataStream = File.OpenWrite(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString())); 677string workingDir = Path.Combine(tempDir, Guid.NewGuid().ToString().Split('-')[0]); 679string layout = Path.Combine(workingDir, "layout"); 686File.Copy(signedPart.FileSignInfo.FullPath, Path.Combine(layout, signedPart.RelativeName), overwrite: true); 690string payload = Path.Combine(workingDir, "payload.cpio"); 714string file = Path.Combine(workingDir, kind); 760string outputPath = Path.Combine(layout, relativePath);
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); 402string tempDir = Path.Combine(_tmpDir, "verification"); 408string controlLayout = Path.Combine(tempDir, "control"); 409string dataLayout = Path.Combine(tempDir, "data"); 417string md5sumsContents = File.ReadAllText(Path.Combine(controlLayout, "md5sums")); 426string layoutFilePath = Path.Combine(dataLayout, targetSystemFilePath); 447string controlFileContents = File.ReadAllText(Path.Combine(controlLayout, "control")); 454string archive = Path.Combine(destinationFolder, relativePath); 465string tempDir = Path.Combine(_tmpDir, "verification"); 468string layout = Path.Combine(tempDir, "layout"); 478string layoutFilePath = Path.Combine(layout, targetSystemFilePath); 762<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, fileToTest))}""> 909$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "CoreLibCrossARM.dll"))}""> 912<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "AspNetCoreCrossLib.dll"))}""> 983$@"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: ''." 1025$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "engines\\0\\MsiBootstrapper.exe-engine.exe"))}""> 1031$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithWix.nupkg"))}""> 1284<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1341<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1411<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1416<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.pkg.zip"))}""> 1469<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "NestedPkg.pkg.zip"))}""> 1515<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "WithApp.pkg.zip"))}""> 1706$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.deb"))}""> 1720ValidateProducedDebContent(Path.Combine(_tmpDir, "test.deb"), expectedFilesOriginalHashes, signableFiles, expectedControlFileContent); 1745$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.rpm"))}""> 1777$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.rpm"))}""> 1790ValidateProducedRpmContent(Path.Combine(_tmpDir, "test.rpm"), expectedFilesOriginalHashes, signableFiles, originalUncompressedPayloadChecksum); 1962$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiBootstrapper.exe"))}""> 2001$@"<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "MsiSetup.msi"))}""> 2014var badPath = Path.Combine(GetWixToolPath(), "badpath"); 2100$"{Path.Combine(_tmpDir, "ContainerSigning", "6", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "PackageWithRelationships.vsix")}" 2125<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2161$"{Path.Combine(_tmpDir, "ContainerSigning", "4", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "PackageWithRelationships.vsix")}" 2186<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "TestSpaces.vsix"))}""> 2238<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 2243<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2305<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "test.vsix"))}""> 2345<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "PackageWithRelationships.vsix"))}""> 2821$@"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: ''.", 2826$@"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: ''." 2962string createFileName = Path.Combine(workingDir, "create.cmd"); 2963string outputFileName = Path.Combine(outputDir, expectedExe); 2973File.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.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 (11)
Storage\DiskBasedResponseCache.cs (5)
335=> Path.Combine(storageRootPath, "cache"); 338=> Path.Combine(cacheRootPath, "options.json"); 341=> Path.Combine(keyPath, "entry.json"); 344=> Path.Combine(keyPath, "contents.data"); 348string 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 (12)
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)
20var outputPath = Path.Combine("obj", "NSwagClient.cs"); 73var outputPath = Path.Combine("obj", $"NSwagClient.cs"); 131var outputPath = Path.Combine("obj", "NSwagClient.cs"); 189var outputPath = Path.Combine(Path.GetTempPath(), $"{className}.cs"); 292var error = Resources.FormatDuplicateFileOutputPaths(Path.Combine("obj", "NSwagClient.cs")); 339var expectedOutputPath = Path.Combine("bin", outputPath); 402var expectedOutputPath = Path.Combine("bin", outputPath); 467var outputPath1 = Path.Combine("obj", $"{className12}.cs"); 468var outputPath2 = Path.Combine("obj", $"{className12}.ts"); 469var 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)
26var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 36"--file-list", Path.Combine(outputPath.FullName, "file-list.cache") 40using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 52var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 62"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 67using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 78var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 88"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 94using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample.json"))); 105var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 115"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 120var expectedDocumentPath = Path.Combine(outputPath.FullName, "Sample_internal.json"); 127using var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 139var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 149"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 155Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 156Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 157Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_invalid.json"))); 168var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 178"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 183Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 184Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}_internal.json"))); 185Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 186Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 195var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 205"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 212Assert.False(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 213Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 214Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 221var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 231"--file-list", Path.Combine(outputPath.FullName, "file-list.cache"), 236Assert.False(File.Exists(Path.Combine(outputPath.FullName, ".json"))); 237Assert.False(File.Exists(Path.Combine(outputPath.FullName, "_internal.json"))); 238Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 239Assert.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)
153string 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 (1)
DnsSrvServiceEndpointProviderFactory.cs (1)
19private static readonly string s_resolveConfPath = Path.Combine($"{Path.DirectorySeparatorChar}etc", "resolv.conf");
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 (4)
GeneratorTests.cs (2)
81var goldenReportPath = Path.Combine("GoldenReports", goldenFileName); 170var fullReportPath = Path.Combine(projectDir, outputPath);
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 (4)
GeneratorTests.cs (2)
46var goldenReportPath = Path.Combine("GoldenReports", goldenFileName); 123var fullReportPath = Path.Combine(projectDir, outputPath);
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)
746var 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)
129var scriptsDir = Path.Combine(projectDir, "Scripts"); 130var outputDir = Path.Combine(projectDir, relativeOutputPath);
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
281ProjectSystemProject.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)
995filePath = 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)
875solution = solution.AddDocument(id, "file.cs", "class C { void M() }", filePath: Path.Combine(_persistentFolder.Path, "file.cs")); 895solution = 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)
95var expectedNewBinPath = Path.Combine(Path.GetTempPath(), newBinPath); 102var absoluteObjPath = Path.GetFullPath(Path.Combine(Path.GetTempPath(), relativeObjPath)); 199var path = Path.Combine(TempRoot.Root, "generated"); 207Path.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)
39Return content.RelativePath.Replace("$RootFolder$", Path.Combine(TempRoot.Root, "ResolvedRootFolder")) 41Return content.RelativePath.Replace("$ShellFolder$", Path.Combine(TempRoot.Root, "ResolvedShellFolder"))
ProjectSystemShim\Framework\TestEnvironment.vb (1)
153Dim result = Path.Combine(dir, projectName + ".vbproj")
ProjectSystemShim\VisualBasicHelpers\MockCompilerHost.vb (1)
32Return Path.Combine(_sdkPath, fileName)
Microsoft.VisualStudio.LanguageServices.UnitTests (22)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (8)
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") 74Path.Combine(TempRoot.Root, "InstallPath\razorPath1"), 75Path.Combine(TempRoot.Root, "InstallPath\razorPath2")
GenerateType\GenerateTypeViewModelTests.vb (1)
759Dim pathString = Path.Combine(projectRootFolder, randomFileName)
ProjectSystemShim\FileChangeWatcherTests.vb (1)
22_tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName())
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (2)
115Path.Combine(TempRoot.Root, "File.dll") 192Path.Combine(TempRoot.Root, "File.dll")
ProjectSystemShim\VisualStudioRuleSetTests.vb (9)
25_tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName()) 47Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 87Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 90Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") 131Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 134Dim includePath As String = Path.Combine(_tempPath, "file1.ruleset") 175Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 224Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset") 262Dim ruleSetPath As String = Path.Combine(_tempPath, "a.ruleset")
ReferenceManager\VisualStudioMetadataReferenceManagerTests.vb (1)
20Dim enterprisePath = Path.Combine(assemblyDir, "System.EnterpriseServices.dll")
MSBuild (43)
BuildEnvironmentHelper.cs (7)
201var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 202var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 335.Select((name) => TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, name))) 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 616MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : CurrentMSBuildToolsDirectory; 623? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
CommunicationsUtilities.cs (1)
843string.Format(CultureInfo.CurrentCulture, Path.Combine(s_debugDumpPath, fileName), EnvironmentUtilities.CurrentProcessId, nodeId), append: true))
DebugUtils.cs (4)
43debugDirectory = Path.Combine(Directory.GetCurrentDirectory(), "MSBuild_Logs"); 47debugDirectory = Path.Combine(FileUtilities.TempFileDirectory, "MSBuild_Logs"); 112var fullPath = Path.Combine(DebugPath, fileName); 118fullPath = Path.Combine(DebugPath, fileName);
ExceptionHandling.cs (1)
356s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
FileUtilities.cs (9)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 144cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 492return NormalizePath(Path.Combine(directory, file)); 704return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 783string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 861var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1309return paths.Aggregate(root, Path.Combine); 1481string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
Modifiers.cs (2)
566modifiedItemSpec = Path.Combine( 663fullPath = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
MSBuildLoadContext.cs (1)
98var assemblyNameInExecutableDirectory = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
NamedPipeUtil.cs (1)
33return Path.Combine("/tmp", pipeName);
OutOfProcTaskHostNode.cs (1)
823? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(FileUtilities.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), EnvironmentUtilities.CurrentProcessId))
PerformanceLogEventListener.cs (1)
84string logFilePath = Path.Combine(logDirectory, $"perf-{_processIDStr}-{Guid.NewGuid():N}.log");
PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TempFileUtilities.cs (5)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder); 186string file = Path.Combine(directory, $"{fileName}{extension}"); 210string destFile = Path.Combine(dest, fileInfo.Name); 215string destDir = Path.Combine(dest, subdirInfo.Name); 232: System.IO.Path.Combine(TempFileDirectory, name);
TypeLoader.cs (1)
55microsoftBuildFrameworkPath = Path.Combine(msbuildDirectory, "Microsoft.Build.Framework.dll");
WindowsFileSystem.cs (3)
130var searchDirectoryPath = Path.Combine(directoryPath, "*"); 167result.Add(Path.Combine(directoryPath, findResult.CFileName)); 175Path.Combine(directoryPath, findResult.CFileName),
XMake.cs (4)
2451string autoResponseFile = Path.Combine(path, autoResponseFileName); 2800Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}"); 4135$"logFile={Path.Combine(Directory.GetCurrentDirectory(), logFileName)}"); 4152fileParameters += $"logFile={Path.Combine(Directory.GetCurrentDirectory(), msbuildLogFileName)}";
MSBuildTaskHost (20)
BuildEnvironmentHelper.cs (7)
201var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 202var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 335.Select((name) => TryFromStandaloneMSBuildExe(Path.Combine(appContextBaseDirectory, name))) 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 618MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : null; 623? Path.Combine(VisualStudioInstallRootDirectory, "MSBuild") 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
CommunicationsUtilities.cs (1)
843string.Format(CultureInfo.CurrentCulture, Path.Combine(s_debugDumpPath, fileName), EnvironmentUtilities.CurrentProcessId, nodeId), append: true))
ExceptionHandling.cs (1)
356s_dumpFileName = Path.Combine(DebugDumpPath, $"MSBuild_pid-{pid}_{guid:n}.failure.txt");
FileUtilities.cs (8)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 144cacheDirectory = Path.Combine(TempFileDirectory, string.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", EnvironmentUtilities.CurrentProcessId, AppDomain.CurrentDomain.Id)); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt"); 492return NormalizePath(Path.Combine(directory, file)); 783string fullPath = NormalizePath(Path.Combine(currentDirectory, fileSpec)); 861var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath)); 1309return paths.Aggregate(root, Path.Combine); 1481string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
Modifiers.cs (2)
566modifiedItemSpec = Path.Combine( 663fullPath = Path.GetFullPath(Path.Combine(currentDirectory, itemSpec));
OutOfProcTaskHostNode.cs (1)
823? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(FileUtilities.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), EnvironmentUtilities.CurrentProcessId))
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)
24var testDiscoveryWorkerFolder = Path.Combine(binDirectory, "TestDiscoveryWorker"); 70var testDiscoveryWorkerFolder = Path.Combine(binDirectory, "TestDiscoveryWorker"); 89var 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 (11)
Replay.cs (4)
61outputDirectory = Path.Combine(Path.GetTempPath(), "replay"); 257fileName = Path.Combine(hashSet.Count.ToString(), fileName); 260var filePath = Path.Combine(outputDirectory, fileName); 268var generatedDir = Path.Combine(outputDirectory, "generated");
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\BuildServerConnection.cs (4)
438var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 659var result = Path.Combine(tempPath!, ".roslyn"); 667FilePath = Path.Combine(mutexDirectory, name); 668GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
61var 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 (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
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)
450assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 789assemblyPath: 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 (21)
AssemblyScheduler.cs (1)
251var testListPath = Path.Combine(assemblyDirectory!, "testlist.json");
HelixTestRunner.cs (8)
88var arguments = $"build -bl:{Path.Combine(logsDir, "helix.binlog")} {helixFilePath}"; 103File.Copy(helixFilePath, Path.Combine(logsDir, "helix.proj")); 155var duplicateDir = Path.Combine(Path.GetDirectoryName(artifactsDir)!, ".duplicate"); 204var binDir = Path.Combine(artifactsDir, "bin"); 220Path.Combine(workItemPayloadDir, rspFileName), 224File.WriteAllText(Path.Combine(workItemPayloadDir, commandFileName), commandContent); 227File.WriteAllText(Path.Combine(workItemPayloadDir, postCommandFileName), postCommandContent); 478var destinationPath = Path.Combine(logsDir, relativePath);
Options.cs (2)
281while (dir != null && !File.Exists(Path.Combine(dir, programName))) 286return 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)
204var 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)
218var xmlLarge = File.ReadAllText(Path.Combine("content", "books.xml")); 225var 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)
379pathAndFilename = 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); 421string localtimeFilePath = Path.Combine(timeZoneDirectory, "localtime"); 422string posixrulesFilePath = Path.Combine(timeZoneDirectory, "posixrules"); 543TryLoadTzFile(Path.Combine(GetTimeZoneDirectory(), "localtime"), ref rawData, ref id); 560tzFilePath = 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 (25)
BlazorTemplateTest.cs (1)
61var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory);
BlazorWasmTemplateTest.cs (8)
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");
Templates.Blazor.WebAssembly.Auth.Tests (19)
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\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)
125var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Blazor.WebAssembly.Tests (27)
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\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)
125var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Mvc.Tests (22)
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\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)
125var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Templates.Tests (25)
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\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)
125var screenShotPath = Path.Combine(Path.GetFullPath(E2ETestOptions.Instance.ScreenShotsPath), fileId);
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
TestDiscoveryWorker (1)
Program.cs (1)
49outputFilePath = 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 (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
35editorconfigFilePath = Path.Combine(editorconfigFilePath, ".editorconfig");
vbc (8)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\BuildServerConnection.cs (4)
438var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 659var result = Path.Combine(tempPath!, ".roslyn"); 667FilePath = Path.Combine(mutexDirectory, name); 668GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
61var filePath = Path.Combine(item, fileName);
src\Compilers\Shared\Vbc.cs (1)
26var responseFile = Path.Combine(buildPaths.ClientDirectory, VisualBasicCompiler.ResponseFileName);
VBCSCompiler (7)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
126loggingFilePath = Path.Combine(loggingFilePath, $"server.{processId}.log");
src\Compilers\Shared\BuildServerConnection.cs (4)
438var processFilePath = Path.Combine(clientDir, "VBCSCompiler.exe"); 659var result = Path.Combine(tempPath!, ".roslyn"); 667FilePath = Path.Combine(mutexDirectory, name); 668GuardPath = Path.Combine(mutexDirectory, ".guard");
src\Compilers\Shared\NamedPipeUtil.cs (1)
34return Path.Combine("/tmp", pipeName);
src\Compilers\Shared\RuntimeHostInfo.cs (1)
61var filePath = Path.Combine(item, fileName);
VBCSCompiler.UnitTests (20)
CompilerServerApiTest.cs (1)
146var vbcsFilePath = Path.Combine(toolDir, "VBCSCompiler.dll");
CompilerServerTests.cs (16)
101var filePath = Path.Combine(currentDirectory.Path, "netstandard.dll"); 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)))