Udostępnij za pośrednictwem


ProjectCollection.IsBuildEnabled Property

Definition

This is the default value used by newly created projects for whether or not the building of projects is enabled. This is for security purposes in case a host wants to closely control which projects it allows to run targets/tasks.

public:
 property bool IsBuildEnabled { bool get(); void set(bool value); };
public bool IsBuildEnabled { get; set; }
public bool IsBuildEnabled { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.IsBuildEnabled : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.IsBuildEnabled : bool with get, set
Public Property IsBuildEnabled As Boolean

Property Value

true if the targets and tasks of projects in this project collection can be built; otherwise, false.

Attributes

Remarks

Can be used for security purposes. By default, a new project has the same IsBuildEnabled setting as the parent project collection that contains it. When IsBuildEnabled is false, the Build method on this project fails.

Applies to