187 references to Path
Aspire.Cli.Tests (187)
Acquisition\InstallSidecarWriterTests.cs (14)
15var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 28using var update = InstallSidecarWriter.PrepareForSelfUpdate(workspace.Path, "staging"); 44Assert.Empty(Directory.GetFiles(workspace.Path, $"{InstallSidecarReader.SidecarFileName}.*.tmp")); 52using var update = InstallSidecarWriter.PrepareForSelfUpdate(workspace.Path, "daily"); 54var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 63var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 67Assert.ThrowsAny<JsonException>(() => InstallSidecarWriter.PrepareForSelfUpdate(workspace.Path, "staging")); 70Assert.Empty(Directory.GetFiles(workspace.Path, $"{InstallSidecarReader.SidecarFileName}.*.tmp")); 77var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 86() => InstallSidecarWriter.PrepareForSelfUpdate(workspace.Path, "staging")); 90Assert.Empty(Directory.GetFiles(workspace.Path, $"{InstallSidecarReader.SidecarFileName}.*.tmp")); 97var sidecarPath = Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName); 101InstallSidecarWriter.PrepareForSelfUpdate(workspace.Path, "staging")!.Dispose(); 104Assert.Empty(Directory.GetFiles(workspace.Path, $"{InstallSidecarReader.SidecarFileName}.*.tmp"));
Acquisition\WingetRegistryProbeTests.cs (8)
23probe.Run(workspace.Path); 25var sidecarPath = Path.Combine(workspace.Path, SidecarFileName); 36Assert.Empty(Directory.GetFiles(workspace.Path)); 44var sidecarPath = Path.Combine(workspace.Path, SidecarFileName); 57probe.Run(workspace.Path); 76probe.Run(workspace.Path); 89var sidecarPath = Path.Combine(workspace.Path, SidecarFileName); 93var leftovers = Directory.GetFiles(workspace.Path, $"{SidecarFileName}.*.tmp");
BundleServiceComputeDefaultExtractDirTests.cs (7)
32var prefixDir = Path.Combine(workspace.Path, "aspire"); 55var prDir = Path.Combine(workspace.Path, "dogfood", "pr-12345"); 76var installDir = Path.Combine(workspace.Path, "WindowsApps", "Microsoft.Aspire_8wekyb3d8bbwe"); 103var cellarDir = Path.Combine(workspace.Path, "Caskroom", "aspire", "13.2.0"); 109var brewBinDir = Path.Combine(workspace.Path, "bin"); 131workspace.Path, 160var prefixDir = Path.Combine(workspace.Path, "nix", "store", "aspire");
Certificates\DeveloperCertificateCacheWriteTests.cs (3)
22options.StartInfo.Environment["HOME"] = workspace.Path; 23options.StartInfo.Environment["USERPROFILE"] = workspace.Path; 50}, workspace.Path, options).Dispose();
Commands\InitCommandTests.cs (3)
478await File.WriteAllTextAsync(Path.Combine(workspace.Path, "apphost.mts"), "console.log('existing AppHost');"); 481var originalFiles = Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories) 524var projectFiles = Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories).Where(path => path != logFilePath);
HeldFileLeaseTests.cs (5)
57var leaseDirectory = Path.Combine(workspace.Path, "missing"); 79var readyPath = Path.Combine(workspace.Path, "ready"); 80var releasePath = Path.Combine(workspace.Path, "release"); 135var readyPath = Path.Combine(workspace.Path, "ready"); 136var releasePath = Path.Combine(workspace.Path, "release");
Npm\AspireJsLauncherTests.cs (9)
25var layout = CreateFakeNpmLayout(workspace.Path, pointerVersion, rid, ridPackageName, ridPackageVersion); 43var layout = CreateFakeNpmLayout(workspace.Path, pointerVersion, rid, ridPackageName, pointerVersion); 64var layout = CreateFakeNpmLayout(workspace.Path, pointerVersion, rid, ridPackageName, pointerVersion); 66var monkeyPatchScript = Path.Combine(workspace.Path, "patch-chmod.js"); 93var layout = CreateFakeNpmLayout(workspace.Path, pointerVersion, rid, ridPackageName, pointerVersion); 95var monkeyPatchScript = Path.Combine(workspace.Path, "patch-copy.js"); 122var layout = CreateFakeNpmLayout(workspace.Path, pointerVersion, rid, ridPackageName, pointerVersion); 150var probeScript = Path.Combine(workspace.Path, "detect-rids.js"); 169var probeScript = Path.Combine(workspace.Path, "detect-current-rid.js");
Projects\DefaultLanguageDiscoveryTests.cs (2)
196var appHostPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 203var located = java.FindInDirectory(workspace.Path);
Projects\GuestRuntimeTests.cs (5)
282var directory = new DirectoryInfo(workspace.Path); 976new DirectoryInfo(workspace.Path), 982new DirectoryInfo(workspace.Path), 1137var tempDir = workspace.Path; 1180var tempDir = workspace.Path;
Projects\JavaAppHostToolchainResolverTests.cs (58)
84File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 95File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 104File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 105File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 114File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 138File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 139var wrapper = WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 147workspace.Path, 186File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 187WriteWrapper(workspace.Path, buildFileName == "pom.xml" 243File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 244var wrapper = WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 251workspace.Path, 281File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 282WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 315var wrapperPath = Path.Combine(workspace.Path, expectedWrapper); 350WriteBuildRootMarker(workspace.Path, useMaven); 352var rootWrapperPath = Path.Combine(workspace.Path, expectedWrapper); 355var moduleDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "apphost")); 375var appHostDirectory = CreateMavenReactor(workspace.Path); 376var localRepository = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-maven-repository")); 386Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 410Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 441var appHostDirectory = CreateIndependentMavenReactor(workspace.Path); 442var localRepository = Directory.CreateDirectory(Path.Combine(workspace.Path, "empty-maven-repository")); 452Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"), 480Path.Combine(workspace.Path, "pom.xml"), 482var wrapperPath = WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 484var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "standalone")); 692WriteBuildRootMarker(workspace.Path, useMaven); 693File.WriteAllText(Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? windowsWrapperName : wrapperName), ""); 695var innerCheckout = Directory.CreateDirectory(Path.Combine(workspace.Path, "inner")); 721File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 722WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 723var scriptPath = Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle"); 740File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 741WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 745var script = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle")); 756File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 758var dependencyDirectory = Path.Combine(workspace.Path, "target", "aspire-deps"); 773File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 777Assert.False(Directory.Exists(Path.Combine(workspace.Path, "target"))); 784File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 785WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 787var dependencyDirectory = Path.Combine(workspace.Path, "build", "aspire-deps"); 806File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 823File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 824var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "src", "main", "java")); 831Assert.Equal(workspace.Path, resolution.ProjectDirectory.FullName); 838File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 839var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "a", "b", "c")); 848File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 849WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 850var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "src", "main", "java")); 890File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 891WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 892var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "src", "main", "java")); 899var scriptPath = Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle");
Telemetry\InternalMicrosoftDetectorTests.cs (66)
44var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 86var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 112var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 136var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 175Path.Combine(workspace.Path, "cache", "detector.json"), 211Path.Combine(workspace.Path, "cache", "detector.json"), 257Path.Combine(workspace.Path, "cache", "detector.json"), 287Path.Combine(workspace.Path, "cache", "detector.json"), 330Path.Combine(workspace.Path, "cache", "detector.json"), 357Path.Combine(workspace.Path, "cache", "detector.json"), 373var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 392var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 419var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 442var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 468Path.Combine(workspace.Path, "cache", "detector.json"), 491var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 525var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 564var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 590Path.Combine(workspace.Path, "cache", "detector.json"), 611Path.Combine(workspace.Path, "cache", "detector.json"), 631await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 632await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 643Path.Combine(workspace.Path, "cache", "detector.json"), 649["PATH"] = workspace.Path, 669await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 670await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 680Path.Combine(workspace.Path, "cache", "detector.json"), 686["PATH"] = workspace.Path, 703await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 704await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 711Path.Combine(workspace.Path, "cache", "detector.json"), 717["PATH"] = workspace.Path, 850var appSsoPath = Path.Combine(workspace.Path, "usr", "bin", "app-sso"); 872Path.Combine(workspace.Path, "cache", "detector.json"), 891Path.Combine(workspace.Path, "cache", "detector.json"), 894macPlatformSsoPath: Path.Combine(workspace.Path, "missing-app-sso")); 907var appSsoPath = Path.Combine(workspace.Path, "app-sso"); 937Path.Combine(workspace.Path, "cache", "detector.json"), 951Path.Combine(workspace.Path, "full-detector-cache", "detector.json"), 1024Path.Combine(workspace.Path, "cache", "detector.json"), 1045await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 1046await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 1052Path.Combine(workspace.Path, "cache", "detector.json"), 1058["PATH"] = workspace.Path, 1076await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1083["PATH"] = workspace.Path 1086Path.Combine(workspace.Path, "cache", "detector.json"), 1107await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1114["PATH"] = workspace.Path 1117Path.Combine(workspace.Path, "cache", "detector.json"), 1141Path.Combine(workspace.Path, "cache", "detector.json"), 1166Path.Combine(workspace.Path, "cache", "detector.json"), 1183var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 1214Path.Combine(workspace.Path, "cache", "detector.json"), 1238Path.Combine(workspace.Path, "cache", "detector.json"), 1262Path.Combine(workspace.Path, "cache", "detector.json"), 1286Path.Combine(workspace.Path, "cache", "detector.json"), 1309Path.Combine(workspace.Path, "cache", "detector.json"), 1314["PATH"] = workspace.Path, 1338environmentVariables["PATH"] = workspace.Path; 1341Path.Combine(workspace.Path, "cache", "detector.json"), 1362Path.Combine(workspace.Path, "cache", "detector.json"), 1568environmentVariables["PATH"] = workspace.Path; 1571Path.Combine(workspace.Path, "cache", "detector.json"), 1618environmentVariables["PATH"] = workspace.Path; 1621Path.Combine(workspace.Path, "cache", "detector.json"),
tests\Shared\TemporaryWorkspace.cs (1)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire");
Utils\DcpConnectionHealthCheckTests.cs (3)
221options.StartInfo.Environment["HOME"] = workspace.Path; 222options.StartInfo.Environment["USERPROFILE"] = workspace.Path; 243}, workspace.Path, options).Dispose();
Utils\DotNetToolDetectionTests.cs (3)
28var toolPath = Path.Combine(workspace.Path, "custom tool path"); 55var toolPath = Path.Combine(workspace.Path, "custom tool path"); 83var processPath = Path.Combine(workspace.Path, GetAspireExecutableName());