Archived

This topic is now archived and is closed to further replies.

FieroAddict

(.NET) Sharing components between multiple projects?

Recommended Posts

I''ve been trying to figure out how I can share the same class between multiple projects such that if I update the class in one project it will update in the other project. While looking through the VB.NET DirectX 9 samples I noticed that in the solution window where it lists all the files associated with the project, that there are many "shortcuts" to files that are shared between all the sample projects. This is what I want to do with my own project. Thanks for any ideas.

Share this post


Link to post
Share on other sites
add one physical file to two or more projects.

[edited by - niyaw on March 1, 2003 12:23:25 AM]

Share this post


Link to post
Share on other sites
(a) use SOurceSafe and branch the files in thre - so that you "includ3" different files in both projects. SourceSafe wamkes sure they stay in sync.
(b) better: forget abut it. But the shared things into a separate assembly.

Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)

Share this post


Link to post
Share on other sites
Project->Add Existing Item. Find the file you want. Click the little arrow beside the Open button. Choose Link File.



"If there is a God, he is a malign thug."
-- Mark Twain

Share this post


Link to post
Share on other sites