You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created my database using the "Environment.SpecialFolder.LocalApplicationData" as location, this seems to not work. There were no exceptions or anything like that (which I find odd), but the file simply did not appear.
Changing it to "C:\temp" works as expected. Is there a limit for how long the path can be? and is there a fallback path since I did not gen an exception?
//.Net MAUI app
var folder = Environment.SpecialFolder.LocalApplicationData;
var path = Environment.GetFolderPath(folder);
var db = new LiteDatabase(Path.Join(path, "app-db"));
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I created my database using the "Environment.SpecialFolder.LocalApplicationData" as location, this seems to not work. There were no exceptions or anything like that (which I find odd), but the file simply did not appear.
Changing it to "C:\temp" works as expected. Is there a limit for how long the path can be? and is there a fallback path since I did not gen an exception?
Beta Was this translation helpful? Give feedback.
All reactions