I created a new folder in my MAUI project and named it Database and would like this folder to be the destination of my.db3
file instead of FileSystem.AppDataDirectory
, for testing purposes. So far I could not find a way to point to the correct path of this local project folder. I tried to copy the full path in my Solution Explorer, but passing this path did not work, maybe it needs to be formatted in a different way? I'm not sure.
C:\Users\UserA\source\repos\SolutionName\ProjectName\Database\
I'm assuming the following is a typical thought process of a Maui developer:
- Create a local database file in a Maui project folder
- When database is ready for deployment, move it manually to the Resources\Raw folder
- Upon deployment, copy file to AppDataDirectory
Assuming this is an acceptable thought process, if not please correct me, how do I point to the correct path of a project folder?
Resources/Raw
and copy it to an app folder at startup