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
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.
You may have to import the reference manually.
Mine is located here:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\system.data.linq.dll
That should fix this.
System.Data.Linq
is only available in the 7.1 version - Pedro Lamas 2012-04-04 10:23