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