Udostępnij za pośrednictwem


SolutionBuild.BuildDependencies Property

Definition

Gets a BuildDependencies collection that allows you to specify which projects depend on which other projects.

public:
 property EnvDTE::BuildDependencies ^ BuildDependencies { EnvDTE::BuildDependencies ^ get(); };
[System.Runtime.InteropServices.DispId(4)]
public EnvDTE.BuildDependencies BuildDependencies { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.BuildDependencies : EnvDTE.BuildDependencies
Public ReadOnly Property BuildDependencies As BuildDependencies

Property Value

A BuildDependencies collection.

Attributes

Examples

Sub BuildDependenciesExample(p1 As Project, p2 As Project)  
  ' Make Project1 dependent upon Project2.  
  Dim sb As SolutionBuild = DTE.Solution.SolutionBuild  
  sb.BuildDependencies.Item(p1.UniqueName).AddProject(p2.UniqueName)  
End Sub  

Applies to