62 references to ErrorStrings
aspire (55)
Backchannel\AppHostCliBackchannel.cs (3)
114
throw new InvalidOperationException(
ErrorStrings
.AlreadyConnectedToBackchannel);
135
string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostIncompatibleWithCli, BaselineCapability),
146
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\PipelineCommandBase.cs (1)
291
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\RunCommand.cs (1)
376
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\UpdateCommand.cs (1)
221
if (string.Equals(ex.Message,
ErrorStrings
.NoProjectFileFound, StringComparisons.CliInputOrOutput))
DotNet\DotNetCliRunner.cs (2)
238
var ex = new InvalidOperationException(
ErrorStrings
.CantUseBothWatchAndNoBuild);
445
throw new InvalidOperationException(
ErrorStrings
.FailedToParseTemplateVersionFromStdout);
NuGet\NuGetPackageCache.cs (2)
43
}) ?? throw new NuGetPackageCacheException(
ErrorStrings
.FailedToRetrieveCachedTemplatePackages);
104
throw new NuGetPackageCacheException(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.FailedToSearchForPackages, result.ExitCode));
Program.cs (2)
269
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales));
272
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidLocaleProvided, localeOverride);
Projects\ProjectLocator.cs (10)
80
interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ProjectFileMayBeUnbuildableAppHost, relativePath));
193
interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath));
298
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
325
throw new ProjectLocatorException(
ErrorStrings
.MultipleProjectFilesFound);
336
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
354
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
366
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
388
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound);
392
throw new ProjectLocatorException(
ErrorStrings
.AppHostsMayNotBeBuildable);
402
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)
49
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
282
Assert.Equal(
ErrorStrings
.NoProjectFileFound, ex.Message);
600
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
652
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
821
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);