Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
jullius cezars #1
Member since Aug 2014 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: System.Xml.Linq.XElement error in Xamarin Studio
Hi, when the compile code is error ocurred:

C:\Users\Developers\Downloads\Example\ContactListAdapter.cs(5,5): Error CS0012: The type 'System.Xml.Linq.XElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes'. (CS0012) (MiniClientDroid)

i'm developing for android.
This post was edited on 2014-08-02, 11:44 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
are you using the correct MatriX build for Xamarin Android?
You can download it from here:
http://www.ag-software.net/download-directory/

when you browse to MatriX => Xamarin Android.

There is also the System.Xml.Linq dll we build MatriX against. This dll must be in your references.
You can also download an Android example from the link above.

Alex
Avatar
jullius cezars #3
Member since Aug 2014 · 4 posts
Group memberships: Members
Show profile · Link to this post
Yes Alex, i did this download. :(
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you have to use the correct dll, and you also have to add the reference to the system.Xml.Linq dll.
Have you done this?
Do you still get the same error message?

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS