Accesing build programmatically (API)

I've found a couple of examples to access the build objects (BuildInformation and BuildController) in the extensibility kit but they don't work, some of the libraries seem to be missing (Microsoft.VisualStudio.Bis...).
Based on the comments on one of the slides, it looks like the beta 2 release doesn't have this feature yet, is this correct
Is it possible to access the build objects programmaticaly in Beta2

Thanks
Pablo


Answer this question

Accesing build programmatically (API)

  • chrismi

    It works great!!
    Thanks a lot for your answer Omar!!


  • Vipul Modi - MSFT

    In your project, you can add a web reference to the web service itself. Take a look at the sample in the link below, It may have not been released for Beta 2 but it works for me in Beta 2 once I set the "ConfigName" property, which is actually the Build Type you are trying to run, the BuildType property actually stays as "OnDemand" (to the best of my knowledge)

    http://lab.msdn.microsoft.com/productfeedback/ViewWorkaround.aspx FeedbackID=FDBK25583




        bp.TfsServer = "http://" + tfsServer + ":" + "8080";
        bp.PortfolioProject = portfolioProject;
        bp.ConfigName = portfolioProject; // This should be the Build Type name
        bp.BuildDirectory = buildDirectory;
        bp.BuildType = "OnDemand";
        bp.BuildMachine = buildMachine;

     


  • MSDevUser

    Ok, this works perfect to launch and monitor the progress of a new build.
    But how can you instantiate build objects to query their attributes (state, etc.)

    Thanks

  • Accesing build programmatically (API)