I'm just repeating a few things I've learned from Luke Malpass the last few months:
- Have you set 'embed interop type' of that reference file to false in the Visual Studio reference properties?
- To what .Net version are you compiling? If I understand your error correctly, you're compiling to version 4 instead of 2.
If you added your PDM interop from this path: [SW INSTALL PATH]\api\redist\CLR2\PDMWorks.Interop.pdmworks.dll that you need to target Framework 2.0 in your project settings.
If you added the interop from this path: [SW INSTALL PATH]\api\redist\PDMWorks.Interop.pdmworks.dll than you need to target Framework 4.0
The warning you posted explains the issue.
The primary reference "PDMWorks.Interop.pdmworks" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "184.108.40.206" than the version "220.127.116.11" in the current target framework.
Your project is targeted for .NET 3.5 or lower. The reference in your project for PDMWorks requires .NET 4 or greater.
Change your project to .NET 4 or greater.
Thanks for all your help much appreciated