C# Class NuGet.PackageSorter

Inheritance: PackageWalker
Show file Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
GetPackagesByDependencyOrder ( IPackageRepository repository ) : IEnumerable

Get all packages from the specified repository in the dependency order, e.g. if A -> B, then B will come before A.

Protected Methods

Method Description
OnAfterPackageWalk ( IPackage package ) : void
OnDependencyResolveError ( PackageDependency dependency ) : void
ResolveDependency ( PackageDependency dependency ) : IPackage

Method Details

GetPackagesByDependencyOrder() public method

Get all packages from the specified repository in the dependency order, e.g. if A -> B, then B will come before A.
public GetPackagesByDependencyOrder ( IPackageRepository repository ) : IEnumerable
repository IPackageRepository
return IEnumerable

OnAfterPackageWalk() protected method

protected OnAfterPackageWalk ( IPackage package ) : void
package IPackage
return void

OnDependencyResolveError() protected method

protected OnDependencyResolveError ( PackageDependency dependency ) : void
dependency PackageDependency
return void

ResolveDependency() protected method

protected ResolveDependency ( PackageDependency dependency ) : IPackage
dependency PackageDependency
return IPackage