reducing size of .NET assembly file

  • Thread starter Thread starter Gideon
  • Start date Start date
G

Gideon

i have created a .NET assembly, and even in release mode, the size of the
dll is over 1 megabyte.
i have got ~15000 lines of code, and i do link to one or two lib files.
any general advice as in to what i should be looking into for reducing
(significantly) the size of the file?

cheers,
g.
 
Instead of doing something silly like Obfuscation which is a pain in itself,
consider some of the things that might be happening that signifigantly
increase size of code:
- in VB.Net, leaving "Option Strict" setting Off...
- adding Resources to a class project

An .exe of 1MB isnt that big a deal, since there's icons and bitmaps and so
forth buried inside.

A dll thats 1MB isnt such a big concern either...
 
well, to me it is a concern...
i cant see why it is so big.
i reduced all use of static libraries, i'm not using any resources, etc, and
i only have ~15000 lines of code. surely it must be some compiler or linker
option which i'm not aware of.
cheers,
g.

Eric Newton said:
Instead of doing something silly like Obfuscation which is a pain in itself,
consider some of the things that might be happening that signifigantly
increase size of code:
- in VB.Net, leaving "Option Strict" setting Off...
- adding Resources to a class project

An .exe of 1MB isnt that big a deal, since there's icons and bitmaps and so
forth buried inside.

A dll thats 1MB isnt such a big concern either...

--
Eric Newton
C#/ASP Application Developer
(e-mail address removed)-software.com [remove the first "CC."]

Gabriele G. Ponti said:
Try Dotfuscator Community Edition. It's a code obfuscator, but as side
effect it should reduce the size of your DLL.

http://www.preemptive.com/dotfuscator/dotfuscator_ce.html
 
Back
Top