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:

Here is the final code, which allows you to connect to a TFS 2010 instance and pick a project, then dump all the removed files to a text document. You need to include the Microsoft.TeamFoundation, Microsoft.TeamFoundation.Client, Microsoft.TeamFoundation.Common, Microsoft.TeamFoundation.VersionControl.Client, System.Windows.Forms references in your console application:


DAXRunBase / 2013-03-07 / TFS
Tags: , , , , ,

Leave a Reply

Your email address will not be published / Required fields are marked *