C# – what is the need of assembly ? why we use them

asp.netassembliescnet

what is the need of assembly ?
why we use them?
is it possible to program without an assembly?
is the assembly is created automatically?
suppose i develop an asp.net web project is there any assembly involved?
could you list example?

Best Answer

To quote the MSDN article on assemblies: "Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality."

An assembly in .NET is a unit of code that has been compiled together into a single executable, library, or module. Whenever you compile code, you will generate an assembly. I do not believe there is a way to use .NET code without using an assembly.

You can use reflection to learn about the types in an assembly as well as other metadata.