how to change interop file version RRS feed

  • Question




    We had a C# project which reference to a COM dll (Engine.dll). So the interop file (Interop.Engine.dll) was generated.


    However, this interop dll (Interop.Engine.dll) version number is always How can we change it?



    Monday, March 10, 2008 7:12 AM


  • You can use Type Library Importer (Tlbimp.exe) to manually import the COM lib. Note the /asmversion:versionNumber switch of this tool.

    Actually, tlbimp generate the assembly as version 1.0 by default so that the generated interop assembly can be used by all versions of CLR.
    Wednesday, March 12, 2008 9:55 AM