60 references to ErrorStrings
aspire (53)
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)
70
?? throw new InvalidOperationException(
ErrorStrings
.ExtensionTokenMustBeSet);
174
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidSocketPath, endpoint));
226
string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ExtensionIncompatibleWithCli,
242
string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ExtensionIncompatibleWithCli,
435
throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.NoSelectionMade, promptText));
465
throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.NoSelectionMade, promptText));
489
throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.NoSelectionMade, promptText));
515
throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.NoSelectionMade, promptText));
541
throw new ExtensionOperationCanceledException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.NoSelectionMade, promptText));
Certificates\CertificateService.cs (1)
88
interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.CertificatesMayNotBeFullyTrusted, trustResultCode));
Commands\ConfigCommand.cs (9)
89
InteractionService.DisplayError(
ErrorStrings
.ConfigurationKeyRequired);
113
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ConfigurationKeyNotFound, key));
152
InteractionService.DisplayError(
ErrorStrings
.ConfigurationKeyRequired);
158
InteractionService.DisplayError(
ErrorStrings
.ConfigurationValueRequired);
193
var errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ErrorSettingConfiguration, ex.Message);
371
InteractionService.DisplayError(
ErrorStrings
.ConfigurationKeyRequired);
385
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ConfigurationKeyNotFound, key));
419
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ConfigurationKeyNotFound, key));
425
var errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ErrorDeletingConfiguration, ex.Message);
Commands\ExecCommand.cs (2)
132
InteractionService.DisplayError(
ErrorStrings
.CommandNotSupportedWithSingleFileAppHost);
275
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\UpdateCommand.cs (1)
236
if (string.Equals(ex.Message,
ErrorStrings
.NoProjectFileFound, StringComparisons.CliInputOrOutput))
Configuration\AspireConfigFile.cs (1)
133
string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidJsonInConfigFile, filePath, ex.Message),
DotNet\DotNetCliRunner.cs (2)
421
var ex = new InvalidOperationException(
ErrorStrings
.CantUseBothWatchAndNoBuild);
578
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)
542
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales));
545
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidLocaleProvided, localeOverride);
Projects\ProjectLocator.cs (13)
135
interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ProjectFileUnsupportedInCurrentEnvironment, relativePath));
142
interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ProjectFileMayBeUnbuildableAppHost, relativePath));
206
interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostWasSpecifiedButDoesntExist, configFilePath, qualifiedPath));
236
interactionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath));
276
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound, ProjectLocatorFailureReason.UnsupportedProjects);
280
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist);
307
throw new ProjectLocatorException(
ErrorStrings
.MultipleProjectFilesFound, ProjectLocatorFailureReason.MultipleProjectFilesFound);
318
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist);
342
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist, ProjectLocatorFailureReason.ProjectFileDoesntExist);
364
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound, ProjectLocatorFailureReason.UnsupportedProjects);
367
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound, ProjectLocatorFailureReason.NoProjectFileFound);
371
throw new ProjectLocatorException(
ErrorStrings
.AppHostsMayNotBeBuildable, ProjectLocatorFailureReason.AppHostsMayNotBeBuildable);
381
MultipleAppHostProjectsFoundBehavior.Throw => throw new ProjectLocatorException(
ErrorStrings
.MultipleProjectFilesFound, ProjectLocatorFailureReason.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)
23
interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ProjectCouldNotBeAnalyzed, logFilePath));
29
interactionService.DisplayError(
ErrorStrings
.ProjectIsNotAppHost);
35
interactionService.DisplayError(
ErrorStrings
.CouldNotParseAspireSDKVersion);
42
interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\ConfigurationHelper.cs (1)
128
string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidJsonInConfigFile, filePath, ex.Message),
Utils\SdkInstallHelper.cs (1)
50
ErrorStrings
.MinimumSdkVersionNotMet,
Utils\VersionHelper.cs (1)
13
return PackageUpdateHelpers.GetCurrentAssemblyVersion() ?? throw new InvalidOperationException(
ErrorStrings
.UnableToRetrieveAssemblyVersion);
Aspire.Cli.Tests (7)
Commands\UpdateCommandTests.cs (1)
180
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound, ProjectLocatorFailureReason.NoProjectFileFound);
DotNetSdkInstallerTests.cs (1)
166
ErrorStrings
.ResourceManager.GetString("MinimumSdkVersionNotMet", CultureInfo.GetCultureInfo("en-US"))!,
Projects\ProjectLocatorTests.cs (5)
46
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
245
Assert.Equal(
ErrorStrings
.NoProjectFileFound, ex.Message);
529
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
574
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
737
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);