I had this problem in the Windows 7 Ultimate 64 bit when trying to configure the Windows 7 Phone SDK. No SDK / Toolkit installation / repair combination was designed for me, so I decided to explore a little further.
Having placed several <Message /> build tasks in the Microsoft.Silverlight.Common.targets file, I found that I did not have a registry entry in Software \ Microsoft \ Silverlight \ 4.0. This was true for both the 32-bit section and the Wow6432Node section.
Thus, the outputs of several assembly targets that detect where the frameworks are stored return spaces, with the result that the number of lines down ends with a number of other targets. In particular, the _FullFrameworkReferenceAssemblyPaths and TargetFrameworkDirectory properties were not set properly.
Despite the fact that I am completely anathema to all recommendations, I circumvented this problem by manually copying the values ββto the .targets file, for example:
<PropertyGroup> <_FullFrameworkReferenceAssemblyPaths>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0</_FullFrameworkReferenceAssemblyPaths> <TargetFrameworkDirectory>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone</TargetFrameworkDirectory> </PropertyGroup>
Not what I am especially proud of, but it is necessary if I am going to make some progress in development. Hope this helps someone else.
Gary McLean Hall Jun 13 '10 at 22:18 2010-06-13 22:18
source share