Some history. When I attempted to download 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. Now 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".
Any thoughts on how to correct this?
G G Gustafson