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