I'm trying to develop an application in powerbuilder .net 12.5. However I keep getting the following compilation error.
Unknown build error, 'Method 'get_Command' in type 'System.Windows.Controls.Button'
from assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' does not have an implementation. Line 3 Position 4.'
The app is very simple. It's a single wpf window with a button that show a messagebox. I have had this error in different test applications but I can't see what is causing the problem.
I have found other people on the web with the same problem but they all seem to use .net 4.5. and windows 8. There it seems that the compiler uses the wrong .net version. However I don't have .net 4.5
If anybody could point me in the right direction that would be great
EDIT:
I have found some extra information. I have two targets in my solution. A .net assembly target and a wpf target. Everything works fine until I add a reference in my wpf target to my .net assembly target. Then this error occurs. Removing the assembly from the reference list doesn't solve the problem