Page 1 of 1

Using DLLs created with older Ranorex versions

Posted: Fri Jan 09, 2015 3:06 pm
by anja
Hi,

I'm facing the following situation:
We have one Common project and created DLLs with Ranorex 4.1.6. (Containing general CodeModules, Recordings...)
The DLL is referenced in many different projects.

For one project I wanted to migrate to Ranorex 5.2.1.
The common dlls are still created with Ranorex 4.1.6.
The test suite of the updated project refers to a CodeModule of the Common DLL.

Now the Problem:
Running my TestSuites leads to an error because the CodeModule of the Common dll could not be found.

If I replace the Dll with one created with the ranorex 5 this is working as expected. Is there any other workaround which does not mean to recompile the DLL with each Ranorex Version?

Thank you very much for your response.

Re: Using DLLs created with older Ranorex versions

Posted: Mon Jan 12, 2015 3:57 pm
by Support Team
Hi Anja,

Unfortunately it is necessary to rebuild all DLLs with the same Ranorex version as your project was created. Currently, there is no workaround available in order to do this automatically, but our Development team is currently investigating an approach for this scenario.

Regards,
Markus (S)

Re: Using DLLs created with older Ranorex versions

Posted: Tue Apr 14, 2015 1:22 pm
by anja
Hi,

is there anything new to this topic?

Regards,
Anja

Re: Using DLLs created with older Ranorex versions

Posted: Tue Apr 14, 2015 3:15 pm
by krstcs
No, you still need to rebuild libraries with the same version of Ranorex as the test project.

Re: Using DLLs created with older Ranorex versions

Posted: Wed Apr 15, 2015 8:55 am
by Support Team
No, sorry. You always have to recompile projects when you use a different major version of Ranorex.

This is by design since with major versions we do not guarantee binary compatibility. I.e. at some point we have to introduce breaking changes in the APIs and we try to only do that with major versions. You might not even notice the changes when you recompile, but the binary compatibility would be a lot harder to maintain.

So, please use project references to your common DLLs in order to recompile them, since it's very unlikely we are going to change that behavior in the future.

Regards,
Alex
Ranorex Team