Skip to content

Commit 69bf7ca

Browse files
committed
Create static P/Invoke nuget
1 parent ff6507e commit 69bf7ca

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tests/bin/Release/SQLite.Tests.dll: tests/SQLite.Tests.csproj $(SRC)
1616
tests/ApiDiff/bin/Release/ApiDiff.exe: tests/ApiDiff/ApiDiff.csproj $(SRC)
1717
msbuild /p:Configuration=Release tests/ApiDiff/ApiDiff.csproj
1818

19-
nuget: pclnuget basenuget sqlciphernuget
19+
nuget: pclnuget basenuget sqlciphernuget staticnuget
2020

2121
pclnuget: nuget/SQLite-net-std/SQLite-net-std.csproj $(SRC)
2222
dotnet pack -c Release -o $(PACKAGES_OUT) $<
@@ -27,5 +27,8 @@ basenuget: nuget/SQLite-net-base/SQLite-net-base.csproj $(SRC)
2727
sqlciphernuget: nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj $(SRC)
2828
dotnet pack -c Release -o $(PACKAGES_OUT) $<
2929

30+
staticnuget: nuget/SQLite-net-static/SQLite-net-static.csproj $(SRC)
31+
dotnet pack -c Release -o $(PACKAGES_OUT) $<
32+
3033
codecoverage:
3134
cd tests/SQLite.Tests && dotnet test /p:AltCover=true /p:AltCoverForce=true "/p:AltCoverTypeFilter=SQLite.Tests.*" && reportgenerator -reports:coverage.xml -targetdir:./CoverageReport

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Use one of these packages:
99
| ------- | ------- | ----------- |
1010
| [![NuGet Package](https://img.shields.io/nuget/v/sqlite-net-pcl.svg)](https://www.nuget.org/packages/sqlite-net-pcl) | [sqlite-net-pcl](https://www.nuget.org/packages/sqlite-net-pcl) | .NET Standard Library |
1111
| [![NuGet Package with Encryption](https://img.shields.io/nuget/v/sqlite-net-sqlcipher.svg)](https://www.nuget.org/packages/sqlite-net-sqlcipher) | [sqlite-net-sqlcipher](https://www.nuget.org/packages/sqlite-net-sqlcipher) | With Encryption Support |
12+
| [![NuGet Package using P/Invoke](https://img.shields.io/nuget/v/sqlite-net-static.svg)](https://www.nuget.org/packages/sqlite-net-static) | [sqlite-net-static](https://www.nuget.org/packages/sqlite-net-static) | Special version that uses P/Invokes to platform-provided sqlite3 |
1213

1314
SQLite-net is an open source, minimal library to allow .NET, .NET Core, and Mono applications to store data in
1415
[SQLite 3 databases](http://www.sqlite.org). It was first designed to work with [Xamarin.iOS](http://xamarin.com),
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<AssemblyName>SQLite-net</AssemblyName>
6+
<PackageId>sqlite-net-static</PackageId>
7+
<AssemblyTitle>SQLite-net .NET Standard P/Invoke Library</AssemblyTitle>
8+
<Description>
9+
SQLite-net is an open source and light weight library providing easy SQLite database storage for .NET, Mono, and Xamarin applications.
10+
This version uses P/Invokes to the "sqlite3" native library provided by the operating system.
11+
This works on Xamarin.iOS, Xamarin.Android, Meadow, and any other platform that has a "sqlite3" library in the path.
12+
</Description>
13+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14+
</PropertyGroup>
15+
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
17+
<DebugSymbols>false</DebugSymbols>
18+
<DebugType></DebugType>
19+
<DefineConstants>RELEASE</DefineConstants>
20+
<DocumentationFile>bin\Release\netstandard2.0\SQLite-net.xml</DocumentationFile>
21+
</PropertyGroup>
22+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
23+
<DefineConstants>DEBUG</DefineConstants>
24+
<DocumentationFile>bin\Debug\netstandard2.0\SQLite-net.xml</DocumentationFile>
25+
</PropertyGroup>
26+
<ItemGroup>
27+
<Compile Include="..\..\src\SQLite.cs">
28+
<Link>SQLite.cs</Link>
29+
</Compile>
30+
<Compile Include="..\..\src\SQLiteAsync.cs">
31+
<Link>SQLiteAsync.cs</Link>
32+
</Compile>
33+
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" />
34+
</ItemGroup>
35+
</Project>

0 commit comments

Comments
 (0)