If you are writing an .xbap/clickonce application, you may want to be aware of the mage.exe tool which is part of the .NET 2.0 SDK and the Windows Vista SDK.  By running:

mage -cc

you can clear the clickonce cache.  This comes in real handy when you are in development and want to test new versions of your application without incrementing the version number.