Build dll for Unity3d using Visual studio for mac

Hi all,

I want to build a .dll that have my custom debug logger.
I followed this link: http://blog.ctrlxctrlv.net/en/unity-build-dll/

After I successfully add UnityEngine.dll into my project, it will show something like ‘It can’t find Debug under UnityEngine namespace’.

Add reference:
[139194-螢幕快照-2019-05-31-下午35039.png|139194]

The Error:
[139195-螢幕快照-2019-05-31-下午35053.png|139195]

Did I miss any instructions?
I’m using
Visual Studio for mac 8.0.9 and
Unity 2018.4.0f1

Are you sure you added the correct UnityEngine.dll reference? It’s the one in the “Editor/Data/Managed” subfolder, not the one in the “Editor/Data/Managed/ UnityEngine” subfolder as this seems to be a modularized version of the whole dll which you can directly tell from the size difference.

I don’t have the latest Unity version so maybe the location has changed (which i doubt, though).