Linking files from another project in vb.net is not perfect

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Linking files from another project in vb.net is not perfect

Post by vrapp » Thu Apr 15, 2004 1:07 pm

Here's the scenario.

In VB.net 2003, I create Project1 having Form1.frm file, and Project2 having Form2.frm file. I add both projects to Vault. I keep both project1 and project2 open in VB.net.

Now I want to reuse Form1 from Project1 in Project2. In VB.net in Project2, I "add existing file", and link it (using dropdown button).

At this time, I see a warning: some of the files you are adding to your project are located outside of this project's binding root. The files cannot be source controlled unless they are moved

However, after I press OK, Form1 appears in Project2 with sourcecontrol mark, and even checked out. But I did not check it out, I only added it to the project?


Now I switch to Project1; the Form1 file still shows up as checked in, i.e. with the lock. I use menu file/source control/refresh status - no change. However, if I close and reopen project1, the file will appear as checked out.

Finally, when I linked Form1 to Project2, I expected that Form1 would become shared. This did not happen either.

Unless I'm doing something terribly wrong, it seems to me that the whole function of sharing files between projects is almost unsupported by the source control.

I also tried to share Form1 with Project2 in Vault interface. The file appeared in Vault under project2 with the status=Missing. Why Missing? By the way, the term "Missing" itself is very confusing; whenever I see it, my first thought is that it's not the status but the file is missing.
Vadim Rapp

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Apr 15, 2004 4:42 pm

Vadim,

I responded to your other thread in support at http://support.sourcegear.com/viewtopic.php?p=2690#2690

Hopefully, that covers this post as well?

Post Reply