Skip to content

Commit b2bce6b

Browse files
committed
Use projects instead of nuspecs
1 parent 554e4c0 commit b2bce6b

File tree

12 files changed

+68
-244
lines changed

12 files changed

+68
-244
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ jobs:
1717
- name: Build and Test
1818
run: make test
1919

20-
- name: Make NuGet
20+
- name: Package
2121
run: |
2222
make nuget
23-
mkdir PackageOut
24-
mv *.nupkg PackageOut
23+
24+
- uses: actions/upload-artifact@master
25+
with:
26+
name: Packages
27+
path: PackagesOut
28+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
.dropbox.attr
33
test-results
44

5+
/PackagesOut
6+
57
## Ignore Visual Studio temporary files, build results, and
68
## files generated by popular Visual Studio add-ons.
79

Directory.Build.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project>
2+
<PropertyGroup>
3+
<VersionPrefix>1.7</VersionPrefix>
4+
<VersionSuffix>beta</VersionSuffix>
5+
6+
<PackageIconUrl>https://raw.githubusercontent.com/praeclarum/sqlite-net/master/nuget/Logo-low.png</PackageIconUrl>
7+
<PackageProjectUrl>https://github.com/praeclarum/sqlite-net</PackageProjectUrl>
8+
<RepositoryUrl>https://github.com/praeclarum/sqlite-net.git</RepositoryUrl>
9+
<PackageTags>sqlite-net;sqlite;database;orm</PackageTags>
10+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
11+
12+
<Company>Krueger Systems, Inc.</Company>
13+
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
</Project>
File renamed without changes.

Makefile

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
SRC=src/SQLite.cs src/SQLiteAsync.cs
33

4+
PACKAGES_OUT=PackagesOut
5+
46
all: test nuget
57

68
test: tests/bin/Release/SQLite.Tests.dll tests/ApiDiff/bin/Release/ApiDiff.exe
@@ -14,19 +16,13 @@ tests/bin/Release/SQLite.Tests.dll: tests/SQLite.Tests.csproj $(SRC)
1416
tests/ApiDiff/bin/Release/ApiDiff.exe: tests/ApiDiff/ApiDiff.csproj $(SRC)
1517
msbuild /p:Configuration=Release tests/ApiDiff/ApiDiff.csproj
1618

17-
nuget: srcnuget pclnuget basenuget sqlciphernuget
18-
19-
srcnuget: sqlite-net.nuspec $(SRC)
20-
nuget pack sqlite-net.nuspec
19+
nuget: pclnuget basenuget sqlciphernuget
2120

22-
pclnuget: sqlite-net-pcl.nuspec $(SRC)
23-
msbuild "/p:Configuration=Release" nuget/SQLite-net-std/SQLite-net-std.csproj
24-
nuget pack sqlite-net-pcl.nuspec
21+
pclnuget: nuget/SQLite-net-std/SQLite-net-std.csproj $(SRC)
22+
dotnet pack -c Release -o $(PACKAGES_OUT) $<
2523

26-
basenuget: sqlite-net-pcl.nuspec $(SRC)
27-
msbuild "/p:Configuration=Release" nuget/SQLite-net-base/SQLite-net-base.csproj
28-
nuget pack sqlite-net-base.nuspec
24+
basenuget: nuget/SQLite-net-base/SQLite-net-base.csproj $(SRC)
25+
dotnet pack -c Release -o $(PACKAGES_OUT) $<
2926

30-
sqlciphernuget: sqlite-net-sqlcipher.nuspec $(SRC)
31-
msbuild "/p:Configuration=Release" nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj
32-
nuget pack sqlite-net-sqlcipher.nuspec
27+
sqlciphernuget: nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj $(SRC)
28+
dotnet pack -c Release -o $(PACKAGES_OUT) $<

nuget/SQLite-net-base/SQLite-net-base.csproj

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,38 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>SQLite-net</AssemblyName>
6-
<Version>1.0.0</Version>
7-
<AssemblyTitle>SQLite-net Official .NET Standard Base Library</AssemblyTitle>
8-
<Description>Light weight library providing easy SQLite database storage</Description>
9-
<Company>Krueger Systems, Inc.</Company>
10-
</PropertyGroup>
6+
<PackageId>sqlite-net-base</PackageId>
7+
<AssemblyTitle>SQLite-net .NET Standard Base Library</AssemblyTitle>
8+
<Description>
9+
This is a special version of SQLite-net-pcl that does not include a SQLitePCLRaw bundle.
10+
It is meant to give you all the power of SQLite-net but with the freedom to choose your own provider.
11+
Please use the package sqlite-net-pcl if you have no idea what any of this means.
12+
</Description>
1113

12-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
13-
<DefineConstants>USE_SQLITEPCL_RAW;NO_SQLITEPCL_RAW_BATTERIES;DEBUG</DefineConstants>
14-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
15-
<DocumentationFile>bin\Debug\netstandard2.0\SQLite-net.xml</DocumentationFile>
1614
</PropertyGroup>
15+
1716
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
1817
<DebugSymbols>false</DebugSymbols>
1918
<DebugType></DebugType>
2019
<DefineConstants>USE_SQLITEPCL_RAW;NO_SQLITEPCL_RAW_BATTERIES;RELEASE</DefineConstants>
2120
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2221
<DocumentationFile>bin\Release\netstandard2.0\SQLite-net.xml</DocumentationFile>
2322
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24+
<DefineConstants>USE_SQLITEPCL_RAW;NO_SQLITEPCL_RAW_BATTERIES;DEBUG</DefineConstants>
25+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
26+
<DocumentationFile>bin\Debug\netstandard2.0\SQLite-net.xml</DocumentationFile>
27+
</PropertyGroup>
28+
<ItemGroup>
29+
<PackageReference Include="SQLitePCLRaw.core" Version="2.0.1" />
30+
</ItemGroup>
2431
<ItemGroup>
2532
<Compile Include="..\..\src\SQLite.cs">
2633
<Link>SQLite.cs</Link>
2734
</Compile>
2835
<Compile Include="..\..\src\SQLiteAsync.cs">
2936
<Link>SQLiteAsync.cs</Link>
3037
</Compile>
31-
</ItemGroup>
32-
<ItemGroup>
33-
<PackageReference Include="SQLitePCLRaw.core" Version="2.0.1" />
34-
<PackageReference Include="NuGet.Build.Packaging" Version="0.2.2" />
38+
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" />
3539
</ItemGroup>
3640
</Project>

nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>SQLite-net</AssemblyName>
6-
<Version>1.0.0</Version>
7-
<AssemblyTitle>SQLite-net Official SQLCipher .NET Standard Library</AssemblyTitle>
8-
<Description>Light weight library providing easy SQLite database storage</Description>
9-
<Company>Krueger Systems, Inc.</Company>
6+
<PackageId>sqlite-net-sqlcipher</PackageId>
7+
<AssemblyTitle>SQLite-net SQLCipher .NET Standard 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 SQLitePCLRaw to provide platform independent versions of SQLite with the SQLCipher extension.
11+
This enables secure access to the database with password (key) access.
12+
</Description>
13+
<PackageTags>sqlite-net;sqlite;database;orm;encryption;sqlcipher</PackageTags>
1014
</PropertyGroup>
1115

1216
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -23,7 +27,6 @@
2327
</PropertyGroup>
2428
<ItemGroup>
2529
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.0.1" />
26-
<PackageReference Include="NuGet.Build.Packaging" Version="0.2.2" />
2730
</ItemGroup>
2831
<ItemGroup>
2932
<Compile Include="..\..\src\SQLite.cs">
@@ -32,5 +35,6 @@
3235
<Compile Include="..\..\src\SQLiteAsync.cs">
3336
<Link>SQLiteAsync.cs</Link>
3437
</Compile>
38+
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" />
3539
</ItemGroup>
3640
</Project>

nuget/SQLite-net-std/SQLite-net-std.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>SQLite-net</AssemblyName>
6-
<Version>1.0.0</Version>
6+
<PackageId>sqlite-net-pcl</PackageId>
77
<AssemblyTitle>SQLite-net Official .NET Standard Library</AssemblyTitle>
8-
<Description>Light weight library providing easy SQLite database storage</Description>
9-
<Company>Krueger Systems, Inc.</Company>
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 SQLitePCLRaw to provide platform independent versions of SQLite.
11+
12+
</Description>
13+
1014
</PropertyGroup>
1115

1216
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -23,7 +27,6 @@
2327
</PropertyGroup>
2428
<ItemGroup>
2529
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.0.1" />
26-
<PackageReference Include="NuGet.Build.Packaging" Version="0.2.2" />
2730
</ItemGroup>
2831
<ItemGroup>
2932
<Compile Include="..\..\src\SQLite.cs">
@@ -32,5 +35,6 @@
3235
<Compile Include="..\..\src\SQLiteAsync.cs">
3336
<Link>SQLiteAsync.cs</Link>
3437
</Compile>
38+
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" />
3539
</ItemGroup>
3640
</Project>

sqlite-net-base.nuspec

Lines changed: 0 additions & 64 deletions
This file was deleted.

sqlite-net-pcl.nuspec

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)