4937 references to Combine
AnalyzerRunner (1)
aspire (2)
Aspire.Cli.Tests (3)
Aspire.Components.Common.Tests (1)
Aspire.Dashboard.Tests (9)
Aspire.EndToEnd.Tests (35)
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";
Aspire.Hosting (11)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure (10)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Tests (13)
Aspire.Hosting.Containers.Tests (5)
Aspire.Hosting.Docker.Tests (7)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Kafka.Tests (2)
Aspire.Hosting.Keycloak.Tests (4)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Kubernetes.Tests (5)
Aspire.Hosting.Milvus.Tests (1)
Aspire.Hosting.MongoDB.Tests (3)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.NodeJs (2)
Aspire.Hosting.NodeJs.Tests (2)
Aspire.Hosting.Oracle.Tests (1)
Aspire.Hosting.PostgreSQL.Tests (3)
Aspire.Hosting.Python (2)
Aspire.Hosting.Python.Tests (4)
Aspire.Hosting.Qdrant.Tests (1)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Seq.Tests (2)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (3)
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"), $"""
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")]);
Aspire.Hosting.Valkey.Tests (2)
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (40)
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";
Aspire.TestUtilities (1)
Binding.UDS.IntegrationTests (2)
blazor-devserver (1)
BuildBoss (9)
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");
CodeStyleConfigFileGenerator (3)
ConfigurationSchemaGenerator.Tests (2)
Crossgen2Tasks (2)
csc (8)
csi (1)
CustomEncryptorSample (1)
dotnet-dev-certs (1)
dotnet-getdocument (5)
dotnet-openapi (2)
dotnet-razorpagegenerator (1)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (38)
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));
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)));
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");
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));
dotnet-user-jwts (11)
dotnet-user-secrets (5)
FilesWebSite (7)
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)
GetDocument.Insider (1)
HelixTestRunner (10)
HttpClientApp (2)
IdeBenchmarks (5)
IdeCoreBenchmarks (16)
IIS.FunctionalTests (23)
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>");
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.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)
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.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.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>");
IIS.Tests (1)
IISExpress.FunctionalTests (37)
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.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)
InMemory.FunctionalTests (2)
InProcessWebSite (1)
installer.tasks (1)
InteractiveHost.UnitTests (3)
Interop.FunctionalTests (4)
IOperationGenerator (2)
KeyManagementSample (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.Analyzers.Extra.Tests (3)
Microsoft.Analyzers.Local.Tests (3)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.App.UnitTests (11)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (23)
Microsoft.AspNetCore.BrowserTesting (8)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.DataProtection (2)
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)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (2)
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)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (3)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
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);
Microsoft.AspNetCore.HttpLogging (1)
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)
Microsoft.AspNetCore.InternalTesting (13)
Microsoft.AspNetCore.InternalTesting.Tests (3)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (23)
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);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
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)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi.Build.Tests (8)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Microsoft.AspNetCore.Server.IntegrationTesting (17)
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");
Microsoft.AspNetCore.Server.Kestrel.Core (10)
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);
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");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SpaProxy (5)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticAssets (3)
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)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (4)
Microsoft.AspNetCore.StaticFiles.Tests (23)
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)
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)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Build (123)
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);
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);
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());
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");
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"));
Microsoft.Build.CommandLine.UnitTests (31)
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)
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");
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.
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");
Microsoft.Build.Engine.UnitTests (477)
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));
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"));
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)),
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\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\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"),
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);
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);
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)
Microsoft.Build.Tasks.CodeAnalysis (10)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (27)
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)
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(
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);
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");
Microsoft.Build.Tasks.UnitTests (654)
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"))));
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");
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");
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");
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");
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);
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");
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")) };
Microsoft.Build.UnitTests.Shared (20)
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());
Microsoft.Build.Utilities.Core (95)
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());
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);
Microsoft.Build.Utilities.UnitTests (147)
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");
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (20)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (1)
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)
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");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (56)
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\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)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
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");
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)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (5)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
Microsoft.CodeAnalysis.Features.UnitTests (21)
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;
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.LanguageServer (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (5)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (2)
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)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (12)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
Microsoft.CodeAnalysis.Test.Utilities (27)
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)
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")
Microsoft.CodeAnalysis.Workspaces (16)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (13)
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"),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (45)
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));
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.Arcade.Sdk.Tests (8)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Manifest.Tests (6)
Microsoft.DotNet.Build.Tasks.Feed (15)
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);
Microsoft.DotNet.Build.Tasks.Feed.Tests (13)
Microsoft.DotNet.Build.Tasks.Installers (14)
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)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
Microsoft.DotNet.Build.Tasks.TargetFramework (3)
Microsoft.DotNet.Build.Tasks.Templating.Tests (6)
Microsoft.DotNet.Build.Tasks.VisualStudio (6)
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"));
Microsoft.DotNet.Build.Tasks.Workloads (33)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (47)
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");
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);
Microsoft.DotNet.GenAPI (1)
Microsoft.DotNet.GenFacades (6)
Microsoft.DotNet.Helix.Sdk (7)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.Internal.SymbolHelper (9)
Microsoft.DotNet.MacOsPkg.Core (4)
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)
Microsoft.DotNet.NuGetRepack.Tests (34)
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)
Microsoft.DotNet.RemoteExecutor (5)
Microsoft.DotNet.SharedFramework.Sdk (3)
Microsoft.DotNet.SignCheckLibrary (13)
Microsoft.DotNet.SignCheckTask (3)
Microsoft.DotNet.SignTool (35)
Microsoft.DotNet.SignTool.Tests (47)
Microsoft.DotNet.SourceBuild.Tasks (3)
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
Microsoft.DotNet.XliffTasks (15)
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)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.Reporting (11)
Microsoft.Extensions.AI.Templates.Tests (12)
Microsoft.Extensions.ApiDescription.Client (1)
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");
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)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.DependencyModel (7)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
Microsoft.Extensions.FileProviders.Physical (4)
Microsoft.Extensions.FileSystemGlobbing (5)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Localization.Tests (5)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Extensions.ML.Tests (2)
Microsoft.Extensions.SecretManager.Tools.Tests (15)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (6)
Microsoft.Gen.MetadataExtractor (4)
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports (2)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
Microsoft.Maui (1)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Resizetizer (32)
Microsoft.ML.AutoML (3)
Microsoft.ML.AutoML.Samples (2)
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");
Microsoft.ML.CodeGenerator (9)
Microsoft.ML.Core (18)
Microsoft.ML.Core.Tests (16)
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=+",
Microsoft.ML.Data (3)
Microsoft.ML.DnnImageFeaturizer.AlexNet (1)
Microsoft.ML.DnnImageFeaturizer.ResNet101 (1)
Microsoft.ML.DnnImageFeaturizer.ResNet18 (1)
Microsoft.ML.DnnImageFeaturizer.ResNet50 (1)
Microsoft.ML.Ensemble (2)
Microsoft.ML.GenAI.Core.Tests (1)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.GenAI.Samples (8)
Microsoft.ML.ImageAnalytics (2)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.Maml (2)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.PerformanceTests (12)
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)
Microsoft.ML.Samples.GPU (26)
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)
Microsoft.ML.Sweeper (2)
Microsoft.ML.TensorFlow (5)
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)
Microsoft.ML.TestFrameworkCommon (6)
Microsoft.ML.Tests (11)
Microsoft.ML.TimeSeries.Tests (4)
Microsoft.ML.Tokenizers.Data.Tests (1)
Microsoft.ML.Tokenizers.Tests (23)
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (2)
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.VisualStudio.LanguageServices (11)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (14)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (4)
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")
MSBuild (43)
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);
MSBuildTaskHost (20)
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);
NonDISample (1)
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());
PresentationBuildTasks (4)
PresentationCore (4)
PresentationFramework (2)
PresentationUI (2)
Replay (11)
Roslyn.Compilers.Extension (2)
Roslyn.Diagnostics.Analyzers (1)
Roslyn.Test.Performance.Utilities (27)
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);
RulesetToEditorconfigConverter (2)
RulesetToEditorconfigConverter.UnitTests (4)
RunTests (21)
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);
SemanticSearch.BuildTask (2)
ServerComparison.FunctionalTests (2)
Sockets.BindTests (2)
Sockets.FunctionalTests (2)
StaticFilesAuth (4)
Stress.ApiService (2)
System.CodeDom (1)
System.ComponentModel.Composition (1)
System.Configuration.ConfigurationManager (12)
System.Diagnostics.Process (4)
System.Diagnostics.TextWriterTraceListener (1)
System.Formats.Tar (1)
System.IO.Compression.ZipFile (1)
System.IO.IsolatedStorage (2)
System.IO.MemoryMappedFiles (1)
System.IO.Packaging (1)
System.IO.Pipes (1)
System.Net.Mail (1)
System.Net.Ping (2)
System.Net.Quic (1)
System.Private.CoreLib (15)
System.Private.Xml (3)
System.Reflection.MetadataLoadContext (1)
System.Security.Cryptography (4)
System.Text.RegularExpressions (1)
Templates.Blazor.Tests (25)
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");
Templates.Blazor.WebAssembly.Auth.Tests (19)
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");
Templates.Mvc.Tests (22)
Templates.Tests (25)
Test.Utilities (1)
TestDiscoveryWorker (1)
TestProject.AppHost (1)
TestTasks (1)
Text.Analyzers (1)
vbc (8)
VBCSCompiler (7)
VBCSCompiler.UnitTests (20)
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");
vbi (1)
VisualBasicSyntaxGenerator (4)
WindowsBase.Tests (1)
xunit.console (9)