Thanks Microsoft - what a helpful error message.
My little test application consisted of 3 projects one of which had the /clr switch. I removed that and it ran.
So if you get this error message I suggest you check all settings match. If you get this error message in someone else's code then you probably have the wrong DLL and I can't help further.