From 4c9d0d214a9a428ea0e2df5d7e4d888e1ff2e75d Mon Sep 17 00:00:00 2001 From: Dan Liu Date: Tue, 29 Sep 2015 11:24:43 -0700 Subject: [PATCH 1/2] Fixed https://github.com/NuGet/Home/issues/467 --- .../Cmdlets/UpdatePackageCommand.cs | 2 +- .../NuGetPowerShellBaseCommand.cs | 4 +- .../Resources.Designer.cs | 188 ++---------------- .../Resources.resx | 116 ++++------- 4 files changed, 59 insertions(+), 251 deletions(-) diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs index 3988edafd11..01de4a76cba 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs @@ -153,7 +153,7 @@ private async Task UpdateOrReinstallSinglePackage() if (!_isPackageInstalled) { - Log(ProjectManagement.MessageLevel.Error, Resources.PackageNotInstalledInAnyProject, Id); + Log(ProjectManagement.MessageLevel.Error, Resources.Cmdlets_PackageNotInstalledInAnyProject, Id); } } catch (Exception ex) diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs index 31777b698a5..d4b2c02328d 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs @@ -811,7 +811,7 @@ public FileConflictAction ResolveFileConflict(string message) new ChoiceDescription(Resources.Cmdlet_NoAll, Resources.Cmdlet_FileConflictNoAllHelp) }; - int choice = Host.UI.PromptForChoice(Resources.FileConflictTitle, message, choices, defaultChoice: 2); + int choice = Host.UI.PromptForChoice(Resources.Cmdlets_FileConflictTitle, message, choices, defaultChoice: 2); Debug.Assert(choice >= 0 && choice < 4); switch (choice) @@ -921,7 +921,7 @@ public void ExecutePSScriptInternal(string path) if (path != null) { string command = "& " + ProjectManagement.PathUtility.EscapePSPath(path) + " $__rootPath $__toolsPath $__package $__project"; - LogCore(ProjectManagement.MessageLevel.Info, String.Format(CultureInfo.CurrentCulture, Resources.ExecutingScript, path)); + LogCore(ProjectManagement.MessageLevel.Info, String.Format(CultureInfo.CurrentCulture, Resources.Cmdlets_ExecutingScript, path)); InvokeCommand.InvokeScript(command, false, PipelineResultTypes.Error, null, null); } diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs index 8409d122901..afcd300f1e6 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.0 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -78,15 +78,6 @@ internal static string Cmdlet_CommandRemoved { } } - /// - /// Looks up a localized string similar to Creating package at {0}.... - /// - internal static string Cmdlet_CreatingPackage { - get { - return ResourceManager.GetString("Cmdlet_CreatingPackage", resourceCulture); - } - } - /// /// Looks up a localized string similar to Stop to display more packages. /// @@ -123,15 +114,6 @@ internal static string Cmdlet_FailToParseVersion { } } - /// - /// Looks up a localized string similar to The source at {0} is unreachable. Falling back to NuGet Local Cache at {1}. - /// - internal static string Cmdlet_FallbackToCache { - get { - return ResourceManager.GetString("Cmdlet_FallbackToCache", resourceCulture); - } - } - /// /// Looks up a localized string similar to Skip this file and all subsequent files. /// @@ -168,15 +150,6 @@ internal static string Cmdlet_FileConflictYesHelp { } } - /// - /// Looks up a localized string similar to Output file '{0}' exists and -NoClobber was specified.. - /// - internal static string Cmdlet_FileExistsNoClobber { - get { - return ResourceManager.GetString("Cmdlet_FileExistsNoClobber", resourceCulture); - } - } - /// /// Looks up a localized string similar to No packages found in the current package source.. /// @@ -204,15 +177,6 @@ internal static string Cmdlet_InvalidPathSyntax { } } - /// - /// Looks up a localized string similar to The specified IProjectManager instance is not recognized.. - /// - internal static string Cmdlet_InvalidProjectManagerInstance { - get { - return ResourceManager.GetString("Cmdlet_InvalidProjectManagerInstance", resourceCulture); - } - } - /// /// Looks up a localized string similar to Only paths residing on a FileSystemProvider are supported.. /// @@ -231,15 +195,6 @@ internal static string Cmdlet_InvalidPSDrive { } } - /// - /// Looks up a localized string similar to The source at {0} is unreachable. There is no NuGet Local Cache found. - /// - internal static string Cmdlet_LocalCacheFailure { - get { - return ResourceManager.GetString("Cmdlet_LocalCacheFailure", resourceCulture); - } - } - /// /// Looks up a localized string similar to Some NuGet packages are missing from the solution. The packages need to be restored in order to build the dependency graph. Restore the packages before performing any operations.. /// @@ -321,24 +276,6 @@ internal static string Cmdlet_NoSolution { } } - /// - /// Looks up a localized string similar to Nothing to do. - /// - internal static string Cmdlet_NothingToDo { - get { - return ResourceManager.GetString("Cmdlet_NothingToDo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to locate a .nuspec file in the specified project.. - /// - internal static string Cmdlet_NuspecFileNotFound { - get { - return ResourceManager.GetString("Cmdlet_NuspecFileNotFound", resourceCulture); - } - } - /// /// Looks up a localized string similar to Open. /// @@ -348,15 +285,6 @@ internal static string Cmdlet_OpenPackagePageAction { } } - /// - /// Looks up a localized string similar to Package file successfully created.... - /// - internal static string Cmdlet_PackageCreated { - get { - return ResourceManager.GetString("Cmdlet_PackageCreated", resourceCulture); - } - } - /// /// Looks up a localized string similar to Package with the Id '{0}' and version '{1}' is not found in the specified source.. /// @@ -402,15 +330,6 @@ internal static string Cmdlet_PackageSourceNotFound { } } - /// - /// Looks up a localized string similar to The 'Package source' has been successfully set as '{0}'.. - /// - internal static string Cmdlet_PackageSourceSet { - get { - return ResourceManager.GetString("Cmdlet_PackageSourceSet", resourceCulture); - } - } - /// /// Looks up a localized string similar to Project '{0}' is not found.. /// @@ -420,15 +339,6 @@ internal static string Cmdlet_ProjectNotFound { } } - /// - /// Looks up a localized string similar to The 'Default project' has been successfully set as '{0}'.. - /// - internal static string Cmdlet_ProjectSet { - get { - return ResourceManager.GetString("Cmdlet_ProjectSet", resourceCulture); - } - } - /// /// Looks up a localized string similar to There may be more packages to display. Do you want to continue?. /// @@ -447,15 +357,6 @@ internal static string Cmdlet_RequestRestartToCompleteUninstall { } } - /// - /// Looks up a localized string similar to More than one .nuspec files were found.. - /// - internal static string Cmdlet_TooManySpecFiles { - get { - return ResourceManager.GetString("Cmdlet_TooManySpecFiles", resourceCulture); - } - } - /// /// Looks up a localized string similar to The package '{0}' does not provide the requested URL.. /// @@ -465,15 +366,6 @@ internal static string Cmdlet_UrlMissing { } } - /// - /// Looks up a localized string similar to Specifying both -Reinstall and -WhatIf is not supported for now.. - /// - internal static string Cmdlet_WhatIfReinstallUnsupported { - get { - return ResourceManager.GetString("Cmdlet_WhatIfReinstallUnsupported", resourceCulture); - } - } - /// /// Looks up a localized string similar to &Yes. /// @@ -493,110 +385,74 @@ internal static string Cmdlet_YesAll { } /// - /// Looks up a localized string similar to Finished adding BindingRedirects to project '{0}'. - /// - internal static string Cmdlets_AddedBindingRedirects { - get { - return ResourceManager.GetString("Cmdlets_AddedBindingRedirects", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to get version update for Package '{0}' due to error {1}. - /// - internal static string Cmdlets_ErrorFindingUpdateVersion { - get { - return ResourceManager.GetString("Cmdlets_ErrorFindingUpdateVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to add BindingRedirects to project '{0}' due to error: {1}. - /// - internal static string Cmdlets_FailedBindingRedirects { - get { - return ResourceManager.GetString("Cmdlets_FailedBindingRedirects", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There are no other projects to sync the package '{0}'.. - /// - internal static string Cmdlets_NoProjectsToSyncPackage { - get { - return ResourceManager.GetString("Cmdlets_NoProjectsToSyncPackage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The project '{0}' does not support adding BindingRedirects.. + /// Looks up a localized string similar to Executing script file '{0}'. /// - internal static string Cmdlets_NotSupportBindingRedirects { + internal static string Cmdlets_ExecutingScript { get { - return ResourceManager.GetString("Cmdlets_NotSupportBindingRedirects", resourceCulture); + return ResourceManager.GetString("Cmdlets_ExecutingScript", resourceCulture); } } /// - /// Looks up a localized string similar to Executing script file '{0}'. + /// Looks up a localized string similar to File Conflict. /// - internal static string ExecutingScript { + internal static string Cmdlets_FileConflictTitle { get { - return ResourceManager.GetString("ExecutingScript", resourceCulture); + return ResourceManager.GetString("Cmdlets_FileConflictTitle", resourceCulture); } } /// - /// Looks up a localized string similar to File Conflict. + /// Looks up a localized string similar to None. /// - internal static string FileConflictTitle { + internal static string Cmdlets_Log_NoActionsWhatIf { get { - return ResourceManager.GetString("FileConflictTitle", resourceCulture); + return ResourceManager.GetString("Cmdlets_Log_NoActionsWhatIf", resourceCulture); } } /// - /// Looks up a localized string similar to None. + /// Looks up a localized string similar to WhatIf: {0}. /// - internal static string Log_NoActionsWhatIf { + internal static string Cmdlets_Log_OperationWhatIf { get { - return ResourceManager.GetString("Log_NoActionsWhatIf", resourceCulture); + return ResourceManager.GetString("Cmdlets_Log_OperationWhatIf", resourceCulture); } } /// - /// Looks up a localized string similar to WhatIf: {0}. + /// Looks up a localized string similar to There are no other projects to sync the package '{0}'.. /// - internal static string Log_OperationWhatIf { + internal static string Cmdlets_NoProjectsToSyncPackage { get { - return ResourceManager.GetString("Log_OperationWhatIf", resourceCulture); + return ResourceManager.GetString("Cmdlets_NoProjectsToSyncPackage", resourceCulture); } } /// /// Looks up a localized string similar to '{0}' was not installed in any project. Update failed.. /// - internal static string PackageNotInstalledInAnyProject { + internal static string Cmdlets_PackageNotInstalledInAnyProject { get { - return ResourceManager.GetString("PackageNotInstalledInAnyProject", resourceCulture); + return ResourceManager.GetString("Cmdlets_PackageNotInstalledInAnyProject", resourceCulture); } } /// /// Looks up a localized string similar to Unable to find package '{0}'.. /// - internal static string UnknownPackage { + internal static string Cmdlets_UnknownPackage { get { - return ResourceManager.GetString("UnknownPackage", resourceCulture); + return ResourceManager.GetString("Cmdlets_UnknownPackage", resourceCulture); } } /// /// Looks up a localized string similar to Unable to find version '{1}' of package '{0}'.. /// - internal static string UnknownPackageSpecificVersion { + internal static string Cmdlets_UnknownPackageSpecificVersion { get { - return ResourceManager.GetString("UnknownPackageSpecificVersion", resourceCulture); + return ResourceManager.GetString("Cmdlets_UnknownPackageSpecificVersion", resourceCulture); } } } diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx index f8a54cf3bf1..eee6e6b9bf3 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx @@ -1,17 +1,17 @@  - @@ -123,9 +123,6 @@ The {0} Command has been deprecated and will be removed in the next release. Please modify your PowerShell scripts accordingly. - - Creating package at {0}... - Stop to display more packages @@ -138,9 +135,6 @@ Failed to parse the input of Version parameter: {0} to a valid Semantic version. - - The source at {0} is unreachable. Falling back to NuGet Local Cache at {1} - Skip this file and all subsequent files @@ -153,9 +147,6 @@ Overwrite this file - - Output file '{0}' exists and -NoClobber was specified. - No packages found in the current package source. @@ -165,18 +156,12 @@ The path '{0}' is invalid. - - The specified IProjectManager instance is not recognized. - Only paths residing on a FileSystemProvider are supported. The PSDrive '{0}' was not found. - - The source at {0} is unreachable. There is no NuGet Local Cache found - &No @@ -198,18 +183,9 @@ The current environment doesn't have a solution open. - - Nothing to do - - - Unable to locate a .nuspec file in the specified project. - Open - - Package file successfully created... - Package with the Id '{0}' and version '{1}' is not found in the specified source. @@ -225,69 +201,45 @@ Package source '{0}' is not matching any of the enabled package sources. - - The 'Package source' has been successfully set as '{0}'. - Project '{0}' is not found. - - The 'Default project' has been successfully set as '{0}'. - There may be more packages to display. Do you want to continue? - - More than one .nuspec files were found. - The package '{0}' does not provide the requested URL. - - Specifying both -Reinstall and -WhatIf is not supported for now. - &Yes Yes to &All - + None - + WhatIf: {0} - + File Conflict - + '{0}' was not installed in any project. Update failed. - + Unable to find package '{0}'. - + Unable to find version '{1}' of package '{0}'. - + Executing script file '{0}' - - Finished adding BindingRedirects to project '{0}' - - - Failed to add BindingRedirects to project '{0}' due to error: {1} - No package actions available to be executed. - - The project '{0}' does not support adding BindingRedirects. - - - Unable to get version update for Package '{0}' due to error {1} - There are no other projects to sync the package '{0}'. From b6c1c7eff3824842a230fd1e61ea6000bb025267 Mon Sep 17 00:00:00 2001 From: Dan Liu Date: Wed, 30 Sep 2015 13:39:06 -0700 Subject: [PATCH 2/2] Make names consistent --- .../Cmdlets/SyncPackageCommand.cs | 2 +- .../Cmdlets/UpdatePackageCommand.cs | 2 +- .../NuGetPowerShellBaseCommand.cs | 4 +- .../Resources.Designer.cs | 138 +++++++++--------- .../Resources.resx | 16 +- 5 files changed, 81 insertions(+), 81 deletions(-) diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/SyncPackageCommand.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/SyncPackageCommand.cs index 188e61d172f..156b1b56d0c 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/SyncPackageCommand.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/SyncPackageCommand.cs @@ -54,7 +54,7 @@ protected override void ProcessRecordCore() SubscribeToProgressEvents(); if (_projects.Count == 0) { - LogCore(ProjectManagement.MessageLevel.Info, string.Format(CultureInfo.CurrentCulture, Resources.Cmdlets_NoProjectsToSyncPackage, Id)); + LogCore(ProjectManagement.MessageLevel.Info, string.Format(CultureInfo.CurrentCulture, Resources.Cmdlet_NoProjectsToSyncPackage, Id)); } else if (identity == null) { diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs index 01de4a76cba..8cc66a5a897 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Cmdlets/UpdatePackageCommand.cs @@ -153,7 +153,7 @@ private async Task UpdateOrReinstallSinglePackage() if (!_isPackageInstalled) { - Log(ProjectManagement.MessageLevel.Error, Resources.Cmdlets_PackageNotInstalledInAnyProject, Id); + Log(ProjectManagement.MessageLevel.Error, Resources.Cmdlet_PackageNotInstalledInAnyProject, Id); } } catch (Exception ex) diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs index d4b2c02328d..58c46ae25c4 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs @@ -811,7 +811,7 @@ public FileConflictAction ResolveFileConflict(string message) new ChoiceDescription(Resources.Cmdlet_NoAll, Resources.Cmdlet_FileConflictNoAllHelp) }; - int choice = Host.UI.PromptForChoice(Resources.Cmdlets_FileConflictTitle, message, choices, defaultChoice: 2); + int choice = Host.UI.PromptForChoice(Resources.Cmdlet_FileConflictTitle, message, choices, defaultChoice: 2); Debug.Assert(choice >= 0 && choice < 4); switch (choice) @@ -921,7 +921,7 @@ public void ExecutePSScriptInternal(string path) if (path != null) { string command = "& " + ProjectManagement.PathUtility.EscapePSPath(path) + " $__rootPath $__toolsPath $__package $__project"; - LogCore(ProjectManagement.MessageLevel.Info, String.Format(CultureInfo.CurrentCulture, Resources.Cmdlets_ExecutingScript, path)); + LogCore(ProjectManagement.MessageLevel.Info, String.Format(CultureInfo.CurrentCulture, Resources.Cmdlet_ExecutingScript, path)); InvokeCommand.InvokeScript(command, false, PipelineResultTypes.Error, null, null); } diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs index afcd300f1e6..773907a640c 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.Designer.cs @@ -96,6 +96,15 @@ internal static string Cmdlet_DisplayMorePackagesYesHelp { } } + /// + /// Looks up a localized string similar to Executing script file '{0}'. + /// + internal static string Cmdlet_ExecutingScript { + get { + return ResourceManager.GetString("Cmdlet_ExecutingScript", resourceCulture); + } + } + /// /// Looks up a localized string similar to Failed to parse package identities from file {0} with exception: {1}. /// @@ -132,6 +141,15 @@ internal static string Cmdlet_FileConflictNoHelp { } } + /// + /// Looks up a localized string similar to File Conflict. + /// + internal static string Cmdlet_FileConflictTitle { + get { + return ResourceManager.GetString("Cmdlet_FileConflictTitle", resourceCulture); + } + } + /// /// Looks up a localized string similar to Overwrite this file and all subsequent files. /// @@ -195,6 +213,24 @@ internal static string Cmdlet_InvalidPSDrive { } } + /// + /// Looks up a localized string similar to None. + /// + internal static string Cmdlet_Log_NoActionsWhatIf { + get { + return ResourceManager.GetString("Cmdlet_Log_NoActionsWhatIf", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WhatIf: {0}. + /// + internal static string Cmdlet_Log_OperationWhatIf { + get { + return ResourceManager.GetString("Cmdlet_Log_OperationWhatIf", resourceCulture); + } + } + /// /// Looks up a localized string similar to Some NuGet packages are missing from the solution. The packages need to be restored in order to build the dependency graph. Restore the packages before performing any operations.. /// @@ -267,6 +303,15 @@ internal static string Cmdlet_NoPackageUpdates { } } + /// + /// Looks up a localized string similar to There are no other projects to sync the package '{0}'.. + /// + internal static string Cmdlet_NoProjectsToSyncPackage { + get { + return ResourceManager.GetString("Cmdlet_NoProjectsToSyncPackage", resourceCulture); + } + } + /// /// Looks up a localized string similar to The current environment doesn't have a solution open.. /// @@ -312,6 +357,15 @@ internal static string Cmdlet_PackageNotInstalled { } } + /// + /// Looks up a localized string similar to '{0}' was not installed in any project. Update failed.. + /// + internal static string Cmdlet_PackageNotInstalledInAnyProject { + get { + return ResourceManager.GetString("Cmdlet_PackageNotInstalledInAnyProject", resourceCulture); + } + } + /// /// Looks up a localized string similar to {0} {1}. /// @@ -358,101 +412,47 @@ internal static string Cmdlet_RequestRestartToCompleteUninstall { } /// - /// Looks up a localized string similar to The package '{0}' does not provide the requested URL.. - /// - internal static string Cmdlet_UrlMissing { - get { - return ResourceManager.GetString("Cmdlet_UrlMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to &Yes. - /// - internal static string Cmdlet_Yes { - get { - return ResourceManager.GetString("Cmdlet_Yes", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Yes to &All. - /// - internal static string Cmdlet_YesAll { - get { - return ResourceManager.GetString("Cmdlet_YesAll", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Executing script file '{0}'. - /// - internal static string Cmdlets_ExecutingScript { - get { - return ResourceManager.GetString("Cmdlets_ExecutingScript", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to File Conflict. - /// - internal static string Cmdlets_FileConflictTitle { - get { - return ResourceManager.GetString("Cmdlets_FileConflictTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to None. - /// - internal static string Cmdlets_Log_NoActionsWhatIf { - get { - return ResourceManager.GetString("Cmdlets_Log_NoActionsWhatIf", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to WhatIf: {0}. + /// Looks up a localized string similar to Unable to find package '{0}'.. /// - internal static string Cmdlets_Log_OperationWhatIf { + internal static string Cmdlet_UnknownPackage { get { - return ResourceManager.GetString("Cmdlets_Log_OperationWhatIf", resourceCulture); + return ResourceManager.GetString("Cmdlet_UnknownPackage", resourceCulture); } } /// - /// Looks up a localized string similar to There are no other projects to sync the package '{0}'.. + /// Looks up a localized string similar to Unable to find version '{1}' of package '{0}'.. /// - internal static string Cmdlets_NoProjectsToSyncPackage { + internal static string Cmdlet_UnknownPackageSpecificVersion { get { - return ResourceManager.GetString("Cmdlets_NoProjectsToSyncPackage", resourceCulture); + return ResourceManager.GetString("Cmdlet_UnknownPackageSpecificVersion", resourceCulture); } } /// - /// Looks up a localized string similar to '{0}' was not installed in any project. Update failed.. + /// Looks up a localized string similar to The package '{0}' does not provide the requested URL.. /// - internal static string Cmdlets_PackageNotInstalledInAnyProject { + internal static string Cmdlet_UrlMissing { get { - return ResourceManager.GetString("Cmdlets_PackageNotInstalledInAnyProject", resourceCulture); + return ResourceManager.GetString("Cmdlet_UrlMissing", resourceCulture); } } /// - /// Looks up a localized string similar to Unable to find package '{0}'.. + /// Looks up a localized string similar to &Yes. /// - internal static string Cmdlets_UnknownPackage { + internal static string Cmdlet_Yes { get { - return ResourceManager.GetString("Cmdlets_UnknownPackage", resourceCulture); + return ResourceManager.GetString("Cmdlet_Yes", resourceCulture); } } /// - /// Looks up a localized string similar to Unable to find version '{1}' of package '{0}'.. + /// Looks up a localized string similar to Yes to &All. /// - internal static string Cmdlets_UnknownPackageSpecificVersion { + internal static string Cmdlet_YesAll { get { - return ResourceManager.GetString("Cmdlets_UnknownPackageSpecificVersion", resourceCulture); + return ResourceManager.GetString("Cmdlet_YesAll", resourceCulture); } } } diff --git a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx index eee6e6b9bf3..4c30728a1df 100644 --- a/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx +++ b/src/NuGet.Clients/PackageManagement.PowerShellCmdlets/Resources.resx @@ -216,31 +216,31 @@ Yes to &All - + None - + WhatIf: {0} - + File Conflict - + '{0}' was not installed in any project. Update failed. - + Unable to find package '{0}'. - + Unable to find version '{1}' of package '{0}'. - + Executing script file '{0}' No package actions available to be executed. - + There are no other projects to sync the package '{0}'.