I found, at least, a temporary fix.
The issue, as the error message indicated, was that mscorlib.dll gets referenced twice due to, what I assume, a bug in Ranorex. It took a while to figure where those references were.
mscorlib.dll gets referenced twice :
Once in
And then again in:
- [projectname].rxsln (which is generated by Ranorex)
Under
Project --> Project options --> Compile [tab] there is checkbox that has the option:
Do not reference mscorlib.dll
This checkbox doesn’t seem to work. So the only option was to remove the reference from the mail project file by deleting:
<Reference Include="mscorlib" />
Regards,
B