Visual Studio Solution with references

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

Moderator: SourceGear

Post Reply
Arnold
Posts: 2
Joined: Wed Jan 24, 2007 10:00 am

Visual Studio Solution with references

Post by Arnold » Wed Jan 24, 2007 10:08 am

I can't figure out how to make this work. And I hope you'll understand the "problem"

I have a solution file within visual studio 2005.
In there there are references to other external projects.

so

solution file
--- project 1 (added by --> source control --> add project from source control)
--- project 2 (added by --> source control --> add project from source control)
--- main project

the main project has references to project 1 & 2.

Now.. when I add the solution to the vault, it will copy project 1 & 2 & main project in the solution folder.

But I want project 1 & project 2 just be references, they are already on my harddiscs in my projects folder. And I only need the references to them.

Maybe I have to make the references some other way around, but I don't get how to do that.

Please ask questions if you don't understand.

I hope someone can help me out with this!

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Jan 24, 2007 4:05 pm

Rather than add an entire project as a reference, you can add references to the specific .dll or .exe.

For instance, in your project in Solution Explorer, right click on References and choose Add Reference. In the Add Reference dialog, choose Browse, and browse to the location of the .dll or .exe you want to reference.
Linda Bauer
SourceGear
Technical Support Manager

Arnold
Posts: 2
Joined: Wed Jan 24, 2007 10:00 am

Post by Arnold » Thu Jan 25, 2007 3:45 am

lbauer wrote:Rather than add an entire project as a reference, you can add references to the specific .dll or .exe.

For instance, in your project in Solution Explorer, right click on References and choose Add Reference. In the Add Reference dialog, choose Browse, and browse to the location of the .dll or .exe you want to reference.
The reason is debugging. If you reference to the whole project you can debug much deeper in the project.

I'm looking into the "share" option of the vault right now. Maybe that will help me out.

idea:
Maybe something like "virual folders" or something, where all the files are links to the orginal files. In combination with the vault this could mean you have not a single file in your project when adding "general" projects to that project, but just virual links....

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Jan 29, 2007 9:33 am

I believe that if you add only the .dll, you should still be able to debug that added .dll's code in Visual Studio.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply