ProjectCollection.IsBuildEnabled 属性


获取或设置一个值,该值指示是否可构建项目集合中项目的目标和任务。Gets or sets a value that indicates whether the targets and tasks of projects in the project collection can be built.

 property bool IsBuildEnabled { bool get(); void set(bool value); };
public bool IsBuildEnabled { get; set; }
member this.IsBuildEnabled : bool with get, set
Public Property IsBuildEnabled As Boolean


true如果可以生成此项目集合中的项目的目标和任务,则为; 否则为。否则为falsetrue if the targets and tasks of projects in this project collection can be built; otherwise, false.


可用于安全目的。Can be used for security purposes. 默认情况下,新项目具有与包含它的父项目集合相同的 IsBuildEnabled 设置。By default, a new project has the same IsBuildEnabled setting as the parent project collection that contains it. 当 IsBuildEnabled 为 false 时,此项目上的生成方法将失败。When IsBuildEnabled is false, the Build method on this project fails.