something is wrong...
I'm usign TFS Build API to change DropLocation and build lof file location for successfull builds. For this operation I use
var oldLogLocation = buildDetail.LogLocation; var newLogLocation = Path.Combine(buildDetail.DropLocation,"BuildLog_" + buildDetail.BuildNumber + ".txt"); buildDetail.LogLocation = newLogLocation; buildDetail.Save();
and after that I can programmatically see that the path to the file log for this particular build has been changed. But if I remove old BuildLog.txt from the DropLocation I cannot see logs of this build in the TFS build explorer (link to the MSBuild Log File)
Also I found the static class
So how can I correctly change the path to the build log file? Or shell I change it only through the DropLocation or DropLocationRoot and is the file name immutable?
Thanks for your post.
I’m currently looking into this issue and will give you an update as soon as possible.
If you have any further resarch of this issue, please share your experience here.
John Qiao [MSFT]
MSDN Community Support | Feedback to us