Question

I am currently trying to save the code-metrics results in an .xml file into the drop location of Team Foundation Server.

For saving I am using the following code snippet:

string outputLocation = Path.Combine(this.BuildDetail.DropLocation, "metrics.xml");

For showing the codemetrics results into an webapplication I have to read the codemetrics from the drop location.

Anyone knows the right way to do this??

Was it helpful?

Solution

Make sure you've actually configured a drop location for your build. Team Build will only save the files that are saved tothe binaries directory if there is a drop location specified. Alternatively, since 2013, you can also drop your files in the logs directory. These files are saved on the TFS server and can be downloaded from the Web Access UI. I suspect that the #\113\drop is actually a pointer to that location.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top