We have a solution where we compile matlab code to a dll. Then we use this dll as an embedded resource in a c# project. When we compile a new version of the matlab dll it seems that the Matlab cache under AppData doesn't recognize the new version. We need to restart the system to pick up the new underlying matlab dll. Is there a way to fix this?