Reski's hobbies blog place…

This is not just about me, but also bout my family
May 31st, 2010 by ayah

The type ‘System.Func‘ exists in both ‘c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll’ and ‘c:\WINDOWS\microsoft.net\Framework64\v4.0.30319\mscorlib.dll’

if your having trouble like this with your Visual Studio 2010 while you have to target .net 3.5, you can do following steps

1. Unload your project within visual studio 2010

2. Edit your project

3. add below code within your project

<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>