140 references to Strings
NuGet.PackageManagement (140)
Audit\AuditChecker.cs (3)
77
var messageText = string.Format(
Strings
.Error_VulnerabilityDataFetch, exception.Message);
189
string message = string.Format(CultureInfo.CurrentCulture,
Strings
.Warning_AuditSourceWithoutData, vulnerabilitySources[i].PackageSource.Name);
258
var message = string.Format(
Strings
.Warning_PackageWithKnownVulnerability,
FileModifiers\FileTransformExtensions.cs (2)
20
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(installExtension));
25
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(uninstallExtension));
FileModifiers\XdtTransformer.cs (1)
139
Strings
.XdtError + " " + exception.Message,
IDE\PackageRestoreContext.cs (1)
80
throw new ArgumentException(
Strings
.ParameterCannotBeZeroOrNegative, nameof(maxNumberOfParallelTasks));
IDE\PackageRestoreManager.cs (1)
393
packageRestoreContext.Logger.Log(LogLevel.Error, string.Format(CultureInfo.CurrentCulture,
Strings
.Error_HttpSource_Single, "restore", source.Source));
InstallationCompatibility.cs (2)
159
Strings
.MultiplePackageTypesNotSupported,
182
Strings
.UnsupportedPackageType,
NuGetPackageManager.cs (58)
335
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.NoLatestVersionFound, packageId));
544
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.UnknownPackage, packageId));
552
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.NewerVersionAlreadyReferenced, packageId));
919
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.UnknownPackage, packageId));
926
Strings
.NewerVersionAlreadyReferenced, packageId));
983
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.NoPackageUpdates, projectName);
1097
nuGetProjectContext.Log(NuGet.ProjectManagement.MessageLevel.Info,
Strings
.NoPackagesInProject, projectName);
1109
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AttemptingToGatherDependencyInfoForMultiplePackages, projectName, targetFramework);
1126
nuGetProjectContext.Log(MessageLevel.Error,
Strings
.Error_HttpSource_Single, "update", source.Source);
1179
throw new InvalidOperationException(
Strings
.UnableToGatherDependencyInfoForMultiplePackages);
1255
nuGetProjectContext.Log(NuGet.ProjectManagement.MessageLevel.Info,
Strings
.AttemptingToResolveDependenciesForMultiplePackages);
1271
throw new InvalidOperationException(
Strings
.UnableToResolveDependencyInfoForMultiplePackages);
1309
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.ResolutionSuccessfulNoAction);
1310
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.NoUpdatesAvailable);
1325
throw new InvalidOperationException(
Strings
.PackagesCouldNotBeInstalled, ex);
1332
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.NoPackageUpdates, projectName);
1402
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.ResolvingActionsToInstallOrUpdateMultiplePackages);
1480
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageNotFound, newPackageToInstall));
1521
message: string.Format(CultureInfo.CurrentCulture,
Strings
.PackageNotFound, id),
1530
message: string.Format(CultureInfo.CurrentCulture,
Strings
.PackageNotFound, id),
1769
message:
Strings
.Argument_Cannot_Be_Null_Or_Empty,
1776
message: string.Format(CultureInfo.CurrentCulture,
Strings
.PropertyCannotBeNull, nameof(packageIdentity.Version)),
1804
var alreadyInstalledMessage = string.Format(CultureInfo.CurrentCulture,
Strings
.PackageAlreadyExistsInProject, packageIdentity, projectName ?? string.Empty);
1817
nuGetProjectContext.Log(MessageLevel.Error,
Strings
.Error_HttpSource_Single, "install", source.Source);
1843
nuGetProjectContext.Log(ProjectManagement.MessageLevel.Info,
Strings
.AttemptingToGatherDependencyInfo, packageIdentity, projectName, targetFramework);
1878
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.UnableToGatherDependencyInfo, packageIdentity));
1927
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AttemptingToResolveDependencies, packageIdentity, resolutionContext.DependencyBehavior);
1947
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.UnableToResolveDependencyInfo, packageIdentity, resolutionContext.DependencyBehavior));
1953
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.ResolvingActionsToInstallPackage, packageIdentity);
1996
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageNotFound, packageIdentity));
2015
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageCouldNotBeInstalled, packageIdentity), ex);
2037
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.ResolvedActionsToInstallPackage, packageIdentity);
2099
Strings
.Warning_ErrorFindingRepository,
2109
Strings
.UnknownPackageSpecificVersion, packageIdentity.Id, packageIdentity.Version));
2163
message: string.Format(CultureInfo.CurrentCulture,
Strings
.PropertyCannotBeNull, nameof(project)),
2196
message: string.Format(CultureInfo.CurrentCulture,
Strings
.PropertyCannotBeNull, nameof(project)),
2205
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageToBeUninstalledCouldNotBeFound,
2225
throw new InvalidOperationException(
Strings
.SolutionManagerNotAvailableForUninstall);
2237
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageToBeUninstalledCouldNotBeFound,
2295
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageToBeUninstalledCouldNotBeFound,
2336
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.PackageToBeUninstalledCouldNotBeFound,
2348
throw new InvalidOperationException(
Strings
.SolutionManagerNotAvailableForUninstall);
2373
nuGetProjectContext.Log(ProjectManagement.MessageLevel.Info,
Strings
.AttemptingToGatherDependencyInfo, packageIdentity, projectName, packageReferenceTargetFramework);
2381
nuGetProjectContext.Log(ProjectManagement.MessageLevel.Info,
Strings
.ResolvingActionsToUninstallPackage, packageIdentity);
2389
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.ResolvedActionsToUninstallPackage, packageIdentity);
2618
Strings
.SuccessfullyUninstalled,
2673
Strings
.SuccessfullyInstalled,
2715
Strings
.SignatureVerificationMultiple,
2807
MessageLevel.Info,
Strings
.NugetActionsTotalTime,
2966
message: string.Format(CultureInfo.CurrentCulture,
Strings
.UnableToFindPathInLookupOrList, nameof(nugetProjectActionsLookup), buildIntegratedProject.MSBuildProjectPath, nameof(packageIdentity), nameof(primarySources)),
3409
Strings
.SuccessfullyInstalled,
3418
Strings
.SuccessfullyUninstalled,
3490
Strings
.RestoreFailedRollingBack,
3530
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.Warning_RollingBack);
3625
nuGetProjectContext.Log(MessageLevel.Info, string.Format(CultureInfo.CurrentCulture,
Strings
.RestoringPackage, packageIdentity));
3755
nuGetProjectContext.Log(ProjectManagement.MessageLevel.Warning,
Strings
.PackageDoesNotExistInFolder, packageIdentity, PackagesFolderNuGetProject.Root);
3759
nuGetProjectContext.Log(ProjectManagement.MessageLevel.Info,
Strings
.RemovingPackageFromFolder, packageIdentity, PackagesFolderNuGetProject.Root);
3763
nuGetProjectContext.Log(ProjectManagement.MessageLevel.Info,
Strings
.RemovedPackageFromFolder, packageIdentity, PackagesFolderNuGetProject.Root);
PackageDownloader.cs (5)
209
Strings
.UnknownPackageSpecificVersion, packageIdentity.Id,
298
Strings
.DownloadResourceNotFound,
323
Strings
.DownloadStreamNotAvailable,
332
Strings
.PackageCancelledFromSource,
341
Strings
.PackageNotFoundOnSource,
PackagePreFetcher.cs (2)
192
Strings
.FoundPackageInPackagesFolder,
202
Strings
.RetrievingPackageStart,
Projects\FolderNuGetProject.cs (5)
137
throw new ArgumentException(
Strings
.PackageStreamShouldBeSeekable, nameof(downloadResourceResult));
151
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.PackageAlreadyExistsInFolder, packageIdentity, Root);
155
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AddingPackageToFolder, packageIdentity, Path.GetFullPath(Root));
215
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AddedPackageToFolder, packageIdentity, Path.GetFullPath(Root));
221
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.AddedPackageToFolderFromSource, packageIdentity, Path.GetFullPath(Root), downloadResourceResult.PackageSource);
Projects\MSBuildNuGetProject.cs (9)
166
throw new ArgumentException(
Strings
.PackageStreamShouldBeSeekable);
176
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.PackageAlreadyExistsInProject,
257
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_TargetFrameworkInfoPrefix, packageIdentity,
268
Strings
.UnableToFindCompatibleItems, packageIdentity.Id + " " + packageIdentity.Version.ToNormalizedString(), ProjectSystem.TargetFramework));
274
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_TargetFrameworkInfoPrefix, packageIdentity,
279
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AddingPackageWithOnlyToolsGroup, packageIdentity,
284
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AddingPackageWithOnlyDependencies, packageIdentity,
436
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.PackageDoesNotExistInProject,
457
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.PackageDoesNotExistInFolder,
Projects\PackagesConfigNuGetProject.cs (8)
125
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.PackageAlreadyExistsInPackagesConfig, packageIdentity, Path.GetFileName(FullPath));
176
Strings
.ErrorWritingPackagesConfig,
181
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.AddedPackageToPackagesConfig, packageIdentity, Path.GetFileName(FullPath));
202
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.PackageDoesNotExisttInPackagesConfig, packageIdentity, Path.GetFileName(FullPath));
230
Strings
.ErrorWritingPackagesConfig,
235
nuGetProjectContext.Log(MessageLevel.Info,
Strings
.RemovedPackageFromPackagesConfig, packageIdentity, Path.GetFileName(FullPath));
301
Strings
.ErrorLoadingPackagesConfig,
342
Strings
.ErrorLoadingPackagesConfig,
Projects\ProjectJsonNuGetProject.cs (4)
66
string.Format(CultureInfo.CurrentCulture,
Strings
.InvalidProjectName, MSBuildProjectPath));
181
string.Format(CultureInfo.CurrentCulture,
Strings
.ProjectNotLoaded_RestoreFailed, ProjectName));
324
string.Format(CultureInfo.CurrentCulture,
Strings
.ErrorLoadingPackagesConfig, _jsonConfig.FullName, ex.Message), ex);
343
string.Format(CultureInfo.CurrentCulture,
Strings
.ErrorLoadingPackagesConfig, _jsonConfig.FullName, ex.Message), ex);
Resolution\GatherExceptionHelpers.cs (3)
53
Strings
.PackagesConfigAllowedVersions,
65
Strings
.PackagesConfigAllowedVersionConflict,
89
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
Strings
.NewerVersionAlreadyReferenced, target));
Resolution\ResolverGather.cs (5)
229
string message = String.Format(CultureInfo.CurrentCulture,
Strings
.PackageNotFoundInPrimarySources, packageIdentity, allPrimarySources);
237
string.Format(CultureInfo.CurrentCulture,
Strings
.GatherTotalTime, DatetimeUtility.ToReadableTimeFormat(stopWatch.Elapsed)));
465
string message = String.Format(CultureInfo.CurrentCulture,
Strings
.UnableToGatherPackageFromSource, request.Package.Id, request.Source.Source.PackageSource.Source);
471
string message = String.Format(CultureInfo.CurrentCulture,
Strings
.UnableToGatherPackageFromSource, request.Package.Id, request.Source.Source.PackageSource.Source);
664
string message = String.Format(CultureInfo.CurrentCulture,
Strings
.ExceptionWhenTryingToAddSource, ex.GetType().ToString(), currentSource);
Resolution\UninstallResolver.cs (2)
145
Strings
.PackageHasDependent, packageIdentity, packageDependents[0]));
149
Strings
.PackageHasDependents, packageIdentity, string.Join(", ",
StringFormatter.cs (2)
16
Strings
.PackageSourceMappingPatternMatchFound,
26
Strings
.PackageSourceMappingPatternNoMatchFound,
Strings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NuGet.PackageManagement.Strings", typeof(
Strings
).Assembly);
Utility\FileSystemUtility.cs (11)
100
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_AddedFileToFolder, Path.GetFileName(path), folderPath);
104
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_AddedFile, Path.GetFileName(path));
129
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(fullPath));
144
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(fullPath));
157
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(fullPath));
229
Strings
.Debug_RemovedFileFromFolder,
235
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_RemovedFile, Path.GetFileName(fullPath));
256
nuGetProjectContext.Log(MessageLevel.Warning,
Strings
.Warning_FileModified, packageFile.FileFullPath);
323
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(path));
354
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(path));
435
nuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_RemovedFolder, fullPath);
Utility\JsonConfigUtility.cs (1)
63
string.Format(CultureInfo.CurrentCulture,
Strings
.DependencyDoesNotHaveValidVersion, dependencyToken.ToString()));
Utility\MSBuildNuGetProjectSystemUtility.cs (6)
114
Strings
.FileConflictMessage, path, projectSystem.ProjectName);
120
projectSystem.NuGetProjectContext.Log(MessageLevel.Info,
Strings
.Info_OverwritingExistingFile, path);
129
projectSystem.NuGetProjectContext.Log(MessageLevel.Warning,
Strings
.Warning_FileAlreadyExists, path);
402
projectSystem.NuGetProjectContext.Log(MessageLevel.Warning,
Strings
.Warning_FileModified, fullPath);
443
projectSystem.NuGetProjectContext.Log(MessageLevel.Warning,
Strings
.Warning_DirectoryNotEmpty, path);
474
projectSystem.NuGetProjectContext.Log(MessageLevel.Debug,
Strings
.Debug_RemovedFolder, fullPath);
Utility\PackagesConfigLockFileUtility.cs (6)
43
var message = string.Format(CultureInfo.CurrentCulture,
Strings
.Error_InvalidLockFileInput, lockFileName);
102
var message = string.Format(CultureInfo.CurrentCulture,
Strings
.Error_InvalidLockFileInput, lockFilePath);
139
var message = string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PackageValidationFailed, difference.Key.Id + "." + difference.Key.ResolvedVersion);
152
var log = RestoreLogMessage.CreateError(NuGetLogCode.NU1004,
Strings
.Error_RestoreInLockedModePackagesConfig);
293
throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_FileDoesNotExist, pcFile), pcFile);
305
throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_DirectoryDoesNotExist, packagesFolderPath));
Utility\PackagesFolderPathUtility.cs (2)
30
throw new InvalidOperationException(
Strings
.SolutionDirectoryNotAvailable);
40
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(solutionDirectory));