Assemblies & DLLs?

A

Arpan

Assume that I am creating ASP.NET pages in the C:\Inetpub\wwwroot\ASPX
directory. This directory has a sub-directory named \bin where in all
DLLs are stored. Are these DLLs which are stored in the \bin directory
known as Assemblies? Also is the \bin directory the Assembly Cache?

Thanks,

Arpan
 
S

Scott M.

An "Assembly" is simply the compiled output or "basic unit of deployment" of
a .NET program. As such, in .NET, asseblies can either be .dll or .exe
files. A project's assembly and the private assemblies it references are
stored in the project's \bin folder.

Assemblies come in 2 "flavors", private and shared. All user defined
assemblies are private, by default (and reside in the project's \bin
folder). These assemblies are NOT registered into the GAC. There are a few
extra steps you must take to get an assembly ready for registration into the
GAC and then it can be added to the GAC. These assemblies are called shared
assemblies.
 
A

Arpan

Scott, what is this GAC?

Arpan
An "Assembly" is simply the compiled output or "basic unit of deployment" of
a .NET program. As such, in .NET, asseblies can either be .dll or .exe
files. A project's assembly and the private assemblies it references are
stored in the project's \bin folder.

Assemblies come in 2 "flavors", private and shared. All user defined
assemblies are private, by default (and reside in the project's \bin
folder). These assemblies are NOT registered into the GAC. There are a few
extra steps you must take to get an assembly ready for registration into the
GAC and then it can be added to the GAC. These assemblies are called shared
assemblies.
 
S

Scott M.

The Global Assembly Cache is a form of registry (not the same as the Windows
Registry) for shared Assemblies (assemblies that more than one program
uses). Rather than having the same .dll in several different \bin folders
of several different applications, the GAC provides a cental location and
means for maintaining multiple versions of an assembly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top