Click here to Skip to main content
15,911,715 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
What are the different types of assemblies in .NET?
Posted
Updated 21-Jan-11 7:05am
v2

Question is very vague. Typically you can create an exe file or a dll. Is that what you meant though?

You can have resource only assemblies too (no actual code/type definitions). There are also multifile assemblies.
 
Share this answer
 
v3
Comments
Espen Harlinn 21-Jan-11 12:57pm    
Seem OP was happy with that answer, nice and simple (5+)
Nish Nishant 21-Jan-11 12:58pm    
Yeah apparently :-)
Thanks.
Sergey Alexandrovich Kryukov 22-Jan-11 0:48am    
By the way, Nishant, this is the worst answer. (And the best is John's, not counting my comments to his answer of course :-).
I can explain. It's not a very well known fact, but... in contrast to native Windows DLLs, .NET DLLs and EXE files are precisely equal:
You can develop an EXE project but reference it from another assembly as a regular DLL, and then it is not possible to tell the difference without looking at the entry assembly main module name.
You can develop DLL project and use it like EXE (a bit more tricky).

Of course, the main problem is answering this kind of question. I try to avoid it: more trouble then goof, and grand total result is usually negative.
Nish Nishant 22-Jan-11 10:44am    
Kryukov,

Surprisingly enough, I am quite well aware of how exes/dlls work in the managed world, but when I post answers my approach is usually to try and make a close guess as to what the OP wants to know, and then providing the reply.

I know that this approach is not considered the best one, because sometimes people say it only serves to misdirect the OP, but I've finally chosen to answer questions this way after years of doing it on various forums such as this one, the MSDN forums, the old Microsoft newsgroups etc. because I find it's what the majority of people want as answers. Horses for courses in short :-)
Sergey Alexandrovich Kryukov 25-Jan-11 12:02pm    
Yes, I understand your position. The principle is to answer the question exactly, formally, no matter if it helps, by the principle "you asked for it". It makes full sense.

However, not in this case. "What are the different types of assemblies" is not a vague question, it's incorrect by all counts. Whatever the answer is, the value of it is negative, unless you deny a question. (I did not vote, but this is the case...)

After all some questions should never be answered (but can be commented on their validity), dont' you agree?
 
Share this answer
 
Depends on your outlook, or more importantly who's asking you this test/interview question...

Check out the link already provided, and then google your question.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Jan-11 0:38am    
John, who ask this question makes little difference, because from the question it is already apparent the interviewer is an idiot.
Sergey Alexandrovich Kryukov 22-Jan-11 0:41am    
I up-voted your answer to oppose another idiot who voted "3".
Your only fault is responding to such questions, which is of course a sin, but not a deadly one :-)

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