I used a different approach for reusable files.
I am creating a standalone solution that includes all reusable components, test, etc.
Each reusable "thing" (class, function, UserControl, icon, etc.) is in a separate file.
Projects that need some functionality from the reusable part simply link directly to the source file. ("Add existing item", "Add as link"). For convenience, I put all the reusable parts in the "utilities" folder in VS (the real utilities folder is empty because the files are linked)
This setting allows me to:
- just add the general functionality that I need.
- no additional dependencies
- Bug fixes in utilities are automatically included in the next build
The only drawback is that if you need to manually add any dependencies, added added functionality (for example, another reusable component or assembly)
Since I don't use different assemblies, the namespace just follows the function:
- Company.Utilites
- Company.Utilites.WPF
- Company.Utilites.IO
source share