Localization for tools work so far (#8251)
This commit is contained in:
parent
2cfc65a0c4
commit
e8f7ddd01b
60 changed files with 2848 additions and 83 deletions
|
@ -5,9 +5,11 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using Microsoft.DotNet.Cli;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
using Microsoft.DotNet.Tools;
|
||||
using Microsoft.DotNet.ToolPackage;
|
||||
using Microsoft.DotNet.PlatformAbstractions;
|
||||
using Microsoft.Extensions.EnvironmentAbstractions;
|
||||
using LocalizableStrings = Microsoft.DotNet.Tools.Install.LocalizableStrings;
|
||||
|
||||
namespace Microsoft.DotNet.Tools.Install.Tool
|
||||
{
|
||||
|
@ -49,13 +51,10 @@ namespace Microsoft.DotNet.Tools.Install.Tool
|
|||
var result = command.Execute();
|
||||
if (result.ExitCode != 0)
|
||||
{
|
||||
throw new PackageObtainException("Failed to restore package. " +
|
||||
$"{Environment.NewLine}WorkingDirectory: " +
|
||||
result.StartInfo.WorkingDirectory +
|
||||
$"{Environment.NewLine}Arguments: " +
|
||||
result.StartInfo.Arguments +
|
||||
$"{Environment.NewLine}Output: " +
|
||||
result.StdErr + result.StdOut);
|
||||
throw new PackageObtainException(
|
||||
string.Format(
|
||||
LocalizableStrings.FailedToRestorePackage,
|
||||
result.StartInfo.WorkingDirectory, result.StartInfo.Arguments, result.StdErr, result.StdOut));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue