How do I make a .net assembly filesize as small as possible?
.net, assemblies, file, size
Solution
You can reduce the amount of information in the assembly. If the typed datasets are not always used, moving the various ones into separate assemblies referenced by one central assembly can be an effective approach. Then the runtime will only load the assemblies as needed.
Otherwise, there is little you can do without actually reducing the amount of code in the assembly itself. An obfuscator can help reduce the size somewhat, since it will shrink the names, but this will likely be a minor improvement.
Problem
I have a .net assembly that contains data access code (a bunch of Typed Datasets and helper classes) that is quite large on disk (~2.5MB). What can I do to work out why it's so big and make it smaller?