118 references to DoctorCommandStrings
aspire (114)
Commands\DoctorCommand.cs (13)
33
Description =
DoctorCommandStrings
.JsonOptionDescription
47
: base("doctor",
DoctorCommandStrings
.Description, services)
82
DoctorCommandStrings
.CheckingPrerequisites,
127
_ansiConsole.MarkupLine($"[bold]{
DoctorCommandStrings
.EnvironmentCheckHeader}[/]");
128
_ansiConsole.WriteLine(new string('=',
DoctorCommandStrings
.EnvironmentCheckHeader.Length));
154
_ansiConsole.MarkupLine($"[bold]{string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.SummaryFormat, passed, warnings, failed)}[/]");
160
_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DetailedPrerequisitesLink, MarkupHelpers.SafeLink(InteractionService, prerequisitesUrl)));
226
"sdk" =>
DoctorCommandStrings
.SdkCategoryHeader,
227
"aspire" =>
DoctorCommandStrings
.AspireCategoryHeader,
228
"apphost" =>
DoctorCommandStrings
.AppHostCategoryHeader,
229
"container" =>
DoctorCommandStrings
.ContainerCategoryHeader,
230
"environment" =>
DoctorCommandStrings
.EnvironmentCategoryHeader,
231
"devtools" =>
DoctorCommandStrings
.DevelopmentToolsCategoryHeader,
Commands\InstallationInfoOutput.cs (18)
53
DoctorCommandStrings
.InstallationDiscoveryTimedOutReasonFormat,
87
return CreateFailedDiscoveryRow(
DoctorCommandStrings
.InstallationDiscoveryFailedReason);
107
return CreateFailedDiscoveryRow(
DoctorCommandStrings
.InstallationDiscoveryFailedReason);
133
ansiConsole.MarkupLine($"[bold]{
DoctorCommandStrings
.HeaderInstallations.EscapeMarkup()}[/]");
134
ansiConsole.WriteLine(new string('=',
DoctorCommandStrings
.HeaderInstallations.Length));
139
.AddColumn(
DoctorCommandStrings
.ColumnPath)
140
.AddColumn(
DoctorCommandStrings
.ColumnVersion)
141
.AddColumn(
DoctorCommandStrings
.ColumnChannel)
142
.AddColumn(
DoctorCommandStrings
.ColumnRoute)
143
.AddColumn(
DoctorCommandStrings
.ColumnPathStatus);
158
?
DoctorCommandStrings
.ValueUnknown
163
pathDisplay = $"{pathDisplay} [grey]{
DoctorCommandStrings
.ValueCurrentMarker.EscapeMarkup()}[/]";
181
InstallationPathStatus.Active =>
DoctorCommandStrings
.ValuePathActive,
182
InstallationPathStatus.Shadowed =>
DoctorCommandStrings
.ValuePathShadowed,
183
InstallationPathStatus.NotOnPath =>
DoctorCommandStrings
.ValuePathNotOnPath,
199
InstallationInfoStatus.NotProbed =>
DoctorCommandStrings
.ValueNotProbed,
200
InstallationInfoStatus.Failed =>
DoctorCommandStrings
.ValueProbeFailed,
201
_ =>
DoctorCommandStrings
.ValueUnknown,
Migrations\TypeScriptAppHostMigration.cs (1)
80
DoctorCommandStrings
.LegacyTypeScriptAppHostMessageFormat,
Resources\DoctorCommandStrings.Designer.cs (1)
41
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.DoctorCommandStrings", typeof(
DoctorCommandStrings
).Assembly);
Utils\EnvironmentChecker\AspireVersionCheck.cs (14)
58
Message =
DoctorCommandStrings
.AppHostVersionCheckFailedMessage,
85
var currentVersion = string.IsNullOrWhiteSpace(status.CurrentVersion) ?
DoctorCommandStrings
.VersionUnknown : status.CurrentVersion;
98
Details = $"{
DoctorCommandStrings
.CliVersionUpdateCheckFailedMessage}: {updateCheckError}",
120
DoctorCommandStrings
.CliVersionOutOfDateMessageFormat,
123
Fix = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.CliVersionOutOfDateFixFormat, status.UpdateCommand ?? "aspire update"),
150
Message =
DoctorCommandStrings
.CliVersionUpdateCheckFailedMessage,
161
DoctorCommandStrings
.CliVersionMessageFormat,
178
return version + string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.ChannelSuffixFormat, channel);
195
return message + string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.ChannelSuffixFormat, channel);
243
Message =
DoctorCommandStrings
.AppHostVersionCheckFailedMessage,
256
Message =
DoctorCommandStrings
.AppHostVersionCheckFailedMessage,
291
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.AppHostVersionUnknownMessageFormat, relativePath),
310
DoctorCommandStrings
.AppHostVersionMessageFormat,
329
Message =
DoctorCommandStrings
.AppHostVersionCheckFailedMessage,
Utils\EnvironmentChecker\DcpConnectionChecker.cs (15)
70
DoctorCommandStrings
.DcpApiServerReturnedHttpStatusMessageFormat,
78
? Passed(useDeveloperCertificate,
DoctorCommandStrings
.DcpDeveloperCertificateConnectionSucceededMessage)
79
: Passed(useDeveloperCertificate,
DoctorCommandStrings
.DcpEphemeralCertificateConnectionSucceededMessage);
91
DoctorCommandStrings
.DcpConnectionTimedOutMessageFormat,
99
DoctorCommandStrings
.DcpDeveloperCertificateUnavailableMessage,
101
fix:
DoctorCommandStrings
.DcpDeveloperCertificateTrustFix);
107
details: string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DcpTlsAuthenticationFailedDetailsFormat, ex.Message),
108
useDeveloperCertificate ?
DoctorCommandStrings
.DcpDeveloperCertificateRepairTrustFix : null);
175
?
DoctorCommandStrings
.DcpDeveloperCertificateConnectionFailedMessage
176
:
DoctorCommandStrings
.DcpEphemeralCertificateConnectionFailedMessage,
275
throw new InvalidOperationException(
DoctorCommandStrings
.DcpStartFailedMessage);
390
DoctorCommandStrings
.DcpExitedBeforeKubeconfigDetailsFormat,
407
return lines.Length == 0 ?
DoctorCommandStrings
.DcpNoOutputDetails : string.Join(Environment.NewLine, lines);
421
throw new DcpDeveloperCertificateUnavailableException(
DoctorCommandStrings
.DcpDeveloperCertificateNoTrustedExportableDetails);
426
throw new DcpDeveloperCertificateUnavailableException(
DoctorCommandStrings
.DcpDeveloperCertificateMissingThumbprintDetails);
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (6)
41
Message =
DoctorCommandStrings
.DcpBundleNotFoundMessage,
42
Details =
DoctorCommandStrings
.DcpBundleNotFoundDetails
54
Message =
DoctorCommandStrings
.DcpExecutableNotFoundMessage,
55
Details = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DcpExecutableNotFoundDetailsFormat, dcpExecutablePath)
77
Message =
DoctorCommandStrings
.DcpConnectionSucceededMessage
95
Message =
DoctorCommandStrings
.DcpConnectionCheckFailedMessage,
Utils\EnvironmentChecker\DcpDeveloperCertificateCache.cs (2)
18
throw new DcpDeveloperCertificateUnavailableException(
DoctorCommandStrings
.DcpDeveloperCertificateInvalidForCacheDetails);
24
throw new DcpDeveloperCertificateUnavailableException(
DoctorCommandStrings
.DcpDeveloperCertificateUserProfileMissingDetails);
Utils\EnvironmentChecker\DcpKubeconfig.cs (1)
75
throw new InvalidOperationException(
DoctorCommandStrings
.DcpKubeconfigMissingServerDetails);
Utils\EnvironmentChecker\DevCertsCheck.cs (33)
31
private static readonly string s_trustFixCommand = string.Format(CultureInfo.InvariantCulture,
DoctorCommandStrings
.DevCertsTrustFixFormat, "aspire certs trust");
32
private static readonly string s_cleanAndTrustFixCommand = string.Format(CultureInfo.InvariantCulture,
DoctorCommandStrings
.DevCertsCleanAndTrustFixFormat, "aspire certs clean", "aspire certs trust");
33
private static readonly string s_installOpenSslCleanAndTrustFixCommand = string.Format(CultureInfo.InvariantCulture,
DoctorCommandStrings
.DevCertsInstallOpenSslCleanAndTrustFixFormat, "openssl", "aspire certs clean", "aspire certs trust");
80
Message =
DoctorCommandStrings
.DevCertsNoCertificateMessage,
81
Details =
DoctorCommandStrings
.DevCertsNoCertificateDetails,
107
CertificateManager.TrustLevel.Full => $" {
DoctorCommandStrings
.DevCertsTrustLabelFull}",
108
CertificateManager.TrustLevel.Partial => $" {
DoctorCommandStrings
.DevCertsTrustLabelPartial}",
121
Message = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsMultipleNoneTrustedMessageFormat, certInfos.Count),
122
Details = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsMultipleNoneTrustedDetailsFormat, certDetails),
135
Message = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsMultipleSomeUntrustedMessageFormat, certInfos.Count),
136
Details = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsMultipleSomeUntrustedDetailsFormat, certDetails),
150
Message =
DoctorCommandStrings
.DevCertsTrustedMessage,
164
Message =
DoctorCommandStrings
.DevCertsNotTrustedMessage,
165
Details = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsNotTrustedDetailsFormat, cert.Thumbprint ?? "unknown"),
180
Message =
DoctorCommandStrings
.DevCertsPartiallyTrustedMessage,
181
Details = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsPartiallyTrustedDetailsFormat, devCertsTrustPath),
182
Fix = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsPartiallyTrustedFixFormat, BuildSslCertDirFixCommand(devCertsTrustPath, environment)),
195
Message =
DoctorCommandStrings
.DevCertsTrustedMessage,
209
Message = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOldVersionMessageFormat, versions),
210
Details = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOldVersionDetailsFormat, CertificateManager.CurrentMinimumAspNetCoreCertificateVersion),
280
DoctorCommandStrings
.DevCertsOpenSslCacheMissingCurrentCertificateMessage,
281
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOpenSslCacheMissingDetailsFormat, trustPath, string.Join(", ", trustedThumbprints)),
326
DoctorCommandStrings
.DevCertsOpenSslCacheUnreadableMessage,
327
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOpenSslCacheUnreadableFilesDetailsFormat, trustPath, string.Join(", ", unreadableFiles)),
334
DoctorCommandStrings
.DevCertsOpenSslCacheMissingCurrentCertificateMessage,
335
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOpenSslCacheMissingDetailsFormat, trustPath, string.Join(", ", mismatchedThumbprints)),
342
DoctorCommandStrings
.DevCertsOpenSslCacheMissingCurrentCertificateMessage,
343
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOpenSslCacheMissingDetailsFormat, trustPath, string.Join(", ", missingTrustedThumbprints)),
350
DoctorCommandStrings
.DevCertsOpenSslCacheMissingHashLinkMessage,
351
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.DevCertsOpenSslCacheMissingHashLinkDetailsFormat, trustPath, string.Join(", ", missingHashLinkThumbprints)),
510
Message =
DoctorCommandStrings
.DevCertsMissingCertUtilMessage,
511
Details =
DoctorCommandStrings
.DevCertsMissingCertUtilDetails,
512
Fix =
DoctorCommandStrings
.DevCertsMissingCertUtilFix,
Utils\EnvironmentChecker\EnvironmentChecker.cs (2)
95
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.EnvironmentChecksTimedOutMessageFormat, _totalTimeout.TotalSeconds),
109
string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.EnvironmentCheckTimedOutMessageFormat, checkName, _checkTimeout.TotalSeconds),
Utils\EnvironmentChecker\LegacySettingsFileCheck.cs (2)
56
Message = string.Format(CultureInfo.CurrentCulture,
DoctorCommandStrings
.LegacySettingsDetectedMessageFormat, legacySettingsPath),
57
Fix =
DoctorCommandStrings
.LegacySettingsDetectedFix
Utils\EnvironmentChecker\OperatingSystemCheck.cs (2)
48
DoctorCommandStrings
.OperatingSystemMessageFormat,
82
DoctorCommandStrings
.VersionUnknown);
Utils\EnvironmentChecker\PendingMigrationsCheck.cs (1)
73
Fix =
DoctorCommandStrings
.PendingMigrationFix,
Utils\EnvironmentChecker\VsCodeExtensionCheck.cs (3)
78
Message =
DoctorCommandStrings
.VsCodeExtensionInstalledMessage,
91
Message =
DoctorCommandStrings
.VsCodeExtensionMissingMessage,
92
Fix =
DoctorCommandStrings
.VsCodeExtensionMissingFix,
Aspire.Cli.Tests (4)
Commands\OperatingSystemCheckTests.cs (1)
43
MessageDisplayName:
DoctorCommandStrings
.VersionUnknown));
Commands\VsCodeExtensionCheckTests.cs (3)
47
Assert.Equal(
DoctorCommandStrings
.VsCodeExtensionMissingMessage, result.Message);
48
Assert.Equal(
DoctorCommandStrings
.VsCodeExtensionMissingFix, result.Fix);
76
Assert.Equal(
DoctorCommandStrings
.VsCodeExtensionInstalledMessage, result.Message);