I have hosted two versions of workflow (WF 4.5). Followed the instructions as in this MSDN sample- https://code.msdn.microsoft.com/windowsapps/Side-by-Side-Versioning-0fe24cd3. The side-by-side functionality provided allows a workflow service to be configured so that new instances of the workflow service are created using the new workflow definition, while running instances complete using the existing definition.
Workflow (xamlx) makes use of few functions that are defined in another class library 'MessageGeneration.dll'. There are changes in those functions as well. So, there are two versions of both workflow and MessageGeneration.dll. WF-v1 should use MessageGeneration.dll-v1 and WF-v2 should use MessageGeneration.dll-v2.
Any suggestions to solve this will be helpful. Thanks.