I would like to enable solution wide analysis but disable it for a handful of specific files. And more specifically, I'd like to disable the analysis on those files without actually opening the files or running the full analysis first.
We have a situation where we have binary data (encrypted xml) in a file with an xml extension attached to the project. The files are up to 5MG. R# attempts to analyze them and never gives up, generating 250K+ warnings/errors per file. This ultimately tanks the IDE performance, including OutOfMemoryExceptions. You can reproduce this problem by giving any zip file an xml extension and attaching it to a sample .csproj. The memory management wrapper did help with the OutOfMemoryExceptions (thanks) but not CPU usage.
I have found that if I bring up the Errors In Solution pane I can right click and ignore errors that way. Unfortunately this takes a very long time as first the files need to be analyzed, and then the act of ignoring the errors itself runs for a long time (20 minutes so far, it's still running). Ctrl+8 Disable Code Analysis in Current File requires the file to be open first, and these files don't open (VS xml editor probably chokes on the binary data in a similar fashion, but gives up far sooner and the files just don't open) I was able to open the files via Open With... and choosing Xml Editor with Encoding, and then clicking through a few dialogs.
Perhaps the R# options files created alongside my projects and solutions can be hand edited to add the ignore entries? I haven't looked into that but I will. I found the <SkipFilesAndFolders> element in the .resharper file at the solution level. Hand editing this file seems to accomplish what I need.
Thanks for any assistance you can provide.