130 references to Path
Aspire.Cli.Tests (130)
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();
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)
284var directory = new DirectoryInfo(workspace.Path); 790new DirectoryInfo(workspace.Path), 796new DirectoryInfo(workspace.Path), 947var tempDir = workspace.Path; 990var tempDir = workspace.Path;
Projects\JavaAppHostToolchainResolverTests.cs (48)
81File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 92File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 101File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 102File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 111File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 135File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 136var wrapper = WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 144workspace.Path, 183File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 184WriteWrapper(workspace.Path, buildFileName == "pom.xml" 234File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 235var wrapper = WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 242workspace.Path, 272File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 273WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 306var wrapperPath = Path.Combine(workspace.Path, expectedWrapper); 341WriteBuildRootMarker(workspace.Path, useMaven); 343var rootWrapperPath = Path.Combine(workspace.Path, expectedWrapper); 346var moduleDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "apphost")); 371WriteBuildRootMarker(workspace.Path, useMaven); 372File.WriteAllText(Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? windowsWrapperName : wrapperName), ""); 374var innerCheckout = Directory.CreateDirectory(Path.Combine(workspace.Path, "inner")); 400File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 401WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 402var scriptPath = Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle"); 419File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 420WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 424var script = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle")); 435File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 437var dependencyDirectory = Path.Combine(workspace.Path, "target", "aspire-deps"); 452File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 456Assert.False(Directory.Exists(Path.Combine(workspace.Path, "target"))); 463File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 464WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 466var dependencyDirectory = Path.Combine(workspace.Path, "build", "aspire-deps"); 485File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 502File.WriteAllText(Path.Combine(workspace.Path, buildFileName), ""); 503var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "src", "main", "java")); 510Assert.Equal(workspace.Path, resolution.ProjectDirectory.FullName); 517File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 518var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "a", "b", "c")); 527File.WriteAllText(Path.Combine(workspace.Path, "pom.xml"), "<project />"); 528WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"); 529var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "src", "main", "java")); 569File.WriteAllText(Path.Combine(workspace.Path, "build.gradle"), ""); 570WriteWrapper(workspace.Path, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew"); 571var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "src", "main", "java")); 578var scriptPath = Path.Combine(workspace.Path, ".aspire", "aspire-gradle-init.gradle");
Telemetry\InternalMicrosoftDetectorTests.cs (27)
23var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 62var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 98Path.Combine(workspace.Path, "cache", "detector.json"), 134Path.Combine(workspace.Path, "cache", "detector.json"), 177Path.Combine(workspace.Path, "cache", "detector.json"), 217Path.Combine(workspace.Path, "cache", "detector.json"), 237Path.Combine(workspace.Path, "cache", "detector.json"), 257await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 258await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 268Path.Combine(workspace.Path, "cache", "detector.json"), 274["PATH"] = workspace.Path, 294await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 295await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 302Path.Combine(workspace.Path, "cache", "detector.json"), 308["PATH"] = workspace.Path, 331Path.Combine(workspace.Path, "cache", "detector.json"), 354Path.Combine(workspace.Path, "cache", "detector.json"), 378Path.Combine(workspace.Path, "cache", "detector.json"), 402Path.Combine(workspace.Path, "cache", "detector.json"), 425Path.Combine(workspace.Path, "cache", "detector.json"), 430["PATH"] = workspace.Path, 454environmentVariables["PATH"] = workspace.Path; 457Path.Combine(workspace.Path, "cache", "detector.json"), 480environmentVariables["PATH"] = workspace.Path; 483Path.Combine(workspace.Path, "cache", "detector.json"), 530environmentVariables["PATH"] = workspace.Path; 533Path.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());