作者:0只0为0等0你0 | 来源:互联网 | 2023-02-11 21:46
我正在尝试将我的项目从SQLite.Net-PCL转换为sqlite-net-pcl(最新的稳定版本; 1.3.1),正如它在Xamarin处理数据库时说的那样,但是当我安装它时,它必须安装40个软件包(左右)如下所列
Microsoft.NETCore.Platforms 1.0.1
Microsoft.NETCore.Targets 1.0.1
runtime.native.System 4.0.0
SQLitePCLRaw.core 1.1.2
SQLitePCLRaw.bundle_green 1.1.2
System.Collections 4.0.11
System.Collections.Concurrent 4.0.12
System.Diagnostics.Debug 4.0.11
System.Diagnostics.Tools 4.0.1
System.Diagnostics.Tracing 4.1.0
System.Globalization 4.0.11
System.IO 4.1.0
System.IO.Compression 4.1.0
System.Linq 4.1.0
System.Linq.Expressions 4.1.0
System.Net.Http 4.1.0
System.Net.Primitives 4.0.11
System.ObjectModel 4.0.12
System.Reflection 4.1.0
System.Reflection.Extensions 4.0.1
System.Reflection.Primitives 4.0.1
System.Resources.ResourceManager 4.0.1
System.Runtime 4.1.0
System.Runtime.Extensions 4.1.0
System.Runtime.InteropServices 4.1.0
System.Runtime.Numerics 4.0.1
System.Text.Encoding 4.0.11
System.Text.Encoding.Extensions 4.0.11
System.Text.RegularExpressions 4.1.0
System.Threading 4.0.11
System.Runtime.InteropServices.RuntimeInformation 4.0.0
System.Threading.Tasks 4.0.11
System.Xml.ReaderWriter 4.0.11
System.Xml.XDocument 4.0.11
NETStandard.Library 1.6.0
sqlite-net-pcl 1.3.1
我知道它需要一些软件包,但对我来说似乎有很多软件包.我正在使用Xamarin.Forms版本2.3.3.180(最新的稳定版)
如果我继续安装,会发生这样的错误
Could not install package 'System.Runtime.InteropServices.RuntimeInformation 4.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
如何安装sqlite-net-pcl,以便继续在Android N上使用SQLite?
现在我有这些目标
.NET Framework 4.5
Windows 8
ASP.NET Core 1.0 (I do not know why this is set)
Windows Phone 8.1 (I am not using this, but it says I have to reinstall all Nuget packages, if I want to remove it)
Xamarin.Android
Xamarin.iOS
Xamarin.iOS (Classic)
Xamarin.Mac (neither using this)
我是否必须删除目标,我没有使用并重新安装所有Nuget包?
我正在使用这些NuGet包
Acr.UserDialogs
ExifLib.PCL
Microsoft.NETCore.UniversalWindowsPlatform
MR.Gestures
Newtonsoft.Json
Xam.Plugin.Media
Xam.Plugins.Settings
Xamarin.Forms
Xamarin.Insights
Xamarin.UITest
XLabs.Forms
ZXing.Net.Mobile.Forms
Iain Smith..
7
您已安装.NetStandard版本
发行说明v1.3.1:
切换到.NET标准
如您所见
NETStandard.Library 1.6.0
,现在已添加为包.
我会删除sqlite-net-pcl 1.3.1以及为.NetStandard安装的其他软件包然后使用v1.2.1,
因为它仍然有Android N的修复,因为它从这里添加了bundle_green
v1.2.1:将.raw更新到bundle_green 1.1.0
你可以在这里阅读更多关于修复的内容
1> Iain Smith..:
您已安装.NetStandard版本
发行说明v1.3.1:
切换到.NET标准
如您所见
NETStandard.Library 1.6.0
,现在已添加为包.
我会删除sqlite-net-pcl 1.3.1以及为.NetStandard安装的其他软件包然后使用v1.2.1,
因为它仍然有Android N的修复,因为它从这里添加了bundle_green
v1.2.1:将.raw更新到bundle_green 1.1.0
你可以在这里阅读更多关于修复的内容