Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir,
I am very happy with code project because it a platform where we get solution of almost all question whether good or bad.
sometimes i ask question but after getting answer i felt it was very stupid question we should not ask .so i am very great full towards code project team to ignore my stupidity.

Here my doubt is
I am creating a class library project say (Custom_Server) in c# that needs reference of Utility dll.
so at the time of deployment presence of utility dll is needed or Custm_Server dll
is sufficient because it already has reference of Utility dll.
Posted

1 solution

No you need both the utility dll and the custom server dll.
The references you add in visual studio is just to make clear to visual studio that you will be using that dll, it improves the intellisense, enables you to put in a type and then to let visual studio find out in which namespace it is to add the using clause. Without the reference, VS just does not know all this and the project would not even compile, because then VS would see a lot of unknown types.
At runtime, the reference is still there and the presence of the dll is very much needed.
Don't confuse the .NET dll's with lib's like in c or c++, they are not linked together into one assembly wherein everything is resolved, they are genuine dll's, ie dynamically linked.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900