Old IDE behavior -- classes/modules coming back to life??

R

Rob R. Ainscough

I think I've found what appears to be a pretty significant bug in VS.NET
2003.

I deleted a module from my Project, and got the message "mymodule.vb will be
deleted permanently" -- hit Ok. Bring up explorer to verify the file is
physically removed -- yes, file is gone. So now I "add existing module..."
and point to mymodule.vb that is located in a different directory (the
mymodule.vb has the same name as my old module but contains different source
code). So, I know open up mymodule.vb and what I get is the OLD module that
was "permanently" deleted ?? AND, somehow the mymodule.vb is now residing
in my Project dir?

This is really bizarre behavior -- anyone else notice this?

What I typically do is work on a project, and then decide some
classes/modules should be moved to a "shared" directory. So I typically
copy the .vb to my shared directory (via Explorer) and then delete the .vb
from my project and re-add it by pointing to the knew shared location.

Note: I have VSS but I currently do not have any projects added to VSS, so
this is NOT VSS issue.

Rob.
 
H

Herfried K. Wagner [MVP]

Rob R. Ainscough said:
So, I know open up mymodule.vb and what I get is the OLD module that was
"permanently" deleted ?? AND, somehow the mymodule.vb is now residing in
my Project dir?

Did you try to change the dropdown button "Open" to "Reference file" in the
"Add existing item" file selection dialog?
 
R

Rob R. Ainscough

The Open dropdown button has three options:
1. Open
2. Open With
3. Link

these options are only available when I select *.* -- I'll experiment with
Link
 
R

Rob R. Ainscough

Selecting "Link" from the "Open" dropdown button seemed to have resolved the
problem.

But it is still pretty mind boggling to me that I can delete a file via
explorer (empty my recycle bin) and VS.NET 2003 will restore it -- the
implications are interesting. So .NET must be decompiling back to source
using the debug info and regenerating the file or something?

Rob R. Ainscough said:
The Open dropdown button has three options:
1. Open
2. Open With
3. Link

these options are only available when I select *.* -- I'll experiment
with Link
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top