private static void RestoreToolToPath(LibraryRange tooldep, IEnumerable <string> args, string tempPath) { Directory.CreateDirectory(tempPath); var projectPath = Path.Combine(tempPath, Project.FileName); File.WriteAllText(projectPath, GenerateProjectJsonContents(new[] { "dnxcore50" })); Dnx.RunPackageInstall(tooldep, projectPath, args); Dnx.RunRestore(new [] { $"\"{projectPath}\"", "--runtime", $"{RuntimeIdentifier.Current}" }.Concat(args)); }
private static void RestoreToolToPath(LibraryRange tooldep, IEnumerable <string> args, string tempPath) { Directory.CreateDirectory(tempPath); var projectPath = Path.Combine(tempPath, Project.FileName); Console.WriteLine($"Restoring Tool '{tooldep.Name}' for '{projectPath}' in '{tempPath}'"); File.WriteAllText(projectPath, GenerateProjectJsonContents(new[] { "dnxcore50" })); Dnx.RunPackageInstall(tooldep, projectPath, args); Dnx.RunRestore(new [] { $"\"{projectPath}\"", "--runtime", $"{DefaultRid}" }.Concat(args)); }