Visual Studio 2010 RC + ReSharper 5.0 + Xunitcontrib all in harmony….finally. 3
Working on the bleeding edge is painful. Very painful at times. Throwing away our Team City builds because TFS 2010 didn’t support it really hurt. It was a big woops that I regret.
Moving to Visual Studio 2010 Beta was painful too. Visual Studio worked fine, but no ReSharper made it painful. Even in the early days, ReSharper was not stable in 2010, but after a few months, things look good now. ReSharper and VS 2010 are playing nice together.
There is one last pain point. No Xunit.net test runner. Xunitcontrib provides a ReSharper 5.0 build, but I was never able to get it to work…until now. Previously I was getting the same problem seen by others.
The plugin xunit could not be loaded from "C:\program files(x86)\jetBrains\resharper\v5.0\bin\plugins\xunit.dll" or one of its dependencies. Operation is not supported. (Exception from HRRESULT: 0×801311515)
I tried the best I could to right-click | Properties | Unblock all the files in the plug-in, but the “Unblock” never worked. I would get the same error. Going back into the properties dialog, the unblock would appear again. It looked like the unblock wasn’t sticking.
After a quick Google search, I found an alternative way to unblock files. Copy the files to a FAT 32 and back. The block is stripped. Sweet! My USB key is FAT 32, and after a quick copy and back. No more errors! ReSharper sees and runs my Xunit.net tests.
Just a quick overview of how I installed the plug-in:
- Close Visual Studio.
- Copy the contents of the ExternalAnnotations to:
C:\Program Files (x86)\JetBrains\ReSharper\v5.0\Bin\ExternalAnnotations - Create a folder:
C:\Program Files (x86)\JetBrains\ReSharper\v5.0\Bin\plugins\xunitcontrib.runner.resharper.5.0 - Copy everything else to the USB key.
- Copy it to the folder I just created in step #3.
- Open Visual Studio and run all my tests.

