Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference Between Assembly and DLL

What is the difference between Assembly and a DLL? While sending the code to a remote client, should a DLL file be sent or should a Assembly be sent (When direct TCP connection is available between two)?

like image 367
Pushkar Avatar asked Mar 23 '09 17:03

Pushkar


People also ask

What is difference between DLL and EXE?

Difference between exe and dll-1. EXE is an extension used for executable files while DLL is the extension for a dynamic link library. 2.An EXE file can be run independently while a DLL is used by other applications. 3.An EXE file defines an entry point while a DLL does not.

What does assembly mean in C#?

An Assembly is a basic building block of . Net Framework applications. It is basically a compiled code that can be executed by the CLR. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality.


1 Answers

An assembly is .NET's "minimum unit of deployment". Usually an assembly corresponds to a single file, but it doesn't have to - you can have multiple files, with one of them being the master which knows where all the other bits are.

Single-file assemblies are usually DLLs or EXE files. If you've got a normal class library and you just want to send it to the other side, the DLL is what you want. I'd only worry about more complicated scenarios as and when you run into them :)

like image 196
Jon Skeet Avatar answered Nov 07 '22 08:11

Jon Skeet