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

Commit 01c1187

Browse files
author
William Lee
authored
Better error message to guide user when there is only preview version in the feed (#8905)
1 parent 76d4824 commit 01c1187

14 files changed

+56
-28
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
161161
<value>The settings file in the tool's NuGet package is invalid: {0}</value>
162162
</data>
163163
<data name="ToolInstallationFailed" xml:space="preserve">
164-
<value>Tool '{0}' failed to install.</value>
164+
<value>Tool '{0}' failed to install. You may need to specify the version using
165+
166+
dotnet tool install -g t-rex --version &lt;version&gt;</value>
165167
</data>
166168
<data name="ToolInstallationFailedContactAuthor" xml:space="preserve">
167169
<value>Tool '{0}' failed to install. Please contact the tool author for assistance.</value>
@@ -187,4 +189,4 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
187189
<data name="ToolPathDescription" xml:space="preserve">
188190
<value>Location where the tool will be installed.</value>
189191
</data>
190-
</root>
192+
</root>

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">Nástroj {0} se nepodařilo nainstalovat.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">Nástroj {0} se nepodařilo nainstalovat.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Das Tool "{1}" (Version "{2}") wurde erfolgreich installiert.</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">Fehler bei der Installation des Tools "{0}".</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">Fehler bei der Installation des Tools "{0}".</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ La herramienta "{1}" (versión "{2}") se instaló correctamente.</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">No se pudo instalar la herramienta “{0}”.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">No se pudo instalar la herramienta “{0}”.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ L'outil '{1}' (version '{2}') a été installé.</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">Impossible d'installer l'outil '{0}'.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">Impossible d'installer l'outil '{0}'.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">Non è stato possibile installare lo strumento '{0}'.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">Non è stato possibile installare lo strumento '{0}'.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">ツール '{0}' をインストールできませんでした。</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">ツール '{0}' をインストールできませんでした。</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">'{0}' 도구를 설치하지 못했습니다.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">'{0}' 도구를 설치하지 못했습니다.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">Zainstalowanie narzędzia „{0}” nie powiodło się.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">Zainstalowanie narzędzia „{0}” nie powiodło się.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

src/dotnet/commands/dotnet-tool/install/xlf/LocalizableStrings.pt-BR.xlf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
6060
<note />
6161
</trans-unit>
6262
<trans-unit id="ToolInstallationFailed">
63-
<source>Tool '{0}' failed to install.</source>
64-
<target state="translated">Não foi possível instalar a ferramenta '{0}'.</target>
63+
<source>Tool '{0}' failed to install. You may need to specify the version using
64+
65+
dotnet tool install -g t-rex --version &lt;version&gt;</source>
66+
<target state="needs-review-translation">Não foi possível instalar a ferramenta '{0}'.</target>
6567
<note />
6668
</trans-unit>
6769
<trans-unit id="ToolInstallationFailedContactAuthor">

0 commit comments

Comments
 (0)