In a Unity 4.1 project, I would like to have all my C# scripts in DLLs. Unity creates a Visual Studio project and I'm able to compile the code correctly. The compilation produces the DLL but Unity does not recognize all classes, just those that inherit MonoBehaviour. All classes are public and Unity is Pro. How can I make Unity 'see' all classes?
I tried compiling with Mono 2.8, it built the DLL. All the classes seem to be there, but nothing works and I get these errors:
ApplicationException: Unable to find a suitable compiler
UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island, Boolean buildingForEditor, BuildTarget targetPlatform) (at
C:/BuildAgent/work/7535de4ca26c26ac/Editor/Mono/Scripting/ScriptCompilers.cs:99)
and
Failed to create compiler instance