59 references to ErrorStrings
aspire (52)
Backchannel\AppHostCliBackchannel.cs (3)
261throw new InvalidOperationException(ErrorStrings.AlreadyConnectedToBackchannel); 287string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability), 307string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostIncompatibleWithCli, BaselineCapability),
Backchannel\ExtensionBackchannel.cs (9)
71?? throw new InvalidOperationException(ErrorStrings.ExtensionTokenMustBeSet); 175throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidSocketPath, endpoint)); 227string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 243string.Format(CultureInfo.CurrentCulture, ErrorStrings.ExtensionIncompatibleWithCli, 436throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 466throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 490throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 516throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.NoSelectionMade, promptText)); 542throw 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)
148InteractionService.DisplayError(ErrorStrings.CommandNotSupportedWithSingleFileAppHost); 289appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(ErrorStrings.AspireHostingVersionNull)
Commands\UpdateCommand.cs (1)
229if (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
DotNet\DotNetCliRunner.cs (2)
244var ex = new InvalidOperationException(ErrorStrings.CantUseBothWatchAndNoBuild); 451throw new InvalidOperationException(ErrorStrings.FailedToParseTemplateVersionFromStdout);
NuGet\NuGetPackageCache.cs (2)
42}) ?? throw new NuGetPackageCacheException(ErrorStrings.FailedToRetrieveCachedTemplatePackages); 101throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture, ErrorStrings.FailedToSearchForPackages, result.ExitCode));
Program.cs (2)
287errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales)); 290errorMessage = string.Format(CultureInfo.CurrentCulture, ErrorStrings.InvalidLocaleProvided, localeOverride);
Projects\ProjectLocator.cs (9)
102interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture, ErrorStrings.ProjectFileMayBeUnbuildableAppHost, relativePath)); 149interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture, ErrorStrings.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath)); 187throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 214throw new ProjectLocatorException(ErrorStrings.MultipleProjectFilesFound); 225throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 244throw new ProjectLocatorException(ErrorStrings.ProjectFileDoesntExist); 265throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound); 269throw new ProjectLocatorException(ErrorStrings.AppHostsMayNotBeBuildable); 279MultipleAppHostProjectsFoundBehavior.Throw => throw new ProjectLocatorException(ErrorStrings.MultipleProjectFilesFound),
Resources\ErrorStrings.Designer.cs (1)
36System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.ErrorStrings", typeof(ErrorStrings).Assembly);
Utils\AppHostHelper.cs (4)
24interactionService.DisplayError(ErrorStrings.ProjectCouldNotBeAnalyzed); 30interactionService.DisplayError(ErrorStrings.ProjectIsNotAppHost); 36interactionService.DisplayError(ErrorStrings.CouldNotParseAspireSDKVersion); 43interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (1)
48ErrorStrings.MinimumSdkVersionNotMet,
Utils\VersionHelper.cs (1)
13return PackageUpdateHelpers.GetCurrentAssemblyVersion() ?? throw new InvalidOperationException(ErrorStrings.UnableToRetrieveAssemblyVersion);
Aspire.Cli.Tests (7)
Commands\UpdateCommandTests.cs (1)
177throw new ProjectLocatorException(ErrorStrings.NoProjectFileFound);
DotNetSdkInstallerTests.cs (1)
271ErrorStrings.ResourceManager.GetString("MinimumSdkVersionNotMet", CultureInfo.GetCultureInfo("en-US"))!,
Projects\ProjectLocatorTests.cs (5)
47Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message); 275Assert.Equal(ErrorStrings.NoProjectFileFound, ex.Message); 569Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message); 617Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message); 783Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);