SQLite Forum

Building System.Data.SQLite and SEE
Login

Building System.Data.SQLite and SEE

(1) By Brian Heilig (brian.heilig) on 2020-03-24 17:35:44 [source]

I could use some help building the most recent release build of SDS and SEE. Here's what I've done so far:

MKDIR repositories
CD repositories
..\bin\fossil.exe clone https://system.data.sqlite.org/ sds.fossil
CD ..
MKDIR dotnet
CD dotnet
..\bin\fossil.exe open ..\repositories\sds.fossil
..\bin\fossil.exe update release
CD repositories
..\bin\fossil.exe clone https://zazza%40healthineers.com@sqlite.org/see see.fossil
CD ..
MKDIR see
CD see
..\bin\fossil.exe open ..\repositories\see.fossil
..\bin\fossil.exe update release

I'd like to target .NET 4.7.2. I created SQLite.NET.Settings.targets.user in dotnetTargets with the following contents:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
  </PropertyGroup>
</Project>

Then

cd SEE
..\dotnet\Externals\Eagle\bin\netFramework40\EagleShell.exe -file buildSds.eagle "" "" msil 2017

I received the following error:

Project "C:\Users\brian\Documents\SQLite2\dotnet\SQLite.NET.2017.MSBuild.sln" (1) is building "C:\Users\brian\Documents
\SQLite2\dotnet\System.Data.SQLite\System.Data.SQLite.NetStandard20.csproj" (3) on node 1 (Rebuild target(s)).
C:\Program Files\dotnet\sdk\2.2.106\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(150,5
): error NETSDK1045: The current .NET SDK does not support targeting .NET Standard 4.7.2.  Either target .NET Standard
2.0 or lower, or use a version of the .NET SDK that supports .NET Standard 4.7.2. [C:\Users\brian\Documents\SQLite2\dot
net\System.Data.SQLite\System.Data.SQLite.NetStandard20.csproj]

I'd like to build against both .NET 4.7.2 and .NET Standard 2.1. I haven't gone through the build instructions yet because I believe they are outdated. If those are the official instructions I can try that.