共用方式為


SolutionBuild.BuildDependencies 屬性

取得 BuildDependencies 集合,此集合可指定哪些專案相依哪些其他專案。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
ReadOnly Property BuildDependencies As BuildDependencies
BuildDependencies BuildDependencies { get; }
property BuildDependencies^ BuildDependencies {
    BuildDependencies^ get ();
}
abstract BuildDependencies : BuildDependencies
function get BuildDependencies () : BuildDependencies

屬性值

型別:EnvDTE.BuildDependencies
BuildDependencies 集合。

範例

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

.NET Framework 安全性

請參閱

參考

SolutionBuild 介面

EnvDTE 命名空間