Example #1
0
 /// <summary>
 /// Global Build Done Callback
 /// </summary>
 /// <param name="scope"></param>
 /// <param name="action"></param>
 private void NotifyBuildEnd(vsBuildScope scope, vsBuildAction action)
 {
     Console.WriteLine("BuildEnd: " + scope + "/" + action);
     if (action < vsBuildAction.vsBuildActionBuild || action > vsBuildAction.vsBuildActionRebuildAll)
     {
         //Not an actual build event, we are here if user hits Start and there is nothing to build
         DesignerKiller.KillAllDesigners();
         return;
     }
     BuildEnd?.Invoke();
 }
Example #2
0
 /// <summary>
 /// Global Build Start Callback
 /// </summary>
 /// <param name="scope"></param>
 /// <param name="action"></param>
 private void PdbeBuildBegin(vsBuildScope scope, vsBuildAction action)
 {
     BuildBegin?.Invoke();
     DesignerKiller.KillAllDesigners();
 }
Example #3
0
 private void NotifyModeChanged(vsIDEMode lastmode)
 {
     Console.WriteLine("Mode: " + ((DTE)Package.GetGlobalService(typeof(DTE))).Mode);
     DesignerKiller.KillAllDesigners();
     ModeChanged?.Invoke();
 }