ReSharper的单元测试亚军找不到内容文件 [英] Resharper Unit Test Runner Can't Find Content Files

查看:187
本文介绍了ReSharper的单元测试亚军找不到内容文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些依靠一些文件,我已经被标记为内容和始终复制的测试。我使用的是DeploymentItem属性运行MSTest的外VS.时,以确保他们被复制到输出目录但是内使用VS ReSharper的测试运行时,这些文件根本就没有送到,它是从执行的目录。任何人都知道如何解决这个问题?

I have some tests that rely on some files I have marked as "Content" and to "Always Copy". I'm using the DeploymentItem attribute to make sure they get copied to the output directory when running mstest outside of VS. However when using the Resharper test runner inside VS these files never make it to the directory that it is executing from. Anyone know how to fix this?

推荐答案

禁用单元测试>影复制组件正在测试 ReSharper的选项修正了这个问题对我来说。

Disabling the Unit Testing > Shadow-copy assemblies being tested Resharper option fixed this problem for me.

这篇关于ReSharper的单元测试亚军找不到内容文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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