Skip to content

Commit

Permalink
Merge pull request #588 from praeclarum/std2
Browse files Browse the repository at this point in the history
Improve .NET Standard nuget
  • Loading branch information
praeclarum authored Jul 27, 2017
2 parents 9be9171 + 27fa298 commit 6762233
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 25 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@


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

all: test nuget

test: tests/bin/Debug/SQLite.Tests.dll
nunit-console tests/bin/Debug/SQLite.Tests.dll

tests/bin/Debug/SQLite.Tests.dll: tests/SQLite.Tests.csproj src/SQLite.cs src/SQLiteAsync.cs
xbuild tests/SQLite.Tests.csproj
tests/bin/Debug/SQLite.Tests.dll: tests/SQLite.Tests.csproj $(SRC)
msbuild tests/SQLite.Tests.csproj

nuget: srcnuget pclnuget

srcnuget: src/SQLite.cs src/SQLiteAsync.cs sqlite-net.nuspec
packages: nuget/SQLite-net/packages.config
nuget restore SQLite.sln

srcnuget: sqlite-net.nuspec $(SRC)
nuget pack sqlite-net.nuspec

pclnuget: src/SQLite.cs src/SQLiteAsync.cs
nuget restore SQLite.sln
'/Applications/Xamarin Studio.app/Contents/MacOS/mdtool' build '-c:Release|iPhone' SQLite.sln -p:SQLite-net
pclnuget: sqlite-net-pcl.nuspec packages $(SRC)
msbuild "/p:Configuration=Release" nuget/SQLite-net/SQLite-net.csproj
msbuild "/p:Configuration=Release" nuget/SQLite-net-std/SQLite-net-std.csproj
nuget pack sqlite-net-pcl.nuspec -o .\

14 changes: 14 additions & 0 deletions SQLite.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{FECC0E44
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite.Tests.iOS", "tests\SQLite.Tests.iOS\SQLite.Tests.iOS.csproj", "{81850129-71C3-40C7-A48B-AA5D2C2E365E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite-net-std", "nuget\SQLite-net-std\SQLite-net-std.csproj", "{081D08D6-10F1-431B-88FE-469FD9FE898C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -62,6 +64,18 @@ Global
{81850129-71C3-40C7-A48B-AA5D2C2E365E}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{81850129-71C3-40C7-A48B-AA5D2C2E365E}.Debug|iPhone.ActiveCfg = Debug|iPhone
{81850129-71C3-40C7-A48B-AA5D2C2E365E}.Debug|iPhone.Build.0 = Debug|iPhone
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Release|Any CPU.Build.0 = Release|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Release|iPhone.ActiveCfg = Release|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Release|iPhone.Build.0 = Release|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{081D08D6-10F1-431B-88FE-469FD9FE898C}.Debug|iPhone.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6947A8F1-99BE-4DD1-AD4D-D89425CE67A2} = {FECC0E44-E626-49CB-BD8B-0CFBD93FBEFF}
Expand Down
28 changes: 28 additions & 0 deletions nuget/SQLite-net-std/SQLite-net-std.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.1</TargetFramework>
<AssemblyName>SQLite-net</AssemblyName>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<DefineConstants>TRACE;USE_SQLITEPCL_RAW;RELEASE;NETSTANDARD1_1</DefineConstants>
<DocumentationFile>bin\Release\netstandard1.1\SQLite-net.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DefineConstants>TRACE;USE_SQLITEPCL_RAW;DEBUG;NETSTANDARD1_1</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="1.1.5" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\src\SQLite.cs">
<Link>SQLite.cs</Link>
</Compile>
<Compile Include="..\..\src\SQLiteAsync.cs">
<Link>SQLiteAsync.cs</Link>
</Compile>
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions nuget/SQLite-net/SQLite-net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;USE_SQLITEPCL_RAW USE_NEW_REFLECTION_API NO_CONCURRENT</DefineConstants>
<DefineConstants>TRACE;DEBUG;USE_SQLITEPCL_RAW;NO_CONCURRENT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DocumentationFile>bin\Debug\SQLite-net.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType></DebugType>
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;USE_SQLITEPCL_RAW USE_NEW_REFLECTION_API NO_CONCURRENT</DefineConstants>
<DefineConstants>TRACE;USE_SQLITEPCL_RAW;NO_CONCURRENT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
51 changes: 40 additions & 11 deletions sqlite-net-pcl.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<version>1.3.4</version>
<version>1.4.0</version>
<authors>Frank A. Krueger</authors>
<owners>Frank A. Krueger</owners>
<licenseUrl>https://raw.github.com/praeclarum/sqlite-net/master/LICENSE.md</licenseUrl>
Expand All @@ -15,25 +15,54 @@
<tags>sqlite pcl database orm mobile</tags>
<releaseNotes>
<![CDATA[
v1.3.4: Fix reading and writing nullable enums
v1.4: Improve .NET Standard Support
]]>
</releaseNotes>
<dependencies>
<group>
<group targetFramework="net">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework=".NETStandard1.1">
<group targetFramework="win">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="wp">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="wpa">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="netstandard1.1">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
<dependency id="NETStandard.Library" version="1.6.1" />
</group>
<group targetFramework="MonoAndroid10">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="Xamarin.iOS10">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="Xamarin.Mac20">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="portable-net45+win+wpa81+wp80">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="uap">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="dotnet">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="xamarintvos">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
</group>
<group targetFramework="xamarinwatchos">
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.5" />
<dependency id="NETStandard.Library" version="1.6.0" />
</group>
</dependencies>
</metadata>
<files>
<file src="nuget/SQLite-net/bin/Release/SQLite-net.dll" target="lib/portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.pdb" target="lib/portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.xml" target="lib/portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.dll" target="lib/netstandard1.1" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.pdb" target="lib/netstandard1.1" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.xml" target="lib/netstandard1.1" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.*" target="lib/portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
<file src="nuget/SQLite-net-std/bin/Release/netstandard1.1/SQLite-net.*" target="lib/netstandard1.1" />
</files>
</package>
2 changes: 1 addition & 1 deletion sqlite-net.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<version>1.3.4</version>
<version>1.4.0</version>
<authors>Frank Krueger</authors>
<owners>Frank Krueger,Tim Heuer</owners>
<licenseUrl>https://raw.github.com/praeclarum/sqlite-net/master/LICENSE.md</licenseUrl>
Expand Down
6 changes: 3 additions & 3 deletions src/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Krueger Systems, Inc.")]
[assembly: AssemblyProduct("SQLite-net")]
[assembly: AssemblyCopyright("Copyright © 2009-2016 Krueger Systems, Inc.")]
[assembly: AssemblyCopyright("Copyright © 2009-2017 Krueger Systems, Inc.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
Expand All @@ -26,5 +26,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]

0 comments on commit 6762233

Please sign in to comment.