Localizing Microsoft.DotNet.Cli.Utils.

This commit is contained in:
Livar Cunha 2016-12-16 22:41:06 -08:00
parent fddabd4a51
commit 1be6365e56
19 changed files with 262 additions and 55 deletions

View file

@ -35,7 +35,9 @@ namespace Microsoft.DotNet.Cli.Utils
var bestVersion = versionRange.FindBestMatch(availableToolVersions);
if (bestVersion == null)
{
throw new GracefulException($"Version for package `{packageId}` could not be resolved.");
throw new GracefulException(string.Format(
LocalizableStrings.VersionForPackageCouldNotBeResolved,
packageId));
}
return GetLockFilePath(packageId, bestVersion, framework);