diff --git a/osu.Desktop/Program.cs b/osu.Desktop/Program.cs
index 5e6b5cc701..25beb9a7d4 100644
--- a/osu.Desktop/Program.cs
+++ b/osu.Desktop/Program.cs
@@ -19,7 +19,6 @@ namespace osu.Desktop
public static int Main(string[] args)
{
// required to initialise native SQLite libraries on some platforms.
- SQLitePCL.Batteries_V2.Init();
if (!RuntimeInfo.IsMono)
useMulticoreJit();
diff --git a/osu.Desktop/osu.Desktop.csproj b/osu.Desktop/osu.Desktop.csproj
index c7ffbd78de..cca7e70632 100644
--- a/osu.Desktop/osu.Desktop.csproj
+++ b/osu.Desktop/osu.Desktop.csproj
@@ -35,7 +35,6 @@
-
diff --git a/osu.Game.Rulesets.Catch/osu.Game.Rulesets.Catch.csproj b/osu.Game.Rulesets.Catch/osu.Game.Rulesets.Catch.csproj
index 62d3fc008e..37702fad56 100644
--- a/osu.Game.Rulesets.Catch/osu.Game.Rulesets.Catch.csproj
+++ b/osu.Game.Rulesets.Catch/osu.Game.Rulesets.Catch.csproj
@@ -19,6 +19,7 @@
+
diff --git a/osu.Game.Rulesets.Mania/osu.Game.Rulesets.Mania.csproj b/osu.Game.Rulesets.Mania/osu.Game.Rulesets.Mania.csproj
index 09bbce1893..ebe78a039c 100644
--- a/osu.Game.Rulesets.Mania/osu.Game.Rulesets.Mania.csproj
+++ b/osu.Game.Rulesets.Mania/osu.Game.Rulesets.Mania.csproj
@@ -19,6 +19,7 @@
+
diff --git a/osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj b/osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj
index 6f16197856..6b741ef3c9 100644
--- a/osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj
+++ b/osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj
@@ -19,6 +19,7 @@
+
diff --git a/osu.Game.Rulesets.Taiko/osu.Game.Rulesets.Taiko.csproj b/osu.Game.Rulesets.Taiko/osu.Game.Rulesets.Taiko.csproj
index 90efa4d615..b4e7ab0658 100644
--- a/osu.Game.Rulesets.Taiko/osu.Game.Rulesets.Taiko.csproj
+++ b/osu.Game.Rulesets.Taiko/osu.Game.Rulesets.Taiko.csproj
@@ -19,6 +19,7 @@
+
diff --git a/osu.Game.Tests/osu.Game.Tests.csproj b/osu.Game.Tests/osu.Game.Tests.csproj
index 52a41c23f2..30104dee7f 100644
--- a/osu.Game.Tests/osu.Game.Tests.csproj
+++ b/osu.Game.Tests/osu.Game.Tests.csproj
@@ -25,6 +25,7 @@
+
diff --git a/osu.Game/Database/OsuDbContext.cs b/osu.Game/Database/OsuDbContext.cs
index aa1f523a80..a4b0c30478 100644
--- a/osu.Game/Database/OsuDbContext.cs
+++ b/osu.Game/Database/OsuDbContext.cs
@@ -33,6 +33,12 @@ namespace osu.Game.Database
private static readonly Lazy logger = new Lazy(() => new OsuDbLoggerFactory());
+ static OsuDbContext()
+ {
+ // required to initialise native SQLite libraries on some platforms.
+ SQLitePCL.Batteries_V2.Init();
+ }
+
///
/// Create a new in-memory OsuDbContext instance.
///
diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj
index 64176ab706..dd4b0c0e02 100644
--- a/osu.Game/osu.Game.csproj
+++ b/osu.Game/osu.Game.csproj
@@ -21,6 +21,7 @@
+