private static void SetupPackages() { var checker = new PackageChecker( Config.NuGetDbConnection, Args.CustomVersions, Args.Dependencies, Args.Bundles); using (Execute.Step("INIT")) { Console.Write("Loading local packages... "); checker.Load(); Console.WriteLine("{0} found.", checker.PackageCount); } var log = new LogPackages(); var packages = new PackagesHelper(checker, log); var references = new ReferencesHelper(checker, log); var nuget = new NuGetHelper(checker, log); using (Execute.Step("ADJUST")) { packages.Adjust(); references.Adjust(); } if (Args.BranchName != null) { using (Execute.Step("RESTORE (BRANCH)")) { (new NuGetSubstitute(Config.NuGetDbConnection)).RestoreBranchedPackages(); } } using (Execute.Step("RESTORE")) { nuget.RestoreAll(); } using (Execute.Step("UPDATE")) { nuget.UpdateAll(); } using (Execute.Step("REPORT & SAVE")) { log.Report(); Console.Write("Saving local references... "); log.SaveReferences(Args.ReferencesPath); Console.WriteLine("OK"); Console.Write("Saving packages summary... "); log.SaveSummary(Args.TempPath); Console.WriteLine("OK"); } }
public PackagesHelper(PackageChecker checker, LogPackages log) { if (checker == null) throw new ArgumentNullException(nameof(checker)); if (log == null) throw new ArgumentNullException(nameof(log)); m_checker = checker; m_log = log; }
private static void SetupPackages() { var checker = new PackageChecker( Config.NuGetDbConnection, Args.CustomVersions, Args.Dependencies, Args.Bundles); using (Execute.Step("INIT")) { Console.Write("Loading local packages... "); checker.Load(); Console.WriteLine("{0} found.", checker.PackageCount); } var log = new LogPackages(); var packages = new PackagesHelper(checker, log); var references = new ReferencesHelper(checker, log); var nuget = new NuGetHelper(checker, log); using (Execute.Step("ADJUST")) { packages.Adjust(); references.Adjust(); } using (Execute.Step("RESTORE")) { nuget.RestoreAll(); } using (Execute.Step("UPDATE")) { nuget.UpdateAll(); } using (Execute.Step("REPORT & SAVE")) { log.Report(); Console.Write("Saving local references... "); log.SaveReferences(Args.ReferencesPath); Console.WriteLine("OK"); Console.Write("Saving packages summary... "); log.SaveSummary(Args.TempPath); Console.WriteLine("OK"); } }
public ReferencesHelper(PackageChecker checker, LogPackages log) { if (checker == null) { throw new ArgumentNullException(nameof(checker)); } if (log == null) { throw new ArgumentNullException(nameof(log)); } m_checker = checker; m_log = log; }