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)
122
AddCommandStrings
.SearchingForAspirePackages,
162
throw new EmptyChoicesException(
AddCommandStrings
.NoIntegrationPackagesFound);
171
InteractionService.DisplayError(
AddCommandStrings
.NoPackagesFound);
207
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
229
InteractionService.DisplayMessage(KnownEmojis.Information,
AddCommandStrings
.StoppedRunningInstance);
233
InteractionService.DisplayError(
AddCommandStrings
.UnableToStopRunningInstances);
238
AddCommandStrings
.AddingAspireIntegration,
248
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageInstallationFailed, ExitCodeConstants.FailedToAddPackage, ExecutionContext.LogFilePath));
252
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
276
var errorMessage = string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.ErrorOccurredWhileAddingPackage, ex.Message);
294
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
328
InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.NoPackagesMatchedSearchTerm, searchTerm));
381
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
448
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
465
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)
444
Assert.Contains(testInteractionService.DisplayedErrors, e => e.Contains(
AddCommandStrings
.NoIntegrationPackagesFound));
520
Assert.Equal(string.Format(
AddCommandStrings
.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage);