Results 1 to 5 of 5

Thread: DLL Library

  1. #1

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    DLL Library

    Hello all i have small problem that i would like to share:

    i have 1 web site and two windows application and they all share the same DLL Library the thing is that when ever i compile applications or the website the dll file size is different from the others

    for example App1 DLL result in size of 140kb,
    App2 DLL is 145kb in size
    and the web app DLL is 152KB in size... this seems a bit weird to me, isn't all the DLL's should have the same size since they all from the same source?

    Thanks.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: DLL Library

    are they all used by applications written in the same version of .net?
    identical file sizes differ in different versions

  3. #3
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: DLL Library

    If you compile in release/debug they are different sizes. If they share the same libarary, are they not all in the same solution?

  4. #4

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: DLL Library

    @Paul they all written with VS2010

    @Grimfort i didn't really understand what you saying, in each application i added the DLL library with "Add existing Project" and then set a reference to the folder in which the DLL Library is in.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  5. #5
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: DLL Library

    So each time you open any of the projects you will recompile the .dll every time. If you are not actually changing it, rather than adding it as a project, just compile it once and add it as a dll reference instead of a project reference. Or, just add all projects to the same solution if they are of the same family of products. I have about 25 projects including 2 web, 4 services, 2 apps all in the same solution as I have common code between them all. Also saves moving between project sets all the time .

    Each solution may have different compile options, ie debug/release which may have a bearing. Or maybe you have auto-version on so every time you compile you get a new version number which is slightly changing your file size.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width