At work today, I was assigned a bug because of a COM interop assembly I had created. To create it, our build environment was using tlbimp.exe. It needed to be able to take a resource file that contained the version information, however tlbimp doesn't allow you to do this (only allows you to statically specify). I found a way around this thanks to IanWho. Basically, you need to follow the following steps.
1) Create your COM interop assembly with tlbimp.exe.
2) Compile your resource file.
3) Disassemble the interop assembly with ildasm.exe. This breaks it down to its simple proteins (the IL code).
4) Reassemble the interop assembly with ilasm.exe, using the /res switch to have it include your compiled resource file.
This worked for me and after I was done it reminded me of the movie "The Fly".
Thursday, March 15, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment