XAP files getting added to TFS

Topics: Prism v2 - Silverlight 3
Jul 31, 2009 at 2:28 PM

We had this problem a while back with XAP files getting picked up by TFS (2008), even though they are not in the list of files which it is supposed to recognize. Removing the link on our web project and re-adding it worked at the time, and they wouldn't get picked up again after that. Since upgrading to the SL 3 tools for VS 2008 and Blend 3 we're having this problem again, and the old fix no longer works. Does anyone have a solution for this?

I've tried adding XAP to the recognized file types for TFS so that I can exclude the files manually, but I've also run into problems as well where I cannot exclude my Shell XAP - presumably because it's referenced in another file (the test page generated when it was added to the web project) which is also under source control.

Jul 31, 2009 at 3:00 PM

I found that if you delete the .xap file from ClientBin that when you recompile the application it will regenerate it and, as you suggested, add it to source control.  What I have to after deleting an .xap is go into the TFS Source Control Explorer and delete the ClientBin folder from project (it will show up as an Add).   After deleting it from the Source Control Explorer it will stay deleted for any successive compiles as long as I don't delete the .xap again - once deleted I have to manually comply with the steps again.

Aug 5, 2009 at 4:16 PM

Thanks Bill!

I've posted it as a bug on the Silverlight.net forums, and added your workaround as well:


So hopefully it can get fixed in the future.