共用方式為


Project.BuildEnabled Property

Gets or sets a value indicating whether the project is enabled for building tasks and targets.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

Syntax

'Declaration
Public Property BuildEnabled As Boolean
public bool BuildEnabled { get; set; }
public:
property bool BuildEnabled {
    bool get ();
    void set (bool value);
}
member BuildEnabled : bool with get, set
function get BuildEnabled () : boolean 
function set BuildEnabled (value : boolean)

Property Value

Type: System.Boolean
true if the project is enabled for building tasks and targets; otherwise, false.

Remarks

By default, this property uses value of the BuildEnabled property of the project's ParentEngine.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.BuildEngine Namespace