Shared Classes Across Separate Projects

false74

Well-known member
Joined
Aug 4, 2010
Messages
76
Programming Experience
Beginner
Currently I have about 10 custom components that are used across a few separate projects/solutions. Is there a way to just make that component class once, and have each project reference it? So I would only have to make a change once instead of having to copy code if I needed to change or add something?
 
Creating a class library project and reference the output assembly from other projects is one possibility. A variation of this is to add the class library project to the application solution and add library as project reference, this allows editing of both projects within same IDE instance, with automatic build dependency.
It is also possible to add the class as link, which makes it possible to edit the same file from within multiple projects.
 
Back
Top