- Home /
Best way to build a Mono assembly?
I'm building an external Mono assembly. It works fine, but when it builds it copies UnityEngine.dll to the target folder. Is there a way to avoid that? I'd like to build right into my Plugins folder if that's possible, but not wild about having to delete this DLL every time. Thanks in advance.
I didn't find a solution for that, so I created a .bat besides my dll to copy it every time I build it. Not perfect but it saves me a bit of time.
Answer by DaveA · May 17, 2012 at 06:49 AM
With 3.5.2 you have an API which is a callback function OnPostBuild PostProcessBuildAttribute.html so you can implement that and do whatever you need to if you don't mind implementing the system calls. Not sure if you can launch a .bat but maybe. Anyway, now you know when a build is finished, so give that a try.