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