/// <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(); }
private void NotifyModeChanged(vsIDEMode lastmode) { Console.WriteLine("Mode: " + ((DTE)Package.GetGlobalService(typeof(DTE))).Mode); DesignerKiller.KillAllDesigners(); ModeChanged?.Invoke(); }
/// <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(); }