Where is isolated storage from WP7 emulator locate

2019-06-16 06:34发布

问题:

When we use simulator and store files in isolated storage. Where is the file actually stored on computer? I mean the path.

回答1:

If by "simulator" you mean the emulator then this data is not stored in a "real" folder on the host PC.

The emulator is (for arguments sake) a virtual machine and so has it's entire folder structure stored separately.

On the assumption that you don't just want to know this but rather work with the files in Isolated Storage (as part of your development/testing process) then you should check out Windows Phone 7 Isolated Storage Explorer which allows you to interact with these files.

If you want to work from the command line (to automate your interaction) then check out this post by Justin Angel on emulator automation.



回答2:

It's obscured by design.

The exact location depends on both the application and user so there will be a different location for each user running the same application.



回答3:

I think I read somewhere that Silverlight Spy also lets you inspect isolated storage for WP7 apps. I don't use the tool myself, so I wouldn't know.



回答4:

The "Mango" SDK ships with the ISETool that can take and restore snapshots of an application's isolated storage to/from a local directory:

# Copy data from IS to directory
ISETool.exe ts xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"

# Copy data from IS to directory
ISETool.exe rs xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"


回答5:

Usually, .Net stores it under windows Vista or windows 7 in:

C:\Users\_user_\AppData\Local\IsolatedStorage

On windows XP:

C:\Documents and Settings\_user_\Local Settings\Application Data\IsolatedStorage

Both with _user_ the username of the user. Under these folders are completely obscure subdirectories which are created and maintained by the isolated storage API. I don't know if there is any difference in this on WP7 or Silverlight, but else it is stored here