5

I'm having trouble with getting MSpec to work with ReSharper 6. I've just installed MSpec from the NuGet package:
Installed MSpec from NuGet

Next, I've quit from Visual Studio, opened an elevated command prompt and run the install script from the packages\tools folder:
enter image description here

And finally, reloaded Visual Studio. No dice! No icons in the text editor and no plugin shows up in the ReSharper options.
enter image description here

What am I doing wrong? The MSpec site says this is supposed to work :(

Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
Tim Long
  • 13,508
  • 19
  • 79
  • 147
  • If you get this issue, in my accepted answer below there is a manual installation method. I've found that to be more reliable then using the batch file. Close Visual Studio, delete all the MSpec stuff from the ReSharper plugins folder then manually copy the files over as described below. – Tim Long Nov 12 '11 at 19:51
  • I have this problem now. Any further updates on this? – Mikael Östberg Feb 15 '12 at 10:07

2 Answers2

5

I hand copied:

Machine.Specifications.dll and Machine.Specifications.ReSharperRunner.6.0.dll

to the "%APPDATA%\JetBrains\ReSharper\v6.0\vs10.0\Plugins" folder

as per the instructions, but the integration didn't appear until I had restarted VS2010 and re-loaded the solution.

MSpec for Resharper 6

enter image description here

Ritch Melton
  • 11,498
  • 4
  • 41
  • 54
  • Pretty sure I tried restarting everything, but will try the manual process and see if it helps. – Tim Long Nov 12 '11 at 19:00
  • @Tim - You are using 6.0 and not the 6.1 EAP? – Ritch Melton Nov 12 '11 at 19:13
  • Ok it's started working now. I closed everything, deleted all the existing MSpec stuff from teh ReSharper plugins folder, then manually copied the files over, and hey presto! Working test runner. I've had problems like this before and it seems like the installer batch file might sometimes fail silently and leave the wrong files installed or something. In future I'm going to stick with doing it manually I think. – Tim Long Nov 12 '11 at 19:49
  • Please let me know if you can think of ways how the batch "installer" can be improved! – Alexander Groß Nov 23 '11 at 22:52
1

Windows blocks DLL's that have been downloaded from the internet. Unblock the Machine Specification DLL's from a folder that does not require admin rights and put them back into the Resharper plugins folder. Restart your Visual Studio and reload your project, ReSharper should pick up your MSpec tests.

Useful Link: Help configuring MSpec

Community
  • 1
  • 1