示例#1
0
文件: Dnu.cs 项目: leloulight/dnx
 public ExecResult Restore(
     Solution solution,
     string packagesDir = null,
     IEnumerable<string> feeds = null,
     string additionalArguments = null)
 {
     return Restore(solution.RootPath, packagesDir, feeds, additionalArguments);
 }
示例#2
0
        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);
        }