public OnBuildDone ( EnvDTE Scope, EnvDTE Action ) : void | ||
Scope | EnvDTE | Represents the scope of the build. |
Action | EnvDTE | Represents the type of build action that is occurring, such as a build or a deploy action. |
Результат | void |
public void OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
{
if (Action == vsBuildAction.vsBuildActionBuild)
{
_amountOfProjects -= 1;
if (_amountOfProjects == 0)
{
_buildEvents.OnBuildDone -= new _dispBuildEvents_OnBuildDoneEventHandler(this.OnBuildDone);
Built();
}
}
else if (Action == vsBuildAction.vsBuildActionDeploy)
{
_buildEvents.OnBuildDone -= new _dispBuildEvents_OnBuildDoneEventHandler(this.OnBuildDone);
_isDeploying = false;
Deployed();
}
}