295 references to Strings
NuGet.Protocol (295)
Converters\NuGetFrameworkStjConverter.cs (1)
28_ => throw new JsonException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType))
Converters\NuGetVersionStjConverter.cs (1)
24_ => throw new JsonException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType))
Converters\Utf8JsonReaderExtensions.cs (1)
28_ => throw new JsonException(string.Format(System.Globalization.CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType))
Exceptions\PackageNotFoundProtocolException.cs (1)
36Strings.PackageNotFound,
HttpSource\HttpRetryHandler.cs (5)
141Strings.Http_RequestLog, 148Strings.Http_Timeout, 201Strings.Http_ResponseLogWithRetryAfter, 220Strings.Http_ResponseLog, 285Strings.Log_RetryingHttp,
HttpSource\HttpSource.cs (3)
90log.LogInformation(string.Format(CultureInfo.InvariantCulture, " " + Strings.Http_RequestLog, "CACHE", request.Uri)); 111string message = string.Format(CultureInfo.CurrentCulture, Strings.Log_InvalidCacheEntry, request.Uri) 528Strings.Error_Insecure_HTTP,
HttpSource\HttpSourceAuthenticationHandler.cs (2)
200Strings.Http_CredentialsForUnauthorized, 208Strings.Http_CredentialsForForbidden,
HttpSource\HttpStreamValidation.cs (5)
60Strings.Protocol_InvalidJsonObject, 93Strings.Log_InvalidNupkgFromUrl, 131Strings.Error_PackageIdentityDoesNotMatch, 145Strings.Log_InvalidNupkgFromUrl, 184Strings.Protocol_InvalidXml,
HttpSource\ProxyAuthenticationHandler.cs (1)
207Strings.Http_CredentialsForProxy,
LegacyFeed\DependencyInfoResourceV2Feed.cs (2)
58var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _source); 89var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source);
LegacyFeed\DownloadResourceV2Feed.cs (1)
107string message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorDownloading, identity, _feedParser.Source);
LegacyFeed\MetadataResourceV2Feed.cs (2)
82throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source), ex); 98throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, identity, _source), ex);
LegacyFeed\ODataServiceDocumentUtils.cs (2)
14using Strings = NuGet.Protocol.Strings; 45string message = String.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url);
LegacyFeed\V2FeedParser.cs (4)
159throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(id)); 486Strings.Protocol_duplicateUri, 573Strings.Log_FailedToFetchV2FeedHttp, 616Strings.Log_FailedToFetchV2Feed,
LocalPackageArchiveDownloader.cs (3)
95string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(packageFilePath)), 163Strings.StringCannotBeNullOrEmpty, 232string.Format(CultureInfo.CurrentCulture, Strings.StringCannotBeNullOrEmpty, nameof(hashAlgorithm)),
LocalRepositories\LocalDependencyInfoResource.cs (2)
80var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _localResource.Root); 131Strings.Protocol_PackageMetadataError,
LocalRepositories\LocalMetadataResource.cs (1)
97Strings.Protocol_PackageMetadataError,
LocalRepositories\LocalPackageSearchResource.cs (1)
48Strings.Protocol_Search_LocalSourceNotFound,
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,
Model\LocalPackageSearchMetadata.cs (4)
160fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileTooLarge, path, "5"); 173fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileNotFound, path); 179fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path); 185fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path);
Model\PackageSearchMetadata.cs (2)
193errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_NonStandardIdentifier, string.Join(", ", invalidLicenseIdentifiers))); 216Strings.NuGetLicense_LicenseExpressionVersionTooHigh,
Model\RepositoryCertificateInfo.cs (4)
51Fingerprints = fingerprints ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.Fingerprints)); 52Subject = subject ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.Subject)); 53Issuer = issuer ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.Issuer)); 56ContentUrl = contentUrl ?? throw new System.Text.Json.JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, JsonProperties.ContentUrl));
Model\ServiceIndexModel.cs (1)
24throw new InvalidDataException(Strings.Protocol_MissingVersion);
Plugins\AutomaticProgressReporter.cs (1)
135Strings.Plugin_TimeoutOutOfRange);
Plugins\Connection.cs (4)
176throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted); 210throw new ProtocolException(Strings.Plugin_HandshakeFailed); 244throw new InvalidOperationException(Strings.Plugin_NotConnected); 289throw new InvalidOperationException(Strings.Plugin_NotConnected);
Plugins\ConnectionOptions.cs (4)
82Strings.Plugin_ProtocolVersionOutOfRange, 92Strings.Plugin_TimeoutOutOfRange); 100Strings.Plugin_TimeoutOutOfRange); 123Strings.Plugin_TimeoutOutOfRange);
Plugins\InboundRequestContext.cs (1)
76throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId));
Plugins\JsonSerializationUtilities.cs (1)
52throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(json));
Plugins\Logging\PluginLogger.cs (1)
87throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\Logging\PluginLogMessage.cs (1)
27throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(type));
Plugins\MessageDispatcher.cs (4)
561Strings.Plugin_InvalidMessageType, 586Strings.Plugin_InvalidMessageType, 650string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestHandlerDoesNotExist, method)); 663string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestContextDoesNotExist, requestId));
Plugins\Messages\CopyFilesInPackageRequest.cs (5)
76throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 81throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 86throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion)); 91throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(filesInPackage)); 96throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFolderPath));
Plugins\Messages\CopyFilesInPackageResponse.cs (2)
48Strings.Plugin_UnrecognizedEnumValue, 55throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(copiedFiles));
Plugins\Messages\CopyNupkgFileRequest.cs (4)
64throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 69throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 74throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion)); 79throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFilePath));
Plugins\Messages\CopyNupkgFileResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\Fault.cs (1)
33throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (1)
63Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\GetCredentialsRequest.cs (2)
40throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 48Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\GetCredentialsResponse.cs (1)
55Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\GetFilesInPackageRequest.cs (3)
54throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 59throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 64throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion));
Plugins\Messages\GetFilesInPackageResponse.cs (2)
48Strings.Plugin_UnrecognizedEnumValue, 55throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(files));
Plugins\Messages\GetOperationClaimsResponse.cs (1)
47Strings.Plugin_UnrecognizedOperationClaims,
Plugins\Messages\GetPackageHashRequest.cs (4)
64throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 69throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 74throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion)); 79throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hashAlgorithm));
Plugins\Messages\GetPackageHashResponse.cs (2)
45Strings.Plugin_UnrecognizedEnumValue, 52throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hash));
Plugins\Messages\GetPackageVersionsRequest.cs (2)
44throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 49throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId));
Plugins\Messages\GetPackageVersionsResponse.cs (2)
48Strings.Plugin_UnrecognizedEnumValue, 55throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(versions));
Plugins\Messages\GetServiceIndexRequest.cs (1)
31throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository));
Plugins\Messages\GetServiceIndexResponse.cs (1)
47Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\HandshakeRequest.cs (1)
61Strings.Plugin_ProtocolVersionOutOfRange,
Plugins\Messages\HandshakeResponse.cs (3)
52Strings.Plugin_UnrecognizedEnumValue, 61throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(protocolVersion)); 67Strings.Plugin_ProtocolVersionNotSupportedOnError,
Plugins\Messages\InitializeRequest.cs (3)
52throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(clientVersion)); 57throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(culture)); 65Strings.Plugin_TimeoutOutOfRange);
Plugins\Messages\InitializeResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\LogRequest.cs (2)
47Strings.Plugin_UnrecognizedEnumValue, 54throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\Messages\LogResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\Message.cs (3)
70throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId)); 78Strings.Plugin_UnrecognizedEnumValue, 88Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\MonitorNuGetProcessExitResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\PrefetchPackageRequest.cs (3)
54throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 59throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 64throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion));
Plugins\Messages\PrefetchPackageResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\Progress.cs (1)
28throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(percentage));
Plugins\Messages\SetCredentialsRequest.cs (1)
59throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository));
Plugins\Messages\SetCredentialsResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\SetLogLevelRequest.cs (1)
36Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\SetLogLevelResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\MessageUtilities.cs (2)
32throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId)); 59throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId));
Plugins\ObjectPayloadConverter.cs (1)
26Strings.Error_UnexpectedJsonToken,
Plugins\OutboundRequestContext`1.cs (1)
140Strings.Plugin_InvalidMessageType,
Plugins\Plugin.cs (2)
94throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(filePath)); 112Strings.Plugin_IdleTimeoutMustBeGreaterThanOrEqualToInfiniteTimeSpan);
Plugins\PluginCreationResult.cs (1)
82throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\PluginDiscoveryResult.cs (3)
41Strings.Plugin_FileNotFound, 48Strings.Plugin_InvalidPluginFilePath, 55Strings.Plugin_InvalidEmbeddedSignature,
Plugins\PluginFactory.cs (5)
53Strings.Plugin_IdleTimeoutMustBeGreaterThanOrEqualToInfiniteTimeSpan); 129throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(pluginFile.Path)); 273string.Format(CultureInfo.CurrentCulture, Strings.Plugin_Exception, plugin.Name, ex.Message)); 284Strings.Plugin_FailedOnCreation, 409Strings.Plugin_Fault,
Plugins\PluginFile.cs (1)
40throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(filePath));
Plugins\PluginManager.cs (2)
268Strings.Plugin_ProblemStartingPlugin, 426throw new PluginException(Strings.Plugin_InitializationFailed);
Plugins\PluginMulticlientUtilities.cs (1)
48throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(key));
Plugins\PluginPackageDownloader.cs (3)
105throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 150throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFilePath)); 191throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hashAlgorithm));
Plugins\PluginPackageReader.cs (8)
65throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 103throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(path)); 253throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destination)); 301Strings.Plugin_FailedOperationForPackage, 922throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(nupkgFilePath)); 1048Strings.Plugin_FailedOperationForPackage, 1087Strings.Plugin_FailedOperationForPackage, 1149throw new SignatureException(NuGetLogCode.NU3041, Strings.Plugin_DownloadNotSupportedSinceUnsignedNotAllowed);
Plugins\Receiver.cs (2)
65var ex = new ProtocolException(Strings.Plugin_ProtocolException, exception); 81throw new InvalidOperationException(Strings.Plugin_ConnectionIsClosed);
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (3)
231Strings.Http_CredentialsForUnauthorized, 238Strings.Http_CredentialsForForbidden, 263Strings.Http_CredentialsForProxy,
Plugins\RequestHandlers\SymmetricHandshake.cs (2)
56Strings.Plugin_TimeoutOutOfRange); 86throw new ArgumentException(Strings.Plugin_HandshakeRequestHandlerAlreadyExists, nameof(connection));
Plugins\Sender.cs (3)
92throw new InvalidOperationException(Strings.Plugin_ConnectionIsClosed); 97throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted); 127throw new InvalidOperationException(Strings.Plugin_NotConnected);
Plugins\StandardInputReceiver.cs (1)
92throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted);
Plugins\StandardOutputReceiver.cs (1)
85throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted);
Plugins\TimeoutUtilities.cs (1)
30Strings.Plugin_TimeoutOutOfRange);
Providers\PackageUpdateResourceV3Provider.cs (1)
49Strings.PackageServerEndpoint_NotSupported,
Providers\RepositorySignatureResourceProvider.cs (3)
62throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.RepositorySignaturesResourceMustBeHttps, source.PackageSource.Source)); 111var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri) 118var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri);
Providers\ServiceIndexResourceV3Provider.cs (7)
167var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingServiceIndex, url) 186var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url); 220Strings.Protocol_InvalidJsonObject, 228Strings.Protocol_InvalidJsonObject, 237Strings.Protocol_UnsupportedVersion, 265Strings.Protocol_UnsupportedVersion, 272throw new InvalidDataException(Strings.Protocol_MissingVersion);
RemotePackageArchiveDownloader.cs (2)
160throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFilePath)); 226throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hashAlgorithm));
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,
RemoteRepositories\PackageUtilities.cs (2)
28throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToGetNuspecStream, id)); 40log.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.Log_FileIsCorrupt, fileStream.Name));
RemoteRepositories\PluginFindPackageByIdResource.cs (5)
180throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 247throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 342throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 432Strings.Plugin_FailureQueryingPackageVersions, 448Strings.Log_FailedToRetrievePackage,
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (7)
105throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 165throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 245throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 390throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 531Strings.Protocol_duplicateUri, 548var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingFindPackagesById, nameof(FindPackagesByIdAsyncCore), uri) 557Strings.Log_FailedToRetrievePackage,
RemoteRepositories\RemoteV3FindPackageByIdResource.cs (4)
96throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 156throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 235throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id)); 380throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
Resources\AutoCompleteResourceV3.cs (1)
133throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\DependencyInfoResourceV3.cs (3)
89var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _source); 127var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source); 153var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source);
Resources\DownloadResourcePlugin.cs (1)
139Strings.Plugin_PackageDownloadFailed,
Resources\MetadataResourceV3.cs (1)
56throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id, _regResource.BaseUri), ex);
Resources\PackageSearchResourceV3.cs (3)
172throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 176throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 186throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
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\RawSearchResourceV3.cs (3)
103throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 107throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 117throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\RegistrationResourceV3.cs (1)
71throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
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);
Strings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NuGet.Protocol.Strings", typeof(Strings).Assembly);
Utility\DownloadTimeoutStream.cs (1)
86Strings.Error_DownloadTimeout,
Utility\FindPackagesByIdNupkgDownloader.cs (3)
288var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_CanceledNupkgDownload, url); 296Strings.Log_FailedToDownloadPackage, 320Strings.Log_FailedToDownloadPackage,
Utility\GetDownloadResultUtility.cs (2)
116var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorDownloading, identity, uri) 123var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ErrorDownloading, identity, uri);
Utility\LocalFolderUtility.cs (5)
829var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToVerifyRootDirectory, root); 847var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToVerifyValidFile, fileUri.AbsoluteUri); 1104Strings.UnableToFindFile, 1235Strings.NupkgPath_InvalidEx, 1263log.LogWarning(string.Format(CultureInfo.CurrentCulture, Strings.UnableToParseFolderV3Version, version));
Utility\OfflineFeedAddContext.cs (2)
33Strings.Argument_Cannot_Be_Null_Or_Empty, 40Strings.Argument_Cannot_Be_Null_Or_Empty,
Utility\OfflineFeedUtility.cs (7)
83Strings.Path_Invalid, 95Strings.Path_Invalid, 108Strings.Path_Invalid_NotFileNotUnc, 166Strings.AddPackage_PackageAlreadyExists, 182Strings.AddPackage_ExistingPackageInvalid, 218Strings.AddPackage_SuccessfullyAdded, 234Strings.NupkgPath_Invalid,
Utility\PackageIdValidator.cs (1)
35throw new InvalidPackageIdException(string.Format(CultureInfo.CurrentCulture, Strings.Error_Invalid_package_id, packageId));