Skip to content

Commit 3a6775b

Browse files
committed
add example sqlite fragment
1 parent 301915d commit 3a6775b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ RUN export DOTNET_ROOT=$HOME/dotnet
8282
# </ItemGroup>
8383
# This ensure that the extension lib called by dotnet matches the interop lib compiled here
8484
COPY ./sqlite-netFx-source-1.0.116.0.zip sqlite-netFx-source-1.0.116.0.zip
85+
COPY ./sqlite-csproj.fragment sqlite-csproj.fragment
8586
RUN unzip ./sqlite-netFx-source-1.0.116.0.zip -d sqlite-source
8687
RUN bash ./sqlite-source/Setup/compile-interop-assembly-release.sh
8788
WORKDIR /home/devuser/sqlite-source/System.Data.SQLite

sqlite-csproj.fragment

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
To use a manually compiled SQLite file, you will have to modify the csproj that uses System.Data.SQLite.Core
2+
to remove that ProjectReference and instead add this to the root of the csproj file:
3+
4+
<ItemGroup>
5+
<Reference Include="..\..\sqlite-source\bin\NetStandard21\ReleaseNetStandard21\bin\netstandard2.1\System.Data.SQLite.dll" />
6+
</ItemGroup>
7+
8+
This ensure that the extension lib called by dotnet matches the interop lib compiled here

0 commit comments

Comments
 (0)