I have created a ReSharper 8.0 plugin project using the VS2010 project template "ReSharper 8.0 Plug-In and Tests". This complies and works fine. When I come to debugging it I hit F5 and a new instance of VS2010 is instantiated with my plugin loaded and my breakpoints are hit. The problem is when I stop debugging and then hit F5 again - I get this error popping up in the debug VS2010 instance, and I'm unable to debug:
Invalid Command Line. Unknown Switch : ReSharper.Plugin.
If I close VS2010 and open it again ReSharper isn't loaded at all (There is no ReSharper menu). The only thing that fixes this is Reparing it using the R# installer. I've tried deleting the files here: \AppData\Local\Microsoft\VisualStudio\10.0\Extensions\JetBrains\ReSharper but this doesn't help.
Please help me find a consistent way to debug without ReSharper becoming corrupt.