I was hoping that I could make use of DLLs to leverage the features of namespaces so that I can organise my codes and to facilitate distribution of code within team mates.
What I have done is this: I write the classes in an independent C# project. The classes include standalone classes and those that inherit from MonoBehaviour. I then compile the classes into DLL and copy them into Unity Project.
But it turns out that whenever I change something to the classes in the DLL, I need to re-compile and replace the DLL. Sometimes, the GameObjects may even loose reference to its scripts!
It also hinders my debugging process because now the errors within the DLL don’t show up. This becomes a massive hell in my workflow.
How can I improve on this so that I don’t have to always recompile my DLL file and replace the existing one?