564 references to Combine
AndroidAppBuilder (10)
ApkBuilder.cs (9)
137string buildToolsFolder = Path.Combine(AndroidSdk, "build-tools", BuildToolsVersion); 425string apkFile = Path.Combine(OutputDir, "bin", $"{ProjectName}.unaligned.apk"); 429dynamicLibs.Add(Path.Combine(OutputDir, "monodroid", "libmonodroid.so")); 441Directory.CreateDirectory(Path.Combine(OutputDir, "lib", abi)); 445string destRelative = Path.Combine("lib", abi, dynamicLibName); 500string alignedApk = Path.Combine(OutputDir, "bin", $"{ProjectName}.apk"); 552string buildToolsFolder = Path.Combine(AndroidSdk, "build-tools", BuildToolsVersion); 577string buildToolsFolder = Path.Combine(AndroidSdk, "build-tools", BuildToolsVersion); 585apkPath = Path.Combine(OutputDir, "bin", $"{ProjectName}.apk");
src\tasks\Common\AndroidSdkHelper.cs (1)
37_buildToolsPath = Path.Combine(_androidSdkPath, "build-tools", buildToolsVersion);
AppleAppBuilder (1)
Xcode.cs (1)
198return Path.Combine(binDir, projectName, projectName + ".xcodeproj");
AutobahnTestApp (1)
Program.cs (1)
63var certPath = Path.Combine(AppContext.BaseDirectory, "TestResources", "testCert.pfx");
Crossgen2Tasks (8)
ResolveReadyToRunCompilers.cs (8)
256_crossgenTool.ToolPath = Path.Combine(_crossgenTool.PackagePath, "tools", "crossgen.exe"); 272_crossgenTool.ToolPath = Path.Combine(_crossgenTool.PackagePath, "tools", "crossgen.exe"); 291_crossgenTool.ToolPath = Path.Combine(_crossgenTool.PackagePath, "tools", "crossgen.exe"); 311_crossgenTool.ToolPath = Path.Combine(_crossgenTool.PackagePath, "tools", "crossgen"); 321_crossgenTool.ToolPath = Path.Combine(_crossgenTool.PackagePath, "tools", "crossgen"); 337_crossgenTool.ToolPath = Path.Combine(_crossgenTool.PackagePath, "tools", "crossgen"); 369_crossgen2Tool.ClrJitPath = Path.Combine(_crossgen2Tool.PackagePath, "tools", clrJitFileName); 376_crossgen2Tool.ToolPath = Path.Combine(_crossgen2Tool.PackagePath, "tools", toolFileName);
dotnet-user-jwts (1)
Helpers\DevJwtCliHelpers.cs (1)
52var launchSettingsFilePath = Path.Combine(Path.GetDirectoryName(project)!, "Properties", "launchSettings.json");
HelixTestRunner (5)
TestRunner.cs (5)
38var dotnetEFFullPath = Path.Combine(nugetRestore, helixDir, "dotnet-ef.exe"); 67DisplayContents(Path.Combine(Options.DotnetRoot, "host", "fxr")); 68DisplayContents(Path.Combine(Options.DotnetRoot, "shared", "Microsoft.NETCore.App")); 69DisplayContents(Path.Combine(Options.DotnetRoot, "shared", "Microsoft.AspNetCore.App")); 70DisplayContents(Path.Combine(Options.DotnetRoot, "packs", "Microsoft.AspNetCore.App.Ref"));
HttpClientApp (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
222return Path.Combine(deploymentResult.ContentRoot,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
120AssertLogs(Path.Combine(deploymentResult.ContentRoot, "subdirectory", "debug.txt"));
IIS.LongTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (5)
616parameters.TransformArguments((arguments, root) => "exec " + Path.Combine(root, "bin", arguments)); 632parameters.TransformArguments((arguments, root) => Path.Combine(root, pathWithSpace, arguments)); 640parameters.TransformArguments((arguments, root) => "exec \"" + Path.Combine(root, pathWithSpace, arguments) + "\" extra arguments"); 656parameters.TransformArguments((arguments, root) => Path.Combine(root, "bin", arguments) + " extra arguments"); 696parameters.TransformPath((path, root) => Path.Combine(root, pathWithSpace, path));
IIS.NewHandler.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (5)
616parameters.TransformArguments((arguments, root) => "exec " + Path.Combine(root, "bin", arguments)); 632parameters.TransformArguments((arguments, root) => Path.Combine(root, pathWithSpace, arguments)); 640parameters.TransformArguments((arguments, root) => "exec \"" + Path.Combine(root, pathWithSpace, arguments) + "\" extra arguments"); 656parameters.TransformArguments((arguments, root) => Path.Combine(root, "bin", arguments) + " extra arguments"); 696parameters.TransformPath((path, root) => Path.Combine(root, pathWithSpace, path));
IIS.NewShim.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (5)
616parameters.TransformArguments((arguments, root) => "exec " + Path.Combine(root, "bin", arguments)); 632parameters.TransformArguments((arguments, root) => Path.Combine(root, pathWithSpace, arguments)); 640parameters.TransformArguments((arguments, root) => "exec \"" + Path.Combine(root, pathWithSpace, arguments) + "\" extra arguments"); 656parameters.TransformArguments((arguments, root) => Path.Combine(root, "bin", arguments) + " extra arguments"); 696parameters.TransformPath((path, root) => Path.Combine(root, pathWithSpace, path));
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.Tests (1)
Utilities\TestServer.cs (1)
33internal static string BasePath => Path.Combine(Path.GetDirectoryName(typeof(TestServer).Assembly.Location),
IISExpress.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
222return Path.Combine(deploymentResult.ContentRoot,
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
120AssertLogs(Path.Combine(deploymentResult.ContentRoot, "subdirectory", "debug.txt"));
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (5)
616parameters.TransformArguments((arguments, root) => "exec " + Path.Combine(root, "bin", arguments)); 632parameters.TransformArguments((arguments, root) => Path.Combine(root, pathWithSpace, arguments)); 640parameters.TransformArguments((arguments, root) => "exec \"" + Path.Combine(root, pathWithSpace, arguments) + "\" extra arguments"); 656parameters.TransformArguments((arguments, root) => Path.Combine(root, "bin", arguments) + " extra arguments"); 696parameters.TransformPath((path, root) => Path.Combine(root, pathWithSpace, path));
ILLink.Tasks (1)
LinkTask.cs (1)
265 _illinkPath = Path.Combine (Path.GetDirectoryName (taskDirectory), "net9.0", "illink.dll");
InMemory.FunctionalTests (3)
HttpsConnectionMiddlewareTests.cs (2)
75["Certificates:Default:Path"] = Path.Combine("shared", "TestCertificates", "https-aspnet.crt"), 76["Certificates:Default:KeyPath"] = Path.Combine("shared", "TestCertificates", "https-aspnet.key"),
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Interop.FunctionalTests (7)
H2SpecCommands.cs (3)
57return Path.Combine(root, "windows", "h2spec.exe"); 61var toolPath = Path.Combine(root, "linux", "h2spec"); 67var toolPath = Path.Combine(root, "darwin", "h2spec");
Http3\Http3TlsTests.cs (3)
411new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 511var basePath = appData != null ? Path.Combine(appData, "ASP.NET", "https") : null; 512basePath = basePath ?? (home != null ? Path.Combine(home, ".aspnet", "https") : null);
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
InteropTests (2)
InteropTests.cs (2)
15private readonly string _clientPath = Path.Combine(Directory.GetCurrentDirectory(), "InteropClient", "InteropClient.dll"); 16private readonly string _serverPath = Path.Combine(Directory.GetCurrentDirectory(), "InteropWebsite", "InteropWebsite.dll");
InteropWebsite (1)
Program.cs (1)
58var certPath = Path.Combine(basePath!, "Certs", "server1.pfx");
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticVerifier.cs (1)
194var dll = Path.Combine(Directory.GetCurrentDirectory(), "refs", Path.GetFileName(assembly));
Microsoft.AspNetCore.App.UnitTests (8)
TargetingPackTests.cs (8)
38var actualAssemblies = Directory.GetFiles(Path.Combine(_targetingPackRoot, "ref", _targetingPackTfm), "*.dll") 73IEnumerable<string> dlls = Directory.GetFiles(Path.Combine(_targetingPackRoot, "ref", _targetingPackTfm), "*.dll", SearchOption.AllDirectories); 113IEnumerable<string> dlls = Directory.GetFiles(Path.Combine(_targetingPackRoot, "ref", _targetingPackTfm), "*.dll", SearchOption.AllDirectories); 135var packageOverridePath = Path.Combine(_targetingPackRoot, "data", "PackageOverrides.txt"); 226var platformManifestPath = Path.Combine(_targetingPackRoot, "data", "PlatformManifest.txt"); 291var frameworkListPath = Path.Combine(_targetingPackRoot, "data", "FrameworkList.xml"); 358var frameworkListPath = Path.Combine(_targetingPackRoot, "data", "FrameworkList.xml"); 400var frameworkListPath = Path.Combine(_targetingPackRoot, "data", "FrameworkList.xml");
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
UserJwtsTestFixture.cs (2)
64var projectPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest", Guid.NewGuid().ToString())); 77File.WriteAllText(Path.Combine(projectPath.FullName, "Properties", "launchSettings.json"),
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
125var debugProxyPath = Path.Combine(
Microsoft.AspNetCore.DataProtection (3)
Repositories\DefaultKeyStorageDirectories.cs (3)
55retVal = GetKeyStorageDirectoryFromBaseAppDataPath(Path.Combine(homePath, "AppData", "Local")); 60retVal = new DirectoryInfo(Path.Combine(homePath, ".aspnet", DataProtectionKeysFolderName)); 110return new DirectoryInfo(Path.Combine(basePath, "ASP.NET", DataProtectionKeysFolderName));
Microsoft.AspNetCore.DataProtection.Tests (7)
XmlEncryption\EncryptedXmlDecryptorTests.cs (7)
18var testCert1 = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert1.pfx"), "password"); 32var testCert1 = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert1.pfx"), "password"); 33var testCert2 = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert2.pfx"), "password"); 50var fullCert = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert1.pfx"), "password"); 51var publicKeyOnly = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert1.PublicKeyOnly.cer"), ""); 68var testCert1 = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert1.pfx"), "password"); 69var testCert2 = new X509Certificate2(Path.Combine(AppContext.BaseDirectory, "TestFiles", "TestCert2.pfx"), "password");
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
368manifest.ContentRoots = new[] { Path.Combine(AppContext.BaseDirectory, "testroot", "wwwroot") };
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
155var mappedDirectory = Path.Combine(currentDirectory, "path", "mapped");
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
356? Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT"), "RequestDelegateGenerator", "Baselines") 421var dll = Path.Combine(Directory.GetCurrentDirectory(), "refs", Path.GetFileName(assembly));
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
356? Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT"), "RequestDelegateGenerator", "Baselines") 421var dll = Path.Combine(Directory.GetCurrentDirectory(), "refs", Path.GetFileName(assembly));
Microsoft.AspNetCore.Http.Results.Tests (3)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
327var path = Path.GetFullPath(Path.Combine(".", "TestFiles", "FilePathResultTestFile_ASCII.txt")); 347var path = Path.GetFullPath(Path.Combine(".", "TestFiles", "FilePathResultTestFile.txt")); 357Assert.Equal(Path.GetFullPath(Path.Combine(".", "TestFiles", "FilePathResultTestFile.txt")), sendFile.Name);
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
79var wwwrootDir = Path.Combine(GetProjectBasePath(), "assets", scriptTag.Version);
Microsoft.AspNetCore.InternalTesting (1)
TestFileOutputContext.cs (1)
91return Path.Combine(baseDirectory, assembly.GetName().Name, attribute.TargetFramework);
Microsoft.AspNetCore.InternalTesting.Tests (2)
AssemblyTestLogTests.cs (2)
47var tfmPath = Path.Combine(tempDir, assemblyName, TestableAssembly.TFM); 49var testLog = Path.Combine(tfmPath, TestableAssembly.TestClassName, $"{testName}.log");
Microsoft.AspNetCore.Mvc.Core.Test (3)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
327var path = Path.GetFullPath(Path.Combine(".", "TestFiles", "FilePathResultTestFile_ASCII.txt")); 347var path = Path.GetFullPath(Path.Combine(".", "TestFiles", "FilePathResultTestFile.txt")); 357Assert.Equal(Path.GetFullPath(Path.Combine(".", "TestFiles", "FilePathResultTestFile.txt")), sendFile.Name);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\ResourceFile.cs (1)
228var projectPath = Path.Combine(solutionPath, "test", assembly.GetName().Name);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
FileProviderRazorProjectFileSystemTest.cs (5)
111Assert.Equal(Path.Combine("BasePath", "Level1-Dir1", "File2.cshtml"), file.PhysicalPath); 118Assert.Equal(Path.Combine("BasePath", "Level1-Dir1", "File3.cshtml"), file.PhysicalPath); 125Assert.Equal(Path.Combine("BasePath", "Level1-Dir2", "File5.cshtml"), file.PhysicalPath); 169Assert.Equal(Path.Combine("BasePath", "Level1-Dir1", "File2.cshtml"), file.PhysicalPath); 176Assert.Equal(Path.Combine("BasePath", "Level1-Dir1", "File3.cshtml"), file.PhysicalPath);
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\OpenApiDocumentIntegrationTests.cs (1)
25? Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT"), "Integration", "snapshots")
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
IISDeployer.cs (1)
113IISDeploymentParameters.ServerConfigLocation = Path.Combine(@"C:\inetpub\temp\apppools", _appPoolName, $"{_appPoolName}.config");
IISDeployerBase.cs (1)
94var basePath = File.Exists(Path.Combine(AppContext.BaseDirectory, "x64", "aspnetcorev2.dll")) ? "" : @"ANCM\";
Microsoft.AspNetCore.Server.Kestrel.Core (2)
TlsConfigurationLoader.cs (2)
200var basePath = appData != null ? Path.Combine(appData, "ASP.NET", "https") : null; 201basePath = basePath ?? (home != null ? Path.Combine(home, ".aspnet", "https") : null);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.Server.Kestrel.Tests (21)
HttpsConfigurationTests.cs (6)
28serverOptions.TestOverrideDefaultCertificate = new X509Certificate2(Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx"), "testPassword"); 90new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 127new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 160new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 193serverOptions.TestOverrideDefaultCertificate = new X509Certificate2(Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx"), "testPassword"); 222ServerCertificate = new X509Certificate2(Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx"), "testPassword"),
KestrelConfigurationLoaderTests.cs (14)
567new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 568new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-aspnet.key")) 591new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 592new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-ecdsa.key")), 616new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 617new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-aspnet.key")), 641new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 642new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-aspnet.pub")), 680new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", certificateFile)), 681new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", certificateKey)), 1352var certPath = Path.Combine("shared", "TestCertificates", "https-ecdsa.pem"); 1353var keyPath = Path.Combine("shared", "TestCertificates", "https-ecdsa.key"); 1851var basePath = appData != null ? Path.Combine(appData, "ASP.NET", "https") : null; 1852basePath = basePath ?? (home != null ? Path.Combine(home, ".aspnet", "https") : null);
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
src\SignalR\common\Shared\TestCertificates.cs (2)
35var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCert.pfx"); 41var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCertECC.pfx");
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
AutobahnTests.cs (1)
86var iisExpressExe = Path.Combine(pf, "IIS Express", "iisexpress.exe");
Microsoft.AspNetCore.WebUtilities.Tests (1)
FileBufferingWriteStreamTests.cs (1)
12private readonly string TempDirectory = Path.Combine(Path.GetTempPath(), "FileBufferingWriteTests", Path.GetRandomFileName());
Microsoft.Build (9)
BackEnd\Components\SdkResolution\DefaultSdkResolver.cs (1)
33string sdkPath = Path.Combine(BuildEnvironmentHelper.Instance.MSBuildSDKsPath, sdk.Name, "Sdk");
CoreCLRAssemblyLoader.cs (1)
159var candidatePath = Path.Combine(searchPath,
Evaluation\Expander.cs (1)
4333returnVal = Path.Combine(arg0, arg1, arg2);
FrameworkLocationHelper.cs (3)
606s_pathToV4ToolsInFallbackDotNetFrameworkSdk = Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin", "NetFX 4.0 Tools"); 980string path = Path.Combine(targetFrameworkRootPath, frameworkName.Identifier, "v" + frameworkName.Version.ToString()); 983path = Path.Combine(path, "Profile", frameworkName.Profile);
MSBuildLoadContext.cs (1)
81var candidatePath = Path.Combine(_directory,
PrintLineDebuggerWriters.cs (1)
83: Path.Combine(artifactsPart, "log", "Debug");
TempFileUtilities.cs (1)
85string temporaryDirectory = Path.Combine(TempFileDirectory, "Temporary" + Guid.NewGuid().ToString("N"), subfolder ?? string.Empty);
Microsoft.Build.BuildCheck.UnitTests (2)
EndToEndTests.cs (1)
170var candidateAnalysisProjectPath = Path.Combine(TestAssetsRootPath, customAnalyzerName, $"{customAnalyzerName}.csproj");
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
Microsoft.Build.CommandLine.UnitTests (2)
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
XMake_Tests.cs (1)
2138distributedLoggerRecords[0].ForwardingLoggerDescription.LoggerSwitchParameters.ShouldBe($"Parameter1;verbosity=Normal;logFile={Path.Combine(Directory.GetCurrentDirectory(), "..", "cat.log")};Parameter1", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\ConstructionEditing_Tests.cs (1)
3172var testSdkDirectory = Path.Combine(testSdkRoot, "MSBuildUnitTestSdk", "Sdk");
Definition\Project_Tests.cs (6)
713project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar); 714projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar); 748project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar); 749projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar); 786project.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory /* remove c:\ */, "obj", "i386")); 787projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory /* remove c:\ */, "obj", "i386"));
Definition\ProjectItem_Tests.cs (1)
1092? Path.GetFullPath(Path.Combine(testRoot, relativeFragmentFromRootToFile, file))
NugetRestoreTests.cs (1)
50RunnerUtilities.RunProcessAndGetOutput(Path.Combine(msbuildExePath, "nuget", "NuGet.exe"), "restore " + sln.Path + " -MSBuildPath \"" + msbuildExePath + "\"", out bool success, outputHelper: _output);
PrintLineDebuggerWriters.cs (1)
83: Path.Combine(artifactsPart, "log", "Debug");
TempFileUtilities.cs (1)
85string temporaryDirectory = Path.Combine(TempFileDirectory, "Temporary" + Guid.NewGuid().ToString("N"), subfolder ?? string.Empty);
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
Microsoft.Build.Engine.UnitTests (62)
BackEnd\IntrinsicTask_Tests.cs (1)
3283<Content Include='" + Path.Combine(directoryForTest, "..", "**") + @"' Condition=""'%(Content.Extension)' == '.dll'""/>
BackEnd\SdkResolverLoader_Tests.cs (4)
371var resolver1Path = Path.Combine(additionalRoot, resolver1, $"{resolver1}.dll"); 373File.WriteAllText(Path.Combine(testRoot, resolver1, $"{resolver1}.dll"), string.Empty); 377var resolver2Path = Path.Combine(testRoot, resolver2, $"{resolver2}.dll"); 381var resolver3Path = Path.Combine(additionalRoot, resolver3, $"{resolver3}.dll");
BackEnd\SdkResultOutOfProc_Tests.cs (2)
246File.WriteAllText(Path.Combine(projectFolder, "Sdk1", "Sdk.props"), CleanupFileContents(sdk1propsContents)); 247File.WriteAllText(Path.Combine(projectFolder, "Sdk2", "Sdk.props"), CleanupFileContents(sdk2propsContents));
BackEnd\TaskBuilder_Tests.cs (1)
654<UsingTask TaskName=`RegisterObject` AssemblyFile=`" + Path.Combine(customTaskFolder, "..", fileName) + @"` />
BuildEnvironmentHelper_Tests.cs (4)
359var msBuild64Exe = Path.Combine(env.BuildDirectory, "amd64", MSBuildExeName); 487Directory.CreateDirectory(Path.Combine(TempFolderRoot, "Common7", "IDE")); 529File.WriteAllText(Path.Combine(BuildDirectory, "amd64", msBuildExeName), string.Empty); 530File.WriteAllText(Path.Combine(BuildDirectory, "amd64", $"{MSBuildExePath}.config"), string.Empty);
Construction\SolutionFile_Tests.cs (4)
506string proj3Path = Path.Combine(FileUtilities.TempFileDirectory, "ETPProjUpgradeTest", "someproj3.etp"); 551<FILE>" + Path.Combine("..", "SomeFolder", "ClassLibrary1.csproj") + @"</FILE> 703p.FullPath = Path.Combine(solutionFolder.Path, "RelativePath", "project file"); 2352string expectedRelativePath = Path.Combine("..", "ProjectA", "ProjectA.csproj");
Construction\SolutionProjectGenerator_Tests.cs (2)
1085string tempProjectPath = Path.Combine(FileUtilities.TempFileDirectory, "ClassLibrary1", "ClassLibrary1.csproj"); 1092tempProjectPath = Path.Combine(FileUtilities.TempFileDirectory, "MainApp", "MainApp.vcxproj");
Definition\ProjectEvaluationContext_Tests.cs (6)
564<i Include=`{Path.Combine("Glob", "**", "*.cs")}` /> 583.Select(i => Path.Combine("Glob", "1", i)) 646? Path.Combine("..", "..", "glob") 709<i Include=`{Path.Combine("{0}", "**", "*.cs")}`/> 714<i Include=`{Path.Combine("{0}", "**", "*.cs")}`/> 719.Select((p, i) => new ProjectSpecification(Path.Combine(testDirectory.Path, $"ProjectDirectory{i}", $"Project{i}.proj"), p));
Evaluation\Evaluator_Tests.cs (6)
108yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""Exists('{Path.Combine("$(VSToolsPath)", "nonexistentDirectory", "projectThatDoesNotExist.csproj")}')""", true }; 109yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "nonexistentDirectory", "projectThatDoesNotExist.csproj")}"" Condition=""'true'""", false }; 110yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "nonexistentDirectory", "projectThatDoesNotExist.csproj")}""", false }; 111yield return new object[] { $@"Project=""{Path.Combine("$(VSToolsPath)", "nonexistentDirectory", "*.*proj")}""", true }; 2224Path.Combine(directory2, "..", "*.targets"), Path.Combine(
Evaluation\Expander_Tests.cs (9)
259Assert.Equal(Path.Combine(s_rootPathPrefix, "firstdirectory", "seconddirectory"), itemsTrue[0].EvaluatedInclude); 696Assert.Equal(Path.Combine(s_rootPathPrefix, "firstdirectory", "seconddirectory"), itemsTrue[5].EvaluatedInclude); 2463pg.Set(ProjectPropertyInstance.Create("ParentPath", Path.Combine(s_rootPathPrefix, "abc", "def"))); 2487Assert.Equal(Path.Combine(s_rootPathPrefix, "foo", "file.txt"), result); 2632Assert.Equal(Path.Combine(s_rootPathPrefix, "foo", "file.txt"), result); 2749Assert.Equal(Path.Combine(s_rootPathPrefix, "foo", "file.txt"), result); 3412string fileWithPath = Path.Combine("foo", "bar", "file.txt"); 3863pg.Set(ProjectPropertyInstance.Create("SomePath", Path.Combine(s_rootPathPrefix, "some", "path"))); 4820var expectedAlphaGammaSquigglePath = Path.Combine("Alpha", "Gamma", ".squiggle");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (1)
256string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("extensions2", "circularwildcardtest", "main.proj"), mainTargetsFileContent);
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
89_testSdkDirectory = Path.Combine(_testSdkRoot, SdkName, "Sdk"); 190string testSdkDirectory = Directory.CreateDirectory(Path.Combine(_testSdkRoot, sdkName, "Sdk")).FullName;
Evaluation\SdkResultEvaluation_Tests.cs (5)
200string sdkPropsPath = Path.Combine(_testFolder, "Sdk", "Sdk.props"); 288string sdk1PropsPath = Path.Combine(_testFolder, "Sdk1", "Sdk.props"); 299string sdk2PropsPath = Path.Combine(_testFolder, "Sdk2", "Sdk.props"); 380string sdkPropsPath = Path.Combine(_testFolder, "Sdk", "Sdk.props"); 391string sdkTargetsPath = Path.Combine(_testFolder, "Sdk", "Sdk.targets");
FileLogger_Tests.cs (3)
510fileLogger.Parameters = "logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "tempura", "mylogfile.log"); 512Assert.Equal(0, string.Compare(fileLogger.InternalFilelogger.Parameters, "ForceNoAlign;ShowEventId;ShowCommandLine;logfile=" + Path.Combine(Directory.GetCurrentDirectory(), "tempura", "mylogfile1.log") + ";", StringComparison.OrdinalIgnoreCase)); 519File.Delete(Path.Combine(Directory.GetCurrentDirectory(), "tempura", "mylogfile1.log"));
FileMatcher_Tests.cs (7)
1003ValidateFileMatch(Path.Combine("..", "..", "*.*"), Path.Combine("..", "..", "File.txt"), false); 1007ValidateFileMatch(Path.Combine("..", "..", "*.*"), Path.Combine("..", "..", "File"), false); 1009ValidateNoFileMatch(Path.Combine("..", "..", "*.*"), Path.Combine(new[] { "..", "..", "dir1", "dir2", "File.txt" }), false); 1010ValidateNoFileMatch(Path.Combine("..", "..", "*.*"), Path.Combine(new[] { "..", "..", "dir1", "dir2", "File" }), false); 1021ValidateFileMatch(Path.Combine("**", "*.cs"), Path.Combine("dir1", "dir2", "file.cs"), true);
FileUtilities_Tests.cs (1)
971Assert.Equal(Path.Combine(root, "1", "2"), FileUtilities.GetFolderAbove(path, 3));
FixPathOnUnix_Tests.cs (1)
42ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("projectDirectory", "lib", "foo.dll"), "just a text file");
Graph\IsolateProjects_Tests.cs (1)
456return Path.Combine("..", directory, file);
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
TypeLoader_Tests.cs (1)
107string portableTaskPath = Path.Combine(Directory.GetDirectories(PortableTaskFolderPath).First(), "netstandard2.0", "OldMSBuild");
Microsoft.Build.Framework (1)
FileClassifier.cs (1)
88RegisterImmutableDirectory(Path.Combine(programFiles, "Reference Assemblies", "Microsoft"));
Microsoft.Build.Framework.UnitTests (11)
FileClassifier_Tests.cs (10)
30classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 31classifier.IsNonModifiable(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue(); 32classifier.IsNonModifiable(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse(); 48classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 49classifier.IsNonModifiable(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue(); 50classifier.IsNonModifiable(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse(); 63classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 64classifier.IsNonModifiable(Path.Combine(volume, "test1", "File.ext")).ShouldBeFalse(); 68classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 69classifier.IsNonModifiable(Path.Combine(volume, "test1", "File.ext")).ShouldBeTrue();
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
Microsoft.Build.Tasks.Core (8)
Copy.cs (1)
773() => Path.Combine(DestinationFolder.ItemSpec, srcName, file),
GenerateLauncher.cs (1)
54LauncherPath = Path.Combine(
ManifestUtil\SecurityUtil.cs (1)
865toolPath = Path.Combine(pathToDotNetFrameworkSdk, "bin", ToolName);
NativeMethods.cs (1)
1452path = Path.Combine(
PrintLineDebuggerWriters.cs (1)
83: Path.Combine(artifactsPart, "log", "Debug");
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
600path = Path.Combine(directory, name.CultureName, name.Name + ".dll");
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
39() => Path.Combine(pathToBuildTools, "Roslyn", Path.ChangeExtension(ToolName, ".dll")),
TempFileUtilities.cs (1)
85string temporaryDirectory = Path.Combine(TempFileDirectory, "Temporary" + Guid.NewGuid().ToString("N"), subfolder ?? string.Empty);
Microsoft.Build.Tasks.UnitTests (94)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (19)
199protected static readonly string s_myMissingAssemblyAbsPath = Path.Combine(s_rootPathPrefix, "MyProject", "MyMissingAssembly.dll"); 240protected static readonly string s_regress454863_ADllPath = Path.Combine(s_rootPathPrefix, "Regress454863", "A.dll"); 241protected static readonly string s_regress454863_BDllPath = Path.Combine(s_rootPathPrefix, "Regress454863", "B.dll"); 262protected static readonly string s_netstandardLibraryDllPath = Path.Combine(s_rootPathPrefix, "NetStandard", "netstandardlibrary.dll"); 263protected static readonly string s_netstandardDllPath = Path.Combine(s_rootPathPrefix, "NetStandard", "netstandard.dll"); 265protected static readonly string s_portableDllPath = Path.Combine(s_rootPathPrefix, "SystemRuntime", "Portable.dll"); 266protected static readonly string s_systemRuntimeDllPath = Path.Combine(s_rootPathPrefix, "SystemRuntime", "System.Runtime.dll"); 268protected static readonly string s_dependsOnNuGet_ADllPath = Path.Combine(s_rootPathPrefix, "DependsOnNuget", "A.dll"); 269protected static readonly string s_dependsOnNuGet_NDllPath = Path.Combine(s_rootPathPrefix, "DependsOnNuget", "N.dll"); 270protected static readonly string s_dependsOnNuGet_NExePath = Path.Combine(s_rootPathPrefix, "DependsOnNuget", "N.exe"); 271protected static readonly string s_dependsOnNuGet_NWinMdPath = Path.Combine(s_rootPathPrefix, "DependsOnNuget", "N.winmd"); 389Path.Combine(s_myVersion20Path, "en", "System.Xml.resources.dll"), 390Path.Combine(s_myVersion20Path, "en", "System.Xml.resources.pdb"), 391Path.Combine(s_myVersion20Path, "en", "System.Xml.resources.config"), 392Path.Combine(s_myVersion20Path, "xx", "System.Xml.resources.dll"), 393Path.Combine(s_myVersion20Path, "en-GB", "System.Xml.resources.dll"), 394Path.Combine(s_myVersion20Path, "en-GB", "System.Xml.resources.pdb"), 395Path.Combine(s_myVersion20Path, "en-GB", "System.Xml.resources.config"), 403Path.Combine(s_myVersion20Path, "xx", "MyGacAssembly.resources.dll"),
AssignLinkMetadata_Tests.cs (2)
21private readonly string _defaultItemSpec = Path.Combine(Path.GetTempPath(), "SubFolder", "a.cs"); 117ITaskItem item = GetParentedTaskItem(_defaultItemSpec, Path.Combine("SubFolder2", "SubSubFolder", "a.cs"));
Copy_Tests.cs (1)
2989Path.Combine(Path.GetDirectoryName(sourceFile2.Path), ".", Path.GetFileName(sourceFile2.Path))) // sourceFile2.Path with a "." inserted before the file name
CreateItem_Tests.cs (1)
183ObjectModelHelpers.AssertFileExistsInTempProjectDirectory(Path.Combine("Destination", "Subdir", "Bar.txt"));
DirectoryBuildProjectImportTestBase.cs (1)
25private readonly string _projectRelativePath = Path.Combine("src", "foo", "foo.csproj");
GetInstalledSDKLocations_Tests.cs (2)
76Directory.CreateDirectory(Path.Combine(tempPath, "Windows", "v3.0") + Path.DirectorySeparatorChar); 80Path.Combine(tempPath, "Windows", "NotAVersion") + Path.DirectorySeparatorChar);
MSBuild_Tests.cs (2)
467Path.Combine("bug'533'369", "Sub;Dir", "TeamBuild.proj"), @" 485ObjectModelHelpers.BuildTempProjectFileExpectSuccess(Path.Combine("bug'533'369", "Sub;Dir", "TeamBuild.proj"), logger);
NuGetPropsImportTests.cs (2)
39var projectRelativePath = Path.Combine("src", "foo1", "foo1.csproj"); 65var projectRelativePath = Path.Combine("src", "foo1", "foo1.csproj");
OutputPathTests.cs (1)
24private readonly string _projectRelativePath = Path.Combine("src", "test", "test.csproj");
ProjectExtensionsImportTestBase.cs (1)
18protected readonly string _projectRelativePath = Path.Combine("src", "foo", "foo.csproj");
ProjectExtensionsPropsImportTest.cs (2)
15protected override string CustomImportProjectPath => Path.Combine(ObjectModelHelpers.TempProjectDir, "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.props"); 17protected override string ImportProjectPath => Path.Combine(Path.GetDirectoryName(_projectRelativePath), "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.props");
ProjectExtensionsTargetsImportTest.cs (2)
15protected override string CustomImportProjectPath => Path.Combine(ObjectModelHelpers.TempProjectDir, "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.targets"); 17protected override string ImportProjectPath => Path.Combine(Path.GetDirectoryName(_projectRelativePath), "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.targets");
RARPrecomputedCache_Tests.cs (2)
75string dllName = Path.Combine(Path.GetDirectoryName(standardCache.Path), "randomFolder", "dll.dll"); 116string dllName = Path.Combine(Path.GetDirectoryName(precomputedCache.Path), "randomFolder", "dll.dll");
RegressionTests.cs (1)
58var expectedCompileItems = "a.cs;" + Path.Combine("obj", "Debug", ".NETFramework,Version=v4.8.AssemblyAttributes.cs");
ResolveSDKReference_Tests.cs (46)
464string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 579string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 634string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 692string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 747string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 802string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 857string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 914string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 969string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 1023string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 1493string testDirectory = Path.Combine(testDirectoryRoot, "BadTestSDK", "2.0") + Path.DirectorySeparatorChar; 1603string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 1709string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 1794string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 1892string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 1965string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2034string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2101string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2175string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2243string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2314string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2386string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2455string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2528string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2593string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2660string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2724string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2792string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "1.0") + Path.DirectorySeparatorChar; 2793string testDirectory2 = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 2794string testDirectory3 = Path.Combine(testDirectoryRoot, "GoodTestSDK", "3.0") + Path.DirectorySeparatorChar; 2890string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "1.0") + Path.DirectorySeparatorChar; 2891string testDirectory2 = Path.Combine(testDirectoryRoot, "GoodTestSDK1", "2.0") + Path.DirectorySeparatorChar; 2892string testDirectory3 = Path.Combine(testDirectoryRoot, "GoodTestSDK3", "3.0") + Path.DirectorySeparatorChar; 2988string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "1.0") + Path.DirectorySeparatorChar; 2989string testDirectory2 = Path.Combine(testDirectoryRoot, "GoodTestSDK2", "2.0") + Path.DirectorySeparatorChar; 2990string testDirectory3 = Path.Combine(testDirectoryRoot, "GoodTestSDK3", "3.0") + Path.DirectorySeparatorChar; 2991string testDirectory4 = Path.Combine(testDirectoryRoot, "GoodTestSDK3", "4.0") + Path.DirectorySeparatorChar; 3101string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "1.0") + Path.DirectorySeparatorChar; 3102string testDirectory2 = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 3103string testDirectory3 = Path.Combine(testDirectoryRoot, "GoodTestSDK", "3.0") + Path.DirectorySeparatorChar; 3207string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 3281string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 3358string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 3424string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 3502string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar; 3566string testDirectory = Path.Combine(testDirectoryRoot, "GoodTestSDK", "2.0") + Path.DirectorySeparatorChar;
RoslynCodeTaskFactory_Tests.cs (1)
124<Reference Include=""{Path.Combine(folder.Path, "subFolder", "5106.dll")}"" />
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
TestResources\TestBinary.cs (1)
16Path.Combine(AppContext.BaseDirectory, "TestResources", "lorem.bin");
Unzip_Tests.cs (3)
134_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "subdir", "F83E9633685494E53BEF3794EDEEE6A6.txt"), customMessage: _mockEngine.Log); 135_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "subdir", "21D6D4596067723B3AC5DF9A8B3CBFE7.txt"), customMessage: _mockEngine.Log); 337_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "sub", "subfile.js"), customMessage: _mockEngine.Log);
VerifyFileHash_Tests.cs (3)
30File = Path.Combine(AppContext.BaseDirectory, "TestResources", "lorem.bin"), 48File = Path.Combine(AppContext.BaseDirectory, "TestResources", "lorem.bin"), 87File = Path.Combine(AppContext.BaseDirectory, "TestResources", "lorem.bin"),
Microsoft.Build.Utilities.Core (8)
FrameworkLocationHelper.cs (3)
606s_pathToV4ToolsInFallbackDotNetFrameworkSdk = Path.Combine(FallbackDotNetFrameworkSdkInstallPath, "bin", "NetFX 4.0 Tools"); 980string path = Path.Combine(targetFrameworkRootPath, frameworkName.Identifier, "v" + frameworkName.Version.ToString()); 983path = Path.Combine(path, "Profile", frameworkName.Profile);
PrintLineDebuggerWriters.cs (1)
83: Path.Combine(artifactsPart, "log", "Debug");
TempFileUtilities.cs (1)
85string temporaryDirectory = Path.Combine(TempFileDirectory, "Temporary" + Guid.NewGuid().ToString("N"), subfolder ?? string.Empty);
ToolLocationHelper.cs (3)
1127string referencesRoot = Path.Combine(targetPlatformSdkRoot, referencesFolderName, targetPlatformSdkVersion); 1132string contractPath = Path.Combine(referencesRoot, contract.Name, contract.Version); 1232? Path.Combine(matchingSdk.Path, folderName, targetPlatformVersion)
Microsoft.Build.Utilities.UnitTests (49)
TestAssemblyInfo.cs (1)
104string potentialVersionsPropsPath = Path.Combine(currentFolder, "build", "Versions.props");
ToolLocationHelper_Tests.cs (48)
76string referenceDirectory = Path.Combine(tempDirectory, Path.Combine("References", "Foo", "Bar")); 212returnValue.ShouldBe(Path.Combine(sdkRootFolder, "UnionMetadata", "10.0.14944.0")); 229string sdkDirectory = Path.Combine(tempDirectory, "Foo", "Bar"); 254string sdkDirectory = Path.Combine(tempDirectory, "Foo", "1.0"); 279string sdkDirectory = Path.Combine(tempDirectory, "Foo", "1.0"); 305string sdkDirectory = Path.Combine(tempDirectory, "Foo", "1.0"); 401string nonVersionFolder = Path.Combine(testPath, ".UnknownFramework", "NotAVersion"); 420string folder10 = Path.Combine(testPath, ".UnknownFramework", "v1.0"); 421string folder20 = Path.Combine(testPath, ".UnknownFramework", "v2.0"); 422string folder40 = Path.Combine(testPath, ".UnknownFramework", "v4.0"); 1395string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1397string redist40Directory = Path.Combine(tempDirectory, "v4.0", "RedistList") + Path.DirectorySeparatorChar; 1437string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1467string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1497string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1526string redist40Directory = Path.Combine(tempDirectory, "v4.0", "RedistList") + Path.DirectorySeparatorChar; 1557string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1593string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1627string redist41Directory = Path.Combine(tempDirectory, "v4.1", "RedistList") + Path.DirectorySeparatorChar; 1670string framework41Directory = Path.Combine(tempDirectory, "MyFramework", "v4.1") + Path.DirectorySeparatorChar; 1674string framework40Directory = Path.Combine(tempDirectory, "MyFramework", "v4.0") + Path.DirectorySeparatorChar; 1678string framework39Directory = Path.Combine(tempDirectory, "MyFramework", "v3.9") + Path.DirectorySeparatorChar; 1735string framework40Directory = Path.Combine(tempDirectory, "MyFramework", "v4.0") 1792string framework41Directory = Path.Combine(tempDirectory, "MyFramework", "v4.1") 1797string framework40Directory = Path.Combine(tempDirectory, "MyFramework", "v4.0") 2687stdLibPaths[0].ShouldBe(Path.Combine(customFrameworkDir, frameworkName, frameworkVersionWithV) + Path.DirectorySeparatorChar, stdLibPaths[0]); 2724string asmPath = Path.Combine(rootDir, frameworkName, frameworkVersion); 3547string platformDirectory = Path.Combine(testDirectoryRoot, "MyPlatform", "8.0") 3616string platformDirectory = Path.Combine(testDirectoryRoot, "MyPlatform", "8.0") 3795targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3802targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3820targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3826targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3831targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3835targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3844targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4064targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4067targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4070targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4073targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4076targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4432Directory.CreateDirectory(Path.Combine(tempPath, "WindowsKits", "6.0")); 4433Directory.CreateDirectory(Path.Combine(tempPath, "MyPlatform", "5.0")); 4440Directory.CreateDirectory(Path.Combine(tempPath, "MyPlatform", "1.0")); 4441Directory.CreateDirectory(Path.Combine(tempPath, "MyPlatform", "8.0")); 4448Directory.CreateDirectory(Path.Combine(tempPath, "MyPlatform", "9.0")); 4519Directory.CreateDirectory(Path.Combine(tempPath, "Windows", "v3.0") + Path.DirectorySeparatorChar); 4523Path.Combine(tempPath, "Windows", "NotAVersion") + Path.DirectorySeparatorChar);
Microsoft.DotNet.ApiCompat.Tests (1)
AttributeDifferenceTests.cs (1)
12private readonly string _implementationPath = Path.Combine(AppContext.BaseDirectory, "Implementation", "AttributeDifference.dll");
Microsoft.DotNet.Arcade.Sdk (1)
src\LocateDotNet.cs (1)
73if (dotNetDir == null || !Directory.Exists(Path.Combine(dotNetDir, "sdk", sdkVersion)))
Microsoft.DotNet.Arcade.Sdk.Tests (3)
Utilities\TestApp.cs (1)
101CopyRecursive(Path.Combine(WorkingDirectory, "artifacts", "log"), _logOutputDir);
Utilities\TestProjectFixture.cs (2)
43var tempDir = Path.Combine(Path.GetTempPath(), "arcade", instanceName); 55var pkgRoot = Path.Combine(nugetRoot, package, pkgVersion);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestV3.cs (1)
190Path.GetFullPath(Path.Combine(BlobAssetsBasePath, @"..\", "tempSymbols"));
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
GenerateBuildManifestTests.cs (1)
43var manifestPath = Path.Combine("C:", "manifests", "TestManifest.xml");
PushToAzureDevOpsArtifactsTests.cs (4)
26private static string TARGET_MANIFEST_PATH = Path.Combine("C:", "manifests", "TestManifest.xml"); 27private static string PACKAGE_A = Path.Combine("C:", "packages", "test-package-a.6.0.492.nupkg"); 28private static string PACKAGE_B = Path.Combine("C:", "packages", "test-package-b.6.0.492.nupkg"); 29private static string SAMPLE_MANIFEST = Path.Combine("C:", "manifests", "SampleManifest.xml");
TestInputs.cs (1)
12return Path.Combine(
Microsoft.DotNet.Build.Tasks.Installers (5)
src\BuildFPMToolPreReqs.cs (5)
75string changelogFile = Path.Combine(InputDir, "templates", "changelog"); 103string copyrightFile = Path.Combine(InputDir, "templates", "copyright"); 216parameters.Add(string.Concat("--rpm-changelog ", EscapeArg(Path.Combine(InputDir, "templates", "changelog")))); // Changelog File 232if (configJson.Install_Man != null) parameters.Add(string.Concat(Path.Combine(InputDir, "docs", "host/="), configJson.Install_Man)); // Man Pages 233if (configJson.Install_Doc != null) parameters.Add(string.Concat(Path.Combine(InputDir, "templates", "copyright="), configJson.Install_Doc)); // CopyRight File
Microsoft.DotNet.Build.Tasks.Packaging (4)
GetLayoutFiles.cs (2)
128var destination = Path.Combine(DestinationDirectory, subfolder, Path.GetFileName(source)); 142var symbolDestination = Path.Combine(DestinationDirectory, subfolder, Path.GetFileName(symbolSource));
HarvestPackage.cs (2)
472var candidateFolder = Path.Combine(packageFolder, packageId, packageVersion); 480candidateFolder = Path.Combine(packageFolder, packageId.ToLowerInvariant(), packageVersion.ToLowerInvariant());
Microsoft.DotNet.Build.Tasks.Packaging.Tests (2)
HarvestPackageTests.cs (2)
70string packageFolder = Path.Combine(packagesCandidate, packageId, packageVersion); 71string packageFolderLower = Path.Combine(packagesCandidate, packageId.ToLowerInvariant(), packageVersion.ToLowerInvariant());
Microsoft.DotNet.Build.Tasks.Templating.Tests (1)
GenerateFileFromTemplateTests.cs (1)
90return Path.Combine(
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
118var configurationsDir = Path.Combine(OutputDirectory, test.Container, "Configurations");
Microsoft.DotNet.Build.Tasks.Workloads (3)
Swix\ComponentSwixProject.cs (1)
39ProjectSourceDirectory = Path.Combine(SwixDirectory, $"{component.SdkFeatureBand}",
Swix\PackageGroupSwixProject.wix.cs (1)
41ProjectSourceDirectory = Path.Combine(SwixDirectory, $"{packageGroup.SdkFeatureBand}",
WorkloadManifestPackage.wix.cs (1)
110string primaryManifest = Path.Combine(DestinationDirectory, "data", ManifestFileName);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (3)
SwixComponentTests.cs (1)
19public string RandomPath => Path.Combine(AppContext.BaseDirectory, "obj", Path.GetFileNameWithoutExtension(Path.GetTempFileName()));
TestBase.cs (2)
11public static readonly string BaseIntermediateOutputPath = Path.Combine(AppContext.BaseDirectory, "obj", Path.GetFileNameWithoutExtension(Path.GetTempFileName())); 12public static readonly string BaseOutputPath = Path.Combine(AppContext.BaseDirectory, "bin", Path.GetFileNameWithoutExtension(Path.GetTempFileName()));
Microsoft.DotNet.Helix.Sdk (1)
InstallDotNetTool.cs (1)
96ToolPath = Path.Combine(DestinationPath, Name, Version);
Microsoft.DotNet.Helix.Sdk.Tests (2)
InstallDotNetToolTests.cs (2)
25private static readonly string s_installedPath = Path.Combine(InstallPath, ToolName, ToolVersion); 172Path.Combine(InstallPath, ToolName, ToolVersion),
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiAddProjectTests.cs (1)
71run = app.Execute(new[] { "add", "project", Path.Combine(csproj.Path, "..", "refProj.csproj") });
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.DotNet.SignCheckLibrary (2)
Verification\ArchiveVerifier.cs (1)
47string aliasFullName = Path.Combine(tempPath, hashedPath, aliasFileName);
Verification\SignatureVerificationResult.cs (1)
180_tempPath = Path.Combine(Path.GetTempPath(), "SignCheck", Path.GetRandomFileName());
Microsoft.DotNet.SignTool (8)
src\BatchSignUtil.cs (1)
169string engineFileName = $"{Path.Combine(workingDirectory, $"{engineContainer}", file.FileName)}{SignToolConstants.MsiEngineExtension}";
src\Configuration.cs (1)
706string tempPath = Path.Combine(_pathToContainerUnpackingDirectory, extractPathRoot, relativePath);
src\SignTool.cs (4)
157AppendLine(builder, depth: 1, text: $@"<Import Project=""{Path.Combine(MicroBuildCorePath, "build", "MicroBuild.Core.props")}"" />"); 179AppendLine(builder, depth: 1, text: $@"<Import Project=""{Path.Combine(MicroBuildCorePath, "build", "MicroBuild.Core.targets")}"" />"); 193AppendLine(builder, depth: 1, text: $@"<Import Project=""{Path.Combine(MicroBuildCorePath, "build", "MicroBuild.Core.props")}"" />"); 205AppendLine(builder, depth: 1, text: $@"<Import Project=""{Path.Combine(MicroBuildCorePath, "build", "MicroBuild.Core.targets")}"" />");
src\ZipData.cs (2)
201string workingDir = Path.Combine(tempDir, "extract", workingDirGuidSegment); 202string outputDir = Path.Combine(tempDir, "output", outputDirGuidSegment);
Microsoft.DotNet.SignTool.Tests (7)
SignToolTests.cs (7)
254return Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "tools", "wix"); 261var srcPath = Path.Combine(Path.GetDirectoryName(typeof(SignToolTests).Assembly.Location), "Resources", name); 1658$"{Path.Combine(_tmpDir, "A", "PackageWithRelationships.vsix")} -> {Path.Combine(_tmpDir, "B", "PackageWithRelationships.vsix")}" 1678<FilesToSign Include=""{Uri.EscapeDataString(Path.Combine(_tmpDir, "A", "PackageWithRelationships.vsix"))}""> 2300string workingDir = Path.Combine(tempDir, "extract", Guid.NewGuid().ToString()); 2301string outputDir = Path.Combine(tempDir, "output", Guid.NewGuid().ToString());
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\Language.cs (1)
20string templateDirectory = Path.GetFullPath(Path.Combine(
Microsoft.DotNet.VersionTools (2)
src\BuildInfo.cs (2)
141string latestPackagesPath = Path.Combine(dir, relativePath, LatestPackagesTxtFilename); 150string latestReleasePath = Path.Combine(dir, relativePath, LatestTxtFilename);
Microsoft.Extensions.ApiDescription.Client.Tests (31)
GetOpenApiReferenceMetadataTest.cs (11)
18var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 70var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 129var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 186var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 244var identity1 = Path.Combine("TestProjects", "files", "NSwag.json"); 245var identity2 = Path.Combine("TestProjects", "files", "swashbuckle.json"); 290var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 335var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 400var identity = Path.Combine("TestProjects", "files", "NSwag.json"); 457var identity12 = Path.Combine("TestProjects", "files", "NSwag.json"); 458var identity3 = Path.Combine("TestProjects", "files", "swashbuckle.json");
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
TargetTest.cs (19)
43directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "TestProjects", "build")); 50directory = new DirectoryInfo(Path.Combine(_assemblyLocation, "TestProjects", "files")); 149Assert.Contains($"Compile: {Path.Combine("obj", "azureMonitorClient.cs", "Generated1.cs")}", process.Output); 150Assert.Contains($"Compile: {Path.Combine("obj", "azureMonitorClient.cs", "Generated2.cs")}", process.Output); 152$"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs", "Generated1.cs")}", 155$"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs", "Generated2.cs")}", 178$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 203$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 228$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 255$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 280$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 305$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 330$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 357$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 381$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 387$"{Path.Combine(_temporaryDirectory.Root, "files", "NSwag.json")} " + 393$"{Path.Combine(_temporaryDirectory.Root, "files", "swashbuckle.json")} " + 422$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " + 428$"{Path.Combine(_temporaryDirectory.Root, "files", "azureMonitor.json")} " +
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
Infrastructure\RedisTestConfig.cs (2)
137return Path.Combine(configFilePath, UserProfileRedisNugetPackageServerPath, RedisServerExeName); 143return Path.Combine(configFilePath, CIMachineRedisNugetPackageServerPath, RedisServerExeName);
Microsoft.Extensions.DependencyModel (1)
Resolution\PackageCompilationAssemblyResolver.cs (1)
74return new string[] { Path.Combine(basePath, ".nuget", "packages") };
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
ManifestEmbeddedFileProviderTests.cs (2)
187var jqueryValidate = provider.GetFileInfo(Path.Combine(".", "wwwroot", "jquery.validate.js")); 210var jqueryValidate = provider.GetFileInfo(Path.Combine("..", "wwwroot", "jquery.validate.js"));
Microsoft.Extensions.Logging.AzureAppServices (2)
FileLoggerConfigureOptions.cs (1)
23options.LogDirectory = Path.Combine(_context.HomeFolder, "LogFiles", "Application");
SiteConfigurationProvider.cs (1)
13var settingsFolder = Path.Combine(context.HomeFolder, "site", "diagnostics");
Microsoft.Extensions.SecretManager.Tools.Tests (5)
SecretManagerTests.cs (2)
63var projectPath = Path.Combine(_fixture.GetTempSecretProject(), "does_not_exist", "TestProject.csproj"); 80Assert.Contains(Resources.FormatMessage_Project_File_Path(Path.Combine(cwd, "..", "TestProject.csproj")), _console.GetOutput());
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
TemporaryFileProvider.cs (1)
14Root = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "tmpfiles", Guid.NewGuid().ToString())).FullName;
UserSecretsTestFixture.cs (1)
57var projectPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "usersecretstest", Guid.NewGuid().ToString()));
MobileBuildTasks (1)
Android\Ndk\NdkTools.cs (1)
55asPrefixPath = Path.Combine(toolRootPath, Triple, "bin");
MSBuild (2)
PrintLineDebuggerWriters.cs (1)
83: Path.Combine(artifactsPart, "log", "Debug");
TempFileUtilities.cs (1)
85string temporaryDirectory = Path.Combine(TempFileDirectory, "Temporary" + Guid.NewGuid().ToString("N"), subfolder ?? string.Empty);
SignalR.Client.FunctionalTestApp (2)
src\SignalR\common\Shared\TestCertificates.cs (2)
35var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCert.pfx"); 41var certPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "TestCertificates", "testCertECC.pfx");
Sockets.BindTests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Sockets.FunctionalTests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
System.Console (2)
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (2)
28return Path.Combine(s_userProductDirectory, featureName, subFeatureName); 41s_userProductDirectory = Path.Combine(
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\Helper.NonMobile.cs (1)
49randomDirectory = Path.Combine(rootDirectory, Path.GetRandomFileName(), Path.GetRandomFileName());
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\LinuxIPGlobalStatistics.cs (1)
36string forwardingConfigFile = Path.Combine(NetworkFiles.Ipv6ConfigFolder,
System\Net\NetworkInformation\LinuxIPInterfaceStatistics.cs (1)
26string transmitQueueLengthFilePath = Path.Combine(NetworkFiles.SysClassNetFolder, name, NetworkFiles.TransmitQueueLengthFileName);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (1)
130data = Path.Combine(home, ".local", "share");
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (2)
28return Path.Combine(s_userProductDirectory, featureName, subFeatureName); 41s_userProductDirectory = Path.Combine(
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
130string assemblyPath = Path.Combine(
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (2)
783string assemblyPath = Path.Combine(parentDirectory, assemblyName.CultureName!, $"{assemblyName.Name}.dll"); 794assemblyPath = Path.Combine(parentDirectory, assemblyName.CultureName!.ToLowerInvariant(), $"{assemblyName.Name}.dll");
System.Security.Cryptography (2)
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (2)
28return Path.Combine(s_userProductDirectory, featureName, subFeatureName); 41s_userProductDirectory = Path.Combine(
Templates.Blazor.Tests (2)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
68: Path.Combine(Environment.GetEnvironmentVariable("HELIX_DIR"), "Templates", "BaseFolder");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
68: Path.Combine(Environment.GetEnvironmentVariable("HELIX_DIR"), "Templates", "BaseFolder");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\BrowserFixture.cs (1)
232return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
68: Path.Combine(Environment.GetEnvironmentVariable("HELIX_DIR"), "Templates", "BaseFolder");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\BrowserFixture.cs (1)
232return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Mvc.Tests (5)
BlazorTemplateTest.cs (2)
182var multiProjectPath = Path.Combine(project.TemplateOutputDir, project.ProjectName, $"{project.ProjectName}.csproj"); 195var appRazorPath = Path.Combine(project.TemplateOutputDir, "Components", "App.razor");
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
68: Path.Combine(Environment.GetEnvironmentVariable("HELIX_DIR"), "Templates", "BaseFolder");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\BrowserFixture.cs (1)
232return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Tests (3)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
68: Path.Combine(Environment.GetEnvironmentVariable("HELIX_DIR"), "Templates", "BaseFolder");
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\BrowserFixture.cs (1)
232return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
TestExclusionListTasks (9)
src\tasks\AndroidAppBuilder\ApkBuilder.cs (9)
137string buildToolsFolder = Path.Combine(AndroidSdk, "build-tools", BuildToolsVersion); 425string apkFile = Path.Combine(OutputDir, "bin", $"{ProjectName}.unaligned.apk"); 429dynamicLibs.Add(Path.Combine(OutputDir, "monodroid", "libmonodroid.so")); 441Directory.CreateDirectory(Path.Combine(OutputDir, "lib", abi)); 445string destRelative = Path.Combine("lib", abi, dynamicLibName); 500string alignedApk = Path.Combine(OutputDir, "bin", $"{ProjectName}.apk"); 552string buildToolsFolder = Path.Combine(AndroidSdk, "build-tools", BuildToolsVersion); 577string buildToolsFolder = Path.Combine(AndroidSdk, "build-tools", BuildToolsVersion); 585apkPath = Path.Combine(OutputDir, "bin", $"{ProjectName}.apk");
TestTasks (1)
InjectRequestHandler.cs (1)
61File.Copy(Path.Combine(outputFolder, bitnessString, aspnetcoreV2Name), Path.Combine(outputFolder, aspnetcoreV2Name), overwrite: true);
WasmAppBuilder (1)
wasi\WasiAppBuilder.cs (1)
90string directory = Path.Combine(AppDir, "managed", args.culture);
WorkloadBuildTasks (4)
InstallWorkloadFromArtifacts.cs (3)
256Log.LogMessage(MessageImportance.Low, $"\t{Path.Combine(req.TargetPath, "sdk-manifests", dir)}"); 259Log.LogMessage(MessageImportance.Low, $"\t{Path.Combine(req.TargetPath, "packs", dir)}"); 282string manifestVersionBandDir = Path.Combine(sdkDir, "sdk-manifests", VersionBandForSdkManifestsDir);
PackageInstaller.cs (1)
83.Select(r => (r, Path.Combine(_packagesDir, r.Name.ToLowerInvariant(), r.Version)))
xunit.console (2)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (1)
74return new string[] { Path.Combine(basePath, ".nuget", "packages") };
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (1)
53results.Add(Path.Combine(basePath, ".nuget", "packages"));