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(); }