I also had the same problem with WPF projects on .NET 4.0. The "root" is that NPanday tries to use some dlls (PresentationFramework.dll, WindowsBase.dll and PresentationCore.dll) from the GAC of 3.0. Actually you can this from your log: "reference:C:\Windows\assembly\GAC_64\PresentationCore\3.0.0.0_31bf3856ad364e35\PresentationCore.dll, /reference:C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.031bf3856ad364e35\PresentationFramework.dll, /reference:C:\Windows\assembly\GAC_MSIL\WindowsBase\3.0.0.0_31bf3856ad364e35\WindowsBase.dll" Apparently System.Windows.Shell is a new namespace introduced in .NET 4.0, so compiler does not find them from referenced dlls in GAC for 3.0

It took me some time to fix this issue - I uploaded the patch to NPANDAY-288 (as attachement) with related comment on 12/Oct/10. It fixes some other issues also but it works. Would be great if can integrate it to the branch.

Artem Fedorenko
added a comment - 15/Oct/10 13:19 - edited Hi,
I also had the same problem with WPF projects on .NET 4.0. The "root" is that NPanday tries to use some dlls (PresentationFramework.dll, WindowsBase.dll and PresentationCore.dll) from the GAC of 3.0. Actually you can this from your log: "reference:C:\Windows\assembly\GAC_64\PresentationCore\3.0.0.0_ 31bf3856ad364e35\PresentationCore.dll, /reference:C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.0 31bf3856ad364e35\PresentationFramework.dll, /reference:C:\Windows\assembly\GAC_MSIL\WindowsBase\3.0.0.0 _31bf3856ad364e35\WindowsBase.dll" Apparently System.Windows.Shell is a new namespace introduced in .NET 4.0, so compiler does not find them from referenced dlls in GAC for 3.0
It took me some time to fix this issue - I uploaded the patch to NPANDAY-288 (as attachement) with related comment on 12/Oct/10. It fixes some other issues also but it works. Would be great if can integrate it to the branch.
Regards

Adelita L. Padilla
added a comment - 16/Oct/10 10:31 - edited Hi Artem!
Thanks for you patch.
I've applied it in branch and it works fine. I am now able to build successfully a WPF project.
I also added the ff paths in my Path Env Var:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;