'Data Files not included in Visual Studio 2019 build

I have created a C# UWP application in Visual Studio 2019 that utilizes SQLite databases as data files that are accessed within the code. These files are contained in a folder called DateFiles in the project. When I build the app either as a side load or as a submission to the Microsoft store, the folder and files do not copy to the Local Store folder in the package when deployed. I have set the build action on each of the files to "Content" and the copy to output directory to "Copy always".

I have had to add these files manually to the LocalStore folder in the package on my machine and do not have any problems with the application execution or access to the files.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source