Show version guide only when restore fails
This commit is contained in:
parent
1043231a4e
commit
f949fb884e
16 changed files with 136 additions and 42 deletions
|
@ -161,6 +161,9 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
|
|||
<value>The settings file in the tool's NuGet package is invalid: {0}</value>
|
||||
</data>
|
||||
<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
|
||||
|
||||
dotnet tool install -g {0} --version <version></value>
|
||||
|
@ -189,4 +192,4 @@ Tool '{1}' (version '{2}') was successfully installed.</value>
|
|||
<data name="ToolPathDescription" xml:space="preserve">
|
||||
<value>Location where the tool will be installed.</value>
|
||||
</data>
|
||||
</root>
|
||||
</root>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Microsoft.DotNet.Tools.Tool.Install
|
|||
userFacingMessages = new[]
|
||||
{
|
||||
ex.Message,
|
||||
string.Format(LocalizableStrings.ToolInstallationFailed, packageId),
|
||||
string.Format(LocalizableStrings.ToolInstallationFailedWithExplicitVersionGuide, packageId),
|
||||
};
|
||||
}
|
||||
else if (ex is ToolConfigurationException)
|
||||
|
|
|
@ -60,9 +60,7 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Nástroj {0} se nepodařilo nainstalovat.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Nástroj {1} (verze {2}) byl úspěšně nainstalován.</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Das Tool "{1}" (Version "{2}") wurde erfolgreich installiert.</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Fehler bei der Installation des Tools "{0}".</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Das Tool "{1}" (Version "{2}") wurde erfolgreich installiert.</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ La herramienta "{1}" (versión "{2}") se instaló correctamente.</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">No se pudo instalar la herramienta “{0}”.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ La herramienta "{1}" (versión "{2}") se instaló correctamente.</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ L'outil '{1}' (version '{2}') a été installé.</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Impossible d'installer l'outil '{0}'.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ L'outil '{1}' (version '{2}') a été installé.</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Non è stato possibile installare lo strumento '{0}'.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Lo strumento '{1}' (versione '{2}') è stato installato.</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">ツール '{0}' をインストールできませんでした。</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">'{0}' 도구를 설치하지 못했습니다.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Zainstalowanie narzędzia „{0}” nie powiodło się.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Pomyślnie zainstalowano narzędzie „{1}” (wersja: „{2}”).</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Não foi possível instalar a ferramenta '{0}'.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ A ferramenta '{1}' (versão '{2}') foi instalada com êxito.</target>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">Не удалось установить инструмент "{0}".</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">'{0}' aracı yüklenemedi.</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">工具“{0}”安装失败。</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -60,9 +60,7 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailed">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<source>Tool '{0}' failed to install.</source>
|
||||
<target state="needs-review-translation">工具 '{0}' 無法安裝。</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
|
@ -121,6 +119,15 @@ Tool '{1}' (version '{2}') was successfully installed.</source>
|
|||
<target state="new">SOURCE_FEED</target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
<trans-unit id="ToolInstallationFailedWithExplicitVersionGuide">
|
||||
<source>Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></source>
|
||||
<target state="new">Tool '{0}' failed to install. You may need to specify the version using
|
||||
|
||||
dotnet tool install -g {0} --version <version></target>
|
||||
<note />
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
|
@ -360,7 +360,7 @@ namespace Microsoft.DotNet.Tests.Commands
|
|||
a.ShouldThrow<GracefulException>().And.Message
|
||||
.Should().Contain(
|
||||
LocalizableStrings.ToolInstallationRestoreFailed +
|
||||
Environment.NewLine + string.Format(LocalizableStrings.ToolInstallationFailed, PackageId));
|
||||
Environment.NewLine + string.Format(LocalizableStrings.ToolInstallationFailedWithExplicitVersionGuide, PackageId));
|
||||
|
||||
_fileSystem.Directory.Exists(Path.Combine(PathToPlacePackages, PackageId)).Should().BeFalse();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue