WP 7.5 Mango ISETool Gotcha
September 15, 2011 in Silverlight
The Isolated Storage Explorer (ISETool.exe) is a command-line tool that comes with the Windows Phone SDK. It allows you to copy files and directories from isolated storage on the phone (or emulator) to your PC file system. One use for this is to take snapshots of your database over different versions in order to test upgrade scenarios.
To copy from the emulator’s isolated storage to your computer’s file system use:
ISETool.exe ts xd 11111111-2222-3333-4444-555555555555 “C:\MyApp\DbVersion1″
Where:
- ts – take snapshot
- xd – emulator
- guid – product GUID from WPAppManifest.xml
- desktop dir – where to copy the isolated storage files
To later copy those files from my desktop directory back to isolated storage on the emulator, use:
ISETool.exe rs xd 11111111-2222-3333-4444-555555555555 “C:\MyApp\DbVersion1\IsolatedStore”
In this case rs means restore snapshot.
But the restoring wasn’t working for me. I would restore the snapshot, run my code and no database would be found so my code would create a new database. It took me a few times to notice that what I was doing wrong was reusing the take snapshot command line and changing ts to rs.
But the problem with that is that the directory that you specify with ts is different than the one needed for rs. Notice that rs adds “\IsolatedStore” to the end.
Hopefully this will save you from pulling a few hairs out.



