SQLite User Forum

Regression on C# package with ”single file” build
Login

Regression on C# package with "single file" build

(1) By Iago (iagosrl) on 2023-11-10 21:11:09 [source]

The dotnet package published at NuGet fails on its latest version 1.0.118 but works on previous 1.0.117, when using dotnet 6 or dotnet7 with the option to generate a single file output with an error related to locate module files.

NuGet package: Stub.System.Data.SQLite.Core.NetStandard

Options needed on the project setup:

<PublishSingleFile>true</PublishSingleFile>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>

The error which throws on 1.0.118:

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
   at System.ArgumentNullException.Throw(String paramName)
   at System.IO.Path.Combine(String path1, String path2)
   at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)
   at System.Data.SQLite.SQLiteConnection..ctor(String connectionString)
   at Program.<Main>$(String[] args)

(2) By anonymous on 2024-06-23 12:42:22 in reply to 1 [link] [source]

Have you found a solution? I am on the same exact boat and getting desperate.

(3) By mistachkin on 2024-06-25 11:38:48 in reply to 1 [link] [source]