Skip to content

Commit

Permalink
Microsoft.Data.Sqlite: Also try the .NET 5+ ApplicationData API
Browse files Browse the repository at this point in the history
Fixes #24213
  • Loading branch information
bricelam committed Sep 20, 2021
1 parent 7ffacdb commit 2dc15f4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static string? LocalFolderPath
try
{
return Type.GetType("Windows.Storage.ApplicationData, Windows, ContentType=WindowsRuntime")
?? Type.GetType("Windows.Storage.ApplicationData, Microsoft.Windows.SDK.NET")
?.GetRuntimeProperty("Current")!.GetValue(null);
}
catch
Expand Down

0 comments on commit 2dc15f4

Please sign in to comment.