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