我已经开始用Xamarin表单构建一个应用程序。
我已经将Xamarin表单版本更新为"5.0.0.2337",安装了Xamarin.Essentials和sqlite-net-pcl。
我的问题是:我不知道为什么我有警告说
/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved.
There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
"System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll].
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll
Project file item includes which caused reference "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll".
System.Numerics.Vectors
References which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
/Users/k/.nuget/packages/system.memory/4.5.3/lib/netstandard2.0/System.Memory.dll
Project file item includes which caused reference "/Users/k/.nuget/packages/system.memory/4.5.3/lib/netstandard2.0/System.Memory.dll".
/Users/k/.nuget/packages/system.memory/4.5.3/lib/netstandard2.0/System.Memory.dll
/Users/k/.nuget/packages/sqlite-net-pcl/1.8.116/lib/netstandard2.0/SQLite-net.dll
/Users/k/Documents/Entreprise /MyApps/lf/lfwd/lfwd/bin/Debug/netstandard2.0/lfwd.dll
/Users/k/.nuget/packages/sqlitepclraw.core/2.0.4/lib/netstandard2.0/SQLitePCLRaw.core.dll
/Users/k/.nuget/packages/sqlitepclraw.bundle_green/2.0.4/lib/Xamarin.iOS10/SQLitePCLRaw.batteries_v2.dll
/Users/k/.nuget/packages/sqlitepclraw.provider.dynamic_cdecl/2.0.4/lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll (MSB3277) (lfwd.iOS)
我曾找过一些论坛,但没有成功。
预先感谢你的帮助
2条答案
按热度按时间1yjd4xko1#
我在VS 2019中遇到了同样的问题。我确认,回滚帮助了我。它帮助了我这样:卡马林.基本要素1.6.0卡马林.表单5.0.0.1905 sqlite-net-pcl 1.5.231
kx5bkwkv2#
如日志所示,该警告是由引用System.Numerics.Vectors的不同版本引起的。
刚开始是xamarin. ios框架的版本太低,可以按照官方文件更新。
链接:https://learn.microsoft.com/en-us/xamarin/ios/platform/embedded-frameworks?tabs=windows
另外,你也可以使用较低版本的xamarin表单和sqlite-net-pcl nuget包。
最后,如果你的visual studio版本不是2022,你可以将其更新到最新版本,这样可以解决包的版本冲突。