How to exclude file types in TFS source control
The exclude file types are defined in HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\SourceControl\AddOptions\ExcludeMasks, the default value like Debug;Release;*.pdb;*.obj;*.dll;*.exe;*.res;*.resources;*.cache;*.ilk;*.ncb;*.lce;*.png
You can add ”;*.xap” to this string. and then restart VS.
If the file *.xap is already checked-in source control, delete it in source control explorer.
If the file *.xap is already include in pending changes with ”add” for the first time, undo this item.