ProjectGraph Class

Definition

Represents a graph of evaluated projects.

public ref class ProjectGraph sealed
public sealed class ProjectGraph
type ProjectGraph = class
Public NotInheritable Class ProjectGraph
Inheritance
ProjectGraph

Constructors

ProjectGraph(IEnumerable<ProjectGraphEntryPoint>)

Constructs a graph starting from the given graph entry points, evaluating with the global project collection.

ProjectGraph(IEnumerable<ProjectGraphEntryPoint>, ProjectCollection, ProjectGraph+ProjectInstanceFactoryFunc)

Constructs a graph starting from the given graph entry points, evaluating with the provided project collection.

ProjectGraph(IEnumerable<ProjectGraphEntryPoint>, ProjectCollection, ProjectGraph+ProjectInstanceFactoryFunc, CancellationToken)

Constructs a graph starting from the given graph entry points, evaluating with the provided project collection.

ProjectGraph(IEnumerable<ProjectGraphEntryPoint>, ProjectCollection, ProjectGraph+ProjectInstanceFactoryFunc, Int32, CancellationToken)

Constructs a graph starting from the given graph entry points, evaluating with the provided project collection.

ProjectGraph(IEnumerable<String>)

Constructs a graph starting from the given project files, evaluating with the global project collection and no global properties.

ProjectGraph(IEnumerable<String>, IDictionary<String,String>)

Constructs a graph starting from the given project files, evaluating with the provided global properties and the global project collection.

ProjectGraph(IEnumerable<String>, IDictionary<String,String>, ProjectCollection)

Constructs a graph starting from the given project files, evaluating with the provided global properties and the provided project collection.

ProjectGraph(IEnumerable<String>, ProjectCollection)

Constructs a graph starting from the given project files, evaluating with the provided project collection and no global properties.

ProjectGraph(ProjectGraphEntryPoint)

Constructs a graph starting from the given graph entry point, evaluating with the global project collection.

ProjectGraph(ProjectGraphEntryPoint, ProjectCollection)

Constructs a graph starting from the given graph entry point, evaluating with the provided project collection.

ProjectGraph(String)

Constructs a graph starting from the given project file, evaluating with the global project collection and no global properties.

ProjectGraph(String, IDictionary<String,String>)

Constructs a graph starting from the given project file, evaluating with the provided global properties and the global project collection.

ProjectGraph(String, IDictionary<String,String>, ProjectCollection)

Constructs a graph starting from the given project file, evaluating with the provided global properties and the provided project collection.

ProjectGraph(String, ProjectCollection)

Constructs a graph starting from the given project file, evaluating with the provided project collection and no global properties.

ProjectGraph(String, ProjectCollection, ProjectGraph+ProjectInstanceFactoryFunc)

Constructs a graph starting from the given project file, evaluating with the global project collection and no global properties.

Properties

ConstructionMetrics
EntryPointNodes

Gets the project nodes representing the entry points.

GraphRoots
ProjectNodes

Get an unordered collection of all project nodes in the graph.

ProjectNodesTopologicallySorted

Get a topologically sorted collection of all project nodes in the graph. Referenced projects appear before the referencing projects.

Methods

GetTargetLists(ICollection<String>)

Gets the target list to be executed for every project in the graph, given a particular target list for the entry project.

Applies to