Monday, June 17, 2013

What is an Assembly in .Net

An assembly is a collection of classes, namespaces and related information which together form a complete application. Every application which is developed in .Net is stored in an assembly.

Assembly can be either a self-executable file, with an extension of .EXE, or a library file with an extension of .DLL. Let us see more in details about both these types of assemblies.

Self-executable assemblies or process assemblies (.exe) are those which do not depend on any other assemblies or external resources for execution, they represent an whole application, when these assemblies are invoked they initiate their own process thread and start the application in the thread.

Library assemblies (.dll) are those which cannot run on their own, they rather contain a library of classes which can be referenced by other self-executable assemblies (.exe). In general the main application is placed in a .exe assembly and dependent information like data access logic, business logic etc are placed in separate library assemblies .dll and referenced from the .exe assemblies.

Assemblies are the building blocks of .Net, the core .Net Framework has a lot of built in assemblies which enable us to use the features of .Net. Any application or service written in .Net will be stored in an assembly file.

Search Flipkart Products:

No comments: