locked
.DLL and .EXE RRS feed

  • Question

  • Hi

    I m using Microsoft Visual Studio Programming Language C#.

    Can I know for which project types .DLL files are generated and for which project Types .EXE files or .SLN files are generated?

    Also what is the difference between .DLL,.EXE and .SLN
    Monday, March 30, 2009 1:25 PM

Answers

  • DLL's are generated for pretty much every kind of project type that doesn't have "Application" in it's name.  When you open the properties window for the solution (by double clicking the properties folder", it should say what the output type is.  Class Library will output as a DLL, Console Application and Windows Application output as exe.

    DLL - A library that cannot be run on it's own.  It contains code, but not enough code to be it's own running application. 
    EXE - An "executable".  This contains code that can allow the assembly to run on it's own through double clicking in explorer, file-Run, or adding a shortcut.
    SLN - This is a Visual Studio solution file.  It can only be opened by Visual Studio, and is a file that contains the organization of projects in visual studio in which source code files are placed that can be compiled to create EXE files and DLL files.
    David Morton - http://blog.davemorton.net/
    • Marked as answer by SNK08 Monday, March 30, 2009 2:47 PM
    Monday, March 30, 2009 1:43 PM
    Moderator
  • Hi SNK08, let me explain the point:

    .SLN files: This file type stores information and organizes a group of MS Visual Studio projects, storing info like location of each project, startup project, and so on. For more info, please check: http://msdn.microsoft.com/en-us/library/bb165951(VS.80).aspx

    .EXE Files: This type of file is an assembly, a unit for containment of MSIL-compiled code. The .EXE form can be run by the CLR (Common Language Runtime).
    Project types that generate .EXE assemblies are: Console Applications, WinForms applications, Windows Services.

    .DLL Files: This type of file is also an assembly, but this is a non-executable form. This kind of assemblies are referenced by other assemblies or applications, as they usually expose some useful functionality, types (classes) or data.
    Project types that generate .DLL assemblies are: Class Libraries, Windows Forms Control Libraries, ASP.NET applications, and so.

    Hope this info helps you.
    Rod.
    • Marked as answer by SNK08 Monday, March 30, 2009 2:47 PM
    Monday, March 30, 2009 1:52 PM

All replies

  • DLL's are generated for pretty much every kind of project type that doesn't have "Application" in it's name.  When you open the properties window for the solution (by double clicking the properties folder", it should say what the output type is.  Class Library will output as a DLL, Console Application and Windows Application output as exe.

    DLL - A library that cannot be run on it's own.  It contains code, but not enough code to be it's own running application. 
    EXE - An "executable".  This contains code that can allow the assembly to run on it's own through double clicking in explorer, file-Run, or adding a shortcut.
    SLN - This is a Visual Studio solution file.  It can only be opened by Visual Studio, and is a file that contains the organization of projects in visual studio in which source code files are placed that can be compiled to create EXE files and DLL files.
    David Morton - http://blog.davemorton.net/
    • Marked as answer by SNK08 Monday, March 30, 2009 2:47 PM
    Monday, March 30, 2009 1:43 PM
    Moderator
  • Hi SNK08, let me explain the point:

    .SLN files: This file type stores information and organizes a group of MS Visual Studio projects, storing info like location of each project, startup project, and so on. For more info, please check: http://msdn.microsoft.com/en-us/library/bb165951(VS.80).aspx

    .EXE Files: This type of file is an assembly, a unit for containment of MSIL-compiled code. The .EXE form can be run by the CLR (Common Language Runtime).
    Project types that generate .EXE assemblies are: Console Applications, WinForms applications, Windows Services.

    .DLL Files: This type of file is also an assembly, but this is a non-executable form. This kind of assemblies are referenced by other assemblies or applications, as they usually expose some useful functionality, types (classes) or data.
    Project types that generate .DLL assemblies are: Class Libraries, Windows Forms Control Libraries, ASP.NET applications, and so.

    Hope this info helps you.
    Rod.
    • Marked as answer by SNK08 Monday, March 30, 2009 2:47 PM
    Monday, March 30, 2009 1:52 PM
  • Thanks David M Morton Sir

    andUsers Medals Users Medals

    Rodrigo S. Altamirano Sir.

    Both the answers have solved my query..


    Thanks a lot
    Monday, March 30, 2009 2:50 PM