简体   繁体   中英

Compiling application using new DLL but running using old DLL

I have an application that uses(does not implement) an interface in a separate DLL. I recently mades changes to this interface. My application, however, does not use any of the new features in this interface.

My question is: Is it ok to run the application using the old DLL if I have compiled the application using the new DLL( with the new changes).

It should be fine under the right circumstances.

I had to try this out to be sure...but, in fact it does seem to work out alright. I created an interface in a dll, referenced it in an application and used reflection to check the methods on the interface in the dll. Then, modified the interface, recompiled both the dll and the application, and the application is able to retrieve the methods on the interface of either the old, or the new dll.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM