Link to home
Start Free TrialLog in
Avatar of keithblack
keithblack

asked on

C# Visual Studio 2005 - When to build a DLL and the main reason to build a DLL

What are the factors leading up to the decision to build a DLL instead of just building a method or class for a 2005 Visual Studio C# project?   Also, if a DLL is needed can you point me to a good development source document?

Thanks
Avatar of Nightman
Nightman
Flag of Australia image

If you want to keep all the business logic in a single assembly/dll, and then re-use that across multiple projects. You only have to maintain 1 set of source code, and the actual assembly. For example, all of your data access in one assembly that 5 different projects can then use. And they all use the same version.

It makes your code more granular and re-usable, and allows you to fix multiple applications (assuming there is a bug) with one recompile. Also, you can extend functionality to all of them att he same time.
Avatar of keithblack
keithblack

ASKER

Nightman Thanks.

BUT, can you clear the mud just a bit.  When you say Business Logic in a single assembly/dll.  Are you saying use a DLL or just projects?

I think you have answered the question, but I am not see your decision point of when this is going to be a DLL or what.  I am not trying to be mean with you.
thanks,
Keith
ASKER CERTIFIED SOLUTION
Avatar of Nightman
Nightman
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial