After years in .NET, I’m asking a basic question. One kid just out of college asked me this and I was suddenly confused!
I am referencing a IBM DATA DB2 DLL in my .NET project. The version we used initially was 9.7.0.2. So after we ran some tests, we upgraded the IBM DATA DLL to version 9.7.6.2.
Now the question is, should I recompile my code and then run it or can I directly replace the IBM DATA DLL in my build directory and will it run fine?
When should we ideally recompile our code?
Thanks
Soni
This actually all depends on the DLL and the 3rd party that produced it. You need to look at the documentation and look for deprecated and modified functions (are you calling any of them?) And even if the doc says that nothing was changed and deprecated you should still do a regression test. Docs are not code, and the code is the truth that matters.
In a perfect world nothing would ever change or be deprecated in a public API and the writers of the DLL (interface) would just add new functions. Unfortunately, we can’t count on that.
In brief: If any of the functions you’re calling in the DLL were modified or deprecated, you have to rebuild, otherwise no.