Issue with Shared Libraries and DLLs

Hey,

I’m in a bit of a pickle. I’m currently working on scripting up some custom modules for a unity asset GameCreator.

I have chosen to create this module as a DLL. The only issue is I need to access class info from the GameCrator unity asset. Creators of GameCreator have not chosen to make DLLs so I can not simply target the DLL and get building.

So I tried adding a reference to the unity project, now I can reference classes inside unity but I cant build.
I get the below error in VisualStudio when building library, looking in the directory no DLLs exist, only cache files.

Metadata file 'E:\GameCreatorModule(RTS)\Temp\bin\Debug\Assembly-CSharp-Editor-firstpass.dll' could not be found
Metadata file 'E:\GameCreatorModule(RTS)\Temp\bin\Debug\Assembly-CSharp-irstpass.dll' could not be found
Metadata file 'E:\GameCreatorModule(RTS)\Temp\bin\Debug\Assembly-CSharp.dll' could not be found
Metadata file 'E:\GameCreatorModule(RTS)\Temp\bin\Debug\GameCreator.Update.dll' could not be found

If I cant make a library in this kind of situation, I’ll just have to create the scripts inside the unity project. Though I wanted to protect my code, as I’ll be putting up online.

Any help would be really appreciated :smile:

I just stripped the parts I cant reference atm. I built my library in VS, now Unity cant build the project. I get this error

ArgumentException: The Assembly UnityEditor is referenced by GameCreator.CustomModules.RTS ('Assets/Plugins/GameCreatorModules/RTS/GameCreator.CustomModules.RTS.dll'). But the dll is not allowed to be included or could not be found.........................

I have built libraries for Unity before. Though this is the first time trying to integrate code with UnityEngine/Editor and other components. Not going so good :frowning: