This documentation is archived and is not being maintained.

ShouldBuild Property

Visual Studio .NET 2003

Sets or returns whether the current project is built when the solution configuration associated with this SolutionContext is selected.

[Visual Basic .NET]
Public Property ShouldBuild() As Boolean
[Visual Basic 6]
Property Get ShouldBuild() As Boolean
Property Let ShouldBuild( _
   ByVal NewValue As Boolean _
) 
[C++]
HRESULT __stdcall get_ShouldBuild(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
HRESULT __stdcall put_ShouldBuild(
   /* [in] */ VARIANT_BOOL NewValue
);
[C#]
public bool ShouldBuild {get; set;}
[JScript .NET]
public function get ShouldBuild() : Boolean
public function set ShouldBuild(
   NewValue : Boolean
)

Parameters

ShouldBuild
Required. Indicates whether the current project is built when the solution configuration associated with the SolutionContext Object is selected.

Return Value

True if the project should be built, False if not.

Remarks

If the project does not support being built, ShouldBuild is always False, and setting it to True has no effect.

See Also

Applies To: SolutionContext Object

Show: