Viewing files in ApplicationData.Current.LocalFolder externally RRS feed

  • Question

  • When storing data for an app, I often use an XmlSerializer to store it in ApplicationData.Current.LocalFolder as a text file. This is not a problem, but for debugging purposes I would like to be able to open this file to look at from outside the app. I obviously don't need the user to be able to do this once the app is finished, but it could definitely help me to see it during debugging. I can obviously read and output it to the Output window using System.Diagnostics.Debug.WriteLine(), but that would require extra code that I would be deleting afterwards anyway. Is there a way to view the files in ApplicationData.Current.LocalFolder using a text viewer (or even just Visual Studio)? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Monday, July 14, 2014 7:14 PM


  • You can find the path and open it in explorer.

    To find the path examine ApplicationData.Current.LocalFolder.Path in the debugger or dump out the path as debug output. It will be something like:

    C:\Users\<yourname>\AppData\Local\Packages\<Package Family Name>\LocalState

    Monday, July 14, 2014 7:32 PM