void snProcess_ErrorDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (e.Data != null)
     {
         ReadData(e.Data);
         if (OWP != null)
         {
             OWP.OutputString(e.Data + "\n");
             OWP.ForceItemsToTaskList();
         }
     }
 }
        public static void WriteToOutputWindow(DTE dte, string message, bool clearBefore)
        {
            try
            {
                Window       win    = dte.Windows.Item("{34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3}");
                OutputWindow comwin = (OutputWindow)win.Object;
                if (OWP == null)
                {
                    foreach (OutputWindowPane w in comwin.OutputWindowPanes)
                    {
                        if (w.Name == "SharePoint Solution Deployer (SPSD)")
                        {
                            OWP = w;
                        }
                    }
                }
                if (OWP == null)
                {
                    OWP = comwin.OutputWindowPanes.Add("SharePoint Solution Deployer (SPSD)");
                }
                if (clearBefore)
                {
                    OWP.Clear();
                }
                OWP.Activate();


                Application.DoEvents();
                OWP.OutputString(message + Environment.NewLine);
                OWP.ForceItemsToTaskList();
            }
            catch (Exception)
            {
            }
        }
 public void ForceItemsToTaskList()
 {
     _pane.ForceItemsToTaskList();
 }