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:
- Disable ReSharper
- Tools
- Options
- ReSharper
- “Suspend Now”
- You may then need to restart Visual Studio
- Your solution should now load just fine.
- You should be able to no resume ReSharper, and everything will be working just fine