In Resharper 5.1, turn it off by unchecking the ‘Analyze errors in whole solution’ under ReSharper->Options->Code Inspection->Settings
You can also turn it off by right clicking on the green analysis circle (bottom right of Visual Studio) and select ‘Analyse Errors in Solution’.