Fixed this issue by using the following path in MAUI again
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am having issue with one of my app migration to .NET MAUI. When I migrate, I am unable to access SQLlite databse which was being used in Xamarin
in XAMARIN database was being accessed as follow:
public static string DatabasePath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), DatabaseFilename);
not sure how to access this in .NET MAUI.
https://learn.microsoft.com/en-us/dotnet/maui/data-cloud/database-sqlite?view=net-maui-8.0
I have been trying using following method but was unsuccessful.
In .NET MAUI
public static string DatabasePath => Path.Combine(FileSystem.AppDataDirectory, DatabaseFilename);
Would appreciate any help?
Thanks
Fixed this issue by using the following path in MAUI again
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),