Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted
Comments
Sergey Alexandrovich Kryukov 12-Aug-15 14:00pm    
Sure. Why dealing with weird behavior which is not entirely under your control? Remove it, use Windows 2013 Community Edition instead, and consider 2015 when it becomes available. 2010 is not the best and just makes no practical sense these days; more importantly, it did not offer Community Edition.
—SA
gggustafson 12-Aug-15 15:48pm    
I tried that edition. Then I found out that Xamarin charges for their product after 30 days (I wanted to develop for Android and iOS as well). I removed the community edition am trying to get to VS 2010.

But thanks for the thought.
Sergey Alexandrovich Kryukov 12-Aug-15 15:55pm    
I didn't get why you think VS 2010 could do better. But in VS 2015, Microsoft promises to get rid of Xamarin, if I'm not much mistaken.
—SA
gggustafson 13-Aug-15 12:40pm    
Xamarin is still required in Community 2015.
Sergey Alexandrovich Kryukov 13-Aug-15 12:50pm    
I did not know it; will check it out later. Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900