23 references to AddCommandStrings
aspire (21)
Commands\AddCommand.cs (20)
34
Description =
AddCommandStrings
.IntegrationArgumentDescription,
37
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project",
AddCommandStrings
.ProjectArgumentDescription);
40
Description =
AddCommandStrings
.VersionArgumentDescription
44
Description =
AddCommandStrings
.SourceArgumentDescription
48
: base("add",
AddCommandStrings
.Description, features, updateNotifier, executionContext, interactionService, telemetry)
113
AddCommandStrings
.SearchingForAspirePackages,
153
throw new EmptyChoicesException(
AddCommandStrings
.NoIntegrationPackagesFound);
162
InteractionService.DisplayError(
AddCommandStrings
.NoPackagesFound);
198
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
222
InteractionService.DisplayMessage("information_source",
AddCommandStrings
.StoppedRunningInstance);
226
InteractionService.DisplayError(
AddCommandStrings
.UnableToStopRunningInstances);
232
AddCommandStrings
.AddingAspireIntegration,
242
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageInstallationFailed, ExitCodeConstants.FailedToAddPackage, ExecutionContext.LogFilePath));
246
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
270
var errorMessage = string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.ErrorOccurredWhileAddingPackage, ex.Message);
288
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
318
InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.NoPackagesMatchedSearchTerm, searchTerm));
371
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
438
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
455
AddCommandStrings
.SelectAnIntegrationToAdd,
Resources\AddCommandStrings.Designer.cs (1)
36
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.AddCommandStrings", typeof(
AddCommandStrings
).Assembly);
Aspire.Cli.Tests (2)
Commands\AddCommandTests.cs (2)
446
Assert.Contains(
AddCommandStrings
.NoIntegrationPackagesFound, displayedErrorMessage);
520
Assert.Equal(string.Format(
AddCommandStrings
.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage);