共用方式為


BuildEventsClass.OnBuildBegin Event

Definition

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

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual event EnvDTE::_dispBuildEvents_OnBuildBeginEventHandler ^ OnBuildBegin;
public:
 virtual event EnvDTE::_dispBuildEvents_OnBuildBeginEventHandler ^ OnBuildBegin;
public virtual event EnvDTE._dispBuildEvents_OnBuildBeginEventHandler OnBuildBegin;
member this.OnBuildBegin : EnvDTE._dispBuildEvents_OnBuildBeginEventHandler 
Public Overridable Custom Event OnBuildBegin As _dispBuildEvents_OnBuildBeginEventHandler Implements OnBuildBegin

Event Type

Implements

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 by using the shortcuts keys, such as CTRL + SHIFT + B.

Applies to