I answer my question:
Manually change the TargetFrameworkVersion from 4.0.1 to 4.0 in the .csproj project file:
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>.
Like Hans, we cannot make visual studio 2012 work with 4.0.1. but 4.0.1 is very close to 4.0. I think that as long as you can compile the project without 4.0 errors, everything should be fine. This works in my case.
source share