Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using same classes across multiple projects

I have several programs which have nothing in common with each other, they are completely different applications. However, I have several "Swiss knife" classes, which I use in all of those projects. Currently, when I need to use those classes, I simply copy them over into the project, but this solution is less than ideal since it's all bloaty and not tidy at all. And of course, when I want to edit those classes, I have to do it several times in a row, in each of my applications.

What is the best solution here? Should I export those classes into a .dll, give it to Windows and then all my apps can use that .dll? Or should I use some other solution available in the Visual Studio itself?

like image 662
user3595338 Avatar asked May 10 '26 23:05

user3595338


1 Answers

I think the dll solution is appropriate to use.
Just place those common class in different project and build a dll around and use it, or in case of Visual Studio you can import the same project in different solutions or programs..

like image 67
dbw Avatar answered May 12 '26 13:05

dbw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!