How do I share a source file between solutions

Giganews Newsgroups
Subject: How do I share a source file between solutions
Posted by:  Robert Styma (rollingbigbob@newsgroup.nospam)
Date: Mon, 16 Mar 2009

I am using Visual Studio 2008.  I have a vb source file which was developed
for a solution.  In a different set of directories, I am working on a
different SLN and want to include the same class.  When I "Add existing file
to project", it makes a copy of the file in the current projects source
directory.  Back in Visual Studio 6, if I did this it would reference the
source file where it existed and not make a copy.

Is there a way to get this behaviour from Visual Studio 2008?

--
Robert Styma
Principal Engineer (DMTS)
Alcatel-Lucent

Replies