C# Class Microsoft.VisualStudio.Project.SolutionListenerForBuildDependencyUpdate

The purpose of this class is to set a build dependency from a modeling project to all its sub projects
Inheritance: SolutionListener
Mostra file Open project: tunnelvisionlabs/MPFProj10

Public Methods

Method Description
OnAfterOpenProject ( IVsHierarchy hierarchy, int added ) : int

Update build dependency list if solution is fully loaded

OnAfterOpenSolution ( object pUnkReserved, int fNewSolution ) : int

Called at load time when solution has finished opening.

SolutionListenerForBuildDependencyUpdate ( System.IServiceProvider serviceProvider ) : System

Protected Methods

Method Description
AddBuildDependenyToNestedProject ( IBuildDependencyUpdate projectContainer, IVsHierarchy nestedProject ) : void

Add build dependency to ProjectContainerNode if IVsBuildDependency is supported by the nested project

GetListOfProjectContainerNodes ( ) : List

Enum all projects in the solution and collect all that derives from ProjectContainerNode

UpdateDependencyListWithSubProjects ( IBuildDependencyOnProjectContainer projectNode ) : void

Update dependency list

Method Details

AddBuildDependenyToNestedProject() protected static method

Add build dependency to ProjectContainerNode if IVsBuildDependency is supported by the nested project
protected static AddBuildDependenyToNestedProject ( IBuildDependencyUpdate projectContainer, IVsHierarchy nestedProject ) : void
projectContainer IBuildDependencyUpdate Project Container where we should add the build dependency
nestedProject IVsHierarchy Nested project to set a build dependency against
return void

GetListOfProjectContainerNodes() protected method

Enum all projects in the solution and collect all that derives from ProjectContainerNode
protected GetListOfProjectContainerNodes ( ) : List
return List

OnAfterOpenProject() public method

Update build dependency list if solution is fully loaded
public OnAfterOpenProject ( IVsHierarchy hierarchy, int added ) : int
hierarchy IVsHierarchy
added int
return int

OnAfterOpenSolution() public method

Called at load time when solution has finished opening.
public OnAfterOpenSolution ( object pUnkReserved, int fNewSolution ) : int
pUnkReserved object reserved
fNewSolution int true if this is a new solution
return int

SolutionListenerForBuildDependencyUpdate() public method

public SolutionListenerForBuildDependencyUpdate ( System.IServiceProvider serviceProvider ) : System
serviceProvider System.IServiceProvider
return System

UpdateDependencyListWithSubProjects() protected method

Update dependency list
protected UpdateDependencyListWithSubProjects ( IBuildDependencyOnProjectContainer projectNode ) : void
projectNode IBuildDependencyOnProjectContainer Project node to be updated. If null then all ProjectContainer nodes are updated
return void