Saturday, June 07, 2003


Theodore Roosevelt:

It is not the critic who counts, not the man who points out how the strong man stumbled, or where the doer of deeds could have done better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood, who strives valiantly, who errs and comes short again and again, who knows the great enthusiasms, the great devotions, and spends himself in a worthy cause, who at best knows achievement and who at the worst if he fails at least fails while daring greatly so that his place shall never be with those cold and timid souls who know neither victory nor defeat.

From a speech given in Paris at the Sorbonne in 1910

8:30:56 PM    trackback []     Articulate [] 

Source: http://weblogs.asp.net/ahoffman

Alex Hoffman Wrote:
Improving the Build Output Pane.

One annoyance with the VS.NET IDE is the less than helpful build output pane displayed on completion of a build. As shown below it can be less than helpful.Â

 However, the following (slightly abridged) macro created by Vitaly Belman at CodeProject can change that:-

Public Sub BuildEvents_OnBuildDone(ByVal Scope As EnvDTE.vsBuildScope, ByVal Action As EnvDTE.vsBuildAction) Handles BuildEvents.OnBuildDone

   ' Create a tool window handle for the Output window.
   '
http://www.codeproject.com/useritems/Filter_build_output.asp
  Â
   Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
   ' Create handles to the Output window and its panes.
   Dim OW As OutputWindow = win.Object
   Dim OWp As OutputWindowPane
   Dim Loc As Integer
  Â
   OWp = OW.OutputWindowPanes.Item(1)
   OWp.TextDocument.Selection.SelectAll()
   Dim Context As String = OWp.TextDocument.Selection.Text
   OWp.TextDocument.Selection.CharLeft()
  Â
   Loc = InStr(Context, "---------------------- Done ----------------------")
  Â
   OWp = OW.OutputWindowPanes.Item(2)
   OWp.Activate()
   OWp.Clear()
   OWp.OutputString(Mid(Context, 1, Loc - 7))
   OWp.TextDocument.Selection.GotoLine(OWp.TextDocument.EndPoint().Line())
End Sub

This macro which handles the OnBuildDone event, results in a much more helpful display as shown below.

 Additionally, I disable the "Show Task List window if build finishes with errors" option (Options>Environment>Projects and Solutions) to make this the default display on completion of a build.

http://weblogs.asp.net/ahoffman


10:56:33 AM    trackback []     Articulate []