21 writes to LayoutPath
aspire (3)
Bundles\BundleService.cs (1)
733
LayoutPath
= versionDirectory,
Layout\LayoutDiscovery.cs (2)
277
LayoutPath
= layoutPath,
326
LayoutPath
= layoutPath,
Aspire.Cli.Tests (18)
BundleServiceIntegrationTests.cs (1)
833
LayoutPath
= layoutRoot,
Commands\DashboardRunCommandTests.cs (1)
699
LayoutPath
= layoutDir,
Commands\StopCommandTests.cs (1)
1529
LayoutPath
= layoutRoot.FullName,
Commands\TrayCommandTests.cs (1)
603
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)
4844
LayoutPath
= bundleRoot.FullName,
Projects\NativeAppHostServerProjectTests.cs (5)
39
Layout = new LayoutConfiguration {
LayoutPath
= workspace.Path }
86
var layout = new LayoutConfiguration {
LayoutPath
= workspace.Path };
274
LayoutLease = new BundleLayoutLease(new LayoutConfiguration {
LayoutPath
= workspace.Path }, null)
316
var layout = new LayoutConfiguration {
LayoutPath
= workspace.Path };
495
LayoutLease = new BundleLayoutLease(new LayoutConfiguration {
LayoutPath
= workspace.Path }, null)
Projects\PrebuiltAppHostServerTests.cs (1)
5043
return new LayoutConfiguration {
LayoutPath
= layoutRoot.FullName };
Utils\CliTestHelper.cs (1)
843
LayoutPath
= Path.GetDirectoryName(dcpDirectory),
36 references to LayoutPath
aspire (7)
Commands\TrayLifecycleService.cs (1)
67
if (lease is null || !lease.HasLease || layout?.
LayoutPath
is not { } bundleRoot ||
Layout\LayoutConfiguration.cs (2)
66
if (string.IsNullOrEmpty(
LayoutPath
))
83
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)
2681
if (!HasEnvironmentOverride(env, "AspireCliBundlePath") && !string.IsNullOrEmpty(layoutLease?.Layout.
LayoutPath
))
2683
env["AspireCliBundlePath"] = layoutLease.Layout.
LayoutPath
;
Aspire.Cli.Tests (29)
Commands\TrayCommandTests.cs (19)
41
? ["start", "--cli", cli, "--bundle-root", bundle.Layout.
LayoutPath
!, "--startup-cli", cli]
85
Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout.
LayoutPath
!));
118
? ["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.
LayoutPath
!, "--startup-cli", cliPath]
119
: ["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.
LayoutPath
!], factory.LastArguments);
140
Assert.Equal(["start", "--cli", packagedCli, "--bundle-root", bundle.Layout!.
LayoutPath
!], factory.LastArguments);
154
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.
LayoutPath
!], factory.LastArguments);
170
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.
LayoutPath
!, "--startup-cli", installed],
194
var root = layout.
LayoutPath
!;
255
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.
LayoutPath
!, "--startup-cli", cliPath], factory.LastArguments!);
256
Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout.
LayoutPath
!));
348
var root = bundle.Layout!.
LayoutPath
!;
407
Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.
LayoutPath
!));
434
Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.
LayoutPath
!));
451
var root = bundle.Layout!.
LayoutPath
!;
503
var root = bundle.Layout!.
LayoutPath
!;
563
Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.
LayoutPath
!));
635
WindowsTrayTestPayload.Create(Path.Combine(bundle.Layout.
LayoutPath
!, "tray"),
662
Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.
LayoutPath
!));
706
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
);