What is the difference between an Assembly and a DLL?

Home Forums General Programming Visual Basic .Net What is the difference between an Assembly and a DLL?

This topic contains 0 replies, has 3 voices, and was last updated by  Ankur 6 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3306

    Ankur
    Moderator

    What is the difference between an Assembly and a DLL?

    #3309

    Pavan
    Moderator

    1:Dll project independent.

    2:assembly is project specific.

    3:An assembly is a collection of one or more files and one of them DLL or EXE.

    4:DLL contains library code to be used by any program running on Windows. A DLL may contain either structured or object oriented libraries.

    5:A DLL file can have a nearly infinite possible entry points.

    6:Assembly present in bin can have either strong/weak Name and assembly in GAC Should have strong name.

    #3749

    Hi Ankur

    first i want to say this is not a good question. It should be better if you ask this question as what is the assembly and DLLs.

    In the response of your’s question, Pavan replied as above: I am not satisfy with some point so i am adding some comments:

    1:Dll project independent.

    Right, dynamic link library can be used by more than one program at the same time. So it is the helpful for reducing disk spaces, decreasing memory usage and easy to deployment or installation

    2:assembly is project specific.

    I am not satisfy this answer, basically Dlls is also one type of assembly. if you talk about Assembly in .net, An assembly is the compiled code library and it can be an executable or DLL.


    3:An assembly is a collection of one or more files and one of them DLL or EXE.

    Both Types of assambly – Dlls and EXE contain Code(in intermediate language(IL)), resources and metadata and this intermediate language code compile into machine language at run time by the CLR.


    4:DLL contains library code to be used by any program running on Windows. A DLL may contain either structured or object oriented libraries.

    Right

    5:A DLL file can have a nearly infinite possible entry points.

    Right

    6:Assembly present in bin can have either strong/weak Name and assembly in GAC Should have strong name.

    Right. I am adding some more lines. Both present in bin and can have strong/weak name. Executable is also deploy in GAC but i think there is no advantage to deploying an exe in the GAC because Since no application can make a reference to an exe program,

    Thanks

    #3751

    Ankur
    Moderator

    Thanks you very much for all now its clear me the specific difference between dll and assembly.

    I really appreciate it.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.