In my Unity solution I have two projects, the main one and the editor one. I am creating an editor script and I would like to reference a class I have in the main project.
I've tried adding a namespace in the class I want to reference from the editor but Visual Studio don't detect it in the editor script.
I tried following this post: How can I refer to a project from another one in c#?
However when I try that I get the following error message: "A reference to 'Assembly-CSharp' could not be added. Adding this project as a reference would cause a circular dependency.
Many thanks!