I have a CI build configured in TFSBuild 2010 that creates a work item when the build fails. I would like to be able to put the build error messages into the work item description but I can’t find any good way of accessing the error information.
Is there anyone who has solved this issue?
You can grab the build errors and/or warnings from the BuildInformation property of the IBuildDetail object that represents your build.
Some sample code for doing this can be found in this post.