Quantcast
Channel: Kai Zhou's Blog
Viewing all articles
Browse latest Browse all 10

Fix A numeric comparison was attempted on “$(TargetPlatformVersion)” that evaluates to “” instead of a number, in condition “‘$(TargetPlatformVersion)’>‘8.0’”

$
0
0

I have a problem with our Visual Studio 2013 solutions. Sometimes (not always) I get the following error during an update of TFS code

A numeric comparison was attempted on “$(TargetPlatformVersion)” that evaluates to “” instead of a number, in condition “‘$(TargetPlatformVersion)’ > ‘8.0’”.  C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets

 

How to fix it:

Without knowing exactly what the problem is, I have tracked it down to something going wrong with ReSharper. So to get passed the error:

  1. Disable ReSharper
    • Tools
    • Options
    • ReSharper
    • “Suspend Now”
  2. You may then need to restart Visual Studio
  3. Your solution should now load just fine.
  4. You should be able to no resume ReSharper, and everything will be working just fine

Viewing all articles
Browse latest Browse all 10

Trending Articles