57 references to ErrorStrings
aspire (56)
Backchannel\AppHostBackchannel.cs (3)
113throw new InvalidOperationException(ErrorStrings.AlreadyConnectedToBackchannel); 134string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability), 145string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability),
Backchannel\ExtensionBackchannel.cs (9)
70?? throw new InvalidOperationException(ErrorStrings.ExtensionTokenMustBeSet); 174throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidSocketPath, endpoint)); 226string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 242string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 435throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 465throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 489throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 515throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 541throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText));
Certificates\CertificateService.cs (1)
58interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture, ErrorStrings.CertificatesMayNotBeFullyTrusted, trustExitCode));
Commands\BaseCommand.cs (5)
61if (string.Equals(ex.Message, ErrorStrings.ProjectFileNotAppHostProject, StringComparisons.CliInputOrOutput)) 66if (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput)) 71if (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput)) 76if (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput)) 81if (string.Equals(ex.Message, ErrorStrings.AppHostsMayNotBeBuildable, StringComparisons.CliInputOrOutput))
Commands\ConfigCommand.cs (9)
88InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 112InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 152InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 158InteractionService.DisplayError(ErrorStrings.ConfigurationValueRequired); 193InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorSettingConfiguration, ex.Message)); 262InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 276InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 310InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 316InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorDeletingConfiguration, ex.Message));
Commands\ExecCommand.cs (2)
142InteractionService.DisplayError(ErrorStrings.CommandNotSupportedWithSingleFileAppHost); 283appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(ErrorStrings.AspireHostingVersionNull)
Commands\PublishCommandBase.cs (2)
112InteractionService.DisplayError(ErrorStrings.SingleFileAppHostFeatureNotEnabled); 232appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(ErrorStrings.AspireHostingVersionNull)
Commands\RunCommand.cs (2)
126InteractionService.DisplayError(ErrorStrings.SingleFileAppHostFeatureNotEnabled); 353appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(ErrorStrings.AspireHostingVersionNull)
Commands\UpdateCommand.cs (1)
49InteractionService.DisplayError(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
DotNet\DotNetCliRunner.cs (2)
234var ex = new InvalidOperationException(ErrorStrings.CantUseBothWatchAndNoBuild); 425throw new InvalidOperationException(ErrorStrings.FailedToParseTemplateVersionFromStdout);
NuGet\NuGetPackageCache.cs (2)
43}) ?? throw new NuGetPackageCacheException(ErrorStrings.FailedToRetrieveCachedTemplatePackages); 104throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.FailedToSearchForPackages, result.ExitCode));
Program.cs (2)
191errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales)); 194errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidLocaleProvided, localeOverride);
Projects\ProjectLocator.cs (9)
77interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileMayBeUnbuildableAppHost, relativePath)); 197interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath)); 302throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 325throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 340throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 345throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 357throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 378throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound); 382throw new ProjectLocatorException(ErrorStrings.AppHostsMayNotBeBuildable);
Resources\ErrorStrings.Designer.cs (1)
36System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.ErrorStrings", typeof(ErrorStrings).Assembly);
Utils\AppHostHelper.cs (4)
22interactionService.DisplayError(ErrorStrings.ProjectCouldNotBeAnalyzed); 28interactionService.DisplayError(ErrorStrings.ProjectIsNotAppHost); 34interactionService.DisplayError(ErrorStrings.CouldNotParseAspireSDKVersion); 41interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (1)
38ErrorStrings.MinimumSdkVersionNotMet,
Utils\VersionHelper.cs (1)
13return PackageUpdateHelpers.GetCurrentAssemblyVersion() ?? throw new InvalidOperationException(ErrorStrings.UnableToRetrieveAssemblyVersion);
Aspire.Cli.Tests (1)
DotNetSdkInstallerTests.cs (1)
290ErrorStrings.MinimumSdkVersionNotMet,