saleem-mirza / serilog-sinks-sqlite

A Serilog sink that writes to SQLite
Apache License 2.0
56 stars 44 forks source link

Package depends on version of System.Data.SQLite.Core that is no longer available (w/ workaround) #34

Open mmundy3832 opened 3 years ago

mmundy3832 commented 3 years ago

I have been wanting to move to Serilog for a few weeks now so that I would have greater flexibility to track logging levels.

Since I am already using SQlite in my project, I decided to add a log table and use this sink. Unfortunately, the only version of System.Data.SQLite.Core that is currently available is 1.0.115. But this package relies on 1.0.112.

To workaround this issue: 1) copy the entire code base over, and add it to solution 2) remove the existing System.Data.SQLite.Core reference (listed as 1.0.110 in the .csproj file) 3) add reference to System.Data.SQLite.Core version 1.0.115. 4) add project reference to my assembly

peter-dye commented 2 years ago

Great solution, worked perfectly for me. If anyone else follows it, I would recommend adding this source code as a git submodule in your project.