ClientCertificatesCommand\ListClientCertRunner.cs (12)
29getLogger().LogInformation(Strings.NoClientCertificates);
35getLogger().LogInformation(Strings.RegsiteredClientCertificates);
47builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesLogTitle, indexIndentation, item.PackageSource, item.ElementName);
54builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesFileCertFilePath, defaultIndentation, fileCertItem.FilePath);
59builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesFileCertNoPassword, defaultIndentation);
63builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesFileCertWithPassword, defaultIndentation);
71builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertStoreLocation, defaultIndentation, StoreClientCertItem.GetString(storeCertItem.StoreLocation));
73builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertStoreName, defaultIndentation, StoreClientCertItem.GetString(storeCertItem.StoreName));
75builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertFindBy, defaultIndentation, StoreClientCertItem.GetString(storeCertItem.FindType));
77builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesStoreCertFindValue, defaultIndentation, storeCertItem.FindValue);
87builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesItemCertificateMessage, defaultIndentation, certificate.GetCertHashString());
93builder.AppendFormat(CultureInfo.CurrentCulture, Strings.ClientCertificatesItemCertificateError, defaultIndentation, e.GetBaseException().Message);
CommandRunners\LocalsCommandRunner.cs (12)
49throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_Help));
100throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_InvalidLocalResourceName));
113localsArgs.LogError(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_LocalResourcePathNotSet));
158throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_InvalidLocalResourceName));
163throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearFailed));
167localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearedSuccessful));
180localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetPluginsCache, pluginsCacheFolder));
195localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetGlobalPackagesFolder, globalPackagesFolderPath));
212localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetHttpCache,
231localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_ClearingNuGetTempCache,
285localsArgs.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_LocalsPartiallyCleared));
289localsArgs.LogError(string.Format(CultureInfo.CurrentCulture, Strings.LocalsCommand_FailedToDeletePath, failedDelete));
CommandRunners\PackCommandRunner.cs (20)
167Strings.Log_PackageCommandInstallPackageToOutputPath, "Package", outputPath),
176string.Format(CultureInfo.CurrentCulture, Strings.Log_PackageCommandSuccess, outputPath),
200Strings.Log_PackageCommandInstallPackageToOutputPath,
211Strings.Error_WriteResolvedNuSpecOverwriteOriginal,
252Strings.Log_PackageCommandInstallPackageToOutputPath,
418Strings.Error_PackageCommandNoFilesForLibPackage,
420Strings.NuGetDocs));
488NuGetLogCode.NU5009, string.Format(CultureInfo.CurrentCulture, Strings.Error_CannotFindMsbuild));
506string.Format(CultureInfo.CurrentCulture, Strings.Warning_DuplicatePropertyKey, property.Key),
528throw new PackagingException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackFailed, path));
559WriteLine(Strings.Log_PackageCommandAttemptingToBuildSymbolsPackage, Path.GetFileName(path));
605string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidTargetFramework, reference.AssemblyName));
646WriteLine(Strings.Log_PackageCommandAddedFile, file);
674Strings.Warning_FileExcludedByDefault,
763Strings.Error_PackageCommandNoFilesForSymbolsPackage,
765Strings.NuGetDocs));
946throw new PackagingException(NuGetLogCode.NU5002, Strings.Error_InputFileNotSpecified);
970throw new PackagingException(NuGetLogCode.NU5002, Strings.Error_InputFileNotSpecified);
1011Strings.Error_InvalidDependencyVersionConstraints,
1041Strings.Error_InvalidDependencyVersionConstraints,
RestoreCommand\CompatibilityIssue.cs (12)
132return string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingImplementationFx, Package.Id, Package.Version, AssemblyName, Framework);
134return string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingImplementationFxRuntime, Package.Id, Package.Version, AssemblyName, Framework, RuntimeIdentifier);
139Strings.Log_PackageNotCompatibleWithFx,
145Strings.Log_PackageNotCompatibleWithFx_Supports,
150Strings.Log_PackageNotCompatibleWithFx_NoSupports,
159Strings.Log_ProjectNotCompatibleWithFx,
164Strings.Log_ProjectNotCompatibleWithFx_Supports,
168Strings.Log_ProjectNotCompatibleWithFx_NoSupports,
176Strings.Error_InvalidProjectPackageCombo,
185Strings.Error_IncompatiblePackageType,
259Strings.Log_FrameworkDisplay,
273Strings.Log_FrameworkRIDDisplay,
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (6)
104message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_MinVersionNonInclusive,
114message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_MinVersionDoesNotExist,
162var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_DependencyBumpedUp,
189message: string.Format(CultureInfo.CurrentCulture, Strings.Warning_ProjectDependencyMissingVersion,
205message: string.Format(CultureInfo.CurrentCulture, Strings.Warning_ProjectDependencyMissingLowerBound,
293Strings.Warning_VersionAboveUpperBound,
RestoreCommand\Diagnostics\UnresolvedMessages.cs (11)
102message = string.Format(CultureInfo.CurrentCulture, Strings.Error_UnableToFindProjectInfo, unresolved.Name);
108message = string.Format(CultureInfo.CurrentCulture, Strings.Error_ProjectDoesNotExist, unresolved.Name);
125message = string.Format(CultureInfo.CurrentCulture, Strings.Error_NoPackageVersionsExist, unresolved.Name, sourceList);
132Strings.Log_SourceMappingEnabledNoMatchingPackageSources,
146firstLine = string.Format(CultureInfo.CurrentCulture, Strings.Error_NoStablePackageVersionsExist, unresolved.Name, rangeString);
151firstLine = string.Format(CultureInfo.CurrentCulture, Strings.Error_NoPackageVersionsExistInRange, unresolved.Name, rangeString);
166Strings.SourceNotConsidered,
178Strings.Log_UnresolvedDependency,
185Strings.Log_SourceMappingEnabledNoMatchingPackageSources,
238Strings.FoundVersionsInSource,
245Strings.FoundVersionsInSourceWithoutMatch,
RestoreCommand\ProjectRestoreCommand.cs (8)
67_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, pair.Key.DotNetFrameworkName));
200Strings.Error_ProjectRuntimeJsonIsUnreadable,
211Strings.Error_ProjectRuntimeJsonNotFound,
296await _logger.LogAsync(LogLevel.Verbose, string.Format(CultureInfo.CurrentCulture, Strings.Log_ResolvingConflicts, name));
315var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ResolverConflict,
468_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, FrameworkRuntimePair.GetTargetGraphName(graph.Framework, runtimeName)));
488logger.LogVerbose(Strings.Log_ScanningForRuntimeJson);
511logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_MergingRuntimes, match.Library));
RestoreCommand\RestoreCommand.cs (35)
482_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoreNoOpFinish, _request.Project.Name));
512_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoreNoOpDGChanged, _request.Project.Name));
538string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "restore", source.Source)));
546string.Format(CultureInfo.CurrentCulture, Strings.Warning_HttpServerUsage, "restore", source.Source));
704_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_SkippingPackagesLockFileGeneration, packagesLockFilePath));
863string.Format(CultureInfo.CurrentCulture, Strings.Error_PlatformVersionNotPresent, string.Join(", ", badPlatforms))
900string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasContainsDisallowedCharacters, project.Name, alias)));
909string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasContainsDisallowedCharacters, project.Name, alias)));
916string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasContainsDisallowedCharacters, project.Name, alias)));
1014string.Format(CultureInfo.CurrentCulture, Strings.Error_RestorePruningDirectPackageReference, prunedPackage.Key),
1106var diagnostic = RestoreLogMessage.CreateError(NuGetLogCode.NU1015, string.Format(CultureInfo.InvariantCulture, Strings.Error_PackageReference_NoVersion, string.Join(", ", packagesList)));
1130Strings.Warning_CentralPackageManagement_MultipleSourcesWithoutPackageSourceMapping,
1207Strings.Error_CentralPackageManagement_PackageReferenceWithVersionNotAllowed,
1220Strings.Error_CentralPackageManagement_ImplicitPackageReferenceWithVersionNotAllowed,
1233Strings.Error_CentralPackageManagement_MissingPackageVersion,
1246Strings.Error_CentralPackageManagement_FloatingVersionsNotAllowed,
1261Strings.Error_CentralPackageManagement_VersionOverrideNotAllowed,
1276Strings.Error_ProjectJson_Deprecated));
1350errorMessageBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageValidationFailed, package.ToString()));
1351_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_PackageContentHashValidationFailed, package.ToString(), sha512, library.Sha512));
1390var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidLockFileInput, packagesLockFilePath);
1446Strings.Error_RestoreInLockedMode)));
1642var text = Strings.Log_CycleDetected + $" {Environment.NewLine} {cycle.GetPath()}.";
1671Strings.Log_VersionConflictForCentralTransitive,
1680Strings.Log_VersionConflict,
1731downgradedBy.Item.IsCentralTransitive ? Strings.Log_CPVM_DowngradeError : Strings.Log_DowngradeWarning,
1778await logger.LogAsync(LogLevel.Verbose, string.Format(CultureInfo.CurrentCulture, Strings.Log_PackagesAndProjectsAreCompatible, graph.TargetGraphName));
1821var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectDoesNotSpecifyTargetFrameworks, _request.Project.Name, _request.Project.FilePath);
1827_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath));
1928var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key);
1998var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectDoesNotSpecifyTargetFrameworks, _request.Project.Name, _request.Project.FilePath);
2027_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath));
2092var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_UnknownCompatibilityProfile, profile.Key);
2169var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_AliasingSupportedInNewDependencyResolver, request.Project.Name, SdkAnalysisLevelMinimums.V10_0_300);
RestoreCommand\Utility\AuditUtility.cs (11)
251var messageText = string.Format(Strings.Error_VulnerabilityDataFetch, exception.Message);
282string message = string.Format(Strings.Warning_PackageWithKnownVulnerability,
360return (Strings.Vulnerability_Severity_Low, NuGetLogCode.NU1901);
362return (Strings.Vulnerability_Severity_Moderate, NuGetLogCode.NU1902);
364return (Strings.Vulnerability_Severity_High, NuGetLogCode.NU1903);
366return (Strings.Vulnerability_Severity_Critical, NuGetLogCode.NU1904);
368return (Strings.Vulnerability_Severity_unknown, NuGetLogCode.NU1900);
465string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutVulnerabilityData, _vulnerabilityInfoProviders[i].SourceName);
506string messageText = string.Format(Strings.Error_InvalidNuGetAuditLevelValue, auditLevel, "low, moderate, high, critical");
532string messageText = string.Format(Strings.Error_InvalidNuGetAuditModeValue, auditMode, "direct, all");
549string messageText = string.Format(Strings.Error_InvalidNuGetAuditValue, value, "true, false");
RestoreCommand\Utility\MSBuildRestoreUtility.cs (7)
401var text = string.Format(CultureInfo.CurrentCulture, Strings.CannotBeUsedWithOtherValues, Clear);
417var text = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedProject, path);
427var text = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedProject, path);
787throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id));
798throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString));
1045throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "SdkAnalysisLevel", sdkAnalysisLevel, "9.0.100"));
1060throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "UsingMicrosoftNETSdk", usingMicrosoftNETSdk, "false"));
RestoreCommand\Utility\NoOpRestoreUtilities.cs (6)
129request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_AssetsFileNotOnDisk, request.Project.Name));
138request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_TargetsFileNotOnDisk, request.Project.Name, targetsFilePath));
144request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_PropsFileNotOnDisk, request.Project.Name, propsFilePath));
152request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_LockFileNotOnDisk, request.Project.Name, packageLockFilePath));
163request.Log.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_MissingPackagesOnDisk, request.Project.Name));
184string.Format(CultureInfo.InvariantCulture, Strings.Error_CouldNotUpdateMetadataLastAccessTime,
RestoreCommand\Utility\SpecValidationUtility.cs (22)
64Strings.SpecValidationMissingProject,
73throw RestoreSpecException.Create(Strings.SpecValidationZeroRestoreRequests, Enumerable.Empty<string>());
107var message = string.Format(CultureInfo.CurrentCulture, Strings.MissingRequiredProperty, nameof(spec.RestoreMetadata));
148throw RestoreSpecException.Create(Strings.SpecValidationNoFrameworks, files);
161var message = string.Format(CultureInfo.CurrentCulture, Strings.SpecValidationInvalidFramework, framework.TargetAlias);
168throw RestoreSpecException.Create(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_Framework), files);
174throw RestoreSpecException.Create(Strings.SpecValidationNoFrameworks, files);
188Strings.PropertyNotAllowedForProjectType,
200Strings.MissingRequiredPropertyForProjectType,
212Strings.MissingRequiredPropertyForProjectType,
230Strings.SpecValidation_OriginalTargetFrameworksMustMatchAliases,
246Strings.SpecValidationDuplicateTargetAlias,
265Strings.InvalidRestoreInput,
279Strings.PropertyNotAllowed,
293Strings.PropertyNotAllowed,
307Strings.MissingRequiredProperty,
318Strings.MissingRequiredProperty,
329Strings.MissingRequiredProperty,
340Strings.MissingRequiredProperty,
351Strings.NonMatchingProperties,
368Strings.MissingRequiredProperty,
379Strings.Error_XPROJNotAllowed,
SourcesCommands\SourceRunners.cs (30)
26string defaultNamePrefix = Strings.Source_DefaultNamePrefix;
40else if (string.Equals(args.Name, Strings.ReservedPackageNameAll, StringComparison.Ordinal))
42throw new CommandException(Strings.SourcesCommandAllNameIsReserved);
48throw new CommandException(Strings.SourcesCommandInvalidSource);
57throw new CommandException(Strings.SourcesCommandUniqueName);
63throw new CommandException(Strings.SourcesCommandUniqueSource);
73Strings.Error_HttpSource_Single_Short,
96Strings.SourcesCommandSourceAddedSuccessfully, args.Name));
145Strings.SourcesCommandNoSources));
150getLogger().LogMinimal(string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandRegisteredSources));
164source.IsEnabled ? string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandEnabled) : string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandDisabled)));
197throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Source_InvalidFormatValue, args.Format));
222Strings.Warning_List_HttpSource,
229Strings.Warning_List_HttpSources,
247throw new CommandException(Strings.SourcesCommandNoMatchingSourcesFound, args.Name);
252Strings.SourcesCommandSourceRemovedSuccessfully, args.Name));
267throw new CommandException(Strings.SourcesCommandNoMatchingSourcesFound, args.Name);
274throw new CommandException(Strings.SourcesCommandInvalidSource);
281throw new CommandException(Strings.SourcesCommandUniqueSource);
290throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "update source", args.Source));
302Strings.SourcesCommandClearingExistingAuthTypes, args.Name));
322Strings.SourcesCommandUpdateSuccessful, args.Name));
363throw new CommandException(Strings.SourcesCommandNoMatchingSourcesFound, name);
381Strings.SourcesCommandSourceEnabledSuccessfully, name));
384throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpSource_Single, "enable source", packageSource.Source));
390Strings.SourcesCommandSourceDisabledSuccessfully, name));
403throw new CommandException(Strings.SourcesCommandCredentialsRequired);
409throw new CommandException(Strings.SourcesCommandCredentialsRequiredWithAuthTypes);
427throw new CommandException(string.Format(Strings.SourcesCommandValidProtocolVersion, minSupportedProtocolVersion, maxSupportedProtocolVersion));
TrustedSignersCommand\TrustedSignerActionsProvider.cs (23)
48throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
63await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullySynchronizedTrustedRepository, name));
69throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedRepositoryDoesNotExist, name));
90throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
95throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedTrustTarget, trustTarget.ToString()));
100throw new ArgumentException(Strings.Error_TrustedAuthorNoOwners);
113throw new InvalidOperationException(Strings.Error_PackageNotSigned);
125repositorySignature = countersignature ?? throw new InvalidOperationException(Strings.Error_RepoTrustExpectedRepoSignature);
139await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyAddedTrustedRepository, name));
145throw new InvalidOperationException(Strings.Error_AuthorTrustExpectedAuthorSignature);
152await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyAddedTrustedAuthor, name));
169throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
174throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(fingerprint));
179throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithm, hashAlgorithm.ToString()));
200logMessage = Strings.SuccessfullyAddedTrustedAuthor;
205logMessage = Strings.SuccessfullUpdatedTrustedSigner;
224throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
239await _logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyAddedTrustedRepository, name));
249throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedSignerAlreadyExists, name));
254throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_TrustedRepoAlreadyExists, serviceIndex));
271throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(serviceIndex));
284throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_InvalidCertificateInformationFromServer, serviceIndex));
289throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_EmptyCertificateListInRepository, serviceIndex));
TrustedSignersCommand\TrustedSignersCommandRunner.cs (31)
64throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments));
69throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NoSignatureTrustedForPackage, trustedSignersArgs.PackagePath));
77throw new CommandLineArgumentCombinationException(Strings.Error_CannotTrustOwnersForAuthor);
99Strings.Multiple_Nupkgs_Detected,
124throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments));
142throw new ArgumentException(Strings.Error_CannotTrustOwnersForAuthor);
158throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotAdd, Strings.Error_InvalidCombinationOfArguments));
163throw new ArgumentException(Strings.Error_NoSourcesInformation);
169throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnavailableSource, trustedSignersArgs.Name));
207await logger.LogAsync(LogLevel.Minimal, Strings.NoTrustedSigners);
213await logger.LogAsync(LogLevel.Minimal, Strings.RegsiteredTrustedSigners);
225trustedSignerBuilder.AppendLine(index + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogTitle, item.Name, item.ElementName));
229trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogServiceIndex, repoItem.ServiceIndex));
233trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogOwners, string.Join("; ", repoItem.Owners)));
237trustedSignerBuilder.AppendLine(defaultIndentation + Strings.TrustedSignerLogCertificates);
243var summaryAllowUntrustedRoot = (cert.AllowUntrustedRoot) ? Strings.TrustedSignerLogCertificateSummaryAllowUntrustedRoot : Strings.TrustedSignerLogCertificateSummaryUnallowUntrustedRoot;
258await logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.NoTrustedSignersMatching, name));
264await logger.LogAsync(LogLevel.Minimal, string.Format(CultureInfo.CurrentCulture, Strings.SuccessfullyRemovedTrustedSigner, name));
283throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotList, Strings.Error_InvalidCombinationOfArguments));
304throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotRemove, Strings.Error_InvalidCombinationOfArguments));
325throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_CouldNotSync, Strings.Error_InvalidCombinationOfArguments));
333throw new CommandLineArgumentCombinationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PropertyCannotBeNullOrEmpty, nameof(name)));
348throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_NotSupportedHashAlgorithm, algorithm));
359throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ServiceIndexShouldBeHttps, serviceIndex));
VerifyCommand\VerifyCommandRunner.cs (11)
34verifyArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_VerificationTypeNotSupported));
44verifyArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_NotSupported));
76emptyListErrorMessage: Strings.Error_NoClientAllowList,
77noMatchErrorMessage: Strings.Error_NoMatchingClientCertificate));
91noMatchErrorMessage: Strings.Error_NoMatchingCertificate));
103verifyArgs.Logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_PackageIsNotValid, package));
122Strings.VerifyCommand_VerifyingPackage,
126Strings.VerifyCommand_ContentHash,
144logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_FinishedWithErrors, errors, warnings));
154logger.LogInformation(Environment.NewLine + string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_Success, packageIdentity.ToString()));
158logger.LogMinimal(Environment.NewLine + Strings.VerifyCommand_Failed);