17 writes to CliPath
Aspire.Hosting (3)
Dcp\DcpOptions.cs (3)
264
options.
CliPath
= dcpPublisherConfiguration[nameof(options.CliPath)];
273
options.
CliPath
= BundleDiscovery.GetDcpExecutablePath(configDcpPath);
279
options.
CliPath
= GetMetadataValue(assemblyMetadata, DcpCliPathMetadataKey);
Aspire.Hosting.Tests (14)
Dcp\DcpCliArgsTests.cs (1)
154
CliPath
= " ",
Dcp\DcpHostNotificationTests.cs (12)
77
var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker",
CliPath
= OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" });
174
var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker",
CliPath
= OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" });
219
var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker",
CliPath
= OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" });
264
var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "podman",
CliPath
= OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" });
318
var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker",
CliPath
= OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" });
386
var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker",
CliPath
= OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" });
664
var dcpOptions = new DcpOptions {
CliPath
= dummyPath, DashboardPath = "/dummy/dashboard" };
729
var dcpOptions = new DcpOptions {
CliPath
= CreateFakeDcpLauncher(launcherDir.FullName, launcherExitCode) };
774
var dcpOptions = Options.Create(new DcpOptions {
CliPath
= CreateFakeDcpWithHangingInfo(dcpDir.FullName), DependencyCheckTimeout = 2 });
798
var dcpOptions = Options.Create(new DcpOptions {
CliPath
= CreateFakeDcpWithHangingInfo(dcpDir.FullName), DependencyCheckTimeout = 2 });
819
var dependencyCheck = new DcpDependencyCheck(Options.Create(new DcpOptions {
CliPath
= cliPath, DependencyCheckTimeout = 10 }));
846
var dcpOptions = Options.Create(new DcpOptions {
CliPath
= CreateFakeDcpWithOutput(dcpDir.FullName, output), DependencyCheckTimeout = 10 });
DistributedApplicationBuilderTests.cs (1)
53
o.
CliPath
= "dcp";
11 references to CliPath
Aspire.Hosting (6)
Dcp\DcpDependencyCheck.cs (1)
84
var dcpPath = _dcpOptions.
CliPath
;
Dcp\DcpHost.cs (1)
318
var dcpExePath = _dcpOptions.
CliPath
;
Dcp\DcpOptions.cs (4)
185
if (executionContext.IsRunMode && string.IsNullOrWhiteSpace(options.
CliPath
))
261
if (!string.IsNullOrWhiteSpace(dcpPublisherConfiguration[nameof(options.
CliPath
)]))
264
options.CliPath = dcpPublisherConfiguration[nameof(options.
CliPath
)];
265
if (Path.GetDirectoryName(options.
CliPath
) is string dcpDir && !string.IsNullOrEmpty(dcpDir))
Aspire.Hosting.Tests (5)
AppHostSmokeTests.cs (1)
32
remoteInvokeOptions.StartInfo.Environment[$"DcpPublisher__CliPath"] = dcpOptions.
CliPath
;
Dcp\DcpCliArgsTests.cs (4)
73
Assert.Equal("/not/a/valid/path", dcpOptions.
CliPath
);
103
Assert.Equal(explicitDcpPath, dcpOptions.
CliPath
);
122
Assert.Equal(BundleDiscovery.GetDcpExecutablePath(bundleDcpPath), dcpOptions.
CliPath
);
141
Assert.Equal(BundleDiscovery.GetDcpExecutablePath(bundleDcpPath), dcpOptions.
CliPath
);