Solving “A numeric comparison was attempted on” Issue (ReSharper and NuGet)

0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×

This is one that’s tripped me up a couple of times, somewhat randomly. I’ve never really tracked down what causes the issue – perhaps moving development between a Mac and an PC, but either way its something that doesn’t require a lot of solving.

The issue

The error in question reads…

…and is generally accompanied by a project within Visual Studio failing to load.

The solution

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
The Essential App Marketing Kit
Subscribe To My Newsletter To Get an Entire Chapter From The Book for FREE
Never display this again
0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×