Answered by:
xml data file in local folder

Question
-
A silly question by a newbie. I have a readonly data file exported from excel. I already added the file to my solution. Is that file going to be placed to the local folder automatically when somebody installs the app so it can be opened by the app or do i have to do something more?Monday, June 16, 2014 9:02 PM
Answers
-
if only need read permission you can leave it in the app folder. if you need to edit it you need to copy it on the first run to your it in your localhoder (ApplicationData.Current.LocalFolder)
Microsoft Certified Solutions Developer - Windows Store Apps Using C#
- Marked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, June 17, 2014 8:02 PM
Monday, June 16, 2014 10:07 PM -
Make sure it is marked as Content and to be copied to the Output directory.
You can then confirm by looking for it in the Appx folder after you build and run the app.
--Rob
- Marked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, June 17, 2014 8:02 PM
Monday, June 16, 2014 11:40 PMModerator
All replies
-
if only need read permission you can leave it in the app folder. if you need to edit it you need to copy it on the first run to your it in your localhoder (ApplicationData.Current.LocalFolder)
Microsoft Certified Solutions Developer - Windows Store Apps Using C#
- Marked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, June 17, 2014 8:02 PM
Monday, June 16, 2014 10:07 PM -
Make sure it is marked as Content and to be copied to the Output directory.
You can then confirm by looking for it in the Appx folder after you build and run the app.
--Rob
- Marked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, June 17, 2014 8:02 PM
Monday, June 16, 2014 11:40 PMModerator -
Thanks for the replies.
- Marked as answer by giannisdolon Tuesday, June 17, 2014 7:47 PM
- Unmarked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, June 17, 2014 8:02 PM
Tuesday, June 17, 2014 7:47 PM