By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Reusing code without creating a class library.

P: n/a

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 ?
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Wes
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/

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 ?


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.