LocalRepositories\LocalV2FindPackageByIdResource.cs (6)
81throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
144throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
224throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
366throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
443var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, nupkgInfo.Name, _source);
449var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, nupkgInfo.Name, _source);
LocalRepositories\LocalV3FindPackageByIdResource.cs (8)
117throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
178throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
270throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
408throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
457var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id + "." + version, _source);
464var message = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id + "." + version, _source);
520Strings.InvalidVersionFolder,
539Strings.Log_LocalSourceNotExist,
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (8)
74throw new ArgumentException(Strings.OneOrMoreUrisMustBeSpecified, nameof(baseUris));
117throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
177throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
259throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
389throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
531logger.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.Log_FileIsCorrupt, httpSourceResult.CacheFile));
549var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingFindPackagesById, nameof(FindPackagesByIdAsync), uri)
570Strings.Log_FailedToRetrievePackage,
Resources\PackageUpdateResource.cs (24)
179Strings.NoApiKeyFound,
183if (confirm(string.Format(CultureInfo.CurrentCulture, Strings.DeleteCommandConfirm, packageId, packageVersion, sourceDisplayName)))
187Strings.DeleteCommandDeletingPackage,
194Strings.DeleteCommandDeletedPackage,
200log.LogInformation(Strings.DeleteCommandCanceled);
225Strings.UnableToFindFile,
236Strings.Warning_SymbolServerNotConfigured,
238Strings.DefaultSymbolServer));
282Strings.UnableToFindFile,
291Strings.NoApiKeyFound,
327Strings.Warning_SymbolServerNotConfigured,
329Strings.DefaultSymbolServer));
367Strings.PushCommandPushingPackage,
385log.LogInformation(Strings.PushCommandPackagePushed);
395return Strings.LiveFeed + " (" + NuGetConstants.DefaultGalleryServerUrl + ")";
440logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpServerUsage, "push", serviceEndpointUrl));
495Strings.Log_RetryingHttp,
576Strings.AddPackage_PackageAlreadyExists,
583messageToLog = Strings.NupkgPath_Invalid;
617advertiseDescription = Strings.PushCommandSkipDuplicateAdvertiseDotnetExe;
701log?.LogWarning(Strings.PushCommandSkipDuplicateNotImplemented);
743logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.Error_HttpServerUsage, "delete", sourceUri));
808throw new ArgumentException(Strings.DeletePackage_NotFound);
817throw new ArgumentException(Strings.DeletePackage_NotFound);
Resources\RepositorySignatureResource.cs (6)
29throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source));
31throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source));
41throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps);
51throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source));
54throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source));
61throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps);
Resources\VulnerabilityInfoResourceV3.cs (9)
65string message = string.Format(Strings.VulnerabilityPage_CouldNotLoad, _sourceRepository.PackageSource.Name, vulnerabilityIndexUrl.OriginalString);
117string message = string.Format(Strings.VulnerabilityPage_CouldNotLoad, _sourceRepository.PackageSource.Name, vulnerabilityPage.Url);
143string message = string.Format(Strings.Vulnerability_TooManyPages, _sourceRepository.PackageSource.Name, indexEntries.Count, maxPages);
214string message = string.Format(Strings.VulnerabilityPage_HasNoName, i, _sourceRepository.PackageSource.Name);
222string message = string.Format(Strings.VulnerabilityPage_NameTooLong, i, maxNameLength, _sourceRepository.PackageSource.Name);
242string message = string.Format(Strings.VulnerabilityPage_NameHasInvalidCharacters, i, _sourceRepository.PackageSource.Name);
249string message = string.Format(Strings.VulnerabilityPage_NoUrl, entry.Name, _sourceRepository.PackageSource.Name);
256string message = string.Format(Strings.VulnerabilityPage_UrlNotHttp, entry.Name, _sourceRepository.PackageSource.Name);
263string message = string.Format(Strings.VulnerabilityPage_NameNotUnique, entry.Name, _sourceRepository.PackageSource.Name);