Recently I learned about shared projects and how I can separate large chunks of my code (ie: all my UI controls) into another area to clean my up main code without adding a dll to my execution path. AMAZING, except it only partially works.
If I move code from my main project into the shared and change the namespace (to the shared one), things still work. But when I create a new file directly in the shared project, ONLY that file is able to see itself.
It's only after closing VS multiple times, re-compiling, removing the shared project, sacrificing a chicken then maybe class is finally seen. MAJOR waste of time with not lessons learned.
What is the fast route to getting my new file seen while still using shared projects?
== Steps to reproduce
Create a new project (WinForms, in this case)
Create a shared project in the main project + add reference in main project
- Note, the shared project is in a sub-folder of the parent project, to keep things organized
- Create a class in shared project and try to use it in the min project