Problems building facebook SDK with mono develop

Hi everyone,

Although happening with Facebook SDK, this might be related to the way Unity works with projects.
I am quite new to Unity so I probably miss some information.

I recently got the Facebook SDK for Unity from there : https://developers.facebook.com/unity/change-log-3.x/

I imported the package into my project, and now I cannot compile from mono develop anymore ( although running my project directly from unity editor seems fine )

The errors I get are “UnityEngine.ScriptableObjet” and “UnityEngine.MonoBehavior” are defined in an assembly that is not referenced.
However I do have UnityEngine.dll ( from Data/Managed ) in the References for my Assembly-CSharp project…

Did anyone encounter the same problem ?
Any idea what the reason could be / how I can solve it ?

Thanks a lot !

More informations after a bit more digging around :

  • UnityEngine.dll during decompilation in monodevelop shows an error about Mono.Security that cannot be loaded ( although versions of the dll and the expected assembly are the same…).
  • UnityEditor.dll during decompilation in monodevelop shows errors about not being able to load ICSharpCode.NRefactory nunit.framework, Mono.Cecil ( expected version is 0.9.5 but my dll is 0.9.4 ) and UnityEngine.
  • IFacebook.dll during decompilation in monodevelop shows error about not being able to load UnityEngine…
    Although the UnityEngine.dll is there…

Adding Mono.Security.dll in the list of references doesnt seem to fix the problem.

After some time spent looking around it seems that unchecking the “build project in monodevelop” in Tools->Unity->Debugger menu will work around the problem.
Unity Editor will build the project itself anyway upon launch for debugging. And that build works as expected.
Which means I can now debug while having Facebook SDK installed.
Hope this helps.

hey friend it seem to work for me too thanks