RIM.VSNDK_Package.VSNDK_PackagePackage.OnBuildDone C# (CSharp) Method

OnBuildDone() public method

This event is fired only when the build/rebuild/clean process ends.
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.
return 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();
            }
        }