locked
Copy file from bin Debug AppX directory

    Question

  • Hi,

    I'm testing with the new Universal Apps and I'm stuck with this problem. I have a Sqlite database file called "Datos.db3"  (with Copy to Output Directory copy always) in the root directory of the shared project. I copy the file when I starting the app with the following code that previously worked in an app for Windows 8.1

    var seedFile = await StorageFile.GetFileFromPathAsync(
                    
    Path.Combine(Package.Current.InstalledLocation.Path,
                    dbName));
    await seedFile.CopyAsync(ApplicationData.Current.LocalFolder);

    Now I can't find the database file. In file Explorer see the file exists in the bin\x86\Debug directory, but not in the bin\x8\Debug\AppX directory. If I manually copy the file to the directory AppX app finds the file without problems and it's copied.

    How can I manage the database file was in the directory AppX?.

    Thanks a lot

    Monday, April 28, 2014 7:42 AM

Answers

  • Ohh. No problem I haven't marked the database file as "content".
    Monday, April 28, 2014 7:45 AM