-
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.
-
Re: DLL Library
are they all used by applications written in the same version of .net?
identical file sizes differ in different versions
-
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?
-
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.
-
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.