Spatialite.Core 1.0.3

dotnet add package Spatialite.Core --version 1.0.3                
NuGet\Install-Package Spatialite.Core -Version 1.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spatialite.Core" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spatialite.Core --version 1.0.3                
#r "nuget: Spatialite.Core, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Spatialite.Core as a Cake Addin
#addin nuget:?package=Spatialite.Core&version=1.0.3

// Install Spatialite.Core as a Cake Tool
#tool nuget:?package=Spatialite.Core&version=1.0.3                

Spatialite.Core

简介

Spatialite.Core 是一个为 .NET 项目提供 Spatialite 支持的 NuGet 包。此包包括 Spatialite 的 x86 和 x64 版本,并根据目标项目的平台自动选择适当的版本。

功能

  • 自动平台检测:自动选择并使用适当版本的 Spatialite,基于引用项目的目标平台(x86 或 x64)。
  • 无需手动配置:所有必要的文件会在构建过程中自动复制到正确的位置。

安装

通过 NuGet Package Manager 或 NuGet CLI 安装:

Install-Package Spatialite.Core

或使用 .NET CLI:

dotnet add package Spatialite.Core

使用

安装 Spatialite.Core 后,在项目启动时调用 SpatialiteUtil.InitSpatialite() 方法以初始化和配置 Spatialite:

SpatialiteUtil.InitSpatialite();

这将确保所有必要的 Spatialite 文件根据项目的目标平台被复制到项目根目录。

测试 Spatialite.Core

在项目中,您可以通过以下方式测试 Spatialite.Core 的功能:

TestSpatialite();

该测试方法会尝试打开一个 SQLite 连接,并加载 mod_spatialite 扩展。如果一切正常,测试将通过,否则会显示异常信息。

支持和贡献

遇到问题或有改进建议,请通过 GitHub Issues 提交。

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 310 12/14/2023
1.0.2 221 12/14/2023
1.0.1 166 12/14/2023
1.0.0 181 12/14/2023