57 references to ErrorStrings
aspire (56)
Backchannel\AppHostBackchannel.cs (3)
113
throw new InvalidOperationException(
ErrorStrings
.AlreadyConnectedToBackchannel);
134
string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostIncompatibleWithCli, BaselineCapability),
145
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)
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)
142
InteractionService.DisplayError(
ErrorStrings
.CommandNotSupportedWithSingleFileAppHost);
283
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\PublishCommandBase.cs (2)
112
InteractionService.DisplayError(
ErrorStrings
.SingleFileAppHostFeatureNotEnabled);
232
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\RunCommand.cs (2)
126
InteractionService.DisplayError(
ErrorStrings
.SingleFileAppHostFeatureNotEnabled);
353
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\UpdateCommand.cs (1)
49
InteractionService.DisplayError(
ErrorStrings
.CommandNotSupportedWithSingleFileAppHost);
DotNet\DotNetCliRunner.cs (2)
234
var ex = new InvalidOperationException(
ErrorStrings
.CantUseBothWatchAndNoBuild);
425
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)
191
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales));
194
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidLocaleProvided, localeOverride);
Projects\ProjectLocator.cs (9)
77
interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ProjectFileMayBeUnbuildableAppHost, relativePath));
197
interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath));
302
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
325
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
340
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
345
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
357
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
378
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound);
382
throw new ProjectLocatorException(
ErrorStrings
.AppHostsMayNotBeBuildable);
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)
22
interactionService.DisplayError(
ErrorStrings
.ProjectCouldNotBeAnalyzed);
28
interactionService.DisplayError(
ErrorStrings
.ProjectIsNotAppHost);
34
interactionService.DisplayError(
ErrorStrings
.CouldNotParseAspireSDKVersion);
41
interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (1)
38
ErrorStrings
.MinimumSdkVersionNotMet,
Utils\VersionHelper.cs (1)
13
return PackageUpdateHelpers.GetCurrentAssemblyVersion() ?? throw new InvalidOperationException(
ErrorStrings
.UnableToRetrieveAssemblyVersion);
Aspire.Cli.Tests (1)
DotNetSdkInstallerTests.cs (1)
290
ErrorStrings
.MinimumSdkVersionNotMet,