317 references to Strings
NuGet.Protocol (317)
Converters\MetadataStringOrArrayStjConverter.cs (2)
28throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 39throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
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\PackageDependencyGroupStjConverter.cs (4)
26throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 36throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 65throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType)); 72throw new JsonException(string.Format(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) 530Strings.Error_Insecure_HTTP,
HttpSource\HttpSourceAuthenticationHandler.cs (2)
203Strings.Http_CredentialsForUnauthorized, 211Strings.Http_CredentialsForForbidden,
HttpSource\HttpStreamValidation.cs (6)
68Strings.Protocol_InvalidJsonObject, 107Strings.Protocol_InvalidJsonObject, 140Strings.Log_InvalidNupkgFromUrl, 178Strings.Error_PackageIdentityDoesNotMatch, 192Strings.Log_InvalidNupkgFromUrl, 231Strings.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)
12using Strings = NuGet.Protocol.Strings; 43string message = String.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url);
LegacyFeed\V2FeedParser.cs (4)
157throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(id)); 484Strings.Protocol_duplicateUri, 571Strings.Log_FailedToFetchV2FeedHttp, 614Strings.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)
50Strings.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)
158fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileTooLarge, path, "5"); 171fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_FileNotFound, path); 177fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path); 183fileContent = string.Format(CultureInfo.CurrentCulture, Strings.LoadFileFromNupkg_UnknownProblemLoadingTheFile, path);
Model\PackageSearchMetadata.cs (2)
251errors.Add(string.Format(CultureInfo.CurrentCulture, Strings.NuGetLicenseExpression_NonStandardIdentifier, string.Join(", ", invalidLicenseIdentifiers))); 274Strings.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)
133Strings.Plugin_TimeoutOutOfRange);
Plugins\Connection.cs (4)
174throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted); 208throw new ProtocolException(Strings.Plugin_HandshakeFailed); 242throw new InvalidOperationException(Strings.Plugin_NotConnected); 287throw new InvalidOperationException(Strings.Plugin_NotConnected);
Plugins\ConnectionOptions.cs (4)
80Strings.Plugin_ProtocolVersionOutOfRange, 90Strings.Plugin_TimeoutOutOfRange); 98Strings.Plugin_TimeoutOutOfRange); 121Strings.Plugin_TimeoutOutOfRange);
Plugins\InboundRequestContext.cs (1)
74throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId));
Plugins\JsonSerializationUtilities.cs (1)
61throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(json));
Plugins\Logging\PluginLogger.cs (1)
85throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\Logging\PluginLogMessage.cs (1)
23throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(type));
Plugins\MessageConverter.cs (9)
110throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.RequestId))); 116throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(Message.RequestId))); 121throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Type))); 127throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, typeStr)); 132throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Method))); 138throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, methodStr)); 146throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedPayloadTokenType, payloadProp.ValueKind)); 163throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, $"{messageMethod}/{messageType}")); 181throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedPayloadType, value.PayloadObject.GetType()));
Plugins\MessageDispatcher.cs (4)
558Strings.Plugin_InvalidMessageType, 583Strings.Plugin_InvalidMessageType, 647string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestHandlerDoesNotExist, method)); 658string.Format(CultureInfo.CurrentCulture, Strings.Plugin_RequestContextDoesNotExist, requestId));
Plugins\Messages\CopyFilesInPackageRequest.cs (5)
74throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 79throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 84throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion)); 89throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(filesInPackage)); 94throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFolderPath));
Plugins\Messages\CopyFilesInPackageResponse.cs (2)
46Strings.Plugin_UnrecognizedEnumValue, 53throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(copiedFiles));
Plugins\Messages\CopyNupkgFileRequest.cs (4)
62throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 67throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 72throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion)); 77throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFilePath));
Plugins\Messages\CopyNupkgFileResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\Fault.cs (1)
31throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (1)
62Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\GetCredentialsRequest.cs (2)
38throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 46Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\GetCredentialsResponse.cs (1)
53Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\GetFilesInPackageRequest.cs (3)
52throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 57throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 62throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion));
Plugins\Messages\GetFilesInPackageResponse.cs (2)
46Strings.Plugin_UnrecognizedEnumValue, 53throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(files));
Plugins\Messages\GetOperationClaimsResponse.cs (1)
45Strings.Plugin_UnrecognizedOperationClaims,
Plugins\Messages\GetPackageHashRequest.cs (4)
62throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 67throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 72throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageVersion)); 77throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hashAlgorithm));
Plugins\Messages\GetPackageHashResponse.cs (2)
43Strings.Plugin_UnrecognizedEnumValue, 50throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hash));
Plugins\Messages\GetPackageVersionsRequest.cs (2)
42throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 47throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId));
Plugins\Messages\GetPackageVersionsResponse.cs (2)
46Strings.Plugin_UnrecognizedEnumValue, 53throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(versions));
Plugins\Messages\GetServiceIndexRequest.cs (1)
29throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository));
Plugins\Messages\GetServiceIndexResponse.cs (1)
58Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\HandshakeRequest.cs (1)
61Strings.Plugin_ProtocolVersionOutOfRange,
Plugins\Messages\HandshakeResponse.cs (3)
59Strings.Plugin_UnrecognizedEnumValue, 68throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(protocolVersion)); 74Strings.Plugin_ProtocolVersionNotSupportedOnError,
Plugins\Messages\InitializeRequest.cs (3)
50throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(clientVersion)); 55throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(culture)); 63Strings.Plugin_TimeoutOutOfRange);
Plugins\Messages\InitializeResponse.cs (1)
35Strings.Plugin_UnrecognizedEnumValue,
Plugins\Messages\LogRequest.cs (2)
45Strings.Plugin_UnrecognizedEnumValue, 52throw 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)
52throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 57throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageId)); 62throw 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)
57throw 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)
34throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId)); 61throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(requestId));
Plugins\NsjRawJsonStringConverter.cs (1)
25string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Plugins\ObjectPayloadConverter.cs (1)
26Strings.Error_UnexpectedJsonToken,
Plugins\OutboundRequestContext`1.cs (1)
141Strings.Plugin_InvalidMessageType,
Plugins\Plugin.cs (2)
92throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(filePath)); 110Strings.Plugin_IdleTimeoutMustBeGreaterThanOrEqualToInfiniteTimeSpan);
Plugins\PluginCreationResult.cs (1)
93throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(message));
Plugins\PluginDiscoveryResult.cs (3)
39Strings.Plugin_FileNotFound, 46Strings.Plugin_InvalidPluginFilePath, 53Strings.Plugin_InvalidEmbeddedSignature,
Plugins\PluginFactory.cs (5)
58Strings.Plugin_IdleTimeoutMustBeGreaterThanOrEqualToInfiniteTimeSpan); 134throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(pluginFile.Path)); 278string.Format(CultureInfo.CurrentCulture, Strings.Plugin_Exception, plugin.Name, ex.Message)); 289Strings.Plugin_FailedOnCreation, 412Strings.Plugin_Fault,
Plugins\PluginFile.cs (1)
38throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(filePath));
Plugins\PluginManager.cs (2)
264Strings.Plugin_ProblemStartingPlugin, 429throw new PluginException(Strings.Plugin_InitializationFailed);
Plugins\PluginMulticlientUtilities.cs (1)
46throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(key));
Plugins\PluginPackageDownloader.cs (3)
103throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 148throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destinationFilePath)); 189throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(hashAlgorithm));
Plugins\PluginPackageReader.cs (8)
63throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(packageSourceRepository)); 101throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(path)); 251throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(destination)); 299Strings.Plugin_FailedOperationForPackage, 920throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(nupkgFilePath)); 1046Strings.Plugin_FailedOperationForPackage, 1085Strings.Plugin_FailedOperationForPackage, 1147throw new SignatureException(NuGetLogCode.NU3041, Strings.Plugin_DownloadNotSupportedSinceUnsignedNotAllowed);
Plugins\RawJsonStringConverter.cs (1)
22throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedPayloadTokenType, reader.TokenType));
Plugins\Receiver.cs (2)
63var ex = new ProtocolException(Strings.Plugin_ProtocolException, exception); 79throw new InvalidOperationException(Strings.Plugin_ConnectionIsClosed);
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (3)
238Strings.Http_CredentialsForUnauthorized, 245Strings.Http_CredentialsForForbidden, 270Strings.Http_CredentialsForProxy,
Plugins\RequestHandlers\SymmetricHandshake.cs (2)
57Strings.Plugin_TimeoutOutOfRange); 87throw new ArgumentException(Strings.Plugin_HandshakeRequestHandlerAlreadyExists, nameof(connection));
Plugins\Sender.cs (3)
98throw new InvalidOperationException(Strings.Plugin_ConnectionIsClosed); 103throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted); 133throw new InvalidOperationException(Strings.Plugin_NotConnected);
Plugins\StandardInputReceiver.cs (1)
99throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted);
Plugins\StandardOutputReceiver.cs (1)
92throw new InvalidOperationException(Strings.Plugin_ConnectionAlreadyStarted);
Plugins\StjSemanticVersionConverter.cs (1)
23throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedJsonToken, reader.TokenType));
Plugins\TimeoutUtilities.cs (1)
28Strings.Plugin_TimeoutOutOfRange);
Providers\PackageUpdateResourceV3Provider.cs (1)
49Strings.PackageServerEndpoint_NotSupported,
Providers\RepositorySignatureResourceProvider.cs (5)
60throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.RepositorySignaturesResourceMustBeHttps, source.PackageSource.Source)); 96?? throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri)); 123?? throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri)); 140var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri) 147var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri);
Providers\ServiceIndexResourceV3Provider.cs (7)
166var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_RetryingServiceIndex, url) 185var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadServiceIndex, url); 222Strings.Protocol_InvalidJsonObject, 230Strings.Protocol_InvalidJsonObject, 239Strings.Protocol_UnsupportedVersion, 269Strings.Protocol_UnsupportedVersion, 276throw 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)
137throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\DependencyInfoResourceV3.cs (3)
96var error = String.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, package, _source); 134var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source); 160var error = string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source);
Resources\DownloadResourcePlugin.cs (1)
139Strings.Plugin_PackageDownloadFailed,
Resources\MetadataResourceV3.cs (1)
76throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id, _regResource.BaseUri), ex);
Resources\PackageSearchResourceV3.cs (4)
110throw new NotSupportedException(Strings.Protocol_PackageTypeFilterNotSupported); 173throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 177throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 187throw 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)
99throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 103throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 113throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\RegistrationResourceV3.cs (1)
72throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(id));
Resources\RepositorySignatureResource.cs (6)
34throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 36throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 46throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps); 59throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 62throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 69throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps);
Resources\VulnerabilityInfoResourceV3.cs (9)
66string message = string.Format(Strings.VulnerabilityPage_CouldNotLoad, _sourceRepository.PackageSource.Name, vulnerabilityIndexUrl.OriginalString); 121string message = string.Format(Strings.VulnerabilityPage_CouldNotLoad, _sourceRepository.PackageSource.Name, vulnerabilityPage.Url); 147string message = string.Format(Strings.Vulnerability_TooManyPages, _sourceRepository.PackageSource.Name, indexEntries.Count, maxPages); 218string message = string.Format(Strings.VulnerabilityPage_HasNoName, i, _sourceRepository.PackageSource.Name); 226string message = string.Format(Strings.VulnerabilityPage_NameTooLong, i, maxNameLength, _sourceRepository.PackageSource.Name); 246string message = string.Format(Strings.VulnerabilityPage_NameHasInvalidCharacters, i, _sourceRepository.PackageSource.Name); 253string message = string.Format(Strings.VulnerabilityPage_NoUrl, entry.Name, _sourceRepository.PackageSource.Name); 260string message = string.Format(Strings.VulnerabilityPage_UrlNotHttp, entry.Name, _sourceRepository.PackageSource.Name); 267string 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));