Visual Studio Community for Mac, how do you reference DLL inside Unity.app

This sounds crazy easy, but it isn’t: I can’t “Show Package Contents” like I normally do in the Finder.

3384274--265824--Screen Shot 2018-02-08 at 15.16.47.png

Do people just copy DLL out of Unity.app and call it a day? How else could I add Unity assemblies?

(I want to compile a DLL library separately from my main Unity code. And I can’t find a way to compile a single file to DLL within my Unity codebase)

So far the best solution: symbolic link.

ln -s /Applications/Unity/Unity.app/Contents/Managed/UnityEngine.dll ~/somewhere/UnityEngine.dll

1 Like

According to an entry on StackOverflow (c# - How to add reference to assembly in visual studio mac? - Stack Overflow) you double click the References folder.

@bitinn Don’t know if anyone else is trying to figure this out, but out of curiosity I selected ‘Quick Look’ from the menu and the “Contents” folder in Unity 2021.1.15f1 package appeared in the Browse finder. I was able to navigate into the Package Contents then.