Where is isolated storage from WP7 emulator located on PC?

泪湿孤枕 提交于 2019-12-12 10:34:27

问题


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



来源:https://stackoverflow.com/questions/5153224/where-is-isolated-storage-from-wp7-emulator-located-on-pc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!