Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

Thanks Jozsef

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()"

like image 298
Jozsef Hocza Avatar asked Sep 20 '12 16:09

Jozsef Hocza


1 Answers

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.

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

like image 199
poupou Avatar answered Nov 03 '22 18:11

poupou