Sometimes, VS wont let me do edit and continue, and it turns out it’s because my project Eric.Controls has a reference to Eric.Controls. It’s a project reference, which I never added. Steps to reproduce are inconsistent, but generally, i think it happens when I use the designer and add a control from a different project which I reference.
This occasionally also causes me to be unable to compile at all until I restart Visual Studio which has the target executable locked.
First of all, why would VS even allow a project to reference itself?
Any ideas?
I’m happy to answer any questions which could lead to an answer.
Found the answer!
If you use solution folders, and you have your project that contains the control in a solution folder, when you drag a control from the toolbox on, it adds the reference to that library.
Solution: don’t put control libraries in solution folders.