ReSharper 8.0 debugging plugin in VS2010 works for the first time, and then subsequent error attempts

I created a ReSharper 8.0 plug-in project using the VS2010 project template "ReSharper 8.0 Plug-In and Tests". This is consistent and works great. When I come to debug it, I press F5 and a new instance of VS2010 is created with my plugin loaded, and my breakpoints hit. The problem is that I stop debugging and then hit F5 again - I get this error appearing in the VS2010 debug instance, and I cannot debug:

Invalid command line. Unknown switch: ReSharper.Plugin .

If I close VS2010 and open it again, ReSharper does not load at all (there is no ReSharper menu). The only thing that fixes this is to reboot it using the R # installer. I tried to delete the files here: \ AppData \ Local \ Microsoft \ VisualStudio \ 10.0 \ Extensions \ JetBrains \ ReSharper, but this will not help.

Please help me find a consistent way to debug without damaging ReSharper.

+4
source share
1 answer

This is similar to the problem described in several problems in the ReSharper tracker. In particular, the function "Move to experimental bush", which appears for the first time when ReSharper is launched with /ReSharper.Internal .

There is an error in ReSharper that incorrectly moves the settings silently, as a result of which ReSharper will be removed from the "main" hive of Visual Studio.

As a workaround, until this is fixed correctly, you can try removing this option from the ReSharper global configuration file, for this suggestion . This should at least prevent ReSharper from moving into the experimental bush.

Also, delete the line:

 <s:Boolean x:Key="/Default/Housekeeping/JumpVsixFromMachineToPerUser/IsEnabled/@EntryValue">False</s:Boolean> 

from GlobalSettingsStorage.DotSettings (usually located in %AppData%\JetBrains\ReSharper\vAny ) to enable the pop-up window for this function again the next time you start Visual Studio using /ReSharper.Internal.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1494310/


All Articles