BuildIt tool: How can I get a build error description?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric Chong

    BuildIt tool: How can I get a build error description?

    I have been trying to automate our builds using BuildIt
    tool available from Microsoft. This tool only log whether
    build is success or fail. Since all developers would like
    to see what the build error descriptions are, I need to
    add it to the source code. However, SolutionBuild object
    don't have that property available. Is it even possible to
    get that information? What should I do in order to get an
    error description?
    Thanks in advance.

    Eric
  • Klaus H. Probst

    #2
    Re: BuildIt tool: How can I get a build error description?

    I've never used that tool, but why not try something more powerful, like
    NAnt? http://nant.sourceforge.net/


    --
    _______________ _____
    Klaus H. Probst, MVP


    "Eric Chong" <echong_phx@hot mail.com> wrote in message
    news:066b01c3b9 34$3594fba0$a10 1280a@phx.gbl.. .[color=blue]
    > I have been trying to automate our builds using BuildIt
    > tool available from Microsoft. This tool only log whether
    > build is success or fail. Since all developers would like
    > to see what the build error descriptions are, I need to
    > add it to the source code. However, SolutionBuild object
    > don't have that property available. Is it even possible to
    > get that information? What should I do in order to get an
    > error description?
    > Thanks in advance.
    >
    > Eric[/color]


    Comment

    • Klaus H. Probst

      #3
      Re: BuildIt tool: How can I get a build error description?


      "Klaus H. Probst" <usenet001@vbbo x.com> wrote in message
      news:eYXEqrUuDH A.2448@TK2MSFTN GP12.phx.gbl...[color=blue]
      > I've never used that tool, but why not try something more powerful, like
      > NAnt? http://nant.sourceforge.net/[/color]

      Oh wow, never mind. I just realized what this thing is.


      --
      klaus


      Comment

      • Mike Wong

        #4
        RE: BuildIt tool: How can I get a build error description?

        Hi Eric,

        right after the lines in the BuildSolutionCo nfig

        while(solutionB uild.BuildState != vsBuildState.vs BuildStateDone) ;

        where we wait for the build to finish. You can grab the output from the
        output pane. Here is a quick macro that you can translate into C#.
        Sub BuildWindowText ()
        Dim outputWin As OutputWindow
        Dim outputWinPane As OutputWindowPan e
        Dim outputWinPaneTx tDoc As TextDocument
        outputWin =
        DTE.Windows.Ite m(EnvDTE.Consta nts.vsWindowKin dOutput).Object
        outputWinPane =
        outputWin.Outpu tWindowPanes.It em("{1BD8A850-02D1-11D1-BEE7-00A0C913D1F8}")
        outputWinPaneTx tDoc = outputWinPane.T extDocument

        MsgBox(outputWi nPaneTxtDoc.Sta rtPoint.CreateE ditPoint().GetT ext(outputWinPa n
        eTxtDoc.EndPoin t))
        End Sub

        Instead of a msgbox, you can look at some other reporting mechanism.

        I hope that helps.

        Thanks!
        Mike Wong
        Microsoft Developer Support
        --------------------[color=blue]
        >Content-Class: urn:content-classes:message
        >From: "Eric Chong" <echong_phx@hot mail.com>
        >Sender: "Eric Chong" <echong_phx@hot mail.com>
        >Subject: BuildIt tool: How can I get a build error description?
        >Date: Tue, 2 Dec 2003 16:27:18 -0800
        >Lines: 11
        >Message-ID: <066b01c3b934$3 594fba0$a101280 a@phx.gbl>
        >MIME-Version: 1.0
        >Content-Type: text/plain;
        > charset="iso-8859-1"
        >Content-Transfer-Encoding: 7bit
        >X-Newsreader: Microsoft CDO for Windows 2000
        >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
        >thread-index: AcO5NDWUxyNzmfu cTqiT5l91akPTgg ==
        >Newsgroups: microsoft.publi c.dotnet.genera l
        >Path: cpmsftngxa06.ph x.gbl
        >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:117239
        >NNTP-Posting-Host: tk2msftngxa09.p hx.gbl 10.40.1.161
        >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
        >
        >I have been trying to automate our builds using BuildIt
        >tool available from Microsoft. This tool only log whether
        >build is success or fail. Since all developers would like
        >to see what the build error descriptions are, I need to
        >add it to the source code. However, SolutionBuild object
        >don't have that property available. Is it even possible to
        >get that information? What should I do in order to get an
        >error description?
        >Thanks in advance.
        >
        >Eric
        >[/color]

        Comment

        Working...