如何配置 Resharper 5.1 的 Test Runner 以接受网络共享? [英] How to configure Resharper 5.1's Test Runner to accept network shares?

查看:21
本文介绍了如何配置 Resharper 5.1 的 Test Runner 以接受网络共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个位于网络共享上的项目.测试运行器尝试运行测试但失败并显示错误消息.

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 无法加载程序集:JetBrains.ReSahrper.TaskRunnerFramework.TaskException:无法加载文件或程序集File://\myshare\Visual Studio 2010\Projects\MyPorject\TestMyProject\bin\Release\TestMyProject.dll"或其依赖项之一.

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.

测试使用 MSTest 运行.我在 Visual Studio 2010 Pro 的 devenv.exe.config 中启用了 loadFromRemoteSources 选项,并且 Testproject 是可部署的.

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.

问题是测试运行程序试图从中读取程序集的位置 (file://\)

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

当我从 C:\ 启动项目时,它可以工作.

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

我能做什么?

推荐答案

找到 Jetbrains.resharper.taskrunner.*.exe.config 文件并添加以下行:

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

部分.

与此相关但 R# 有它自己的外部任务运行器,因此它可以处理特定于 CPU 的程序集(以及其他原因).

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.

这篇关于如何配置 Resharper 5.1 的 Test Runner 以接受网络共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆