11

i have a project that lies on a network share. The test runner tries to run the tests but fails with an error message.

Unit Test Runner failed to load assembly: JetBrains.ReSahrper.TaskRunnerFramework.TaskException: Could not load file or assembl 'File://\myshare\Visual Studio 2010\Projects\MyPorject\TestMyProject\bin\Release\TestMyProject.dll' or one of its dependencies.

The tests run with MSTest. I have enabled the option loadFromRemoteSources in devenv.exe.config on Visual Studio 2010 Pro and the Testproject is deployable.

The Problem is the location from which the Test runner tries to read the assembly (file://\)

When i start the project from C:\ it works.

What can i do?

Ilya Ryzhenkov
  • 11,782
  • 1
  • 40
  • 50
mrt181
  • 5,080
  • 8
  • 66
  • 86
  • How did you solve this in the end? if you add a network drive for \myshare\, surely resharper didn't just pick up the drive? did you need to configure resharper to point at the drive? – Mike Jul 31 '12 at 08:48

1 Answers1

25

Find the Jetbrains.resharper.taskrunner.*.exe.config files and add the line:

<loadFromRemoteSources enabled="true"/>

To the <runtime> section.

Related to this but R# has its own external task runner so it can handle assemblies that are cpu specific (amongst other reasons).

Update: Try adding a drive letter for you share. That worked for me.

jamie
  • 2,963
  • 1
  • 26
  • 27