“System.ComponentModel.DataAnnotations.dll”可用于Android和iOS?可用于、DataAnnotations、System、ComponentModel

2023-09-04 02:38:36 作者:欲将心事藏

我得到了附加的错误消息,当试图编译VelocityDB为Android。正如VelocityDB支持表示,真正需要的数据的注解。

I got the the attached error message when tried to compile VelocityDB for android. As VelocityDB support said it really needs the data annotations.

时所提到的System.ComponentModel.DataAnnotations.dll可用于Android和iOS?

Is the referred 'System.ComponentModel.DataAnnotations.dll' available for Android and iOS?

感谢约瑟夫

错误信息: 错误1异常,而装载程序集的信息:System.IO.FileNotFoundException:无法加载程序集System.ComponentModel.DataAnnotations,版本= 4.0.0.0,文化=中性公钥= 31bf3856ad364e35也许它在单不存在。 Android的个人资料? 文件名:System.ComponentModel.DataAnnotations.dll    在Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference参考,ReaderParameters参数)    在Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1组件,AssemblyDefinition组装)    在Xamarin.Android.Tasks.ResolveAssemblies.Execute()

Error message: "Error 1 Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Perhaps it doesn't exist in the Mono for Android profile? File name: 'System.ComponentModel.DataAnnotations.dll' at Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly) at Xamarin.Android.Tasks.ResolveAssemblies.Execute()"

推荐答案

Xamarin.iOS 6.4.x(稳定),喜欢的6.3.x的测试版,是基于单声道3.0和船舶与系统。 ComponentModel.DataAnnotations.dll

Xamarin.iOS 6.4.x (stable), like the 6.3.x betas, is based on Mono 3.0 and ships with System.ComponentModel.DataAnnotations.dll.

也是如此对于Xamarin.Android的最新版本。

The same is true for the latest versions of Xamarin.Android.

 
精彩推荐
图片推荐