Having an issue with this today; causing Visual Studio to crash with System.UnauthorisedAccess; tried to track it down through VS debugger, seems to be related to FxCop trying to open a file in a project output folder when that file is read only.

Funny thing though; the file being opened is project content and not an assembly.