Every now and then I’ll find that Visual Studio just blows up – seemingly without me having changed anything – throwing the error:
A numeric comparison was attempted on "$(TargetPlatformVersion)" that evaluates to "" instead of a number, in condition "'$(TargetPlatformVersion)' > '8.0'".
Where the number at the end changes every so often.
How to fix this? Annoyingly simple.
Repair Resharper and restart Visual Studio.
Hope that saves you a few hours..!
Thank you man! You saved my day!
Thanks man!!!
Thank you so much. You saved lots of my hours.
Thank you so much.
You’re a hero.
OMG, you save my life!
When I got this error I just restarted Visual Studio and the error went away.
Please note, when I did restart the project did initially load, but I just right clicked and hit reload target and it did.
Ref:http://stackoverflow.com/questions/22141054/error-occurs-while-installing-the-nuget-package-in-visual-studio
This worked for me no need for a reinstall.