Download Sample Project (11KB)


  • Ranorex 1.5 and 2.x installed on same machine.
  • .NET 3.5 if you are using Ranorex Studio.


  1. Open an existing project that uses (References) the RanorexNet.DLL (
  2. Select the RanorexNet reference and open the properties. Give it a new alias for example RanorexNet .ranorex15-reference
  3. In all code files where the Ranorex namespace is used add
    extern alias <new alias name>;

    for example

    extern alias RanorexNet;

    to the top of the file before all using statements. Then change

    using Ranorex;


    using RanorexNet.Ranorex;


  4. To use the Ranorex namespace from both the RanorexNet.dll and the Ranorex.Core.dll together in the same code file you will also need to alias the namespace for example
    using RX15 = RanorexNet::Ranorex;
  5. If you alias the name space in a code file you will also need to update the code to use the new qualified name. For example, change from
    Logger.LogFileTitle = "Ranorex Log File";


    RX15.Logger.LogFileTitle = "Ranorex Log File";
  6. Add a reference to the Ranorex.Core.dll from the GAC. Important, it is not recommended that you alias the Ranorex.Core.dll because the generated code doesn’t add the “extern alias” statement. However, feel free to alias the namespace whenever you need to.

Download Sample Project (11KB)

You might also like these articles