public static async Task<PackageManager> Create(Repository repo, IAbsoluteDirectoryPath workDir, bool createWhenNotExisting = false, string remote = null) { var pm = new PackageManager(repo, workDir, new StatusRepo(), createWhenNotExisting, remote) { LegacyMode = true }; await repo.RefreshRemotes().ConfigureAwait(false); return pm; }
public BundleManager(PackageManager packageManager) { Contract.Requires<ArgumentNullException>(packageManager != null); PackageManager = packageManager; }