System.Data.SQLite
Check-in [87d746055b]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Modify the primary NuGet package to make it 'universal' (i.e. applicable to x86/x64 as well as .NET 2.0/4.0) using a custom 'install.ps1' PowerShell script in combination with the native library pre-loading code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 87d746055b874734a153fcfbcfd5d769efe65a7e
User & Date: mistachkin 2012-06-24 17:19:36
Context
2012-06-24
17:22
Update primary NuGet package title. check-in: 2603845fa0 user: mistachkin tags: trunk
17:19
Modify the primary NuGet package to make it 'universal' (i.e. applicable to x86/x64 as well as .NET 2.0/4.0) using a custom 'install.ps1' PowerShell script in combination with the native library pre-loading code. check-in: 87d746055b user: mistachkin tags: trunk
2012-06-23
10:03
Update version history docs with the latest changes. check-in: c8a4c16534 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to SQLite.MSIL.nuspec.

     1      1   <?xml version="1.0" encoding="utf-8"?>
            2  +<!--
            3  + *
            4  + * SQLite.MSIL.nuspec -
            5  + *
            6  + * Written by Joe Mistachkin.
            7  + * Released to the public domain, use at your own risk!
            8  + *
            9  +-->
     2     10   <package>
     3     11     <metadata>
     4     12       <id>System.Data.SQLite.MSIL</id>
     5     13       <version>1.0.82.0</version>
     6     14       <authors>SQLite Development Team</authors>
     7     15       <description>An ADO.NET provider for SQLite (managed-only).</description>
     8     16       <language>en-US</language>

Changes to SQLite.nuspec.

     1      1   <?xml version="1.0" encoding="utf-8"?>
            2  +<!--
            3  + *
            4  + * SQLite.nuspec -
            5  + *
            6  + * Written by Joe Mistachkin.
            7  + * Released to the public domain, use at your own risk!
            8  + *
            9  +-->
     2     10   <package>
     3     11     <metadata>
     4     12       <id>System.Data.SQLite</id>
     5     13       <title>System.Data.SQLite (x86)</title>
     6     14       <version>1.0.82.0</version>
     7     15       <authors>SQLite Development Team</authors>
     8     16       <description>The official SQLite database engine combined with a complete ADO.NET provider all rolled into a single mixed-mode assembly for x86.</description>
................................................................................
    10     18       <projectUrl>http://system.data.sqlite.org/</projectUrl>
    11     19       <iconUrl>http://system.data.sqlite.org/images/sqlite32.png</iconUrl>
    12     20       <licenseUrl>http://www.sqlite.org/copyright.html</licenseUrl>
    13     21       <tags>sqlite database ado.net provider interop</tags>
    14     22       <copyright>Public Domain</copyright>
    15     23     </metadata>
    16     24     <files>
    17         -    <file src="bin\2008\Win32\ReleaseStatic\System.Data.SQLite.dll" target="lib\net20" />
    18         -    <file src="bin\2010\Win32\ReleaseStatic\System.Data.SQLite.dll" target="lib\net40" />
           25  +    <file src="bin\2008\Release\bin\System.Data.SQLite.dll" target="lib\net20" />
           26  +    <file src="bin\2010\Release\bin\System.Data.SQLite.dll" target="lib\net40" />
    19     27       <file src="bin\2008\Release\bin\System.Data.SQLite.Linq.dll" target="lib\net20" />
    20     28       <file src="bin\2010\Release\bin\System.Data.SQLite.Linq.dll" target="lib\net40" />
           29  +    <file src="bin\2008\Win32\ReleaseNativeOnlyStatic\SQLite.Interop.dll" target="content\net20\x86" />
           30  +    <file src="bin\2008\x64\ReleaseNativeOnlyStatic\SQLite.Interop.dll" target="content\net20\x64" />
           31  +    <file src="bin\2010\Win32\ReleaseNativeOnlyStatic\SQLite.Interop.dll" target="content\net40\x86" />
           32  +    <file src="bin\2010\x64\ReleaseNativeOnlyStatic\SQLite.Interop.dll" target="content\net40\x64" />
           33  +    <file src="install.ps1" target="tools\install.ps1" />
    21     34     </files>
    22     35   </package>

Changes to SQLite.x64.nuspec.

     1      1   <?xml version="1.0" encoding="utf-8"?>
            2  +<!--
            3  + *
            4  + * SQLite.x64.nuspec -
            5  + *
            6  + * Written by Joe Mistachkin.
            7  + * Released to the public domain, use at your own risk!
            8  + *
            9  +-->
     2     10   <package>
     3     11     <metadata>
     4     12       <id>System.Data.SQLite.x64</id>
     5     13       <version>1.0.82.0</version>
     6     14       <authors>SQLite Development Team</authors>
     7     15       <description>The official SQLite database engine combined with a complete ADO.NET provider all rolled into a single mixed-mode assembly for x64.</description>
     8     16       <language>en-US</language>

Changes to SQLite.x86.nuspec.

     1      1   <?xml version="1.0" encoding="utf-8"?>
            2  +<!--
            3  + *
            4  + * SQLite.x86.nuspec -
            5  + *
            6  + * Written by Joe Mistachkin.
            7  + * Released to the public domain, use at your own risk!
            8  + *
            9  +-->
     2     10   <package>
     3     11     <metadata>
     4     12       <id>System.Data.SQLite.x86</id>
     5     13       <version>1.0.82.0</version>
     6     14       <authors>SQLite Development Team</authors>
     7     15       <description>The official SQLite database engine combined with a complete ADO.NET provider all rolled into a single mixed-mode assembly for x86.</description>
     8     16       <language>en-US</language>

Added install.ps1.

            1  +###############################################################################
            2  +#
            3  +# install.ps1 --
            4  +#
            5  +# Written by Joe Mistachkin.
            6  +# Released to the public domain, use at your own risk!
            7  +#
            8  +###############################################################################
            9  +
           10  +param($installPath, $toolsPath, $package, $project)
           11  +
           12  +$platformNames = "x86", "x64"
           13  +$fileName = "SQLite.Interop.dll"
           14  +$propertyName = "CopyToOutputDirectory"
           15  +
           16  +foreach($platformName in $platformNames) {
           17  +  $folder = $project.ProjectItems.Item($platformName)
           18  +
           19  +  if ($folder -eq $null) {
           20  +    continue
           21  +  }
           22  +
           23  +  $item = $folder.ProjectItems.Item($fileName)
           24  +
           25  +  if ($item -eq $null) {
           26  +    continue
           27  +  }
           28  +
           29  +  $property = $item.Properties.Item($propertyName)
           30  +
           31  +  if ($property -eq $null) {
           32  +    continue
           33  +  }
           34  +
           35  +  $property.Value = 1
           36  +}