Reusing code without creating a class library.

  • Thread starter Thread starter Craig Kenisston
  • Start date Start date
C

Craig Kenisston

If I try to add existing *.cs files to my project the are copied my working
directory !
I want to keep some general purpose classes outside the projects in a single
place, so, if I improve a class it is reflected in all the projects.


Is that possible ?
 
Hello Craig,

In Visual Studio when you add an existing file to a project, if you take a close look at the drop down arrow next to the open button it will have a option to "link file". When you link the file it will not copy it over it will just link that source file when you compile. I think this will do what you are describing.

HTH
Wes Haggard
http://weblogs.asp.net/whaggard/
 
Back
Top