Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

OnBuildBegin Event

Visual Studio .NET 2003

Occurs before the solution builds, before a batch build begins, or just before a project begins to build.

[Visual Basic .NET]
Public Sub OnBuildBegin( _
   ByVal Scope As vsBuildScope, _
   ByVal Action As vsBuildAction _
) 
[Visual Basic 6]
Sub OnBuildBegin( _
   ByVal Scope As vsBuildScope, _
   ByVal Action As vsBuildAction _
) 
[C++]
HRESULT __stdcall OnBuildBegin(
   vsBuildScope Scope,
   vsBuildAction Action
);
[C#]
public void OnBuildBegin(
   vsBuildScope Scope,
   vsBuildAction Action
);
[JScript .NET]
public function OnBuildBegin(
   Scope : vsBuildScope,
   Action : vsBuildAction
)

Parameters

vsBuildScope
Required. A vsBuildScope constant representing the scope of the build.
vsBuildAction
Required. A vsBuildAction constant representing the type of build action that is occurring, such as a build or a deploy action.

Remarks

OnBuildBegin occurs when you:

  • Select either the Build Solution, Rebuild solution, or Clean Solution command on the Build menu.
  • Click the Build, Rebuild, or Clean buttons in the Batch Build dialog box.
  • Select the Build <project> or Rebuild <project> commands on the Build menu, or on the project's context menu.
  • Invoke a build using the shortcuts keys, such as CTRL + SHIFT + B.

See Also

Applies To: BuildEvents Object

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.