/// <summary> /// Checks for package updates /// </summary> /// <returns> /// The list of operations (if any) that should be applied to the /// current package or its dependents to bring it up to date /// </returns> private IList<PackageOperation> ListOperations() { var sourceRepo = new PackageRepositoryFactory().CreateRepository(this.Source); var localRepo = new PackageRepositoryFactory().CreateRepository(this.RepositoryRoot); var targetFramework = VersionUtility.ParseFrameworkName(this.TargetFramework); // locate the current version of the package in the source repository var pkg = PackageHelper.ResolvePackage( sourceRepo, localRepo, this.PackageID, null, false ); // walk the package, and emit any update operations var walker = new UpdateWalker( localRepo, sourceRepo, new DependentsWalker(localRepo, targetFramework), NullConstraintProvider.Instance, targetFramework, new Logger(), true, false ); return walker.ResolveOperations(pkg).ToList(); }