Search

Tuesday, January 5, 2010

mscorlib.dll and windows mobile cab size

how to reduce build size in windows mobile? most of the .NETCF programmers who are making installation package for the first time will face the common problem that is large install cab of their application most of the time visual studio automatically include some of the dlls such as mscorlib.dll, mscorlib.tlb, system.configuration.dll etc as the dependencies but which are not actually required mscorlib.dll itself occupies around 4MB size in the installer which is very huge some times which is more than 10 times the size of actual application.

the solution is to remove the mscorlib.dll and mscorlib.tlb as it is the part of the .netframeframework and other unwanted dependecies make sure to "exclude" the unwanted dependencies as show in above pic recently one of my friend from other company who moved from J2ME to WM asked me so thought of writing it here as i too faced the similar problem during my early cab generation days ;)

I still was not able to figure it out what happens to make Visual Studio to consider framework dlls as the dependency to the cab file if any of you guys know the answer do share with us

2 comments:

Anonymous said...

did you manage to persist this change in the cab project? every time I restart solution, the mscorlib gets readded/included back into cab project. am I missing something?

Manjunath said...

It looks weird i did not faced this problem in any of my three wm projects!

Post a Comment

Other Interesting Articles



Related Article Widget by Yogith

Search Powered by Google