37 references to NewCommandStrings
aspire (29)
Commands\NewCommand.cs (22)
40Description = NewCommandStrings.NameArgumentDescription, 45Description = NewCommandStrings.OutputArgumentDescription, 50Description = NewCommandStrings.SourceArgumentDescription, 55Description = NewCommandStrings.VersionArgumentDescription, 77: base("new", NewCommandStrings.Description, services) 100? NewCommandStrings.ChannelOptionDescriptionWithStaging 101: NewCommandStrings.ChannelOptionDescription, 108Description = NewCommandStrings.LanguageOptionDescription, 322InteractionService.DisplayError(NewCommandStrings.NonInteractiveTemplateRequired); 356NewCommandStrings.ResolvingTemplateVersion, 409errorMessage = NewCommandStrings.NoPackageChannelsAvailable; 424NewCommandStrings.NoChannelFoundMatching, 467NewCommandStrings.NoTemplateVersionsFoundInChannel, 490NewCommandStrings.NoMatchingLocalTemplatePackage, 500InteractionService.DisplayError(NewCommandStrings.SourceWithCredentialsCannotBePersisted); 510NewCommandStrings.SourceDirectoryNotFound, 716NewCommandStrings.SelectATemplateVersion, 760NewCommandStrings.SelectATemplateVersion, 777NewCommandStrings.EnterTheOutputPath, 791NewCommandStrings.EnterTheProjectName, 795: ValidationResult.Error(NewCommandStrings.InvalidProjectName), 802NewCommandStrings.SelectAProjectTemplate,
Resources\NewCommandStrings.Designer.cs (1)
31System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.NewCommandStrings", typeof(NewCommandStrings).Assembly);
Templating\OutputPathHelper.cs (6)
102var subdirectoryChoice = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.CreateProjectNameSubdirectoryChoice, projectName); 104NewCommandStrings.SelectProjectCreationLocation, 105[subdirectoryChoice, NewCommandStrings.CreateProjectDirectlyInSelectedFolderChoice], 131return string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, path); 137var format = isExplicitOutput ? NewCommandStrings.OutputDirectoryNotEmptyNonInteractive : NewCommandStrings.OutputDirectoryNotEmptyInteractive;
Aspire.Cli.Tests (8)
Commands\NewCommandChannelResolutionTests.cs (1)
222NewCommandStrings.NoMatchingLocalTemplatePackage,
Commands\NewCommandTests.cs (7)
98Assert.Equal(NewCommandStrings.ChannelOptionDescriptionWithStaging, channelOption.Description); 1403Assert.Contains(NewCommandStrings.SourceWithCredentialsCannotBePersisted, interactionService!.DisplayedErrors); 2366e => string.Equals(e, NewCommandStrings.NonInteractiveTemplateRequired, StringComparison.Ordinal)); 3023NewCommandStrings.OutputDirectoryNotEmptyInteractive, 3330var expectedError = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputDirectoryNotEmptyNonInteractive, existingDir.FullName); 3412var expectedError = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, invalidPath); 3469var expectedMessage = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, invalidPath);