Search code examples
visual-studio-2010windows-phone-7windows-phone-7.1smartphone

System.data.linq namespace not found


I have visual studio 2010 express for windows phone installed on my system and i am not able to find System.data.linq namespace in references so i tried to download the the dll and copy in the C:\Program Files(x86)\ReferenceAssemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone location but it is saying it is a dll not built for windows phone can anyone help to add the correct dll as the reference..? thanks in advance


Solution

  • I had same problem. Your project should be minimum windows phone 7.1 version. Look what is written in your csproj file. There should be: <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile> but no <TargetFrameworkProfile>WindowsPhone</TargetFrameworkProfile>

    In my sutuation there was written just WindowsPhone and I corrected it to WindowsPhone71 and I got System.Data.Linq and mscorlib.extenstion libraries.