Skip to content

Commit

Permalink
Release 1.3.0 with .NET Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
praeclarum committed Jan 16, 2017
1 parent 1474932 commit 66fedfc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 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.2.1</version>
<version>1.3.0</version>
<authors>Frank A. Krueger</authors>
<owners>Frank A. Krueger</owners>
<licenseUrl>https://raw.githubusercontent.com/praeclarum/sqlite-net/master/LICENSE.md</licenseUrl>
Expand All @@ -12,19 +12,24 @@
<summary>The official portable version of sqlite-net: the easy way to access sqlite from .NET apps.</summary>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>SQLite-net is an open source and light weight library providing easy SQLite database storage for .NET, Mono, and Xamarin applications. This version uses SQLitePCL.raw_basic to provide platform independent versions of SQLite.</description>
<tags>sqlite pcl database orm </tags>
<tags>sqlite pcl database orm mobile</tags>
<releaseNotes>
<![CDATA[
v1.2.1: Update .raw to bundle_green 1.1.0
v1.3.0: Switch to .NET Standard
]]>
</releaseNotes>
<dependencies>
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.0" />
<group>
<dependency id="SQLitePCLRaw.bundle_green" version="1.1.0" />
</group>
<group targetFramework=".NETStandard1.1">

This comment has been minimized.

Copy link
@AArnott

AArnott Jan 16, 2017

By adding this group, NuGet will select that as the most appropriate one and totally ignore your other group, I think.
This seems to be confirmed by the fact that when I upgraded to 1.3.0, it no longer brought in the bundle_green dependency, but it did bring in the NETStandard.Library dependency.
Since your package only claims to support netstandard1.1, you can drop all the groups and just list the two dependencies.
Alternatively if you want to keep the groups (say, to support both older PCL style consumers as well as netstandard) then make sure you repeat the bundle_green dependency in each group.

<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.dll.mdb" 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.dll.mdb" target="lib/netstandard1.1" />
<file src="nuget/SQLite-net/bin/Release/SQLite-net.xml" target="lib/netstandard1.1" />

This comment has been minimized.

Copy link
@AArnott

AArnott Jan 16, 2017

This works for me, because I'm using a netstandard-aware version of VS and nuget. But you are dropping support for older consumers in the process. If you keep the old lines and simply add these new ones, then your package will support both older and newer styles.

This comment has been minimized.

Copy link
@praeclarum

praeclarum Jan 16, 2017

Author Owner

Thanks for the details! Fixing now!

</files>
</package>

0 comments on commit 66fedfc

Please sign in to comment.