16 writes to LayoutPath
aspire (3)
Bundles\BundleService.cs (1)
733LayoutPath = versionDirectory,
Layout\LayoutDiscovery.cs (2)
277LayoutPath = layoutPath, 325LayoutPath = layoutPath,
Aspire.Cli.Tests (13)
BundleServiceIntegrationTests.cs (1)
832LayoutPath = layoutRoot,
Commands\DashboardRunCommandTests.cs (1)
699LayoutPath = layoutDir,
Commands\StopCommandTests.cs (1)
1529LayoutPath = layoutRoot.FullName,
Commands\TrayCommandTests.cs (1)
537var layout = new LayoutConfiguration { LayoutPath = root, Components = new LayoutComponents { Tray = LayoutComponents.MacTrayExecutablePath } };
Layout\LayoutConfigurationTests.cs (3)
37var layout = new LayoutConfiguration { LayoutPath = workspace.WorkspaceRoot.FullName }; 54var layout = new LayoutConfiguration { LayoutPath = workspace.WorkspaceRoot.FullName }; 89var layout = new LayoutConfiguration { LayoutPath = workspace.WorkspaceRoot.FullName };
Processes\ProcessTreeGracefulShutdownServiceTests.cs (1)
172Layout = new LayoutConfiguration { LayoutPath = versionRoot.FullName }
ProfileCaptureServiceTests.cs (2)
128Layout = new LayoutConfiguration { LayoutPath = layoutRoot.FullName } 161Layout = new LayoutConfiguration { LayoutPath = layoutRoot.FullName }
Projects\DotNetAppHostProjectTests.cs (1)
4804LayoutPath = bundleRoot.FullName,
Projects\PrebuiltAppHostServerTests.cs (1)
2952return new LayoutConfiguration { LayoutPath = layoutRoot.FullName };
Utils\CliTestHelper.cs (1)
843LayoutPath = Path.GetDirectoryName(dcpDirectory),
34 references to LayoutPath
aspire (7)
Commands\TrayLifecycleService.cs (1)
64if (lease is null || !lease.HasLease || layout?.LayoutPath is not { } bundleRoot ||
Layout\LayoutConfiguration.cs (2)
64if (string.IsNullOrEmpty(LayoutPath)) 80return relativePath is not null ? Path.Combine(LayoutPath, relativePath) : null;
Layout\LayoutDiscovery.cs (2)
72_logger.LogDebug("Discovered layout relative to CLI: {Path}", relativeLayout.LayoutPath); 87_logger.LogDebug("Discovered layout in Aspire home: {Path}", aspireHomeLayout.LayoutPath);
Projects\DotNetAppHostProject.cs (2)
2606if (!HasEnvironmentOverride(env, "AspireCliBundlePath") && !string.IsNullOrEmpty(layoutLease?.Layout.LayoutPath)) 2608env["AspireCliBundlePath"] = layoutLease.Layout.LayoutPath;
Aspire.Cli.Tests (27)
Commands\TrayCommandTests.cs (17)
54? ["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", cliPath] 55: ["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 76Assert.Equal(["start", "--cli", packagedCli, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 90Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 106Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", installed], 130var root = layout.LayoutPath!; 191Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", cliPath], factory.LastArguments!); 192Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout.LayoutPath!)); 282var root = bundle.Layout!.LayoutPath!; 341Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 368Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 385var root = bundle.Layout!.LayoutPath!; 437var root = bundle.Layout!.LayoutPath!; 497Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 569WindowsTrayTestPayload.Create(Path.Combine(bundle.Layout.LayoutPath!, "tray"), 596Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 640var root = bundle.Layout!.LayoutPath!;
Layout\LayoutDiscoveryReparsePointTests.cs (10)
59Assert.Equal(realLayoutRoot, layout!.LayoutPath); 88Assert.Equal(rawLayoutRoot, layout!.LayoutPath); 126Assert.Equal(layoutRoot, layout!.LayoutPath); 168Assert.Equal(aspireHome, layout!.LayoutPath); 214Assert.Equal(relativeLayoutRoot, layout!.LayoutPath); 215Assert.NotEqual(aspireHome, layout.LayoutPath); 253Assert.NotEqual(layoutRoot, layout?.LayoutPath); 289Assert.NotEqual(layoutRoot, discovery.DiscoverLayout()?.LayoutPath); 292Assert.NotEqual(layoutRoot, discovery.DiscoverLayout()?.LayoutPath); 299Assert.Equal(layoutRoot, layout.LayoutPath);