How do I rename a DLL but still allow the EXE to find it?

后端 未结 6 1948
难免孤独
难免孤独 2020-12-24 14:14

We have a DLL which is produced in house, and for which we have the associated static LIB of stubs.

We also have an EXE which uses this DLL using the simple method o

6条回答
  •  别那么骄傲
    2020-12-24 14:44

    you'll have to use Assembly.Load and have the obfuscated assembly name saved in the app.config.

    either that or use the same approach that plug-ins use. have a class in your assembly implement an interface that you search for from your app in every assembly in a certain directory. if found loat it. you'll of course have to not obfuscate the Interface name.

提交回复
热议问题