Ejemplo n.º 1
0
 /// <summary>
 /// Global Build Done Callback
 /// </summary>
 /// <param name="scope"></param>
 /// <param name="action"></param>
 private void NotifyBuildEnd(vsBuildScope scope, vsBuildAction action)
 {
     IsBuilding = false;
     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();
 }
Ejemplo n.º 2
0
 private void NotifyModeChanged(vsIDEMode lastmode)
 {
     Console.WriteLine("Mode: " + ((DTE)Package.GetGlobalService(typeof(DTE))).Mode);
     DesignerKiller.KillAllDesigners();
     ModeChanged?.Invoke();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Global Build Start Callback
 /// </summary>
 /// <param name="scope"></param>
 /// <param name="action"></param>
 private void PdbeBuildBegin(vsBuildScope scope, vsBuildAction action)
 {
     IsBuilding = true;
     BuildBegin?.Invoke();
     DesignerKiller.KillAllDesigners();
 }