12 writes to CliPath
Aspire.Hosting (3)
Dcp\DcpOptions.cs (3)
205options.CliPath = dcpPublisherConfiguration[nameof(options.CliPath)]; 214options.CliPath = BundleDiscovery.GetDcpExecutablePath(configDcpPath); 220options.CliPath = GetMetadataValue(assemblyMetadata, DcpCliPathMetadataKey);
Aspire.Hosting.Tests (9)
Dcp\DcpCliArgsTests.cs (1)
130CliPath = " ",
Dcp\DcpHostNotificationTests.cs (7)
76var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker", CliPath = OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" }); 173var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker", CliPath = OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" }); 232var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker", CliPath = OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" }); 291var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "podman", CliPath = OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" }); 345var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker", CliPath = OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" }); 417var dcpOptions = Options.Create(new DcpOptions { ContainerRuntime = "docker", CliPath = OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh" }); 600var dcpOptions = new DcpOptions { CliPath = dummyPath, DashboardPath = "/dummy/dashboard" };
DistributedApplicationBuilderTests.cs (1)
50o.CliPath = "dcp";
11 references to CliPath
Aspire.Hosting (6)
Dcp\DcpDependencyCheck.cs (1)
44var dcpPath = _dcpOptions.CliPath;
Dcp\DcpHost.cs (1)
297var dcpExePath = _dcpOptions.CliPath;
Dcp\DcpOptions.cs (4)
151if (executionContext.IsRunMode && string.IsNullOrWhiteSpace(options.CliPath)) 202if (!string.IsNullOrWhiteSpace(dcpPublisherConfiguration[nameof(options.CliPath)])) 205options.CliPath = dcpPublisherConfiguration[nameof(options.CliPath)]; 206if (Path.GetDirectoryName(options.CliPath) is string dcpDir && !string.IsNullOrEmpty(dcpDir))
Aspire.Hosting.Tests (5)
AppHostSmokeTests.cs (1)
32remoteInvokeOptions.StartInfo.Environment[$"DcpPublisher__CliPath"] = dcpOptions.CliPath;
Dcp\DcpCliArgsTests.cs (4)
61Assert.Equal("/not/a/valid/path", dcpOptions.CliPath); 79Assert.Equal(explicitDcpPath, dcpOptions.CliPath); 98Assert.Equal(BundleDiscovery.GetDcpExecutablePath(bundleDcpPath), dcpOptions.CliPath); 117Assert.Equal(BundleDiscovery.GetDcpExecutablePath(bundleDcpPath), dcpOptions.CliPath);