I am having some trouble debugging a project that is set up to be Registered
as COM Interop. I will try to explain the problem here:
If I add some code to the project, to for example the xxx.cs source file,
when I compile it seems to go okay, no errors or warnings, but when I try to
debug the project afterwards it acts as if it has not compiled the newly
added code, and it has NOT either, it is jumping over code lines and showing
inconsistency between my code lines, and if I add code like
Debug.WriteLine("something"); the text does not show up in my output window
when that code is executed. To me it looks as though it uses the source code
for a compilation a while back, and that more than confirmed my thought when
I tried to move the project to another location on my disk, and compiled
again. Before doing this I had unregistered the assembly in the first
location by using the regasm utility. After the first compilation after
moving the project to another physical location on the disk, it compiled my
new code, then I tried to add some more code to the project in the second
location, now the source file which I just added some new code to are again
unsynchronized. Now I went back to the first location after manually
unregistering the assemblies in the second location, when I now try to debug
the code in the first location it is actually retrieving the file from the
second location.
Regards,
Kenneth Myrha