Asked this on MSDN - no answers
Some history. I was current with Windows Update. That meant that .Net Frameworks 4.5 and 4.6 were installed. When I attempted to install Visual Studio 2010 Express for Windows Phone, I was stopped by a message indicating that the Framework 4 Extender and Framework 4 Client Profile were not compatible. After trying a multitude of steps, I finally used the .Net Framework Repair Tool and removed all .Net Frameworks on the machine (Win 7 SP1). I then downloaded .Net Framework 4. The installation of Visual Studio 2010 Express for Windows Phone proceeded as expected. But when I attempted to create a new project, I encountered the following message:
Cannot evaluate property expression
"$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExtensions
Path32)\Microsoft.Cpp\v4.0\V140\'))" found at
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions
\14.0@VCTargetsPath". Invalid static method invocation syntax:
"[MSBuild]::ValueOrDefault'$(VCTargetsPath)','$(MSBuildExtensionsPa
th32)\Microsoft.Cpp\v4.0\V140\'))". Method '[MSBuild]::ValueOrDefault'
not found. Static method invocation should be of the form:
$([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine('a',
'b')).
Using the Registry Editor, I found that there is no key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0\VCTargetsPath".
There is a key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0\11.0\VCTargetsPath".
I think that the key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" is an artifact of .Net Framework 4.something.
Any thoughts on how to correct this?