这个网上一下子搜索不到解决方案,rebuild也没有用,其实可能和Resharper设置有关。
可以去ReSharper-Options-Tools-Unit Testing,uncheck“Shadow-copyassemblies being tested”.
这个checkbox自己本身的说明:"Allows to rebuild theassemblies while the tests are running. If shadow-copying is causing problemswhen loading supplementary files, disable this option"。
会在test正在run的时候rebuild和copy程序集比如dll等。
uncheck以后问题解决。
扫描二维码关注公众号,回复:
1806438 查看本文章