60 references to ErrorStrings
aspire (54)
Backchannel\AppHostBackchannel.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)
265
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
Commands\RunCommand.cs (1)
358
appHostCompatibilityCheck?.AspireHostingVersion ?? throw new InvalidOperationException(
ErrorStrings
.AspireHostingVersionNull)
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)
209
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.UnsupportedLocaleProvided, localeOverride, string.Join(", ", LocaleHelpers.SupportedLocales));
212
errorMessage = string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.InvalidLocaleProvided, localeOverride);
Projects\ProjectLocator.cs (10)
79
interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.ProjectFileMayBeUnbuildableAppHost, relativePath));
192
interactionService.DisplayMessage("warning", string.Format(CultureInfo.CurrentCulture,
ErrorStrings
.AppHostWasSpecifiedButDoesntExist, settingsFile.FullName, qualifiedAppHostPath));
297
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
324
throw new ProjectLocatorException(
ErrorStrings
.MultipleProjectFilesFound);
335
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
353
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
365
throw new ProjectLocatorException(
ErrorStrings
.ProjectFileDoesntExist);
387
throw new ProjectLocatorException(
ErrorStrings
.NoProjectFileFound);
391
throw new ProjectLocatorException(
ErrorStrings
.AppHostsMayNotBeBuildable);
401
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)
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)
48
ErrorStrings
.MinimumSdkVersionNotMet,
Utils\VersionHelper.cs (1)
13
return PackageUpdateHelpers.GetCurrentAssemblyVersion() ?? throw new InvalidOperationException(
ErrorStrings
.UnableToRetrieveAssemblyVersion);
Aspire.Cli.Tests (6)
DotNetSdkInstallerTests.cs (1)
271
ErrorStrings
.ResourceManager.GetString("MinimumSdkVersionNotMet", CultureInfo.GetCultureInfo("en-US"))!,
Projects\ProjectLocatorTests.cs (5)
49
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
245
Assert.Equal(
ErrorStrings
.NoProjectFileFound, ex.Message);
563
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
615
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);
784
Assert.Equal(
ErrorStrings
.ProjectFileDoesntExist, ex.Message);