TFS 2010 List of deleted AX XPO files

Recently our company had a need to create a clean TFS project for a new AX environment, and I have found out that there is no simple way of listing objects that were deleted from the repository. We had to make sure that these objects do not land in the new AX environment, so I had to figure out how to collect these objects.

I came across this blog post on how to use the Team Foundation Server API in .Net C#, which turned me in the right direction to be able to list the deleted XPO files:
http://blogs.microsoft.co.il/blogs/shair/archive/2011/08/03/tfs-api-part-39-show-deleted-items-in-source-control.aspx

(more…)