public ExecResult Restore( Solution solution, string packagesDir = null, IEnumerable<string> feeds = null, string additionalArguments = null) { return Restore(solution.RootPath, packagesDir, feeds, additionalArguments); }
private static KeyValuePair<string, Lazy<Solution>> CreateLazySolution(string sourceDirectory) { var solutionName = Path.GetFileName(sourceDirectory); var lasySolution = new Lazy<Solution>(() => { var target = Path.Combine(_root, solutionName); TestUtils.CopyFolder(sourceDirectory, target); var solution = new Solution(target); var sdk = (DnxSdk)DnxSdkFunctionalTestBase.ClrDnxSdks.First()[0]; sdk.Dnu.Restore(solution); return solution; }, isThreadSafe: true); return new KeyValuePair<string, Lazy<Solution>>(solutionName, lasySolution); }