Muhammad Rehan Qadri
Muhammad Rehan Qadri

Reputation: 421

When I deploy windows store app, I want a file to be placed at ApplicationData.Current.LocalFolder. How to?

When I deploy windows store app, I want a file to be placed at ApplicationData.Current.LocalFolder so that I can read that file from ApplicationData.Current.LocalFolder.

How to do it?

The problem actually is that I place my file at ApplicationData.Current.LocalFolder, I know where this file is located in my computer. Then I read from this location in my app. But when I upload this to windows store, the app cannot find the file at: ApplicationData.Current.LocalFolder. Please please please help me with this!!!

Upvotes: 2

Views: 116

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

Reputation: 21919

The app can only deploy files to its install directory, not to its application data. Instead you can copy the file from the install direction on first run the first time the file is needed.

Upvotes: 1

Related Questions