Error message has instruction to help investigate from NuGet error message
This commit is contained in:
parent
b0610b9116
commit
fd66168922
16 changed files with 151 additions and 70 deletions
|
@ -163,10 +163,13 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
|
|||
<data name="ToolInstallationFailed" xml:space="preserve">
|
||||
<value>Tool '{0}' failed to install.</value>
|
||||
</data>
|
||||
<data name="ToolInstallationFailedWithExplicitVersionGuide" xml:space="preserve">
|
||||
<value>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<data name="ToolInstallationFailedWithRestoreGuidance" xml:space="preserve">
|
||||
<value>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></value>
|
||||
* 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.</value>
|
||||
</data>
|
||||
<data name="ToolInstallationFailedContactAuthor" xml:space="preserve">
|
||||
<value>Tool '{0}' failed to install. Please contact the tool author for assistance.</value>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -119,13 +119,19 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert.</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente.</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ L'outil '{1}' (version '{2}') a été installé correctement.</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">Tool '{0}' failed to install.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
|
||||
<source>Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">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.</source>
|
||||
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
* 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.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
|
|
@ -364,7 +364,7 @@ namespace Microsoft.DotNet.Tests.Commands
|
|||
a.ShouldThrow<GracefulException>().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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue