From 6851961c1659bc2f05ce5bb32606f38384148f9b Mon Sep 17 00:00:00 2001 From: William Li Date: Mon, 16 Apr 2018 10:51:43 -0700 Subject: [PATCH 1/3] Better help text on `dotnet tool` --- src/dotnet/commands/dotnet-help/LocalizableStrings.resx | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.cs.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.de.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.es.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.fr.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.it.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ja.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ko.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pl.xlf | 4 ++-- .../commands/dotnet-help/xlf/LocalizableStrings.pt-BR.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ru.xlf | 4 ++-- src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.tr.xlf | 4 ++-- .../commands/dotnet-help/xlf/LocalizableStrings.zh-Hans.xlf | 4 ++-- .../commands/dotnet-help/xlf/LocalizableStrings.zh-Hant.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/LocalizableStrings.resx | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.cs.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.de.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.es.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.fr.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.it.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ja.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ko.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pl.xlf | 4 ++-- .../commands/dotnet-tool/xlf/LocalizableStrings.pt-BR.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ru.xlf | 4 ++-- src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.tr.xlf | 4 ++-- .../commands/dotnet-tool/xlf/LocalizableStrings.zh-Hans.xlf | 4 ++-- .../commands/dotnet-tool/xlf/LocalizableStrings.zh-Hant.xlf | 4 ++-- .../GivenThatIWantToShowHelpForDotnetCommand.cs | 2 +- 29 files changed, 57 insertions(+), 57 deletions(-) diff --git a/src/dotnet/commands/dotnet-help/LocalizableStrings.resx b/src/dotnet/commands/dotnet-help/LocalizableStrings.resx index 87a781848..07118075e 100644 --- a/src/dotnet/commands/dotnet-help/LocalizableStrings.resx +++ b/src/dotnet/commands/dotnet-help/LocalizableStrings.resx @@ -268,9 +268,9 @@ Path to additional deps.json file. - Modify tools. + Install or work with tools that extend the .NET experience. Interact with servers started by a build. - \ No newline at end of file + diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.cs.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.cs.xlf index b1e85a286..2c79948b5 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.cs.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.cs.xlf @@ -253,8 +253,8 @@ - Modify tools. - Upravte nástroje. + Install or work with tools that extend the .NET experience. + Upravte nástroje. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.de.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.de.xlf index f0d6c44b0..1aa8c6c90 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.de.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.de.xlf @@ -254,8 +254,8 @@ - Modify tools. - Hiermit werden Tools geändert. + Install or work with tools that extend the .NET experience. + Hiermit werden Tools geändert. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.es.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.es.xlf index 1366d754c..f77be21f4 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.es.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.es.xlf @@ -253,8 +253,8 @@ - Modify tools. - Modifica herramientas. + Install or work with tools that extend the .NET experience. + Modifica herramientas. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.fr.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.fr.xlf index ad90d32fa..8cf661d80 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.fr.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.fr.xlf @@ -253,8 +253,8 @@ - Modify tools. - Modifier les outils. + Install or work with tools that extend the .NET experience. + Modifier les outils. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.it.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.it.xlf index bab036495..85afcf32e 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.it.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.it.xlf @@ -253,8 +253,8 @@ - Modify tools. - Modifica gli strumenti. + Install or work with tools that extend the .NET experience. + Modifica gli strumenti. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ja.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ja.xlf index c796e75eb..8821d75e4 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ja.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ja.xlf @@ -253,8 +253,8 @@ - Modify tools. - ツールを変更します。 + Install or work with tools that extend the .NET experience. + ツールを変更します。 diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ko.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ko.xlf index 557594584..aa0fefac0 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ko.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ko.xlf @@ -253,8 +253,8 @@ - Modify tools. - 도구를 수정합니다. + Install or work with tools that extend the .NET experience. + 도구를 수정합니다. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pl.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pl.xlf index e186025f6..879a0e96e 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pl.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pl.xlf @@ -253,8 +253,8 @@ - Modify tools. - Zmodyfikuj narzędzia. + Install or work with tools that extend the .NET experience. + Zmodyfikuj narzędzia. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pt-BR.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pt-BR.xlf index 6831f4f47..03eaf235e 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.pt-BR.xlf @@ -253,8 +253,8 @@ - Modify tools. - Modificar ferramentas. + Install or work with tools that extend the .NET experience. + Modificar ferramentas. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ru.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ru.xlf index 0ff8eba10..29891423b 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ru.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.ru.xlf @@ -253,8 +253,8 @@ - Modify tools. - Средства для изменения. + Install or work with tools that extend the .NET experience. + Средства для изменения. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.tr.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.tr.xlf index 376a82510..2968a17f9 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.tr.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.tr.xlf @@ -253,8 +253,8 @@ - Modify tools. - Araçları değiştirir. + Install or work with tools that extend the .NET experience. + Araçları değiştirir. diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hans.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hans.xlf index 862df02fd..c60a7ee7d 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hans.xlf @@ -253,8 +253,8 @@ - Modify tools. - 修改工具。 + Install or work with tools that extend the .NET experience. + 修改工具。 diff --git a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hant.xlf b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hant.xlf index 2a2ddad7f..bba3fe694 100644 --- a/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/dotnet/commands/dotnet-help/xlf/LocalizableStrings.zh-Hant.xlf @@ -253,8 +253,8 @@ - Modify tools. - 修改工具。 + Install or work with tools that extend the .NET experience. + 修改工具。 diff --git a/src/dotnet/commands/dotnet-tool/LocalizableStrings.resx b/src/dotnet/commands/dotnet-tool/LocalizableStrings.resx index 13ec6c39b..0a277bcb3 100644 --- a/src/dotnet/commands/dotnet-tool/LocalizableStrings.resx +++ b/src/dotnet/commands/dotnet-tool/LocalizableStrings.resx @@ -121,6 +121,6 @@ .NET Install Command - Modify tools. + Install or work with tools that extend the .NET experience. - \ No newline at end of file + diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.cs.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.cs.xlf index 59ee69c22..396e272aa 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.cs.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.cs.xlf @@ -8,8 +8,8 @@ - Modify tools. - Upravte nástroje. + Install or work with tools that extend the .NET experience. + Upravte nástroje. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.de.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.de.xlf index 43e25eae9..e7f8c2616 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.de.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.de.xlf @@ -8,8 +8,8 @@ - Modify tools. - Hiermit werden Tools geändert. + Install or work with tools that extend the .NET experience. + Hiermit werden Tools geändert. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.es.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.es.xlf index 71c2ab90c..a7a068329 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.es.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.es.xlf @@ -8,8 +8,8 @@ - Modify tools. - Modifica herramientas. + Install or work with tools that extend the .NET experience. + Modifica herramientas. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.fr.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.fr.xlf index 78f82c8f7..309ab9588 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.fr.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.fr.xlf @@ -8,8 +8,8 @@ - Modify tools. - Modifier les outils. + Install or work with tools that extend the .NET experience. + Modifier les outils. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.it.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.it.xlf index 926ab532e..1e2d30ee4 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.it.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.it.xlf @@ -8,8 +8,8 @@ - Modify tools. - Modifica gli strumenti. + Install or work with tools that extend the .NET experience. + Modifica gli strumenti. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ja.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ja.xlf index 85011ab88..0def28031 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ja.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ja.xlf @@ -8,8 +8,8 @@ - Modify tools. - ツールを変更します。 + Install or work with tools that extend the .NET experience. + ツールを変更します。 diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ko.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ko.xlf index f2e259e68..bde48abef 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ko.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ko.xlf @@ -8,8 +8,8 @@ - Modify tools. - 도구를 수정합니다. + Install or work with tools that extend the .NET experience. + 도구를 수정합니다. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pl.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pl.xlf index 449275ecc..a5476ed4c 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pl.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pl.xlf @@ -8,8 +8,8 @@ - Modify tools. - Zmodyfikuj narzędzia. + Install or work with tools that extend the .NET experience. + Zmodyfikuj narzędzia. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pt-BR.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pt-BR.xlf index 69d792746..2351d96dc 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.pt-BR.xlf @@ -8,8 +8,8 @@ - Modify tools. - Modificar ferramentas. + Install or work with tools that extend the .NET experience. + Modificar ferramentas. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ru.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ru.xlf index 6be9c1aad..5553fc8e7 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ru.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.ru.xlf @@ -8,8 +8,8 @@ - Modify tools. - Средства для изменения. + Install or work with tools that extend the .NET experience. + Средства для изменения. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.tr.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.tr.xlf index 931ec3f17..8e3a47ac9 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.tr.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.tr.xlf @@ -8,8 +8,8 @@ - Modify tools. - Araçları değiştirir. + Install or work with tools that extend the .NET experience. + Araçları değiştirir. diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hans.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hans.xlf index 63ac5528b..a9b15f580 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hans.xlf @@ -8,8 +8,8 @@ - Modify tools. - 修改工具。 + Install or work with tools that extend the .NET experience. + 修改工具。 diff --git a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hant.xlf b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hant.xlf index f64bad870..016929c9d 100644 --- a/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/dotnet/commands/dotnet-tool/xlf/LocalizableStrings.zh-Hant.xlf @@ -8,8 +8,8 @@ - Modify tools. - 修改工具。 + Install or work with tools that extend the .NET experience. + 修改工具。 diff --git a/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs b/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs index 36459d50d..38089f254 100644 --- a/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs +++ b/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs @@ -39,7 +39,7 @@ SDK commands: msbuild Runs Microsoft Build Engine (MSBuild). vstest Runs Microsoft Test Execution Command Line Tool. store Stores the specified assemblies in the runtime store. - tool Modify tools. + tool Install or work with tools that extend the .NET experience. buildserver Interact with servers started by a build. help Show help. From b0610b9116d02a8ab486241bb6598626c849cf5c Mon Sep 17 00:00:00 2001 From: William Li Date: Mon, 16 Apr 2018 12:48:44 -0700 Subject: [PATCH 2/3] Add doc link for both dotnet-tool and dotnet-buildserver --- src/dotnet/BuiltInCommandsCatalog.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dotnet/BuiltInCommandsCatalog.cs b/src/dotnet/BuiltInCommandsCatalog.cs index e649f6cc7..8a6f81824 100644 --- a/src/dotnet/BuiltInCommandsCatalog.cs +++ b/src/dotnet/BuiltInCommandsCatalog.cs @@ -148,11 +148,13 @@ namespace Microsoft.DotNet.Cli }, ["tool"] = new BuiltInCommandMetadata { - Command = ToolCommand.Run + Command = ToolCommand.Run, + DocLink = "https://aka.ms/dotnet-tool" }, ["buildserver"] = new BuiltInCommandMetadata { - Command = BuildServerCommand.Run + Command = BuildServerCommand.Run, + DocLink = "https://aka.ms/dotnet-build-server" }, ["internal-reportinstallsuccess"] = new BuiltInCommandMetadata { From fd66168922da263ae2c417e80c48796c34ab00a0 Mon Sep 17 00:00:00 2001 From: William Li Date: Mon, 16 Apr 2018 14:28:09 -0700 Subject: [PATCH 3/3] Error message has instruction to help investigate from NuGet error message --- .../dotnet-tool/install/LocalizableStrings.resx | 9 ++++++--- .../ToolInstallCommandLowLevelErrorConverter.cs | 2 +- .../install/xlf/LocalizableStrings.cs.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.de.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.es.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.fr.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.it.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.ja.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.ko.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.pl.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.pt-BR.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.ru.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.tr.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.zh-Hans.xlf | 16 +++++++++++----- .../install/xlf/LocalizableStrings.zh-Hant.xlf | 16 +++++++++++----- .../CommandTests/ToolInstallCommandTests.cs | 2 +- 16 files changed, 151 insertions(+), 70 deletions(-) diff --git a/src/dotnet/commands/dotnet-tool/install/LocalizableStrings.resx b/src/dotnet/commands/dotnet-tool/install/LocalizableStrings.resx index 9705509b6..2f818bfe8 100644 --- a/src/dotnet/commands/dotnet-tool/install/LocalizableStrings.resx +++ b/src/dotnet/commands/dotnet-tool/install/LocalizableStrings.resx @@ -163,10 +163,13 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. Tool '{0}' failed to install. Please contact the tool author for assistance. diff --git a/src/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs b/src/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs index b73409a32..8323696dc 100644 --- a/src/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs +++ b/src/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs @@ -18,7 +18,7 @@ namespace Microsoft.DotNet.Tools.Tool.Install userFacingMessages = new[] { ex.Message, - string.Format(LocalizableStrings.ToolInstallationFailedWithExplicitVersionGuide, packageId), + string.Format(LocalizableStrings.ToolInstallationFailedWithRestoreGuidance, packageId), }; } else if (ex is ToolConfigurationException) diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.cs.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.cs.xlf index 87ff9977c..e89bdafbd 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.cs.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.cs.xlf @@ -119,13 +119,19 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.de.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.de.xlf index e16e431f9..9e8b1bb93 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.de.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.de.xlf @@ -119,13 +119,19 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.es.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.es.xlf index c6605fe72..537e3e3db 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.es.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.es.xlf @@ -119,13 +119,19 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.fr.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.fr.xlf index 9e1e0600e..b6346f71c 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.fr.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.fr.xlf @@ -119,13 +119,19 @@ L'outil '{1}' (version '{2}') a été installé correctement. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.it.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.it.xlf index 534f8121f..138b4116f 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.it.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.it.xlf @@ -119,13 +119,19 @@ Lo strumento '{1}' (versione '{2}') è stato installato. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ja.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ja.xlf index 762707822..bdfdce7a7 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ja.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ja.xlf @@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ko.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ko.xlf index 0d886b8aa..0a4912feb 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ko.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ko.xlf @@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pl.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pl.xlf index e3f29a81e..2749cc7b6 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pl.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pl.xlf @@ -119,13 +119,19 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”). Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pt-BR.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pt-BR.xlf index 21da5c644..01b134248 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pt-BR.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pt-BR.xlf @@ -119,13 +119,19 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ru.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ru.xlf index 147a2264c..8bff7722b 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ru.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ru.xlf @@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.tr.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.tr.xlf index 67e8ec50c..5ca51e1a4 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.tr.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.tr.xlf @@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hans.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hans.xlf index bee401a25..8f097454d 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hans.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hans.xlf @@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hant.xlf b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hant.xlf index a7873a9fc..65c5b605d 100644 --- a/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hant.xlf +++ b/src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.zh-Hant.xlf @@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed. Tool '{0}' failed to install. - - Tool '{0}' failed to install. You may need to specify the version using + + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> - Tool '{0}' failed to install. You may need to specify the version using +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. + Tool '{0}' failed to install. This failure may have been caused by: - dotnet tool install -g {0} --version <version> +* You are attempting to install a preview release and did not use the --version option to specify the version. +* A package by this name was found, but it was not a .NET Core tool. +* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. +* You mistyped the name of the tool. diff --git a/test/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs b/test/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs index 6ba8a385f..9d52af4d8 100644 --- a/test/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs +++ b/test/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs @@ -364,7 +364,7 @@ namespace Microsoft.DotNet.Tests.Commands a.ShouldThrow().And.Message .Should().Contain( LocalizableStrings.ToolInstallationRestoreFailed + - Environment.NewLine + string.Format(LocalizableStrings.ToolInstallationFailedWithExplicitVersionGuide, PackageId)); + Environment.NewLine + string.Format(LocalizableStrings.ToolInstallationFailedWithRestoreGuidance, PackageId)); _fileSystem.Directory.Exists(Path.Combine(PathToPlacePackages, PackageId)).Should().BeFalse(); }