From 17c209fde63b74d2a49da01c9502d42760540e9d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 28 Dec 2025 19:32:35 +0000 Subject: [PATCH] fix: Replace Mono.Data.Sqlite.Portable with Microsoft.Data.Sqlite - Replaced incompatible Mono.Data.Sqlite.Portable (v1.0.3.5) with Microsoft.Data.Sqlite (v8.0.0) - Updated using statement from Mono.Data.Sqlite to Microsoft.Data.Sqlite - Updated code comments to reflect the package change - This resolves NU1701 warning about package compatibility with net8.0-windows - This fixes CS0246 error where SQLiteConnection type could not be found The Mono.Data.Sqlite.Portable package was designed for .NET Framework and is not compatible with .NET 8. Microsoft.Data.Sqlite is the official Microsoft package for SQLite support in modern .NET applications. --- Intersect.Editor/Core/Database.cs | 4 ++-- Intersect.Editor/Intersect.Editor.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Intersect.Editor/Core/Database.cs b/Intersect.Editor/Core/Database.cs index e1b02fa281..ddfcce7a14 100644 --- a/Intersect.Editor/Core/Database.cs +++ b/Intersect.Editor/Core/Database.cs @@ -1,6 +1,6 @@ using Intersect.Configuration; using Intersect.Editor.Configuration; -using Mono.Data.Sqlite; +using Microsoft.Data.Sqlite; namespace Intersect.Editor.Core; @@ -64,7 +64,7 @@ public static void InitMapCache() Directory.CreateDirectory("resources"); } - // Note: Mono.Data.Sqlite handles thread safety internally, no need to set serialized mode + // Note: Microsoft.Data.Sqlite handles thread safety internally, no need to set serialized mode if (!File.Exists(DB_FILENAME)) { CreateDatabase(); diff --git a/Intersect.Editor/Intersect.Editor.csproj b/Intersect.Editor/Intersect.Editor.csproj index 03197b3fd1..ab120f9253 100644 --- a/Intersect.Editor/Intersect.Editor.csproj +++ b/Intersect.Editor/Intersect.Editor.csproj @@ -70,7 +70,7 @@ - +