Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit fd66168

Browse files
author
William Li
committed
Error message has instruction to help investigate from NuGet error message
1 parent b0610b9 commit fd66168

16 files changed

+151
-70
lines changed

src/dotnet/commands/dotnet-tool/install/LocalizableStrings.resx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,13 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
163163
<data name="ToolInstallationFailed" xml:space="preserve">
164164
<value>Tool '{0}' failed to install.</value>
165165
</data>
166-
<data name="ToolInstallationFailedWithExplicitVersionGuide" xml:space="preserve">
167-
<value>Tool '{0}' failed to install. You may need to specify the version using
166+
<data name="ToolInstallationFailedWithRestoreGuidance" xml:space="preserve">
167+
<value>Tool '{0}' failed to install. This failure may have been caused by:
168168

169-
dotnet tool install -g {0} --version &lt;version&gt;</value>
169+
* You are attempting to install a preview release and did not use the --version option to specify the version.
170+
* A package by this name was found, but it was not a .NET Core tool.
171+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
172+
* You mistyped the name of the tool.</value>
170173
</data>
171174
<data name="ToolInstallationFailedContactAuthor" xml:space="preserve">
172175
<value>Tool '{0}' failed to install. Please contact the tool author for assistance.</value>

src/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static IEnumerable<string> GetUserFacingMessages(Exception ex, PackageId
1818
userFacingMessages = new[]
1919
{
2020
ex.Message,
21-
string.Format(LocalizableStrings.ToolInstallationFailedWithExplicitVersionGuide, packageId),
21+
string.Format(LocalizableStrings.ToolInstallationFailedWithRestoreGuidance, packageId),
2222
};
2323
}
2424
else if (ex is ToolConfigurationException)

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.cs.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.de.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ Das Tool "{1}" (Version {2}) wurde erfolgreich installiert.</target>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.es.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ La herramienta "{1}" (versión '{2}') se instaló correctamente.</target>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.fr.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ L'outil '{1}' (version '{2}') a été installé correctement.</target>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.it.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ja.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.ko.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pl.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
119119
<target state="new">Tool '{0}' failed to install.</target>
120120
<note />
121121
</trans-unit>
122-
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
123-
<source>Tool '{0}' failed to install. You may need to specify the version using
122+
<trans-unit id="ToolInstallationFailedWithRestoreGuidance">
123+
<source>Tool '{0}' failed to install. This failure may have been caused by:
124124

125-
dotnet tool install -g {0} --version &lt;version&gt;</source>
126-
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
125+
* You are attempting to install a preview release and did not use the --version option to specify the version.
126+
* A package by this name was found, but it was not a .NET Core tool.
127+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
128+
* You mistyped the name of the tool.</source>
129+
<target state="new">Tool '{0}' failed to install. This failure may have been caused by:
127130

128-
dotnet tool install -g {0} --version &lt;version&gt;</target>
131+
* You are attempting to install a preview release and did not use the --version option to specify the version.
132+
* A package by this name was found, but it was not a .NET Core tool.
133+
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
134+
* You mistyped the name of the tool.</target>
129135
<note />
130136
</trans-unit>
131137
</body>

0 commit comments

Comments
 (0)