İngilizce dilinde oku

Aracılığıyla paylaş


ProjectDependencyGraph Class

Definition

A ProjectDependencyGraph models the dependencies between projects in a solution.

C#
public class ProjectDependencyGraph
Inheritance
ProjectDependencyGraph

Methods

GetDependencySets(CancellationToken)

Returns a sequence of sets, where each set contains items with shared interdependency, and there is no dependency between sets. Each set returned will sorted in topological order.

GetProjectsThatDirectlyDependOnThisProject(ProjectId)

Gets the list of projects that directly depend on this project.

GetProjectsThatThisProjectDirectlyDependsOn(ProjectId)

Gets the list of projects that this project directly depends on.

GetProjectsThatThisProjectTransitivelyDependsOn(ProjectId)

Gets the list of projects that directly or transitively this project depends on

GetProjectsThatTransitivelyDependOnThisProject(ProjectId)

Gets the list of projects that directly or transitively depend on this project.

GetTopologicallySortedProjects(CancellationToken)

Returns all the projects for the solution in a topologically sorted order with respect to their dependencies. Projects that depend on other projects will always show up later in this sequence than the projects they depend on.

Applies to

Ürün Sürümler
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0