348 references to Path
Aspire.Cli.Tests (348)
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\InstallSourceDetectorTests.cs (14)
47File.WriteAllText(Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName), sidecar); 49var detector = CreateDetector(Path.Combine(workspace.Path, "aspire"), TestEnvironment.CreateLinux()); 74var detector = CreateDetector(Path.Combine(workspace.Path, "dotnet"), environment); 91var detector = CreateDetector(Path.Combine(workspace.Path, "aspire"), environment); 102var processPath = Path.Combine(workspace.Path, "aspire.exe"); 114Assert.Empty(Directory.GetFiles(workspace.Path)); 125var detector = CreateDetector(Path.Combine(workspace.Path, "aspire"), TestEnvironment.CreateLinux(), registry); 138var detector = CreateDetector(Path.Combine(workspace.Path, "aspire.exe"), TestEnvironment.CreateWindows(), registry); 161var processPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 181[variable] = Path.Combine(workspace.Path, root) + Path.DirectorySeparatorChar 183var processPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 220var processPath = Path.Combine(workspace.Path, "MISE", "INSTALLS", "ASPIRE", "13.5.0", windows ? "ASPIRE.EXE" : "aspire"); 253var processPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 268var linkPath = Path.Combine(workspace.Path, "aspire");
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");
Agents\TelemetryHookConfiguratorTests.cs (2)
241: Path.Combine(workspace.Path, OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 246["args"] = new JsonArray(Path.Combine(workspace.Path, assemblyName), "agent", "telemetry", "--hook")
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\CompletionsCommandTests.cs (9)
263"legacy-local" => ConfigurationHelper.BuildPathToSettingsJsonFile(workspace.Path), 264_ => Path.Combine(workspace.Path, AspireConfigFile.FileName) 273var originalFiles = Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories) 275var originalDirectories = Directory.GetDirectories(workspace.Path, "*", SearchOption.AllDirectories).Order().ToArray(); 277options.StartInfo.WorkingDirectory = workspace.Path; 318Assert.Equal(originalFiles.Keys.Order(), Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories).Order()); 319Assert.Equal(originalDirectories, Directory.GetDirectories(workspace.Path, "*", SearchOption.AllDirectories).Order()); 333var settingsPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 337options.StartInfo.WorkingDirectory = workspace.Path;
Commands\InitCommandTests.cs (3)
476await File.WriteAllTextAsync(Path.Combine(workspace.Path, "apphost.mts"), "console.log('existing AppHost');"); 479var originalFiles = Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories) 522var projectFiles = Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories).Where(path => path != logFilePath);
Commands\SdkDumpCommandTests.cs (2)
257var repoRoot = AspireRepositoryDetector.DetectRepositoryRoot(workspace.Path); 277Path.Combine(workspace.Path, "output"), "Aspire.Hosting.Redis@13.2.0"]);
Commands\UpdateCommandTests.cs (8)
379var appHost = new FileInfo(Path.Combine(workspace.Path, "apphost.ts")); 381var configPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 387var serverProject = new FakeFailingAppHostServerProject(workspace.Path); 2881Path.Combine(workspace.Path, AspireConfigFile.FileName), 2907? Path.Combine(workspace.Path, AspireConfigFile.FileName) 2908: Path.Combine(workspace.Path, ".aspire", "settings.global.json"); 2937await File.WriteAllTextAsync(Path.Combine(workspace.Path, AspireConfigFile.FileName), """{ "channel": "staging" }"""); 2938await File.WriteAllTextAsync(Path.Combine(workspace.Path, ".aspire", "settings.global.json"), """{ "channel": "daily" }""");
Configuration\ConfigurationHelperTests.cs (4)
131"legacy-local" => ConfigurationHelper.BuildPathToSettingsJsonFile(workspace.Path), 132_ => Path.Combine(workspace.Path, AspireConfigFile.FileName) 154var originalFiles = Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories) 178Assert.Equal(originalFiles.Keys.Order(), Directory.GetFiles(workspace.Path, "*", SearchOption.AllDirectories).Order());
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (2)
1228Assert.Empty(service.GetNuGetSettings(workspace.Path, TestContext.Current.CancellationToken).DisabledPackageSourceKeys); 1229Assert.Equal([source], NuGetTestHelper.GetEligiblePackageSources(workspace.Path, "Aspire.Hosting.Redis"));
DotNet\DotNetCliRunnerTests.cs (1)
2419var projectFile = new FileInfo(Path.Combine(workspace.Path, "AppHost.csproj"));
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");
Layout\TrayLayoutTests.cs (3)
24var root = workspace.Path; 73var source = Path.Combine(workspace.Path, "publish"); 85var extracted = Path.Combine(workspace.Path, "extracted");
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");
NuGet\NuGetTestHelperTests.cs (4)
19var snapshot = client.GetSettings(workspace.Path, new byte[NuGetSourceIdentity.KeySizeInBytes]); 20var settings = NuGetTestHelper.LoadSettings(workspace.Path); 27Assert.Equal([PackageSources.NuGetOrg], NuGetTestHelper.GetEligiblePackageSources(workspace.Path, "Example.Dependency")); 39var configPath = Path.Combine(workspace.Path, "NuGet.Config");
ProgramTests.cs (4)
42File.WriteAllText(Path.Combine(workspace.Path, InstallSidecarReader.SidecarFileName), $$"""{"source":"{{source}}"}"""); 49? Path.Combine(workspace.Path, "mise", "installs", "aspire", "13.5.0", "aspire") 50: Path.Combine(workspace.Path, "aspire"); 81new TestProcessPathProvider(Path.Combine(workspace.Path, "aspire.exe")),
Projects\AppHostServerProjectTests.cs (1)
65var parentConfigPath = Path.Combine(_workspace.Path, "NuGet.Config");
Projects\DefaultLanguageDiscoveryTests.cs (2)
196var appHostPath = Path.Combine(workspace.Path, relativePath.Replace('/', Path.DirectorySeparatorChar)); 203var located = java.FindInDirectory(workspace.Path);
Projects\GuestRuntimeTests.cs (5)
281var directory = new DirectoryInfo(workspace.Path); 975new DirectoryInfo(workspace.Path), 981new DirectoryInfo(workspace.Path), 1136var tempDir = workspace.Path; 1179var 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");
Projects\NativeAppHostServerProjectTests.cs (43)
27var enabled = Directory.CreateDirectory(Path.Combine(workspace.Path, "enabled")); 29var disabled = Directory.CreateDirectory(Path.Combine(workspace.Path, "disabled")); 30var executable = Path.Combine(workspace.Path, "server"); 50new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path); 53Assert.Equal(workspace.Path, factory.GetInstanceIdentifier(workspace.Path)); 54var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => factory.CreateAsync(workspace.Path)); 62new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path); 77var layout = new LayoutConfiguration { LayoutPath = workspace.Path }; 97using var project = Assert.IsType<NativeAppHostServerProject>(await factory.CreateAsync(workspace.Path)); 109Assert.Throws<ArgumentException>(() => new NativeAppHostServerProject(workspace.Path, 110Path.Combine(workspace.Path, "missing"), new TestProcessExecutionFactory(), NullLogger.Instance)); 117var executable = Path.Combine(workspace.Path, "server"); 119using var project = new NativeAppHostServerProject(workspace.Path, executable, new TestProcessExecutionFactory(), NullLogger.Instance); 129[IntegrationReference.FromProject("Aspire.Hosting.Redis", Path.Combine(workspace.Path, "Redis.csproj"))])); 140var executable = Path.Combine(workspace.Path, "server"); 142using var project = new NativeAppHostServerProject(workspace.Path, executable, new TestProcessExecutionFactory(), NullLogger.Instance); 144? IntegrationReference.FromProject(name, Path.Combine(workspace.Path, "tooling.csproj")) 154var executable = Path.Combine(workspace.Path, "server"); 162Assert.Equal(workspace.Path, start.WorkingDirectory); 163Assert.Equal(["server", "--contentRoot", workspace.Path], start.ArgumentList); 181using (var project = new NativeAppHostServerProject(workspace.Path, executable, factory, NullLogger.Instance)) 209var executable = Path.Combine(workspace.Path, "server"); 230using var project = new NativeAppHostServerProject(workspace.Path, executable, processes, NullLogger.Instance); 249var executable = Path.Combine(workspace.Path, "server"); 263using var project = new NativeAppHostServerProject(workspace.Path, executable, factory, NullLogger.Instance) 265LayoutLease = new BundleLayoutLease(new LayoutConfiguration { LayoutPath = workspace.Path }, null) 301var executable = Path.Combine(workspace.Path, "server"); 307var layout = new LayoutConfiguration { LayoutPath = workspace.Path }; 311Assert.Equal(["server", "--contentRoot", workspace.Path], start.ArgumentList); 332using var project = new NativeAppHostServerProject(workspace.Path, executable, factory, NullLogger.Instance) 366var executable = Path.Combine(workspace.Path, "server"); 374using var project = new NativeAppHostServerProject(workspace.Path, executable, processes, logger); 425var executable = Path.Combine(workspace.Path, "server"); 427var root = Directory.CreateDirectory(Path.Combine(workspace.Path, "provider")); 438await File.WriteAllTextAsync(Path.Combine(workspace.Path, "outside.json"), "{}"); 439using var project = new NativeAppHostServerProject(workspace.Path, executable, 452var executable = Path.Combine(workspace.Path, "server"); 453var managedDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "managed")); 456await File.WriteAllTextAsync(Path.Combine(workspace.Path, "ats-contract.json"), "{}"); 457var providerDirectory = Directory.CreateDirectory(Path.Combine(workspace.Path, "provider")); 484using var project = new NativeAppHostServerProject(workspace.Path, executable, processes, logger) 486LayoutLease = new BundleLayoutLease(new LayoutConfiguration { LayoutPath = workspace.Path }, null)
Projects\ProjectUpdaterNuGetConfigurationTests.cs (35)
55var configFile = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config")); 108Assert.Empty(Directory.EnumerateDirectories(Path.Combine(workspace.Path, ".aspire"), ".aspire-nuget-config-*")); 151Assert.Empty(Directory.EnumerateDirectories(Path.Combine(workspace.Path, ".aspire"), ".aspire-nuget-config-*")); 172var configPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 214var config = AspireConfigFile.Load(workspace.Path); 249var aspireConfigPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 342var aspireConfig = AspireConfigFile.Load(workspace.Path); 364Assert.Empty(Directory.EnumerateDirectories(Path.Combine(workspace.Path, ".aspire"), ".aspire-nuget-config-*")); 394Assert.False(File.Exists(Path.Combine(workspace.Path, "nuget.config"))); 395Assert.Empty(Directory.EnumerateDirectories(Path.Combine(workspace.Path, ".aspire"), ".aspire-nuget-config-*")); 423var configFile = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config")); 526var configFile = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config")); 534var projectFile = new FileInfo(Path.Combine(workspace.Path, "apphost.cs")); 544var aspireConfigPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 595Assert.Equal(newVersion, AspireConfigFile.Load(workspace.Path)!.SdkVersion); 626var file = new FileInfo(Path.Combine(workspace.Path, fileName)); 656await File.WriteAllTextAsync(Path.Combine(workspace.Path, AspireConfigFile.FileName), 703Assert.Empty(Directory.EnumerateDirectories(Path.Combine(workspace.Path, ".aspire"), ".aspire-nuget-config-*")); 720var channelSourceKey = $"aspire-{AppHostWorkloadId.Create(workspace.Path)}"; 738var configFile = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config")); 787NuGetTestHelper.GetEligiblePackageSources(workspace.Path, "Aspire.Hosting.Redis").Order()); 789.GetNuGetSettings(workspace.Path, TestContext.Current.CancellationToken); 818var configFile = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config")); 854options.NuGetRestoreTargetsFile?.DirectoryName ?? workspace.Path, "Aspire.Hosting.Redis").Order()); 872NuGetTestHelper.GetEligiblePackageSources(workspace.Path, "Aspire.Hosting.Redis").Order()); 874.GetNuGetSettings(workspace.Path, TestContext.Current.CancellationToken); 932await File.WriteAllTextAsync(Path.Combine(workspace.Path, AspireConfigFile.FileName), 954var aspireConfigPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 1024var parentConfig = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config")); 1177var aspireConfigPath = Path.Combine(workspace.Path, AspireConfigFile.FileName); 1312Assert.Empty(Directory.EnumerateFiles(workspace.Path, ".aspire-nuget-candidate-*")); 1313Assert.Empty(Directory.EnumerateDirectories(Path.Combine(workspace.Path, ".aspire"), ".aspire-nuget-config-*")); 1422Assert.Empty(Directory.EnumerateFiles(workspace.Path, ".aspire-nuget-candidate-*")); 1439var propsFile = new FileInfo(Path.Combine(workspace.Path, "Directory.Packages.props")); 1473var configFile = new FileInfo(Path.Combine(workspace.Path, "NuGet.Config"));
Projects\ProjectUpdaterTests.cs (4)
256var syntheticProject = Path.Combine(workspace.Path, "generated", "apphost.cs.csproj"); 430new AspireConfigFile { SdkVersion = "9.4.1" }.Save(workspace.Path); 1480new AspireConfigFile { SdkVersion = "9.5.0" }.Save(workspace.Path); 2956new AspireConfigFile { SdkVersion = "9.4.1" }.Save(workspace.Path);
Telemetry\AgentTelemetryPersistenceTests.cs (3)
228}, workspace.Path, shutdown.ToString(), persist.ToString()); 396var lockPath = Path.Combine(workspace.Path, "uploader.lock"); 580}, workspace.Path, isCIEnvironment.ToString());
Telemetry\AgentTelemetryUploaderTests.cs (4)
18var lockPath = Path.Combine(workspace.Path, "uploader.lock"); 42var lockPath = Path.Combine(workspace.Path, "uploader.lock"); 45await AgentTelemetryUploader.DrainAsync(workspace.Path, lockPath, CancellationToken.None).DefaultTimeout(); 54var lockPath = Path.Combine(workspace.Path, "uploader.lock");
Telemetry\InternalMicrosoftDetectorTests.cs (68)
43var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 85var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 111var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 135var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 174Path.Combine(workspace.Path, "cache", "detector.json"), 210Path.Combine(workspace.Path, "cache", "detector.json"), 256Path.Combine(workspace.Path, "cache", "detector.json"), 286Path.Combine(workspace.Path, "cache", "detector.json"), 329Path.Combine(workspace.Path, "cache", "detector.json"), 356Path.Combine(workspace.Path, "cache", "detector.json"), 372var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 391var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 418var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 441var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 467Path.Combine(workspace.Path, "cache", "detector.json"), 490var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 524var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 563var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 589Path.Combine(workspace.Path, "cache", "detector.json"), 610Path.Combine(workspace.Path, "cache", "detector.json"), 630await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 631await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 642Path.Combine(workspace.Path, "cache", "detector.json"), 648["PATH"] = workspace.Path, 668await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 669await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 679Path.Combine(workspace.Path, "cache", "detector.json"), 685["PATH"] = workspace.Path, 702await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 703await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 710Path.Combine(workspace.Path, "cache", "detector.json"), 716["PATH"] = workspace.Path, 849var appSsoPath = Path.Combine(workspace.Path, "usr", "bin", "app-sso"); 871Path.Combine(workspace.Path, "cache", "detector.json"), 891var outputPath = Path.Combine(workspace.Path, "platform-sso-output.txt"); 922Path.Combine(workspace.Path, "detector.json"), 941Path.Combine(workspace.Path, "cache", "detector.json"), 944macPlatformSsoPath: Path.Combine(workspace.Path, "missing-app-sso")); 957var appSsoPath = Path.Combine(workspace.Path, "app-sso"); 987Path.Combine(workspace.Path, "cache", "detector.json"), 1001Path.Combine(workspace.Path, "full-detector-cache", "detector.json"), 1074Path.Combine(workspace.Path, "cache", "detector.json"), 1095await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 1096await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 1102Path.Combine(workspace.Path, "cache", "detector.json"), 1108["PATH"] = workspace.Path, 1126await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1133["PATH"] = workspace.Path 1136Path.Combine(workspace.Path, "cache", "detector.json"), 1157await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1164["PATH"] = workspace.Path 1167Path.Combine(workspace.Path, "cache", "detector.json"), 1191Path.Combine(workspace.Path, "cache", "detector.json"), 1216Path.Combine(workspace.Path, "cache", "detector.json"), 1233var cacheFilePath = Path.Combine(workspace.Path, "cache", "detector.json"); 1264Path.Combine(workspace.Path, "cache", "detector.json"), 1288Path.Combine(workspace.Path, "cache", "detector.json"), 1312Path.Combine(workspace.Path, "cache", "detector.json"), 1336Path.Combine(workspace.Path, "cache", "detector.json"), 1359Path.Combine(workspace.Path, "cache", "detector.json"), 1364["PATH"] = workspace.Path, 1388environmentVariables["PATH"] = workspace.Path; 1391Path.Combine(workspace.Path, "cache", "detector.json"), 1416Path.Combine(workspace.Path, "cache", "detector.json"), 1622environmentVariables["PATH"] = workspace.Path; 1625Path.Combine(workspace.Path, "cache", "detector.json"), 1672environmentVariables["PATH"] = workspace.Path; 1675Path.Combine(workspace.Path, "cache", "detector.json"),
Telemetry\ReportedLogExportTests.cs (4)
66}, workspace.Path)) 70var envelopes = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(workspace.Path, "envelopes.json")))!.AsArray(); 212}, workspace.Path, enabled.ToString(), forceFlush.ToString()); 261}, workspace.Path, collectionType);
Telemetry\TelemetryShutdownTests.cs (1)
284}, workspace.Path, scenario);
tests\Shared\TemporaryWorkspace.cs (1)
218var aspireDir = IOPath.Combine(workspace.Path, ".aspire");
tests\Shared\TemporaryWorkspaceGitExtensions.cs (2)
15workspace.TestOutputHelper.WriteLine($"Initializing git repository at: {workspace.Path}"); 17await RunGitAsync(workspace.Path, workspace.TestOutputHelper, ["init"], cancellationToken);
Utils\DcpConnectionHealthCheckTests.cs (3)
290options.StartInfo.Environment["HOME"] = workspace.Path; 291options.StartInfo.Environment["USERPROFILE"] = workspace.Path; 312}, workspace.Path, options).Dispose();
Utils\DotNetToolDetectionTests.cs (3)
27var toolPath = Path.Combine(workspace.Path, "custom tool path"); 54var toolPath = Path.Combine(workspace.Path, "custom tool path"); 82var processPath = Path.Combine(workspace.Path, GetAspireExecutableName());
Utils\TemporaryWorkspaceTests.cs (9)
23Assert.True(Directory.Exists(Path.Combine(workspace.Path, ".git"))); 24Assert.Contains(recordingOutput.Messages, message => message.EndsWith($"Starting 'git init' in '{workspace.Path}'", StringComparison.Ordinal)); 46await TemporaryWorkspaceGitExtensions.RunGitAsync(workspace.Path, recordingOutput, ["-c", $"alias.noisy={alias}", "noisy"], TestContext.Current.CancellationToken); 62TemporaryWorkspaceGitExtensions.RunGitAsync(workspace.Path, recordingOutput, ["-c", $"alias.fail={alias}", "fail"], TestContext.Current.CancellationToken)); 64Assert.Equal($"'git -c alias.fail={alias} fail' in '{workspace.Path}' failed with exit code 7. stdout: test-stdout{Environment.NewLine}, stderr: test-stderr{Environment.NewLine}", exception.Message); 89TemporaryWorkspaceGitExtensions.RunGitAsync(workspace.Path, recordingOutput, ["-c", $"alias.wait={alias}", "wait"], cancellation.Token)); 114: GitTestHelper.RunGitAsync(workspace.Path, recordingOutput, "--version")); 149TemporaryWorkspaceGitExtensions.RunGitAsync(workspace.Path, recordingOutput, ["-c", "alias.wait=!echo ready; echo ready >&2; sleep 60", "wait"], TestContext.Current.CancellationToken)); 184TemporaryWorkspaceGitExtensions.RunGitAsync(workspace.Path, recordingOutput, ["-c", "alias.wait=!echo ready; sleep 60", "wait"], TestContext.Current.CancellationToken));