diff --git a/src/Microsoft.Data.Sqlite.Core/SqliteConnection.cs b/src/Microsoft.Data.Sqlite.Core/SqliteConnection.cs index bd368b2370a..02e75c9aa25 100644 --- a/src/Microsoft.Data.Sqlite.Core/SqliteConnection.cs +++ b/src/Microsoft.Data.Sqlite.Core/SqliteConnection.cs @@ -66,9 +66,9 @@ static SqliteConnection() storageFolderType = Type.GetType("Windows.Storage.StorageFolder, Windows, ContentType=WindowsRuntime") ?? Type.GetType("Windows.Storage.StorageFolder, Microsoft.Windows.SDK.NET"); } - catch (FileLoadException) + catch (Exception) { - // Ignore "Could not load assembly." + // Ignore "Could not load assembly." or any type initialization error. } object? currentAppData = null;