Skip to content

fix: Replace obsolete SQLite package and fix LogWarning error#32

Merged
NerdsCorp merged 1 commit into
mainfrom
claude/fix-sqlite-warning-NH1yR
Dec 28, 2025
Merged

fix: Replace obsolete SQLite package and fix LogWarning error#32
NerdsCorp merged 1 commit into
mainfrom
claude/fix-sqlite-warning-NH1yR

Conversation

@NerdsCorp

Copy link
Copy Markdown
Owner
  • Replace Mono.Data.Sqlite.Portable with Microsoft.Data.Sqlite 8.0.0

    • Mono.Data.Sqlite.Portable targets .NET Framework and is incompatible with .NET 8
    • Microsoft.Data.Sqlite is the modern, officially supported package for .NET 8
    • Resolves NU1701 package compatibility warning
  • Update Database.cs to use Microsoft.Data.Sqlite namespace

    • Remove obsolete SqliteConnection.SetConfig call (not supported in Microsoft.Data.Sqlite)
    • Add comment noting that Microsoft.Data.Sqlite handles thread safety internally
  • Add missing using statement for Microsoft.Extensions.Logging in frmMain.cs

    • Fixes CS1061 compilation error: ILogger.LogWarning extension method not found
    • LogWarning is an extension method that requires the namespace import

These changes ensure compatibility with .NET 8 and resolve all build errors.

- Replace Mono.Data.Sqlite.Portable with Microsoft.Data.Sqlite 8.0.0
  - Mono.Data.Sqlite.Portable targets .NET Framework and is incompatible with .NET 8
  - Microsoft.Data.Sqlite is the modern, officially supported package for .NET 8
  - Resolves NU1701 package compatibility warning

- Update Database.cs to use Microsoft.Data.Sqlite namespace
  - Remove obsolete SqliteConnection.SetConfig call (not supported in Microsoft.Data.Sqlite)
  - Add comment noting that Microsoft.Data.Sqlite handles thread safety internally

- Add missing using statement for Microsoft.Extensions.Logging in frmMain.cs
  - Fixes CS1061 compilation error: ILogger.LogWarning extension method not found
  - LogWarning is an extension method that requires the namespace import

These changes ensure compatibility with .NET 8 and resolve all build errors.
@NerdsCorp NerdsCorp merged commit d71ef36 into main Dec 28, 2025
1 check passed
@NerdsCorp NerdsCorp deleted the claude/fix-sqlite-warning-NH1yR branch December 28, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants