41 references to CliInstallMode
Aspire.Deployment.EndToEnd.Tests (41)
AcaCompactNamingUpgradeDeploymentTests.cs (5)
58
if (localCurrentBuildStrategy.Mode is
CliInstallMode
.InstallScript &&
301
CliInstallMode
.LocalHive or
CliInstallMode
.Preinstalled => "aspire update --channel local",
302
CliInstallMode
.PullRequest => $"aspire update --channel pr-{DeploymentE2ETestHelpers.GetPrNumber()}",
303
CliInstallMode
.LocalArchive => "aspire update --channel run-local",
Helpers\DeploymentE2EAutomatorHelpers.cs (6)
36
case
CliInstallMode
.LocalHive:
43
case
CliInstallMode
.Preinstalled:
47
case
CliInstallMode
.PullRequest:
72
case
CliInstallMode
.LocalArchive:
81
case
CliInstallMode
.InstallScript:
89
case
CliInstallMode
.DotnetTool:
RadiusAzureResourcesDeploymentTests.cs (1)
31
if (localCurrentBuildStrategy.Mode is
CliInstallMode
.InstallScript &&
tests\Shared\CliInstallStrategy.cs (29)
233
public
CliInstallMode
Mode { get; }
276
Mode is
CliInstallMode
.DotnetTool &&
280
private CliInstallStrategy(
CliInstallMode
mode, string? archivePath = null, CliInstallQuality? quality = null, string? version = null, string? archiveDir = null, string? nupkgSourcePath = null, bool includePrerelease = false, string? expectedVersion = null)
302
return new CliInstallStrategy(
CliInstallMode
.LocalHive, archivePath: archivePath);
310
return new CliInstallStrategy(
CliInstallMode
.Preinstalled);
318
return new CliInstallStrategy(
CliInstallMode
.InstallScript, quality: quality);
331
return new CliInstallStrategy(
CliInstallMode
.InstallScript, version: version);
347
return new CliInstallStrategy(
CliInstallMode
.PullRequest);
362
return new CliInstallStrategy(
CliInstallMode
.LocalArchive, archiveDir: archiveDir, expectedVersion: expectedVersion);
370
return new CliInstallStrategy(
CliInstallMode
.InstallScript);
383
return new CliInstallStrategy(
CliInstallMode
.DotnetTool, version: version, includePrerelease: version is null && includePrerelease, expectedVersion: version);
410
return new CliInstallStrategy(
CliInstallMode
.DotnetTool, version: version, nupkgSourcePath: nupkgSourcePath, expectedVersion: version);
536
case
CliInstallMode
.LocalHive:
540
case
CliInstallMode
.Preinstalled:
543
case
CliInstallMode
.PullRequest:
554
case
CliInstallMode
.LocalArchive:
563
case
CliInstallMode
.InstallScript:
566
case
CliInstallMode
.DotnetTool:
595
CliInstallMode
.LocalHive => $"LocalHive ({ArchivePath})",
596
CliInstallMode
.Preinstalled => "Preinstalled (~/.aspire)",
597
CliInstallMode
.PullRequest => $"PullRequest (PR #{Environment.GetEnvironmentVariable("GITHUB_PR_NUMBER")})",
598
CliInstallMode
.LocalArchive => $"LocalArchive ({ArchiveDir})",
599
CliInstallMode
.InstallScript when Quality is not null => $"InstallScript (--quality {Quality.Value.ToString().ToLowerInvariant()})",
600
CliInstallMode
.InstallScript when Version is not null => $"InstallScript (--version {Version})",
601
CliInstallMode
.InstallScript => "InstallScript (latest GA)",
602
CliInstallMode
.DotnetTool when NupkgSourcePath is not null => $"DotnetTool (local: {NupkgSourcePath}, --version {Version})",
603
CliInstallMode
.DotnetTool when Version is not null => $"DotnetTool (--version {Version})",
604
CliInstallMode
.DotnetTool when IncludePrerelease => "DotnetTool (latest prerelease)",
605
CliInstallMode
.DotnetTool => "DotnetTool (latest)",