Sebastian Good
Sebastian Good

Reputation: 6360

In a TFS 2010 build summary, how do I a show a link to the logs from a custom MSBuild task?

In my TFS 2010 build definition, I call MSBuild on my own custom my.targets MSBuild project. It does all the compilation, testing, etc. that I need. Its log file is specified, as is a log drop location, and the log appears properly in that place. However I can't see it in the TFS Build Summary report. The "View Log File" link is grayed out. It seemed to work when the project I was building was a ".sln" file. What magic voodoo is baked deep in to the heart of the common MSBuild files to make this log link work properly, and how can I reproduce it?

Upvotes: 3

Views: 1739

Answers (2)

Pieter Gheysens
Pieter Gheysens

Reputation: 161

Important to note is that the MSBuild Log File will only appear if you enabled inside the build definition to copy output to the Drop Folder. If that option is disabled, the link will not appear in the build log view.

Upvotes: 2

Nock
Nock

Reputation: 6609

You may find your answer in these posts from Jason Prickett:

  1. TFS2010 – Changing The Way Build Information IS Displayed
  2. TFS2010 – Customizing the Build Details View – Summary View

Upvotes: 3

Related Questions