I created a new Windows Application solution to test the custom component
and added the project containing the custom component to the tester project.
So, I have this in my Visual Studio Solution Explorer:
Solution
Custom Component Project
Properties
References
All other project source files
Custom Component Tester Project (this is the startup project)
Properties
References
Form1.cs
Program.cs
Once the project for the custom component was added to the tester solution,
the component showed up in the toolbox so I could drag it to the form of the
tester application and interact with it.
Now, my custom component contains a collection for which I am developing a
custom collection editor. When I first compiled the entire solution and
worked with the collection through the collection editor, my custom
collection editor seemed to work fine. So, now I go make changes to my
custom collection editor and rebuild the entire solution. I delete the
component from the previous build off of the tester form and drag a new one
from the toolbox onto the tester form. As I work with the collection, I
find that none of the changes that I just made to the custom collection
editor are there. So I clean the solution, delete all files associated with
the custom collection editor except the actual source code, rebuild the
entire solution, and try again. Same result. None of the changes seem to
be there.
I have been trying to fix this for about an hour now and I don't know what
is wrong. Where could Visual Studio possibly be pulling the code from
previous versions of my collection editor from? I've deleted all traces of
the changes made before. I've cleaned the solution. I've recreated the
entire solution and the code for the custom collection editor but nothing
seems to work. Visual Studio is somehow stuck on the very first version of
the collection editor that I created and no matter what I do, it won't
compile in the newest changes I've made.
I am completely frustrated and fed up with this crap and really need some
help. Can anyone help?
Well, I figured this one out myself. I have to close Visual Studio
completely and re-open for the changes to my custom collection editor
to take effect. Simply closing the solution and re-opening is not
sufficient. Even re-creating the solution does not work as long as
Visual Studio hasn't been closed after changes to the custom
collection editor were made.
Extremely annoying little quirk of the IDE.