Groups | Blog | Home
all groups > dotnet interop > march 2005 >

dotnet interop : Reduce the size of Microsoft.mshtml.dll.


jxl
3/17/2005 6:05:04 PM
We have a C# application that hosts a WebBrowser control.
The project's output includes the file Microsoft.mshtml.dll
whose size is over 8MB. This DLL is more than 20 times larger than
our actual application. The large size seems to slowdown
our application's startup time significantly. Also it makes
the downloadable package much larger than necessary.

Does anyone know a way to reduce the size of Microsoft.mshtml.dll?

Thanks in advance,

Mattias Sjögren
3/18/2005 12:39:22 PM
[quoted text, click to view]

What parts of it are you actually using? You can probably declare COM
interfaces manually in your code with the ComImport and Guid
attributes, and then loose the reference to the interop assembly.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Marc Scheuner [MVP ADSI]
3/18/2005 2:04:02 PM
[quoted text, click to view]

There is no way to do this - that DLL is that big, use it or leave it.

Marc

================================================================
Marc Scheuner May The Source Be With You!
James X. Li
3/19/2005 8:13:21 AM
[quoted text, click to view]

Thanks. It would be a challenge for us to do those declarations manually
as we have over 100 different calls into mshtml and the set used
changes regularly. I have hoped that there might be some tools to create
such optimized stub DLL automatically.

regards,

James X. Li
http://IEunit.sourceforge.net

AddThis Social Bookmark Button