3316 references to Combine
AndroidAppBuilder (42)
ApkBuilder.cs (32)
62if (!string.IsNullOrEmpty(mainLibraryFileName) && !File.Exists(Path.Combine(AppDir, mainLibraryFileName)))
182Directory.CreateDirectory(Path.Combine(OutputDir, "bin"));
183Directory.CreateDirectory(Path.Combine(OutputDir, "obj"));
184Directory.CreateDirectory(Path.Combine(OutputDir, "assets-tozip"));
185Directory.CreateDirectory(Path.Combine(OutputDir, "assets"));
196var assetsToZipDirectory = Path.Combine(OutputDir, "assets-tozip");
220File.Copy(aotlib, Path.Combine(assetsToZipDirectory, Path.GetFileName(aotlib)));
224string dx = Path.Combine(buildToolsFolder, "dx");
225string d8 = Path.Combine(buildToolsFolder, "d8");
226string aapt = Path.Combine(buildToolsFolder, "aapt");
227string zipalign = Path.Combine(buildToolsFolder, "zipalign");
228string apksigner = Path.Combine(buildToolsFolder, "apksigner");
252monoRuntimeLib = Path.Combine(AppDir, "libmonosgen-2.0.a");
256monoRuntimeLib = Path.Combine(AppDir, "libmonosgen-2.0.so");
349File.WriteAllText(Path.Combine(OutputDir, "CMakeLists.txt"), cmakeLists);
350File.WriteAllText(Path.Combine(OutputDir, monodroidSource), Utils.GetEmbeddedResource(monodroidSource));
363string javaActivityPath = Path.Combine(javaSrcFolder, "MainActivity.java");
364string monoRunnerPath = Path.Combine(javaSrcFolder, "MonoRunner.java");
398File.WriteAllText(Path.Combine(OutputDir, "AndroidManifest.xml"),
410string[] classFiles = Directory.GetFiles(Path.Combine(OutputDir, "obj"), "*.class", SearchOption.AllDirectories);
482File.Copy(dynamicLib, Path.Combine(OutputDir, destRelative), true);
493File.Copy(dexFile, Path.Combine(OutputDir, classesFileName));
520string defaultKey = Path.Combine(OutputDir, "debug.keystore");
522defaultKey : Path.Combine(KeyStorePath, "debug.keystore");
532File.Copy(signingKey, Path.Combine(OutputDir, "debug.keystore"));
553string zipalign = Path.Combine(buildToolsFolder, "zipalign");
554string apksigner = Path.Combine(buildToolsFolder, "apksigner");
578string aapt = Path.Combine(buildToolsFolder, "aapt");
579string apksigner = Path.Combine(buildToolsFolder, "apksigner");
583apkPath = Directory.GetFiles(Path.Combine(OutputDir, "bin"), "*.apk").First();
602string? buildTools = Directory.GetDirectories(Path.Combine(androidSdkDir, "build-tools"))
620return Directory.GetDirectories(Path.Combine(androidSdkDir, "platforms"))
AppleAppBuilder (22)
Xcode.cs (17)
301nativeMainSource = Path.Combine(binDir, "main.m");
306string newMainPath = Path.Combine(binDir, "main.m");
309File.Copy(nativeMainSource, Path.Combine(binDir, "main.m"), true);
361libraryPath = Path.Combine(workspace, $"{projectName}.dylib");
365libraryPath = Path.Combine(binDir, $"lib{projectName}.dylib");
511File.WriteAllText(Path.Combine(binDir, "Info.plist"), plist);
517File.WriteAllText(Path.Combine(binDir, "CMakeLists.txt"), cmakeLists);
526File.WriteAllText(Path.Combine(binDir, "app.entitlements"), entitlementsTemplate.Replace("%Entitlements%", ent.ToString()));
531File.WriteAllText(Path.Combine(binDir, "runtime-librarymode.h"), Utils.GetEmbeddedResource("runtime-librarymode.h"));
532File.WriteAllText(Path.Combine(binDir, "runtime-librarymode.m"), Utils.GetEmbeddedResource("runtime-librarymode.m"));
536File.WriteAllText(Path.Combine(binDir, "runtime.h"),
553File.WriteAllText(Path.Combine(binDir, "runtime.m"),
560File.WriteAllText(Path.Combine(binDir, "util.h"), Utils.GetEmbeddedResource("util.h"));
561File.WriteAllText(Path.Combine(binDir, "util.m"), Utils.GetEmbeddedResource("util.m"));
655string appDirectory = Path.Combine(Path.GetDirectoryName(xcodePrjPath)!, config + "-" + sdk);
659string appDirectoryWithoutSdk = Path.Combine(Path.GetDirectoryName(xcodePrjPath)!, config);
684return Path.Combine(appDirectory, Path.GetFileNameWithoutExtension(xcodePrjPath) + ".app");
AssemblyStripper (12)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\BaseAssemblyResolver.cs (11)
109 string file = Path.Combine (dir, name.Name + ext);
166 path = Path.Combine (path, runtime_path);
168 if (File.Exists (Path.Combine (path, "mscorlib.dll")))
169 return AssemblyFactory.GetAssembly (Path.Combine (path, "mscorlib.dll"));
198 string gac = Path.Combine (Path.Combine (Path.Combine (gacPrefix, "lib"), "mono"), "gac");
225 string gac = Path.Combine (Directory.GetParent (currentGac).FullName, gacs [i]);
243 return Path.Combine (
244 Path.Combine (
245 Path.Combine (gac, reference.Name), sb.ToString ()),
blazor-devserver (1)
Crossgen2Tasks (2)
CustomEncryptorSample (1)
dotnet-dev-certs (1)
dotnet-getdocument (6)
dotnet-openapi (2)
dotnet-razorpagegenerator (1)
dotnet-user-jwts (9)
dotnet-user-secrets (5)
FilesWebSite (7)
GetDocument.Insider (1)
HelixTestRunner (10)
HttpClientApp (2)
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");
247DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true);
248DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "3"), copySubDirs: true);
249DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "10"), copySubDirs: true);
261Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "0")), "Expected 0 shadow copy directory to be skipped");
272Assert.True(Directory.Exists(Path.Combine(directory.DirectoryPath, "11")), "Expected 11 shadow copy directory");
278Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "1")), "Expected 1 shadow copy directory to be deleted");
279Assert.False(Directory.Exists(Path.Combine(directory.DirectoryPath, "3")), "Expected 3 shadow copy directory to be deleted");
291DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
304Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy")));
321DirectoryCopy(deploymentResult.ContentRoot, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
334Assert.True(Directory.Exists(Path.Combine(deploymentResult.ContentRoot, "ShadowCopy")));
346var directoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
414string tempPath = Path.Combine(destDirName, file.Name);
427string 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)
InMemory.FunctionalTests (2)
InProcessWebSite (1)
installer.tasks (1)
Interop.FunctionalTests (4)
KeyManagementSample (1)
LibraryBuilder (9)
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 (15)
Microsoft.AspNetCore.BrowserTesting (8)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (1)
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 (4)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (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.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)
944var oldDir = Directory.CreateDirectory(Path.Combine(tempDir, "old"));
945var newDir = Directory.CreateDirectory(Path.Combine(tempDir, "new"));
946var oldCertPath = Path.Combine(oldDir.FullName, "tls.key");
947var newCertPath = Path.Combine(newDir.FullName, "tls.key");
949var dirLink = Directory.CreateSymbolicLink(Path.Combine(tempDir, "link"), "./old");
950var fileLink = File.CreateSymbolicLink(Path.Combine(tempDir, "tls.key"), "./link/tls.key");
995dirLink = Directory.CreateSymbolicLink(Path.Combine(tempDir, "link"), "./new");
1853return 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)
109var filePath = Path.Combine(webRoot, "sample.txt");
166File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified");
219File.WriteAllText(Path.Combine(webRoot, "sample.txt"), "Hello, World! Modified");
228Assert.Equal(GetGzipEtag(Path.Combine(webRoot, "sample.txt")), response.Headers.ETag.Tag);
257var contentRoot = Path.Combine(AppContext.BaseDirectory, appName);
258var webRoot = Path.Combine(contentRoot, "wwwroot");
266var manifestPath = Path.Combine(AppContext.BaseDirectory, $"{appName}.staticwebassets.endpoints.json");
275var filePath = Path.Combine(webRoot, resource.Path);
295var 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 (125)
BackEnd\Components\Scheduler\Scheduler.cs (4)
2570StreamWriter file = FileUtilities.OpenWrite(String.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerTrace_{0}.txt"), Process.GetCurrentProcess().Id), append: true);
2588using (StreamWriter file = FileUtilities.OpenWrite(String.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), Process.GetCurrentProcess().Id), append: true))
2696using (StreamWriter file = FileUtilities.OpenWrite(String.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), Process.GetCurrentProcess().Id), append: true))
2730using (StreamWriter file = FileUtilities.OpenWrite(String.Format(CultureInfo.CurrentCulture, Path.Combine(_debugDumpPath, "SchedulerState_{0}.txt"), Process.GetCurrentProcess().Id), append: true))
Evaluation\Evaluator.cs (4)
1175string projectFullPath = Path.Combine(projectDirectory, projectFile);
1893ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project),
1906ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project),
2134importFileUnescaped = Path.Combine(directoryOfImportingFile, importFileUnescaped);
FileUtilities.cs (9)
74string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
131cacheDirectory = Path.Combine(TempFileDirectory, String.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", Process.GetCurrentProcess().Id, AppDomain.CurrentDomain.Id));
182string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid().ToString("N")}_testFile.txt");
471return NormalizePath(Path.Combine(directory, file));
683return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString())))
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
834var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1269return paths.Aggregate(root, Path.Combine);
1441string 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");
782var frameworkPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, prefix ?? string.Empty);
792return Path.Combine(complusInstallRoot, complusVersion);
929? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework")
930: Path.Combine(NativeMethodsShared.FrameworkBasePath, "xbuild-frameworks");
1089string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix);
1395(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) &&
1396!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
1428frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
Microsoft.Build.BuildCheck.UnitTests (6)
Microsoft.Build.CommandLine.UnitTests (34)
XMake_Tests.cs (26)
1108string projectFileName = Path.Combine(tempdir, "msbEnvironmenttest.proj");
1146string projectFileName = Path.Combine(tempdir, "msbLoggertest.proj");
1147string logFile = Path.Combine(tempdir, "logFile");
1193? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "notepad.exe")
1268string projectPath = Path.Combine(directory, "my.proj");
1269string rspPath = Path.Combine(directory, AutoResponseFileName);
1375directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
1377string projectPath = Path.Combine(directory, "my.proj");
1378string rspPath = Path.Combine(directory, AutoResponseFileName);
1381string exePath = Path.Combine(exeDirectory, MSBuildExeName);
1382string mainRspPath = Path.Combine(exeDirectory, AutoResponseFileName);
1419string projectPath = Path.Combine(directory, "my.proj");
1420string rspPath = Path.Combine(directory, AutoResponseFileName);
1421string exePath = Path.Combine(directory, MSBuildExeName);
1934string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName;
1957string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName;
2075distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2088distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2101distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2114distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($";Parameter1;logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2131fileLoggerParameters = new[] { "Parameter1", "verbosity=Normal;logfile=" + Path.Combine("..", "cat.log") + ";Parameter1" };
2147distributedLoggerRecords[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"
2707dest = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
2728File.Copy(file, Path.Combine(dest, Path.GetFileName(file)));
2734string destSubDir = Path.Combine(dest, dirName);
2773File.WriteAllText(Path.Combine(testProject.TestRoot, item.Key), item.Value);
Microsoft.Build.Conversion.Core (4)
Microsoft.Build.Engine (31)
Microsoft.Build.Engine.OM.UnitTests (109)
Construction\ProjectRootElement_Tests.cs (10)
163Assert.Equal(project.FullPath, Path.Combine(Directory.GetCurrentDirectory(), "X"));
192projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc");
210ProjectRootElement projectXml2 = ProjectRootElement.Open(Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"));
227ProjectRootElement projectXml2 = ProjectRootElement.Open(Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"));
242projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc");
534string path = Path.Combine(toolsPath, target);
633directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
635string path = Path.Combine(directory, file);
666string path = Path.Combine(curDir, file);
667directory = Path.Combine(curDir, "bar");
Definition\DefinitionEditing_Tests.cs (10)
287string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;");
670string wildcard = Path.Combine(directory, "*.xxx;");
790string 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"));
1388string wildcard = Path.Combine(directory, "*.xxx;");
1407ProjectCollection.Escape(Path.Combine(directory, "i2.xxx")));
2206string wildcard = Path.Combine(Path.GetDirectoryName(paths[0]), "*.xxx;");
Definition\Project_Tests.cs (19)
678project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll"));
679projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll"));
683project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll"));
684projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll"));
1714testFileRoot = Path.Combine(Path.GetTempPath(), "foodir");
1720string filePath = Path.Combine(testFileRoot, fileName);
1726projectConstruction.AddItem("foo", Path.Combine(testFileRoot, "*.foo"));
2457directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
2458string subdirectory = Path.Combine(directory, "sub");
2461string projectPath = Path.Combine(subdirectory, "a.proj");
2462string targetsPath = Path.Combine(directory, "b.targets");
2570ProjectRootElement one = ProjectRootElement.Create(Path.Combine(myTempDir, "1.targets"));
2574ProjectRootElement two = ProjectRootElement.Create(Path.Combine(myTempDir, "2.targets"));
2578ProjectRootElement zero = ProjectRootElement.Create(Path.Combine(myTempDir, "0.targets"));
2582zero.AddImport(Path.Combine(myTempDir, "*.targets"));
3261var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "1.foo");
3739var absoluteFile = Path.Combine(Path.GetDirectoryName(testFiles.ProjectFile), "a.cs");
4078string importPath = Path.Combine(pre.DirectoryPath, Guid.NewGuid().ToString());
4121string importGlob = Path.Combine(pre.DirectoryPath, @"__NoMatch__\**");
Definition\ProjectItem_Tests.cs (11)
351directory = Path.Combine(Path.GetTempPath(), "a");
357subdirectory = Path.Combine(directory, "b");
363file = Path.Combine(subdirectory, "c");
398directory = Path.Combine(Path.GetTempPath(), "a");
404subdirectory = Path.Combine(directory, "b");
410file = Path.Combine(subdirectory, "c");
1093: Path.Combine(relativeFragmentFromRootToFile, file);
1981string projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
1985string sourceFile = Path.Combine(projectDirectory, "a.cs");
1986string renamedSourceFile = Path.Combine(projectDirectory, "b.cs");
1990project.FullPath = Path.Combine(projectDirectory, "test.proj"); // assign a path so the wildcards can lock onto something.
FileUtilities.cs (9)
74string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
131cacheDirectory = Path.Combine(TempFileDirectory, String.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", Process.GetCurrentProcess().Id, AppDomain.CurrentDomain.Id));
182string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid().ToString("N")}_testFile.txt");
471return NormalizePath(Path.Combine(directory, file));
683return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString())))
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
834var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1269return paths.Aggregate(root, Path.Combine);
1441string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
Instance\ProjectInstance_Tests.cs (16)
286directory = Path.Combine(Path.GetTempPath(), "WildcardsInsideTargets");
288file1 = Path.Combine(directory, "a.exe");
289file2 = Path.Combine(directory, "b.exe");
290file3 = Path.Combine(directory, "c.bat");
295string path = Path.Combine(directory, "*.exe");
421projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj");
422projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj");
457projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj");
458projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj");
503File.Create(Path.Combine(tempDir, "aItem.cs")).Dispose();
505projA.FullPath = Path.Combine(tempDir, "a.proj");
506projB.FullPath = Path.Combine(tempDir, "b.proj");
531string projectA = Path.Combine(ObjectModelHelpers.TempProjectDir, "a.proj");
532string projectB = Path.Combine(ObjectModelHelpers.TempProjectDir, "b.proj");
534string includeFileA = Path.Combine(ObjectModelHelpers.TempProjectDir, "aaa4.cs");
535string includeFileB = Path.Combine(ObjectModelHelpers.TempProjectDir, "bbb4.cs");
Microsoft.Build.Engine.UnitTests (466)
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)
359RunnerUtilities.ExecMSBuild($"{_logFile} -flp:logfile={Path.Combine(logFolder.Path, "logFile.log")};verbosity=diagnostic", out success);
362string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log"));
416RunnerUtilities.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);
421string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log"));
425string text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile2.log"));
428RunnerUtilities.ExecMSBuild($"{_logFile} -flp1:logfile={Path.Combine(logFolder.Path, "logFile3.log")};verbosity=diagnostic -flp2:logfile={Path.Combine(logFolder.Path, "logFile4.log")};verbosity=normal", out success);
430text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile3.log"));
434text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile4.log"));
479string symlinkPath = Path.Combine(testFolder2.Path, symlinkName);
480string symlinkLvl2Path = Path.Combine(testFolder2.Path, symlinkLvl2Name);
BuildEnvironmentHelper_Tests.cs (19)
28string expectedMSBuildPath = Path.Combine(msbuildPath, MSBuildExeName).ToLowerInvariant();
46var msBuildPath = Path.Combine(path, MSBuildExeName);
47var msBuildConfig = Path.Combine(path, $"{MSBuildExeName}.config");
73var msBuildPath = Path.Combine(msbuildBinDirectory, MSBuildExeName);
74var msBuildConfig = Path.Combine(msbuildBinDirectory, $"{MSBuildExeName}.config");
75var vsMSBuildDirectory = Path.Combine(env.TempFolderRoot, "MSBuild");
364BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.BuildDirectory, "amd64"));
380BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.BuildDirectory, "amd64"));
405var entryProcess = Path.Combine(Path.GetTempPath(), "foo.exe");
421var msBuildAssembly = Path.Combine(env.BuildDirectory, "Microsoft.Build.dll");
438var msBuildAssembly = Path.Combine(env.BuildDirectory64, "Microsoft.Build.dll");
463public string MSBuildExePath64 => Path.Combine(BuildDirectory64, MSBuildExeName);
471BuildDirectory64 = Path.Combine(BuildDirectory, "amd64");
478File.WriteAllText(Path.Combine(BuildDirectory, file), string.Empty);
484File.WriteAllText(Path.Combine(BuildDirectory64, file), string.Empty);
506public string MSBuildExePath => Path.Combine(BuildDirectory, MSBuildExeName);
517TempFolderRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
518BuildDirectory = Path.Combine(TempFolderRoot, "MSBuild");
528Directory.CreateDirectory(Path.Combine(BuildDirectory, "amd64"));
Construction\SolutionFile_Tests.cs (14)
133string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp");
184string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp");
185string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproja.proj");
309string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp");
310string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj2.etp");
504string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp");
505string proj2Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj2.etp");
559Directory.CreateDirectory(Path.Combine(FileUtilities.TempFileDirectory, "ETPProjUpgradeTest"));
594string proj1Path = Path.Combine(FileUtilities.TempFileDirectory, "someproj.etp");
652string proj1Path = Path.Combine(Path.GetTempPath(), "someproj.etp");
699var solutionFolder = env.CreateFolder(Path.Combine(FileUtilities.GetTemporaryDirectory(), "sln"));
700env.CreateFolder(Path.Combine(solutionFolder.Path, "RelativePath"));
712proj.RelativePath.ShouldBe(Path.Combine("RelativePath", "project file"));
2355solution.ProjectsInOrder[0].AbsolutePath.ShouldBe(Path.GetFullPath(Path.Combine(Path.GetDirectoryName(solution.FullPath)!, expectedRelativePath)));
Construction\SolutionFilter_Tests.cs (16)
49TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "ClassLibrary"), createFolder: true);
50TransientTestFolder classLibSubFolder = testEnvironment.CreateFolder(Path.Combine(classLibFolder.Path, "ClassLibrary"), createFolder: true);
59TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "SimpleProject"), createFolder: true);
60TransientTestFolder simpleProjectSubFolder = testEnvironment.CreateFolder(Path.Combine(simpleProjectFolder.Path, "SimpleProject"), createFolder: true);
224TransientTestFolder src = testEnvironment.CreateFolder(Path.Combine(folder.Path, "src"), createFolder: true);
236Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build"", """ + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)) + @""", ""{69BE05E2-CBDA-4D27-9733-44E12B0F5627}""
238Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""MSBuild"", """ + Path.Combine("src", Path.GetFileName(msbuild.Path)) + @""", ""{6F92CA55-1D15-4F34-B1FE-56C0B7EB455E}""
240Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.CommandLine.UnitTests"", """ + Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)) + @""", ""{0ADDBC02-0076-4159-B351-2BF33FAA46B2}""
242Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""Microsoft.Build.Tasks.UnitTests"", """ + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)) + @""", ""{CF999BDE-02B3-431B-95E6-E88D621D9CBF}""
262""" + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!).Replace("\\", "\\\\") + @""",
263""" + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!).Replace("\\", "\\\\") + @"""
268sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!)).ShouldBeTrue();
269sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!)).ShouldBeTrue();
272(sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(commandLineUnitTests.Path)!))
273|| sp.ProjectShouldBuild(Path.Combine("src", Path.GetFileName(msbuild.Path)!))
274|| sp.ProjectShouldBuild(Path.Combine("src", "notAProject.csproj")))
Construction\SolutionProjectGenerator_Tests.cs (18)
88TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true);
97TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true);
131TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true);
146TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true);
205TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true);
220TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true);
842<ProjectConfiguration Project=`{{786E302A-96CE-43DC-B640-D6B6CC9BF6C0}}` AbsolutePath=`##temp##{Path.Combine("Project1", "A.csproj")}` BuildProjectInSolution=`True`>Debug|AnyCPU</ProjectConfiguration>
843<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>
844<ProjectConfiguration Project=`{{4A727FF8-65F2-401E-95AD-7C8BBFBE3167}}` AbsolutePath=`##temp##{Path.Combine("Project3", "C.csproj")}` BuildProjectInSolution=`True`>Debug|AnyCPU</ProjectConfiguration>
2427string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), @"
2446ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), @"
2483string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), @"
2502ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), @"
2558string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), @"
2577string projectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, projectName), $@"
2587ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.props"), $@"
2594ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.targets"), $@"
2658projectInSolution.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 }
377File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.cs"), "");
387File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.cs"), "");
437File.WriteAllText(Path.Combine(projectDirectory1, $"1.{evaluationCount}.cs"), "");
438File.WriteAllText(Path.Combine(projectDirectory2, $"2.{evaluationCount}.cs"), "");
444Path.Combine(projectDirectory1, "1"),
447<i Include=`{Path.Combine("**", "*.cs")}` />
451Path.Combine(projectDirectory2, "2"),
454<i Include=`{Path.Combine("**", "*.cs")}` />
471File.WriteAllText(Path.Combine(projectDirectory1, $"1.{evaluationCount}.cs"), "");
472File.WriteAllText(Path.Combine(projectDirectory2, $"2.{evaluationCount}.cs"), "");
492File.WriteAllText(Path.Combine(project1GlobDirectory, $"1.{evaluationCount}.cs"), "");
493File.WriteAllText(Path.Combine(project2GlobDirectory, $"2.{evaluationCount}.cs"), "");
499Path.Combine(project1Directory, "1"),
506Path.Combine(project2Directory, "2"),
528File.WriteAllText(Path.Combine(project1GlobDirectory, $"1.{evaluationCount}.cs"), "");
529File.WriteAllText(Path.Combine(project2GlobDirectory, $"2.{evaluationCount}.cs"), "");
554File.WriteAllText(Path.Combine(project1GlobDirectory, $"{evaluationCount}.cs"), "");
561Path.Combine(project1Directory.Path, "1"),
569Path.Combine(project2Directory.Path, "2"),
590.Select(i => Path.Combine(project1Directory.Path, i))
599File.WriteAllText(Path.Combine(project1GlobDirectory, $"{evaluationCount}.cs"), "");
621File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), "");
627Path.Combine(project1Directory.Path, "1"),
634Path.Combine(project2Directory.Path, "2"),
651.Select(i => Path.Combine(globFixedDirectoryPart, i))
659File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), "");
685? Path.Combine("..", "GlobDirectory")
701prependedGlobExpansion[i] = Path.Combine(itemSpecDirectoryPart, globExpansion[i]);
725File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), "");
735File.WriteAllText(Path.Combine(globDirectory.Path, $"{evaluationCount}.cs"), "");
762File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.props"), $"<Project><ItemGroup><i Include=`{evaluationCount}.cs`/></ItemGroup></Project>".Cleanup());
772File.WriteAllText(Path.Combine(projectDirectory, $"{evaluationCount}.props"), $"<Project><ItemGroup><i Include=`{evaluationCount}.cs`/></ItemGroup></Project>".Cleanup());
803var theFile = Path.Combine(projectDirectory, "0.cs");
957projectContents.Select((p, i) => new ProjectSpecification(Path.Combine(_env.DefaultTestDirectory.Path, $"Project{i}.proj"), p)),
Evaluation\Evaluator_Tests.cs (108)
88yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}')""", true };
89yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false };
90yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "projectThatDoesNotExist.csproj")}""", false };
91yield return new object[] { $@"Project=""{Path.Combine("nonexistentDirectory", "*.*proj")}""", true };
94yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}')""", true };
95yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false };
96yield return new object[] { $@"Project=""{Path.Combine("realFolder", "projectThatDoesNotExist.csproj")}""", false };
97yield return new object[] { $@"Project=""{Path.Combine("realFolder", "*.*proj")}""", true };
100yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}"" Condition=""Exists('{Path.Combine("realFolder", "realFile.csproj")}')""", true };
101yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}"" Condition=""'true'""", true };
102yield return new object[] { $@"Project=""{Path.Combine("realFolder", "realFile.csproj")}""", true };
103yield return new object[] { $@"Project=""{Path.Combine("realFolder", "*.*proj")}""", true };
112yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "*.*proj")}""", true };
278string targetDirectory = Path.Combine(tempPath, "VerifyConditionsInsideOutsideTargets");
279string subDirectory = Path.Combine(targetDirectory, "subdir");
281string testTargetPath = Path.Combine(targetDirectory, "test.targets");
282string targetDirectoryTargetsPath = Path.Combine(targetDirectory, "targetdir.targets");
283string targetDirectoryTargetsPath2 = Path.Combine(targetDirectory, "targetdir2.targets");
284string subdirProjPath = Path.Combine(subDirectory, "test.proj");
285string projectDirectoryTargetsPath = Path.Combine(subDirectory, "projdir.targets");
286string projectDirectoryTargetsPath2 = Path.Combine(subDirectory, "projdir2.targets");
287string textTextPath = Path.Combine(targetDirectory, "test.txt");
407string targetDirectory = Path.Combine(tempPath, "VerifyConditionsInsideOutsideTargets");
408string subDirectory = Path.Combine(targetDirectory, "subdir");
410string testTargetPath = Path.Combine(targetDirectory, "test.targets");
411string targetDirectoryTargetsPath = Path.Combine(targetDirectory, "targetdir.targets");
412string targetDirectoryTargetsPath2 = Path.Combine(targetDirectory, "targetdir2.targets");
413string subdirProjPath = Path.Combine(subDirectory, "test.proj");
414string projectDirectoryTargetsPath = Path.Combine(subDirectory, "projdir.targets");
415string projectDirectoryTargetsPath2 = Path.Combine(subDirectory, "projdir2.targets");
416string textTextPath = Path.Combine(targetDirectory, "test.txt");
434logger.AssertLogContains("PropertyOutsideTarget: " + Path.Combine("..", "test.txt"));
436logger.AssertLogContains("PropertyInsideTarget: " + Path.Combine("..", "test.txt"));
437logger.AssertLogContains("PropertyGroupInsideTarget: " + Path.Combine("..", "test.txt"));
479string targetDirectory = Path.Combine(tempPath, "VerifyUsedUnInitializedPropertyInImports");
481string targetAPath = Path.Combine(targetDirectory, "targetA.targets");
482string targetBPath = Path.Combine(targetDirectory, "targetB.targets");
483string projectPath = Path.Combine(targetDirectory, "test.proj");
526string targetDirectory = Path.Combine(tempPath, "EmptyPropertyIsThenSet");
527string testTargetPath = Path.Combine(targetDirectory, "test.proj");
568string targetDirectory = Path.Combine(tempPath, "EmptyPropertyIsThenSet");
569string testTargetPath = Path.Combine(targetDirectory, "test.proj");
614string targetDirectory = Path.Combine(tempPath, "SetPropertyToItself");
615string testTargetPath = Path.Combine(targetDirectory, "test.proj");
660string targetDirectory = Path.Combine(tempPath, "UsePropertyInCondition");
661string testTargetPath = Path.Combine(targetDirectory, "test.proj");
704string targetDirectory = Path.Combine(tempPath, "UsePropertyBeforeSet");
705string testTargetPath = Path.Combine(targetDirectory, "test.proj");
750string targetDirectory = Path.Combine(tempPath, "UsePropertyBeforeSetDuplicates");
751string testTargetPath = Path.Combine(targetDirectory, "test.proj");
1097directory = Path.Combine(Path.GetTempPath(), "fol$der");
1098directory2 = Path.Combine(Path.GetTempPath(), "fol$der" + Path.DirectorySeparatorChar + "fol$der2");
1101string importPathRelativeEscaped = Path.Combine("fol$(x)$der2", "Escap%3beab$(x)leChar$ac%3BtersInI*tPa?h");
1102string importRelative1 = Path.Combine("fol$der2", "Escap;eableChar$ac;tersInImportPath");
1103string importRelative2 = Path.Combine("fol$der2", "Escap;eableChar$ac;tersInI_XXXX_tPath");
1104importPath1 = Path.Combine(directory, importRelative1);
1105importPath2 = Path.Combine(directory, importRelative2);
1126projectPath = Path.Combine(directory, "my.proj"); // project path has $ in too
2189string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative");
2190string directory2 = Path.Combine(directory, "sub");
2192VerifyImportTargetRelativePath(directory, directory2, new string[] { Path.Combine("**", "*.targets") });
2201string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative2");
2202string directory2 = Path.Combine(directory, "sub");
2207new string[] { Path.Combine(directory2, "*.targets"), Path.Combine(directory, "*.targets") });
2216string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative3");
2217string directory2 = Path.Combine(directory, "sub");
2238string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsFullPath");
2239string directory2 = Path.Combine(directory, "sub");
2242string file1 = Path.Combine(directory, "1.targets");
2243string file2 = Path.Combine(directory2, "2.targets");
2244string file3 = Path.Combine(directory2, "3.cpp.targets");
3309string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyPropertySetInImportStillOverrides");
3320string primaryProject = Path.Combine(projectDirectory, "project.proj");
3321string import = Path.Combine(projectDirectory, "import.proj");
3370string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportDoesntAffectParentProjectAboveIt");
3381string primaryProject = Path.Combine(projectDirectory, "project.proj");
3382string import = Path.Combine(projectDirectory, "import.proj");
3430string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportAffectsParentProjectBelowIt");
3441string primaryProject = Path.Combine(projectDirectory, "project.proj");
3442string import = Path.Combine(projectDirectory, "import.proj");
3502string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyUnionBetweenImports");
3513string primaryProject = Path.Combine(projectDirectory, "project.proj");
3514string import = Path.Combine(projectDirectory, "import.proj");
3575string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDuplicateTreatAsLocalProperty");
3586string primaryProject = Path.Combine(projectDirectory, "project.proj");
3587string import = Path.Combine(projectDirectory, "import.proj");
3640string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyGlobalPropertyPassedToP2P");
3651string primaryProject = Path.Combine(projectDirectory, "project.proj");
3652string project2 = Path.Combine(projectDirectory, "project2.proj");
3702string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyLocalPropertyPropagatesIfExplicitlyPassedToP2P");
3713string primaryProject = Path.Combine(projectDirectory, "project.proj");
3714string project2 = Path.Combine(projectDirectory, "project2.proj");
4277string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDTDProcessingIsDisabled");
4288string projectFilename = Path.Combine(projectDirectory, "project.proj");
4432string projectDirectory = Path.Combine(Path.GetTempPath(), "ThrownInvalidProjectExceptionProperlyHandled");
4443string primaryProject = Path.Combine(projectDirectory, "project.proj");
4444string import = Path.Combine(projectDirectory, "import.proj");
4968string targetDirectory = Path.Combine(tempPath, "LogPropertyAssignments");
4969string testTargetPath = Path.Combine(targetDirectory, "test.proj");
5116string file0 = Path.Combine(directory, "my.proj");
5117file1 = Path.Combine(directory, "1.targets");
5118file2 = Path.Combine(directory2, "2.targets");
5119file3 = Path.Combine(directory2, "3.cpp.targets");
5120file4 = Path.Combine(directory2, "4.nottargets");
Evaluation\Expander_Tests.cs (29)
265Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"seconddirectory"), itemsDir[0].EvaluatedInclude);
285Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, itemsTrue[5].EvaluatedInclude);
341Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, result);
658Assert.Equal(Path.Combine("firstdirectory", "seconddirectory") + Path.DirectorySeparatorChar, itemsTrue[5].EvaluatedInclude);
717Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"secondd;rectory"), items[5].EvaluatedInclude);
718Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), @"someo;herplace"), items[6].EvaluatedInclude);
761pi.SetMetadata("Meta9", Path.Combine("seconddirectory", "file.ext"));
762pi.SetMetadata("Meta10", String.Format(";{0};{1};", Path.Combine("someo%3bherplace", "foo.txt"), Path.Combine("secondd%3brectory", "file.ext")));
2126pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo")));
2127pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar));
2261pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo")));
2262pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar));
2481pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt")));
2626pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt")));
2647Path.Combine(s_rootPathPrefix, "foo goo") + "`, `$(File)`))",
2660pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt")));
2665Path.Combine(s_rootPathPrefix, "foo baz") + @"`, `$(File)`))",
2678pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt")));
2683Path.Combine(s_rootPathPrefix, "foo baz") + @" `, `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3336string directoryStart = Path.Combine(tempPath, "one\\two\\three\\four\\five");
3566$"{Path.GetFullPath(Path.Combine("one", "two"))}{Path.DirectorySeparatorChar}",
4288string path = Path.Combine("foo", "bar");
4818var expectedAlphaSquigglePath = Path.Combine("Alpha", ".squiggle");
4819var expectedBetaSquigglePath = Path.Combine("Beta", ".squiggle");
4865var alphaOnePath = Path.Combine("alpha", "One.cs");
4866var alphaThreePath = Path.Combine("alpha", "Three.cs");
4906var alphaBetaPath = Path.Combine("alpha", "beta");
4907var alphaDeltaPath = Path.Combine("alpha", "delta");
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)
706directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
742<Import Project=""" + Path.Combine(directoryXmlCommentFriendly, "*.targets") + @""">
744" + Path.Combine(directoryXmlCommentFriendly, "1.targets") + @"
757<Import Project=""" + Path.Combine(directoryXmlCommentFriendly, "*.targets") + @""">
759" + Path.Combine(directoryXmlCommentFriendly, "2.targets") + @"
856string sdkPropsPath = Path.Combine(testSdkDirectory, "Sdk.props");
857string sdkTargetsPath = Path.Combine(testSdkDirectory, "Sdk.targets");
970string importedPropsPath = Path.Combine(testDirectory, "Import.props");
977string projectPath = Path.Combine(testDirectory, "TestProject.csproj");
1061string sdkPropsPath1 = Path.Combine(sdk1, "Sdk.props");
1062string sdkTargetsPath1 = Path.Combine(sdk1, "Sdk.targets");
1075string sdkPropsPath2 = Path.Combine(sdk2, "Sdk.props");
1076string sdkTargetsPath2 = Path.Combine(sdk2, "Sdk.targets");
Evaluation\SdkResultEvaluation_Tests.cs (14)
129string projectPath = Path.Combine(_testFolder, "project.proj");
158Path.Combine(_testFolder, "Sdk"),
165new[] { Path.Combine(_testFolder, "Sdk") },
190string projectPath = Path.Combine(_testFolder, "project.proj");
201Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk"));
253Path.Combine(_testFolder, "Sdk1"),
254Path.Combine(_testFolder, "Sdk2")
278string projectPath = Path.Combine(_testFolder, "project.proj");
289Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk1"));
300Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk2"));
354new[] { Path.Combine(_testFolder, "Sdk") },
370string projectPath = Path.Combine(_testFolder, "project.proj");
381Directory.CreateDirectory(Path.Combine(_testFolder, "Sdk"));
447string 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)
66File.WriteAllBytes(Path.Combine(testFolder.Path, file), new byte[1]);
80TransientTestFolder tf2 = _env.CreateFolder(Path.Combine(testFolder.Path, "subfolder"));
81string symlinkPath = Path.Combine(tf2.Path, "mySymlink");
105foreach (string fullPath in GetFilesComplexGlobbingMatchingInfo.FilesToCreate.Select(i => Path.Combine(testFolder.Path, i.ToPlatformSlash())))
619return new string[] { Path.Combine(path, "LongDirectoryName") };
626return new string[] { Path.Combine(path, "LongSubDirectory") };
633return new string[] { Path.Combine(path, "LongFileName.txt") };
640return new string[] { Path.Combine(path, "pomegranate") };
996ValidateFileMatch(Path.Combine(".", "File.txt"), Path.Combine(".", "File.txt"), false);
997ValidateNoFileMatch(Path.Combine(".", "File.txt"), Path.Combine(".", "File.bin"), false);
1021ValidateFileMatch(Path.Combine("**", "*.cs"), Path.Combine("dir1", "dir2", "file.cs"), true);
1022ValidateFileMatch(Path.Combine("**", "*.cs"), "file.cs", true);
1225string workingPathSubfolder = Path.Combine(workingPath, "SubDir");
1226string offendingPattern = Path.Combine(workingPath, @"*\..\bar");
1239string fileName = Path.Combine(workingPath, "MyFile.txt");
1240string offendingPattern = Path.Combine(workingPath, @"**\**");
1256string workingPathSubdir = Path.Combine(workingPath, "subdir");
1257string workingPathSubdirBing = Path.Combine(workingPathSubdir, "bing");
1259string offendingPattern = Path.Combine(workingPath, @"**\sub*\*.");
2111if (normalizedCandidate == Path.Combine(path, pattern))
2461return new string[] { Path.Combine(path, pattern) };
FileUtilities_Tests.cs (5)
419Assert.Equal(fullPath, FileUtilities.NormalizePath(Path.Combine(currentDirectory, filePath)));
433Assert.Equal(fullPath, FileUtilities.NormalizePath(Path.Combine(currentDirectory, filePath)));
813string directory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "subfolder");
972Assert.Equal(Path.Combine(root, "1"), FileUtilities.GetFolderAbove(path, 4));
986Path.Combine(root, "path1"),
Graph\GetCompatiblePlatformGraph_Tests.cs (6)
365TransientTestFolder project1Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, firstProjectName), createFolder: true);
366TransientTestFolder project1SubFolder = testEnvironment.CreateFolder(Path.Combine(project1Folder.Path, firstProjectName), createFolder: true);
380TransientTestFolder project2Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, secondProjectName), createFolder: true);
381TransientTestFolder project2SubFolder = testEnvironment.CreateFolder(Path.Combine(project2Folder.Path, secondProjectName), createFolder: true);
391TransientTestFolder project3Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, thirdProjectName), createFolder: true);
392TransientTestFolder project3SubFolder = testEnvironment.CreateFolder(Path.Combine(project3Folder.Path, thirdProjectName), createFolder: true);
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.Core (135)
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);
1996using (var xmlwriter = new XmlTextWriter(System.IO.Path.Combine(s_logPath, fileName), Encoding.UTF8))
2038using (var fileWriter = new StreamWriter(System.IO.Path.Combine(s_logPath, fileName), append))
2199string logPath = System.IO.Path.Combine(
FileUtilities.cs (9)
74string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
131cacheDirectory = Path.Combine(TempFileDirectory, String.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", Process.GetCurrentProcess().Id, AppDomain.CurrentDomain.Id));
182string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid().ToString("N")}_testFile.txt");
471return NormalizePath(Path.Combine(directory, file));
683return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString())))
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
834var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1269return paths.Aggregate(root, Path.Combine);
1441string 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 (643)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (189)
191protected static readonly string s_myProjectPath = Path.Combine(s_rootPathPrefix, "MyProject");
200protected static readonly string s_myMissingAssemblyRelPath = Path.Combine("MyProject", "MyMissingAssembly.dll");
201protected static readonly string s_myPrivateAssemblyRelPath = Path.Combine("MyProject", "MyPrivateAssembly.exe");
203protected static readonly string s_frameworksPath = Path.Combine(s_rootPathPrefix, "Frameworks");
205protected static readonly string s_myComponents2RootPath = Path.Combine(s_rootPathPrefix, "MyComponents2");
206protected static readonly string s_myComponentsRootPath = Path.Combine(s_rootPathPrefix, "MyComponents");
207protected static readonly string s_myComponents10Path = Path.Combine(s_myComponentsRootPath, "1.0");
208protected static readonly string s_myComponents20Path = Path.Combine(s_myComponentsRootPath, "2.0");
209protected static readonly string s_myComponentsMiscPath = Path.Combine(s_myComponentsRootPath, "misc");
211protected static readonly string s_myComponentsV05Path = Path.Combine(s_myComponentsRootPath, "v0.5");
212protected static readonly string s_myComponentsV10Path = Path.Combine(s_myComponentsRootPath, "v1.0");
213protected static readonly string s_myComponentsV20Path = Path.Combine(s_myComponentsRootPath, "v2.0");
214protected static readonly string s_myComponentsV30Path = Path.Combine(s_myComponentsRootPath, "v3.0");
216protected static readonly string s_unifyMeDll_V05Path = Path.Combine(s_myComponentsV05Path, "UnifyMe.dll");
217protected static readonly string s_unifyMeDll_V10Path = Path.Combine(s_myComponentsV10Path, "UnifyMe.dll");
218protected static readonly string s_unifyMeDll_V20Path = Path.Combine(s_myComponentsV20Path, "UnifyMe.dll");
219protected static readonly string s_unifyMeDll_V30Path = Path.Combine(s_myComponentsV30Path, "UnifyMe.dll");
221protected static readonly string s_myComponents40ComponentPath = Path.Combine(s_myComponentsRootPath, "4.0Component");
222protected static readonly string s_40ComponentDependsOnOnlyv4AssembliesDllPath = Path.Combine(s_myComponents40ComponentPath, "DependsOnOnlyv4Assemblies.dll");
224protected static readonly string s_myLibrariesRootPath = Path.Combine(s_rootPathPrefix, "MyLibraries");
225protected static readonly string s_myLibraries_V1Path = Path.Combine(s_myLibrariesRootPath, "v1");
226protected static readonly string s_myLibraries_V2Path = Path.Combine(s_myLibrariesRootPath, "v2");
227protected static readonly string s_myLibraries_V1_EPath = Path.Combine(s_myLibraries_V1Path, "E");
229protected static readonly string s_myLibraries_ADllPath = Path.Combine(s_myLibrariesRootPath, "A.dll");
230protected static readonly string s_myLibraries_BDllPath = Path.Combine(s_myLibrariesRootPath, "B.dll");
231protected static readonly string s_myLibraries_CDllPath = Path.Combine(s_myLibrariesRootPath, "C.dll");
232protected static readonly string s_myLibraries_TDllPath = Path.Combine(s_myLibrariesRootPath, "T.dll");
234protected static readonly string s_myLibraries_V1_DDllPath = Path.Combine(s_myLibraries_V1Path, "D.dll");
235protected static readonly string s_myLibraries_V1_E_EDllPath = Path.Combine(s_myLibraries_V1_EPath, "E.dll");
236protected static readonly string s_myLibraries_V2_DDllPath = Path.Combine(s_myLibraries_V2Path, "D.dll");
237protected static readonly string s_myLibraries_V1_GDllPath = Path.Combine(s_myLibraries_V1Path, "G.dll");
238protected static readonly string s_myLibraries_V2_GDllPath = Path.Combine(s_myLibraries_V2Path, "G.dll");
243protected static readonly string s_regress444809RootPath = Path.Combine(s_rootPathPrefix, "Regress444809");
244protected static readonly string s_regress444809_ADllPath = Path.Combine(s_regress444809RootPath, "A.dll");
245protected static readonly string s_regress444809_BDllPath = Path.Combine(s_regress444809RootPath, "B.dll");
246protected static readonly string s_regress444809_CDllPath = Path.Combine(s_regress444809RootPath, "C.dll");
247protected static readonly string s_regress444809_DDllPath = Path.Combine(s_regress444809RootPath, "D.dll");
249protected static readonly string s_regress444809_V2RootPath = Path.Combine(s_regress444809RootPath, "v2");
250protected static readonly string s_regress444809_V2_ADllPath = Path.Combine(s_regress444809_V2RootPath, "A.dll");
252protected static readonly string s_regress442570_RootPath = Path.Combine(s_rootPathPrefix, "Regress442570");
253protected static readonly string s_regress442570_ADllPath = Path.Combine(s_regress442570_RootPath, "A.dll");
254protected static readonly string s_regress442570_BDllPath = Path.Combine(s_regress442570_RootPath, "B.dll");
256protected static readonly string s_myAppRootPath = Path.Combine(s_rootPathPrefix, "MyApp");
257protected static readonly string s_myApp_V05Path = Path.Combine(s_myAppRootPath, "v0.5");
258protected static readonly string s_myApp_V10Path = Path.Combine(s_myAppRootPath, "v1.0");
259protected static readonly string s_myApp_V20Path = Path.Combine(s_myAppRootPath, "v2.0");
260protected static readonly string s_myApp_V30Path = Path.Combine(s_myAppRootPath, "v3.0");
275protected static readonly string s_assemblyFolder_RootPath = Path.Combine(s_rootPathPrefix, "AssemblyFolder");
276protected static readonly string s_assemblyFolder_SomeAssemblyDllPath = Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.dll");
377Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"),
378Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"),
379Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"),
380Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"),
381Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"),
382Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"),
383Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"),
384Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"),
385Path.Combine(s_myVersion20Path, "System.Data.dll"),
386Path.Combine(s_myVersion20Path, "System.Xml.dll"),
387Path.Combine(s_myVersion20Path, "System.Xml.pdb"),
388Path.Combine(s_myVersion20Path, "System.Xml.xml"),
396Path.Combine(s_rootPathPrefix, s_myPrivateAssemblyRelPath),
397Path.Combine(s_myProjectPath, "MyCopyLocalAssembly.dll"),
398Path.Combine(s_myProjectPath, "MyDontCopyLocalAssembly.dll"),
399Path.Combine(s_myVersion20Path, "BadImage.dll"), // An assembly that will give a BadImageFormatException from GetAssemblyName
400Path.Combine(s_myVersion20Path, "BadImage.pdb"),
401Path.Combine(s_myVersion20Path, "MyGacAssembly.dll"),
402Path.Combine(s_myVersion20Path, "MyGacAssembly.pdb"),
404Path.Combine(s_myVersion20Path, "System.dll"),
405Path.Combine(s_myVersion40Path, "System.dll"),
406Path.Combine(s_myVersion90Path, "System.dll"),
407Path.Combine(s_myVersion20Path, "mscorlib.dll"),
408Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"),
410Path.Combine(s_myProjectPath, "mscorlib.dll"), // This is an mscorlib.dll that has no metadata (i.e. GetAssemblyName returns null)
411Path.Combine(s_myProjectPath, "System.Data.dll"), // This is a System.Data.dll that has the wrong pkt, it shouldn't be matched.
412Path.Combine(s_myComponentsRootPath, "MyGrid.dll"), // A vendor component that we should find in the registry.
430Path.Combine(s_myComponentsV30Path, "MyControlWithFutureTargetNDPVersion.dll"), // The future version of a component.
431Path.Combine(s_myComponentsV20Path, "MyControlWithFutureTargetNDPVersion.dll"), // The current version of a component.
432Path.Combine(s_myComponentsV10Path, "MyNDP1Control.dll"), // A control that only has an NDP 1.0 version
433Path.Combine(s_myComponentsV20Path, "MyControlWithPastTargetNDPVersion.dll"), // The current version of a component.
434Path.Combine(s_myComponentsV10Path, "MyControlWithPastTargetNDPVersion.dll"), // The past version of a component.
438Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), // A devices mscorlib.
455Path.Combine(s_myAppRootPath, "DependsOnSimpleA.dll"),
503Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.pdb"),
504Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.xml"),
505Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.pri"),
506Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.licenses"),
507Path.Combine(s_assemblyFolder_RootPath, "SomeAssembly.config"),
516Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"),
517Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"),
518Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"),
519Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"),
520Path.Combine(s_myAppRootPath, "DependsOnWeaklyNamedUnified.dll"),
521Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"),
527Path.Combine(s_myComponentsMiscPath, "DependsOnOnlyv4Assemblies.dll"), // Only depends on 4.0.0 assemblies
528Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), // Is in redist list and is a 9.0 assembly
529Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), // Depends on 9.0 assemblies
530Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), // Depends on 9.0 assemblies
531Path.Combine(s_myComponents10Path, "DependsOn9.dll"), // Depends on 9.0 assemblies
532Path.Combine(s_myComponents20Path, "DependsOn9.dll"), // Depends on 9.0 assemblies
550Path.Combine(s_myComponentsRootPath, "V.dll"),
551Path.Combine(s_myComponents2RootPath, "W.dll"),
552Path.Combine(s_myComponentsRootPath, "X.dll"),
553Path.Combine(s_myComponentsRootPath, "X.pdb"),
554Path.Combine(s_myComponentsRootPath, "Y.dll"),
555Path.Combine(s_myComponentsRootPath, "Z.dll"),
557Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"),
558Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"),
914Path.Combine(path, "en"), Path.Combine(path, "en-GB"), Path.Combine(path, "xx")
923Path.Combine(path, "en"), Path.Combine(path, "en-GB"), Path.Combine(path, "xx")
1077String.Equals(path, Path.Combine(s_myVersion20Path, "BadImage.dll"), StringComparison.OrdinalIgnoreCase))
1079throw new System.BadImageFormatException(@"The format of the file '" + Path.Combine(s_myVersion20Path, "BadImage.dll") + "' is invalid");
1084String.Equals(path, Path.Combine(s_myProjectPath, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)
1085|| String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)
1086|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase))
1094String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)
1095|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase))
1106if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase))
1111if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase))
1116if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase))
1204if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), StringComparison.OrdinalIgnoreCase))
1209if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), StringComparison.OrdinalIgnoreCase))
1214if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.XML.dll"), StringComparison.OrdinalIgnoreCase))
1221if (String.Equals(path, Path.Combine(s_myProjectPath, "System.Xml.dll"), StringComparison.OrdinalIgnoreCase))
1228if (String.Equals(path, Path.Combine(s_myProjectPath, "System.Data.dll"), StringComparison.OrdinalIgnoreCase))
1234if (path.EndsWith(Path.Combine(s_myVersion20Path, "MyGacAssembly.dll")))
1240if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
1246if (String.Equals(path, Path.Combine(s_myVersion40Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
1252if (String.Equals(path, Path.Combine(s_myVersion90Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
1260String.Equals(path, Path.Combine(s_myVersion20Path, "System.Data.dll"), StringComparison.OrdinalIgnoreCase))
1301if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), StringComparison.OrdinalIgnoreCase))
1306if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
1321if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
1326if (String.Equals(path, Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
1331if (String.Equals(path, Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
1382if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), StringComparison.OrdinalIgnoreCase))
1388if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase))
1394if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), StringComparison.OrdinalIgnoreCase))
1399if (String.Equals(path, Path.Combine(s_myComponents10Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase))
1404if (String.Equals(path, Path.Combine(s_myComponents20Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase))
1439if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.pdb"), StringComparison.OrdinalIgnoreCase))
1487if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "V.dll"), StringComparison.OrdinalIgnoreCase))
1491if (String.Equals(path, Path.Combine(s_myComponents2RootPath, "W.dll"), StringComparison.OrdinalIgnoreCase))
1495if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.dll"), StringComparison.OrdinalIgnoreCase))
1500if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Z.dll"), StringComparison.OrdinalIgnoreCase))
1505if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Y.dll"), StringComparison.OrdinalIgnoreCase))
1510if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), StringComparison.OrdinalIgnoreCase))
1515if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), StringComparison.OrdinalIgnoreCase))
1824if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase))
1828else if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase))
1832else if (String.Equals(path, Path.Combine(s_frameworksPath, "DependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase))
1836else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase))
1840else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase))
1844else if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase))
1859if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo4Framework.dll"), StringComparison.OrdinalIgnoreCase))
1867if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo45Framework.dll"), StringComparison.OrdinalIgnoreCase))
1875if (String.Equals(path, Path.Combine(s_frameworksPath, "IndirectDependsOnFoo35Framework.dll"), StringComparison.OrdinalIgnoreCase))
1997if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
2093String.Equals(path, Path.Combine(s_myVersion20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase)
2094|| String.Equals(path, Path.Combine(s_myVersionPocket20Path, "mscorlib.dll"), StringComparison.OrdinalIgnoreCase))
2104if (String.Equals(path, Path.Combine(s_myAppRootPath, "DependsOnSimpleA.dll"), StringComparison.OrdinalIgnoreCase))
2152if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "MyGrid.dll"), StringComparison.OrdinalIgnoreCase))
2213if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnWeaklyNamedUnified.dll"), StringComparison.OrdinalIgnoreCase))
2221if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll"), StringComparison.OrdinalIgnoreCase))
2229if (String.Equals(path, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
2237if (String.Equals(path, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
2245if (String.Equals(path, Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
2253if (String.Equals(path, Path.Combine(s_myApp_V30Path, "DependsOnUnified.dll"), StringComparison.OrdinalIgnoreCase))
2277if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "ReferenceVersion9.dll"), StringComparison.OrdinalIgnoreCase))
2287if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase))
2297if (String.Equals(path, Path.Combine(s_myComponentsMiscPath, "DependsOn9Also.dll"), StringComparison.OrdinalIgnoreCase))
2305if (String.Equals(path, Path.Combine(s_myComponents10Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase))
2313if (String.Equals(path, Path.Combine(s_myComponents20Path, "DependsOn9.dll"), StringComparison.OrdinalIgnoreCase))
2346if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "V.dll"), StringComparison.OrdinalIgnoreCase))
2354if (String.Equals(path, Path.Combine(s_myComponents2RootPath, "W.dll"), StringComparison.OrdinalIgnoreCase))
2359if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "X.dll"), StringComparison.OrdinalIgnoreCase))
2367if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Z.dll"), StringComparison.OrdinalIgnoreCase))
2372if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Y.dll"), StringComparison.OrdinalIgnoreCase))
2380if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "Microsoft.Build.dll"), StringComparison.OrdinalIgnoreCase))
2385if (String.Equals(path, Path.Combine(s_myComponentsRootPath, "DependsOnMSBuild12.dll"), StringComparison.OrdinalIgnoreCase))
2393if (String.Equals(path, Path.Combine(s_myVersion20Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
2402if (String.Equals(path, Path.Combine(s_myVersion40Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
2411if (String.Equals(path, Path.Combine(s_myVersion90Path, "System.dll"), StringComparison.OrdinalIgnoreCase))
2989string redistListPath = Path.Combine(tempPath, Guid.NewGuid() + ".xml");
2990string rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".RarCache");
AssemblyDependency\SuggestedRedirects.cs (2)
207warningMessage.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"))));
252warningMessage.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)
228Directory.Exists(Path.Combine(destinationFolder.Path, "source0")).ShouldBeTrue();
229Directory.Exists(Path.Combine(destinationFolder.Path, "source1")).ShouldBeTrue();
957string destinationFolder = Path.Combine(Path.GetTempPath(), "2A333ED756AF4dc392E728D0F874A398");
958string destination1 = Path.Combine(destinationFolder, Path.GetFileName(source1));
959string destination2 = Path.Combine(destinationFolder, Path.GetFileName(source2));
1574string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A392");
1575string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A393");
1577string validOutFile = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A394");
1662string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395");
1733string file = Path.Combine(currdir, filename);
1785string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395");
1786string invalidFile = NativeMethodsShared.IsUnixLike ? Path.Combine(temp, "!@#$%^&*()|") : "!@#$%^&*()|";
1850string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
1851string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
1922string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
1923string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
1985new TaskItem(Path.Combine(tempPath, "a.cs")),
1986new TaskItem(Path.Combine(tempPath, "b.cs")),
1987new TaskItem(Path.Combine(tempPath, "a.cs")),
1988new TaskItem(Path.Combine(tempPath, "a.cs")),
2006DestinationFolder = new TaskItem(Path.Combine(tempPath, "foo")),
2042new TaskItem(Path.Combine(tempPath, "a.cs")),
2043new TaskItem(Path.Combine(tempPath, "b.cs")),
2044new TaskItem(Path.Combine(tempPath, "a.cs")),
2045new TaskItem(Path.Combine(tempPath, "a.cs")),
2046new TaskItem(Path.Combine(tempPath, "a.cs")),
2059new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs
2060new TaskItem(Path.Combine(tempPath, @"xa.cs")), // b.cs -> xa.cs should copy because it's a different source
2061new TaskItem(Path.Combine(tempPath, @"xb.cs")), // a.cs -> xb.cs should copy because it's a different destination
2062new 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
2063new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should not copy because it's the same source
2092string xaPath = Path.Combine(tempPath, "xa.cs");
2095Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[0].Key.Name);
2096Assert.Equal(Path.Combine(tempPath, "b.cs"), xaCopies[1].Key.Name);
2097Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[2].Key.Name);
2099string xbPath = Path.Combine(tempPath, "xb.cs");
2102Assert.Equal(Path.Combine(tempPath, "a.cs"), xbCopies[0].Key.Name);
2116string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
2117string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A399");
2118string outFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A400");
2554string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
2555string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2624string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
2625string destFile1 = Path.Combine(destFolder, Path.GetFileName(sourceFile1));
2626string destFile2 = Path.Combine(destFolder, Path.GetFileName(sourceFile2));
2631string nothingFile = Path.Combine(destFolder, "nothing.txt");
2728string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
2729string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2756string destLink = Path.Combine(destFolder, Path.GetFileNameWithoutExtension(sourceFile) + "." + n);
2810string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
2811string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2876string destFolder = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
2877string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
2945string destFile = Path.Combine(destFolder.Path, "The Destination");
GetSDKReference_Tests.cs (69)
52string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies");
53sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\");
54string referenceAssemblyDirectoryConfigx86 = Path.Combine(sdkDirectory, "References\\Retail\\X86");
55string referenceAssemblyDirectoryConfigx64 = Path.Combine(sdkDirectory, "References\\Retail\\X64");
56string referenceAssemblyDirectoryConfigNeutral = Path.Combine(sdkDirectory, "References\\Retail\\Neutral");
57string referenceAssemblyDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\Neutral");
58string referenceAssemblyDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\X86");
59string referenceAssemblyDirectoryCommonConfigX64 = Path.Combine(sdkDirectory, "References\\CommonConfiguration\\X64");
61string redistDirectoryConfigx86 = Path.Combine(sdkDirectory, "Redist\\Retail\\X86");
62string redistDirectoryConfigx64 = Path.Combine(sdkDirectory, "Redist\\Retail\\X64");
63string redistDirectoryConfigNeutral = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral");
64string redistDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral");
65string redistDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\X86");
66string redistDirectoryCommonConfigX64 = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\X64");
68string designTimeDirectoryConfigx86 = Path.Combine(sdkDirectory, "DesignTime\\Retail\\X86");
69string designTimeDirectoryConfigNeutral = Path.Combine(sdkDirectory, "DesignTime\\Retail\\Neutral");
70string designTimeDirectoryCommonConfigNeutral = Path.Combine(sdkDirectory, "DesignTime\\CommonConfiguration\\Neutral");
71string designTimeDirectoryCommonConfigX86 = Path.Combine(sdkDirectory, "DesignTime\\CommonConfiguration\\X86");
86Directory.CreateDirectory(Path.Combine(redistDirectoryConfigNeutral, "ASubDirectory\\TwoDeep"));
96string testWinMD = Path.Combine(referenceAssemblyDirectoryConfigx86, "A.winmd");
97string testWinMD64 = Path.Combine(referenceAssemblyDirectoryConfigx64, "A.winmd");
98string testWinMDNeutral = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "B.winmd");
99string testWinMDNeutralWinXML = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "B.xml");
100string testWinMDCommonConfigurationx86 = Path.Combine(referenceAssemblyDirectoryCommonConfigX86, "C.winmd");
101string testWinMDCommonConfigurationx64 = Path.Combine(referenceAssemblyDirectoryCommonConfigX64, "C.winmd");
102string testWinMDCommonConfigurationNeutral = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "D.winmd");
103string testWinMDCommonConfigurationNeutralDupe = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "A.winmd");
105string testRA = Path.Combine(referenceAssemblyDirectoryConfigx86, "E.dll");
106string testRA64 = Path.Combine(referenceAssemblyDirectoryConfigx64, "E.dll");
107string testRANeutral = Path.Combine(referenceAssemblyDirectoryConfigNeutral, "F.dll");
108string testRACommonConfigurationx86 = Path.Combine(referenceAssemblyDirectoryCommonConfigX86, "G.dll");
109string testRACommonConfigurationx64 = Path.Combine(referenceAssemblyDirectoryCommonConfigX64, "G.dll");
110string testRACommonConfigurationNeutral = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "H.dll");
112string testRACommonConfigurationNeutralDupe = Path.Combine(referenceAssemblyDirectoryCommonConfigNeutral, "A.dll");
114string redist = Path.Combine(redistDirectoryConfigx86, "A.dll");
115string redist64 = Path.Combine(redistDirectoryConfigx64, "A.dll");
116string redistNeutral = Path.Combine(redistDirectoryConfigNeutral, "ASubDirectory\\TwoDeep\\B.dll");
117string redistNeutralPri = Path.Combine(redistDirectoryConfigNeutral, "B.pri");
118string redistCommonConfigurationx86 = Path.Combine(redistDirectoryCommonConfigX86, "C.dll");
119string redistCommonConfigurationx64 = Path.Combine(redistDirectoryCommonConfigX64, "C.dll");
120string redistCommonConfigurationNeutral = Path.Combine(redistDirectoryCommonConfigNeutral, "D.dll");
121string redistCommonConfigurationNeutralDupe = Path.Combine(redistDirectoryCommonConfigNeutral, "A.dll");
156string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies");
157sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\AnotherSDK\\2.0\\");
158string referenceAssemblyDirectoryConfigx86 = Path.Combine(sdkDirectory, "References\\Retail\\X86");
159string redistDirectoryConfigx86 = Path.Combine(sdkDirectory, "Redist\\Retail\\X86");
167string testWinMD = Path.Combine(referenceAssemblyDirectoryConfigx86, "B.winmd");
168string redist = Path.Combine(redistDirectoryConfigx86, "B.pri");
169string redist2 = Path.Combine(redistDirectoryConfigx86, "B.dll");
192private readonly string _cacheDirectory = Path.Combine(Path.GetTempPath(), "GetSDKReferenceFiles");
301Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[0]);
302Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[1]);
307Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[0]);
308Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[1]);
313Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\X86\\"), sdkFolders[0]);
314Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\Retail\\Neutral\\"), sdkFolders[1]);
315Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\X86\\"), sdkFolders[2]);
316Assert.Equal(Path.Combine(sdkDirectory, folderName + "\\CommonConfiguration\\Neutral\\"), sdkFolders[3]);
435string winmd = Path.Combine(_sdkDirectory, "References\\Retail\\X86\\A.winmd");
1238string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\B.pri");
1239string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.pri");
1240string referenceWinner = Path.Combine(_sdkDirectory, "References\\Retail\\Neutral\\B.WinMD");
1241string referenceVictim = Path.Combine(_sdkDirectory2, "References\\Retail\\X86\\B.WinMD");
1284string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\ASubDirectory\\TwoDeep\\B.dll");
1285string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.dll");
1327string redistWinner = Path.Combine(_sdkDirectory, "Redist\\Retail\\Neutral\\B.pri");
1328string redistVictim = Path.Combine(_sdkDirectory2, "Redist\\Retail\\X86\\B.pri");
1329string referenceWinner = Path.Combine(_sdkDirectory, "References\\Retail\\Neutral\\B.WinMD");
1330string referenceVictim = Path.Combine(_sdkDirectory2, "References\\Retail\\X86\\B.WinMD");
Move_Tests.cs (10)
421string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A392");
422string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A393");
424string validOutFile = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A394");
595string file = Path.Combine(currdir, filename);
637string file = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A395");
682string destFolder = Path.Combine(temp, "2A333ED756AF4d1392E728D0F864A398");
683string destFile = Path.Combine(destFolder, Path.GetFileName(sourceFile));
736string inFile1 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A398");
737string inFile2 = Path.Combine(temp, "2A333ED756AF4dc392E728D0F864A399");
738string 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)
124string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion");
177string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
463string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyDependsOnWarningFromManifest");
485string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
578string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit1");
589string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
633string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit2");
644string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
691string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit3");
702string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
746string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit4");
757string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
801string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit5");
812string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
856string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit6");
867string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
913string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit7");
924string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
968string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit8");
978string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1022string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit9");
1033string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1492string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestWarnings");
1499string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1551string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestErrors");
1552string testDirectory = Path.Combine(testDirectoryRoot, "BadTestSDK\\2.0\\");
1558string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1602string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion");
1655string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1708string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "EmptySDKManifestAttributes");
1735string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1793string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestAttributes");
1817string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1891string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigAndArch");
1912string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
1964string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly");
1983string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2033string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "NoCopyOnPlatformIdentityFound");
2048string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2100string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly");
2121string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2174string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestOnlyHasArmLocation");
2190string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2242string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestArmLocationWithOthers");
2260string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2313string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistWarning");
2331string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2385string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistError");
2403string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2454string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureMatchesProject");
2473string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2527string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifest");
2547string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2592string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifestAndMetadata");
2612string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2659string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsNotInManifest");
2679string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2723string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsBadMetadata");
2744string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2791string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilySameName");
2822string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2823string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml");
2824string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml");
2889string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName");
2920string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
2921string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml");
2922string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml");
2987string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName");
3025string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3026string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml");
3027string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml");
3028string sdkManifestFile4 = Path.Combine(testDirectory4, "SDKManifest.xml");
3100string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameSDKName");
3131string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3132string sdkManifestFile2 = Path.Combine(testDirectory2, "SDKManifest.xml");
3133string sdkManifestFile3 = Path.Combine(testDirectory3, "SDKManifest.xml");
3206string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsVerifyManifestReading");
3227string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3280string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata");
3301string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3357string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadataButMetadataDoesNotMatch");
3377string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3423string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata");
3445string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3501string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureDoesNotMatchProject");
3521string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3565string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject");
3584string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3637string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject");
3658string sdkManifestFile = Path.Combine(testDirectory, "SDKManifest.xml");
3705string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework");
3706string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\");
3707string archRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86");
3708string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral");
3709string archCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86");
3710string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral");
3712string sdkDirectory3 = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\FrameworkSDkWithManifest\\2.0\\");
3713string archRedist3 = Path.Combine(sdkDirectory3, "Redist\\Retail\\x64");
3714string archRedist33 = Path.Combine(sdkDirectory3, "Redist\\Retail\\Neutral");
3715string archCommonRedist3 = Path.Combine(sdkDirectory3, "Redist\\CommonConfiguration\\x64");
3786string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
3787string sdkManifestFile2 = Path.Combine(sdkDirectory3, "SDKManifest.xml");
3788string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj");
3795string redist1 = Path.Combine(archRedist, "A.dll");
3796string redist2 = Path.Combine(neutralRedist, "B.dll");
3797string redist3 = Path.Combine(archCommonRedist, "C.dll");
3798string redist4 = Path.Combine(neutralCommonRedist, "D.dll");
3799string redist5 = Path.Combine(archRedist33, "A.dll");
3800string redist6 = Path.Combine(archCommonRedist3, "B.dll");
3848string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework");
3849string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\");
3850string archRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86");
3851string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral");
3852string archCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86");
3853string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral");
3855string sdkDirectory3 = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\FrameworkSDkWithManifest\\2.0\\");
3856string archRedist3 = Path.Combine(sdkDirectory3, "Redist\\Retail\\x64");
3857string archRedist33 = Path.Combine(sdkDirectory3, "Redist\\Retail\\Neutral");
3858string archCommonRedist3 = Path.Combine(sdkDirectory3, "Redist\\CommonConfiguration\\x64");
3927string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
3928string sdkManifestFile2 = Path.Combine(sdkDirectory3, "SDKManifest.xml");
3929string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj");
3936string redist1 = Path.Combine(archRedist, "A.dll");
3937string redist2 = Path.Combine(neutralRedist, "B.dll");
3938string redist3 = Path.Combine(archCommonRedist, "C.dll");
3939string redist4 = Path.Combine(neutralCommonRedist, "D.dll");
3940string redist5 = Path.Combine(archRedist3, "D.dll");
3941string redist6 = Path.Combine(archRedist33, "A.dll");
3942string redist7 = Path.Combine(archCommonRedist3, "B.dll");
3992string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsTargetArchitectureDoesNotExists");
3993string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\");
3994string x86Redist = Path.Combine(sdkDirectory, "Redist\\Retail\\x86");
3995string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral");
3996string x86CommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\x86");
3997string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral");
4044string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
4045string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj");
4051string redist1 = Path.Combine(x86CommonRedist, "A.dll");
4052string redist2 = Path.Combine(x86Redist, "B.dll");
4053string redist3 = Path.Combine(neutralRedist, "C.dll");
4054string redist4 = Path.Combine(neutralCommonRedist, "D.dll");
4101string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture");
4102string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\");
4103string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral");
4104string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral");
4146string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
4147string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj");
4152string redist1 = Path.Combine(neutralRedist, "B.dll");
4153string redist2 = Path.Combine(neutralCommonRedist, "C.dll");
4221string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture");
4222string sdkDirectory = Path.Combine(testDirectoryRoot, "MyPlatform\\v8.0\\ExtensionSDKs\\SDkWithManifest\\2.0\\");
4223string neutralRedist = Path.Combine(sdkDirectory, "Redist\\Retail\\Neutral");
4224string neutralCommonRedist = Path.Combine(sdkDirectory, "Redist\\CommonConfiguration\\Neutral");
4285string redist1 = Path.Combine(neutralRedist, "B.dll");
4286string redist2 = Path.Combine(neutralCommonRedist, "C.dll");
4293string testProjectFile = Path.Combine(testDirectoryRoot, "testproject.csproj");
4296string sdkManifestFile = Path.Combine(sdkDirectory, "SDKManifest.xml");
ResourceHandling\GenerateResource_Tests.cs (9)
114string expectedOutFile0 = Path.Combine(Path.GetTempPath(), Path.ChangeExtension(resxFile0, ".resources"));
115string expectedOutFile1 = Path.Combine(Path.GetTempPath(), "resx1.foo.resources");
116string expectedOutFile2 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources"));
117string expectedOutFile3 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources"));
2994dir = Path.Combine(Path.GetTempPath(), "directory");
3213t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) };
3362t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) };
3675env.CreateFolder(Path.Combine(env.DefaultTestDirectory.Path, "tmp_dir")),
4142Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "System.dll");
Unzip_Tests.cs (14)
88_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
89_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
132_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
133_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
136Directory.Exists(Path.Combine(destination.Path, "emptyDir"));
237SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), }
270_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
271_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
299_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
300_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
333_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file1.js"), customMessage: _mockEngine.Log);
334_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "file1.js.map"), customMessage: _mockEngine.Log);
335_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file2.js"), customMessage: _mockEngine.Log);
336_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "readme.txt"), customMessage: _mockEngine.Log);
WriteCodeFragment_Tests.cs (9)
90string file = Path.Combine(Path.GetTempPath(), "CombineFileDirectory.tmp");
109string expectedFile = Path.Combine(folder.ItemSpec, file.ItemSpec);
128TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp"));
176string folder = Path.Combine(Path.GetTempPath(), "foo" + Path.DirectorySeparatorChar);
177string file = Path.Combine(folder, "CombineFileDirectory.tmp");
198string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp");
225string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp");
287string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp");
416string 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 (21)
ObjectModelHelpers.cs (10)
148expectedInclude = expectedInclude.Select(i => Path.Combine(testProject.TestRoot, i)).ToArray();
580Assert.True(FileSystems.Default.FileExists(Path.Combine(TempProjectDir, fileRelativePath)), message);
734project.FullPath = Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj");
838s_tempProjectDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
900string fullFilePath = Path.Combine(TempProjectDir, fileRelativePath);
977string projectFileFullPath = Path.Combine(TempProjectDir, projectFileRelativePath);
1011string projectFileFullPath = Path.Combine(TempProjectDir, projectFileRelativePath);
1606var projectDir = Path.Combine(root, relativePathFromRootToProject);
1609createdProjectFile = Path.Combine(projectDir, "build.proj");
1619return Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.Build.Utilities.Core (101)
FileUtilities.cs (9)
74string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
131cacheDirectory = Path.Combine(TempFileDirectory, String.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", Process.GetCurrentProcess().Id, AppDomain.CurrentDomain.Id));
182string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid().ToString("N")}_testFile.txt");
471return NormalizePath(Path.Combine(directory, file));
683return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString())))
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
834var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1269return paths.Aggregate(root, Path.Combine);
1441string 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");
782var frameworkPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, prefix ?? string.Empty);
792return Path.Combine(complusInstallRoot, complusVersion);
929? Path.Combine(programFiles32, "Reference Assemblies\\Microsoft\\Framework")
930: Path.Combine(NativeMethodsShared.FrameworkBasePath, "xbuild-frameworks");
1089string programFilesReferenceAssemblyDirectory = Path.Combine(programFilesReferenceAssemblyLocation, versionPrefix);
1395(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) &&
1396!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
1428frameworkPath = Path.Combine(frameworkPath, this.Version.ToString());
ToolLocationHelper.cs (37)
659string legacyWindowsMetadataLocation = Path.Combine(sdkRoot, "Windows Metadata");
1219return Path.Combine(sdkLocation, folderName);
1233: Path.Combine(matchingSdk.Path, folderName);
1431var folders = string.IsNullOrEmpty(subFolder) ? vsInstallFolders : vsInstallFolders.Select(i => Path.Combine(i, subFolder));
1496string fullPath = Path.Combine(root, file);
1761if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
1835if (legacyMsCorlib20Path != null && FileSystems.Default.FileExists(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
1852if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
2547string pathToSDKManifest = Path.Combine(sdkVersionDirectory.FullName, "SDKManifest.xml");
2622string platformSDKDirectory = Path.Combine(rootPathWithIdentifier.FullName, version);
2623string platformSDKManifest = Path.Combine(platformSDKDirectory, "SDKManifest.xml");
2646string sdkFolderPath = Path.Combine(platformSDKDirectory, "ExtensionSDKs");
2741string platformSDKManifest = Path.Combine(platformSDKDirectory, "SDKManifest.xml");
2819string sdkManifestFileLocation = Path.Combine(directoryName, "SDKManifest.xml");
2897string localAppdataFolder = Path.Combine(userLocalAppData, "Microsoft SDKs");
2904string defaultProgramFilesLocation = Path.Combine(
3022string platformsRoot = Path.Combine(sdk.Path, platformsFolderName);
3050string pathToPlatformManifest = Path.Combine(platformVersion.FullName, "Platform.xml");
3109string redistListFolder = Path.Combine(path, "RedistList");
3110string redistFilePath = Path.Combine(redistListFolder, "FrameworkList.xml");
3194pathToReturn = Path.Combine(pathToReturn, includeFramework);
3343pathToSdk = Path.Combine(pathToSdk, "x64");
3346pathToSdk = Path.Combine(pathToSdk, "ia64");
3354string filePath = Path.Combine(pathToSdk, fileName);
3470pathToSdk = Path.Combine(pathToSdk, "bin");
3511pathToSdk = Path.Combine(pathToSdk, "x86");
3514pathToSdk = Path.Combine(pathToSdk, "x64");
3522string filePath = Path.Combine(pathToSdk, fileName);
3585toolPath = Path.Combine(toolPath, fileName);
3614return pathToFx == null ? null : Path.Combine(pathToFx, fileName);
3622public static string GetPathToSystemFile(string fileName) => Path.Combine(PathToSystem, fileName);
3850string frameworkIdentifierPath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier);
3903string frameworkProfilePath = Path.Combine(frameworkReferenceRoot, frameworkIdentifier);
3904frameworkProfilePath = Path.Combine(frameworkProfilePath, frameworkVersion);
3905frameworkProfilePath = Path.Combine(frameworkProfilePath, "Profiles");
3950string dotNextFx30RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV30);
3957string dotNextFx35RefPath = Path.Combine(frameworkReferenceRoot, FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV35);
Microsoft.Build.Utilities.UnitTests (147)
ToolLocationHelper_Tests.cs (135)
67string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
75string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
76string referenceDirectory = Path.Combine(tempDirectory, Path.Combine("References", "Foo", "Bar"));
81File.WriteAllText(Path.Combine(referenceDirectory, "One.winmd"), "First");
82File.WriteAllText(Path.Combine(referenceDirectory, "Two.winmd"), "Second");
83File.WriteAllText(Path.Combine(referenceDirectory, "Three.winmd"), "Third");
99string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
106File.WriteAllText(Path.Combine(referenceDirectory, "One.winmd"), "First");
134returnValue.ShouldBe(Path.Combine(sdkRootPath, @"DesignTime\CommonConfiguration\Neutral"));
160returnValue.ShouldBe(Path.Combine(sdkRootPath, "UnionMetadata"));
167string platformRootFolder = Path.Combine(Path.GetTempPath(), @"MockSDK");
168string sdkRootFolder = Path.Combine(platformRootFolder, @"Windows Kits\10");
169string platformFolder = Path.Combine(sdkRootFolder, @"Platforms\UAP\10.0.14944.0");
170string platformFilePath = Path.Combine(platformFolder, "Platform.xml");
171string sdkManifestFilePath = Path.Combine(sdkRootFolder, "SDKManifest.xml");
228string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
253string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
278string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
284File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "");
304string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
310File.WriteAllText(Path.Combine(sdkDirectory, "SDKManifest.xml"), "Garbaggggge");
332string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSFN40");
333string temp35Directory = Path.Combine(tempDirectory, "bin");
334string temp40Directory = Path.Combine(temp35Directory, "NETFX 4.0 Tools");
335string toolPath = Path.Combine(temp35Directory, "MyTool.exe");
336string toolPath40 = Path.Combine(temp40Directory, "MyTool.exe");
400string testPath = Path.Combine(tempPath, "HighestVersionOfTargetFrameworkIdentifierRootNoVersions");
419string testPath = Path.Combine(tempPath, "HighestVersionOfTargetFrameworkIdentifierRootMultipleVersions");
451string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSF40");
452string temp35Directory = Path.Combine(tempDirectory, "bin");
453string temp40Directory = Path.Combine(temp35Directory, "NETFX 4.0 Tools");
454string toolPath = Path.Combine(temp35Directory, "MyTool.exe");
455string toolPath40 = Path.Combine(temp40Directory, "MyTool.exe");
539path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86dbg"));
551Path.Combine("{runtime-base}", "v1.3.x86dbg"), // Simulate "Orcas" as the current runtime.}
556path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86fre"));
568Path.Combine("{runtime-base}", "v1.1.x86dbg"), // Simulate "Everett" as the current runtime.
574path.ShouldBe(Path.Combine("{runtime-base}", "v1.2.x86fre"));
586Path.Combine(@"{runtime-base}", "v1.1"), // Simulate "everett" as the current runtime
604string fakeWhidbeyPath = Path.Combine(tempPath, "v2.0.50224");
605string fakeEverettPath = Path.Combine(tempPath, "v1.1.43225");
692string tv12path = Path.Combine(ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, MSBuildExeName);
715string tv12path = Path.Combine(Path.GetFullPath(toolsPath32.EvaluatedValue), "msbuild.exe");
916string pathToSdk35InstallRoot = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v7.0A\");
917string pathToSdkV4InstallRootOnVS10 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v7.0A\");
918string pathToSdkV4InstallRootOnVS11 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v8.0A\");
922if (!Directory.Exists(Path.Combine(pathToSdkV4InstallRootOnVS11, "bin")))
928string pathToSdkV4InstallRootOnVS12 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v8.1A\");
936string pathToSdkV4InstallRootOnVS14 = Path.Combine(FrameworkLocationHelper.programFiles32, @"Microsoft SDKs\Windows\v10.0A\");
1273string expectedPath = Path.Combine(targetFrameworkRootPath, targetFrameworkIdentifier);
1274expectedPath = Path.Combine(expectedPath, "v" + targetFrameworkVersion);
1275expectedPath = Path.Combine(expectedPath, "Profile");
1276expectedPath = Path.Combine(expectedPath, targetFrameworkProfile);
1291string expectedPath = Path.Combine(targetFrameworkRootPath, targetFrameworkIdentifier);
1292expectedPath = Path.Combine(expectedPath, "v" + targetFrameworkVersion);
1393string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsChain");
1396string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1398string redist40 = Path.Combine(redist40Directory, "FrameworkList.xml");
1406string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1408string expectedChainedPath = Path.Combine(tempDirectory, "v4.0");
1435string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude");
1438string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1443string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1465string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude");
1468string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1473string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1495string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoFileList");
1498string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1503string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1524string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsBadFile");
1527string redist40 = Path.Combine(redist40Directory, "FrameworkList.xml");
1533string path = ToolLocationHelper.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.0"));
1555string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPointsToInvalidInclude");
1558string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1559string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1");
1591string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistInvalidPathChars");
1594string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1595string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1");
1625string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPathTooLong");
1628string redist41 = Path.Combine(redist41Directory, "FrameworkList.xml");
1629string tempDirectoryPath = Path.Combine(tempDirectory, "v4.1");
1668string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootGoodWithChain");
1671string framework41redistDirectory = Path.Combine(framework41Directory, "RedistList");
1672string framework41RedistList = Path.Combine(framework41redistDirectory, "FrameworkList.xml");
1675string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList");
1676string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml");
1679string framework39redistDirectory = Path.Combine(framework39Directory, "RedistList");
1680string framework39RedistList = Path.Combine(framework39redistDirectory, "FrameworkList.xml");
1733string tempDirectory = Path.Combine(Path.GetTempPath(), "DisplayNameGeneration");
1737string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList");
1738string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml");
1742string framework39redistDirectory = Path.Combine(framework39Directory, "RedistList");
1743string framework39RedistList = Path.Combine(framework39redistDirectory, "FrameworkList.xml");
1790string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootCircularReference");
1794string framework41redistDirectory = Path.Combine(framework41Directory, "RedistList");
1795string framework41RedistList = Path.Combine(framework41redistDirectory, "FrameworkList.xml");
1799string framework40redistDirectory = Path.Combine(framework40Directory, "RedistList");
1800string framework40RedistList = Path.Combine(framework40redistDirectory, "FrameworkList.xml");
1972string combinedPath = Path.Combine(programFiles32, pathToCombineWith);
2504string rootDir = Path.Combine(env.DefaultTestDirectory.Path, "framework-root");
2533string customFrameworkRootPath = Path.Combine(env.DefaultTestDirectory.Path, "framework-root");
2556string rootDir = Path.Combine(env.CreateFolder().Path, "framework-root");
2557string fallbackPath = Path.Combine(env.CreateFolder().Path, "framework-root");
2587string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root");
2600string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root");
2617string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root");
2634string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root");
2649string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root");
2666string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root");
2729File.WriteAllText(Path.Combine(redistPath, "FrameworkList.xml"), string.Format(frameworkListXml, frameworkName));
2730File.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();
4420string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory");
4543string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
Microsoft.Cci.Extensions (2)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.Arcade.Sdk.Tests (8)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (8)
Microsoft.DotNet.Build.Tasks.Feed.Tests (18)
Microsoft.DotNet.Build.Tasks.Installers (15)
src\CreateWixCommandPackageDropBase.cs (8)
67OutputFile = Path.Combine(OutputFolder, $"{Path.GetFileName(InstallerFile)}{_packageExtension}");
81string commandFilename = Path.Combine(packageDropOutputFolder, $"create.cmd");
144string newWixSrcFilePath = Path.Combine(packageDropOutputFolder, Path.GetFileName(wixSrcFile.ItemSpec));
176var destinationPath = Path.Combine(packageDropOutputFolder, Path.GetFileName(locItem.ItemSpec));
292var possiblePath = Path.Combine(additionalBasePath.ItemSpec, oldPath);
310newRelativePath = Path.Combine(id, Path.GetFileName(oldPath));
325string newFolder = Path.Combine(outputPath, id);
331File.Copy(oldPath, Path.Combine(outputPath, newRelativePath), true);
Microsoft.DotNet.Build.Tasks.Packaging (7)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
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 (10)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tasks (6)
Microsoft.DotNet.NuGetRepack.Tests (31)
VersionUpdaterTests.cs (28)
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);
68var a_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameA);
69var b_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameB);
70var c_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameC);
71var d_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameD);
73var a_rel = Path.Combine(dir, TestResources.ReleasePackages.NameA);
74var b_rel = Path.Combine(dir, TestResources.ReleasePackages.NameB);
75var c_rel = Path.Combine(dir, TestResources.ReleasePackages.NameC);
76var d_rel = Path.Combine(dir, TestResources.ReleasePackages.NameD);
97var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
101File.WriteAllBytes(e_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameE), TestResources.DailyBuildPackages.TestPackageE);
102File.WriteAllBytes(f_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameF), TestResources.DailyBuildPackages.TestPackageF);
104var e_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameE);
105var f_pre = Path.Combine(dir, TestResources.PreReleasePackages.NameF);
107var e_rel = Path.Combine(dir, TestResources.ReleasePackages.NameE);
108var f_rel = Path.Combine(dir, TestResources.ReleasePackages.NameF);
125var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
129File.WriteAllBytes(a_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameA), TestResources.DailyBuildPackages.TestPackageA);
130File.WriteAllBytes(b_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameB), TestResources.DailyBuildPackages.TestPackageB);
131File.WriteAllBytes(c_daily = Path.Combine(dir, TestResources.DailyBuildPackages.NameC), TestResources.DailyBuildPackages.TestPackageC);
164var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
165var outputDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
169File.WriteAllBytes(dotnet_tool = Path.Combine(dir, TestResources.MiscPackages.NameDotnetTool), TestResources.MiscPackages.DotnetTool);
171File.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.SignCheck (4)
Microsoft.DotNet.SignCheckLibrary (12)
Verification\MsiVerifier.cs (4)
41string targetPath = Path.Combine(svr.TempPath, name);
55SignatureVerificationResult packageFileResult = VerifyFile(installPackage.Files[key].TargetPath, svr.Filename, Path.Combine(svr.VirtualPath, originalFiles[key]), containerPath: null);
77string binaryFilePath = Path.Combine(svr.TempPath, binaryFile);
79SignatureVerificationResult binaryStreamResult = VerifyFile(binaryFilePath, svr.Filename, Path.Combine(svr.VirtualPath, binaryFile), containerPath: null);
Microsoft.DotNet.SignTool (12)
Microsoft.DotNet.SignTool.Tests (25)
Microsoft.DotNet.SourceBuild.Tasks (3)
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
Microsoft.DotNet.VersionTools (4)
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.ApiDescription.Client (1)
Microsoft.Extensions.ApiDescription.Client.Tests (42)
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 (28)
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);
80Assert.Contains($"Compile: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output);
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);
123Assert.Contains($"Compile: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output);
124Assert.Contains($"Compile: {Path.Combine("obj", "NSwagClient.cs")}", process.Output);
125Assert.Contains($"Compile: {Path.Combine("obj", "swashbuckleClient.cs")}", 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.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.DependencyModel (7)
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.SecretManager.Tools.Tests (15)
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (9)
Microsoft.VisualBasic.Core (4)
MobileBuildTasks (10)
MonoAOTCompiler (15)
MonoAOTCompiler.cs (12)
495string propertiesTableFilePath = Path.Combine(IntermediateOutputPath, "monoAotPropertyValues.txt");
635string aotInPath = Path.Combine(IntermediateOutputPath, "aot-in");
642string newPath = Path.Combine(aotInPath, Path.GetFileName(asmPath));
764outputFilePath = Path.Combine(TrimmingEligibleMethodsOutputDirectory, outputFileName);
775string llvmBitcodeFile = Path.Combine(OutputDir, Path.ChangeExtension(assemblyFilename, ".dll.bc"));
816string objectFile = Path.Combine(OutputDir, Path.ChangeExtension(assemblyFilename, ".dll.o"));
828string assemblerFile = Path.Combine(OutputDir, Path.ChangeExtension(assemblyFilename, ".dll.s"));
845string libraryFilePath = Path.Combine(OutputDir, libraryFileName);
860string llvmObjectFile = Path.Combine(OutputDir, Path.ChangeExtension(assemblyFilename, ".dll-llvm.o"));
878string aotTmpPath = Path.Combine(IntermediateOutputPath, assemblyFilename + ".tmp");
888string exportSymbolsFile = Path.Combine(OutputDir, Path.ChangeExtension(assemblyFilename, ".exportsymbols"));
1212string exportSymbolsFile = Path.Combine(OutputDir, Path.ChangeExtension(assemblyFilename, ".exportsymbols"));
MonoTargetsTasks (9)
MSBuild (44)
FileUtilities.cs (9)
74string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
131cacheDirectory = Path.Combine(TempFileDirectory, String.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", Process.GetCurrentProcess().Id, AppDomain.CurrentDomain.Id));
182string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid().ToString("N")}_testFile.txt");
471return NormalizePath(Path.Combine(directory, file));
683return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString())))
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
834var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1269return paths.Aggregate(root, Path.Combine);
1441string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
MSBuildTaskHost (20)
FileUtilities.cs (8)
74string pathWithUpperCase = Path.Combine(Path.GetTempPath(), "CASESENSITIVETEST" + Guid.NewGuid().ToString("N"));
131cacheDirectory = Path.Combine(TempFileDirectory, String.Format(CultureInfo.CurrentUICulture, "MSBuild{0}-{1}", Process.GetCurrentProcess().Id, AppDomain.CurrentDomain.Id));
182string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid().ToString("N")}_testFile.txt");
471return NormalizePath(Path.Combine(directory, file));
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
834var fullPath = GetFullPathNoThrow(Path.Combine(currentDirectory, normalizedPath));
1269return paths.Aggregate(root, Path.Combine);
1441string possibleFileDirectory = Path.Combine(lookInDirectory, fileName);
NonDISample (1)
PresentationBuildTasks (4)
PresentationCore (5)
PresentationFramework (2)
PresentationUI (2)
ResultsOfTGenerator (1)
ServerComparison.FunctionalTests (2)
Sockets.BindTests (2)
Sockets.FunctionalTests (2)
StaticFilesAuth (4)
System.ComponentModel.Composition (1)
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.Pipes (1)
System.Net.Mail (1)
System.Net.Ping (1)
System.Private.CoreLib (16)
System.Private.Xml (3)
System.Reflection.MetadataLoadContext (1)
System.Security.Cryptography (4)
System.Text.RegularExpressions (1)
Templates.Blazor.Tests (24)
BlazorWasmTemplateTest.cs (9)
33var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
34Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
194var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
198Assert.False(File.Exists(Path.Combine(publishDir, "service-worker.published.js")), "service-worker.published.js should not be published");
199Assert.True(File.Exists(Path.Combine(publishDir, "service-worker.js")), "service-worker.js should be published");
200Assert.True(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "service-worker-assets.js should be published");
386var fullPath = Path.Combine(basePath, path);
390return File.ReadAllText(Path.Combine(basePath, path));
395var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
Templates.Blazor.WebAssembly.Auth.Tests (17)
Templates.Blazor.WebAssembly.Tests (25)
BlazorWasmTemplateTest.cs (8)
33var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
34Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
43var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
44Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
53var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
54Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
63var publishDir = Path.Combine(project.TemplatePublishDir, "wwwroot");
64Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
Templates.Mvc.Tests (20)
Templates.Tests (23)
TestExclusionListTasks (35)
src\tasks\AndroidAppBuilder\ApkBuilder.cs (32)
62if (!string.IsNullOrEmpty(mainLibraryFileName) && !File.Exists(Path.Combine(AppDir, mainLibraryFileName)))
182Directory.CreateDirectory(Path.Combine(OutputDir, "bin"));
183Directory.CreateDirectory(Path.Combine(OutputDir, "obj"));
184Directory.CreateDirectory(Path.Combine(OutputDir, "assets-tozip"));
185Directory.CreateDirectory(Path.Combine(OutputDir, "assets"));
196var assetsToZipDirectory = Path.Combine(OutputDir, "assets-tozip");
220File.Copy(aotlib, Path.Combine(assetsToZipDirectory, Path.GetFileName(aotlib)));
224string dx = Path.Combine(buildToolsFolder, "dx");
225string d8 = Path.Combine(buildToolsFolder, "d8");
226string aapt = Path.Combine(buildToolsFolder, "aapt");
227string zipalign = Path.Combine(buildToolsFolder, "zipalign");
228string apksigner = Path.Combine(buildToolsFolder, "apksigner");
252monoRuntimeLib = Path.Combine(AppDir, "libmonosgen-2.0.a");
256monoRuntimeLib = Path.Combine(AppDir, "libmonosgen-2.0.so");
349File.WriteAllText(Path.Combine(OutputDir, "CMakeLists.txt"), cmakeLists);
350File.WriteAllText(Path.Combine(OutputDir, monodroidSource), Utils.GetEmbeddedResource(monodroidSource));
363string javaActivityPath = Path.Combine(javaSrcFolder, "MainActivity.java");
364string monoRunnerPath = Path.Combine(javaSrcFolder, "MonoRunner.java");
398File.WriteAllText(Path.Combine(OutputDir, "AndroidManifest.xml"),
410string[] classFiles = Directory.GetFiles(Path.Combine(OutputDir, "obj"), "*.class", SearchOption.AllDirectories);
482File.Copy(dynamicLib, Path.Combine(OutputDir, destRelative), true);
493File.Copy(dexFile, Path.Combine(OutputDir, classesFileName));
520string defaultKey = Path.Combine(OutputDir, "debug.keystore");
522defaultKey : Path.Combine(KeyStorePath, "debug.keystore");
532File.Copy(signingKey, Path.Combine(OutputDir, "debug.keystore"));
553string zipalign = Path.Combine(buildToolsFolder, "zipalign");
554string apksigner = Path.Combine(buildToolsFolder, "apksigner");
578string aapt = Path.Combine(buildToolsFolder, "aapt");
579string apksigner = Path.Combine(buildToolsFolder, "apksigner");
583apkPath = Directory.GetFiles(Path.Combine(OutputDir, "bin"), "*.apk").First();
602string? buildTools = Directory.GetDirectories(Path.Combine(androidSdkDir, "build-tools"))
620return Directory.GetDirectories(Path.Combine(androidSdkDir, "platforms"))
TestTasks (1)
Wasm.Performance.Driver (1)
WasmAppBuilder (31)
wasi\WasiAppBuilder.cs (8)
64string asmRootPath = Path.Combine(AppDir, "managed");
68FileCopyChecked(assembly, Path.Combine(asmRootPath, Path.GetFileName(assembly)), "Assemblies");
74FileCopyChecked(pdb, Path.Combine(asmRootPath, Path.GetFileName(pdb)), "Assemblies");
82string dest = Path.Combine(AppDir, Path.GetFileName(item.ItemSpec));
92FileCopyChecked(args.fullPath, Path.Combine(directory, name), "SatelliteAssemblies");
100Directory.CreateDirectory(Path.Combine(AppDir, "tmp"));
115dst = Path.Combine(AppDir!, tgtPath);
122dst = Path.Combine(AppDir!, Path.GetFileName(src));
WasmAppBuilder.cs (15)
123? Path.Combine(AppDir, RuntimeAssetsLocation)
141var finalWebcil = Path.Combine(runtimeAssetsPath, Path.ChangeExtension(Path.GetFileName(assembly), Utils.WebcilInWasmExtension));
150FileCopyChecked(assembly, Path.Combine(runtimeAssetsPath, Path.GetFileName(assembly)), "Assemblies");
157FileCopyChecked(pdb, Path.Combine(runtimeAssetsPath, Path.GetFileName(pdb)), "Assemblies");
164var dest = Path.Combine(runtimeAssetsPath, name);
184string packageJsonPath = Path.Combine(AppDir, "package.json");
204assemblyPath = Path.Combine(runtimeAssetsPath, Path.ChangeExtension(Path.GetFileName(assembly), Utils.WebcilInWasmExtension));
232string cultureDirectory = Path.Combine(runtimeAssetsPath, args.culture);
239var finalWebcil = Path.Combine(cultureDirectory, Path.ChangeExtension(name, Utils.WebcilInWasmExtension));
253var satellitePath = Path.Combine(cultureDirectory, name);
265string supportFilesDir = Path.Combine(runtimeAssetsPath, "supportFiles");
298var vfsPath = Path.Combine(supportFilesDir, generatedFileName);
396string monoConfigPath = Path.Combine(runtimeAssetsPath, "blazor.boot.json"); // TODO: Unify with Wasm SDK
408dst = Path.Combine(AppDir!, tgtPath);
415dst = Path.Combine(AppDir!, Path.GetFileName(src));
WasmBuildTasks (1)
WorkloadBuildTasks (19)
InstallWorkloadFromArtifacts.cs (9)
50private string AllManifestsStampPath => Path.Combine(SdkWithNoWorkloadInstalledPath, ".all-manifests.stamp");
64_tempDir = Path.Combine(IntermediateOutputPath ?? Path.GetTempPath(), $"workload-{Path.GetRandomFileName()}");
68_nugetCachePath = Path.Combine(_tempDir, "nuget-cache");
220string nugetConfigPath = Path.Combine(_tempDir, $"NuGet.{Path.GetRandomFileName()}.config");
232Path.Combine(req.TargetPath, "dotnet"),
255foreach (string dir in Directory.EnumerateDirectories(Path.Combine(req.TargetPath, "sdk-manifests"), "*", SearchOption.AllDirectories))
258foreach (string dir in Directory.EnumerateDirectories(Path.Combine(req.TargetPath, "packs"), "*", SearchOption.AllDirectories))
307string jsonPath = Path.Combine(manifestDir, "WorkloadManifest.json");
371return first ?? Path.Combine(parentDir, dirName.ToLower(CultureInfo.InvariantCulture));
xunit.console (9)