Visual Studio 2010 中的 MSpec 仍然无法正常工作

发布于 2024-09-28 19:03:34 字数 591 浏览 0 评论 0原文

有人之前提出了类似的问题,得到当我在 Visual Studio 2010 中运行 MSpec 时出现以下错误:

无法加载文件或程序集“Machine.Specifications.dll”或其依赖项之一。系统找不到指定的文件。

另一篇文章中的解决方案是下载 MSpec 的 .net4 特定版本。但是,这就是我正在使用的,它仍然不起作用。我什至今天重新下载了最新版本,并使用 build-4.0-release.cmd 文件构建了它。更换了我的参考,仍然有同样的问题。

奇怪的是,我第一次运行 MSpec 时,它工作得很好。只有当我尝试重新运行它时,才会出现此错误。

测试在 ReSharper 测试运行器中仍然运行良好。所以,还是可以用的。但是,ReSharper 测试运行程序不会生成 Report.html 文件。这确实是我想让它发挥作用的唯一原因。有没有办法让 ReSharper 生成 Report.html 文件?这样也能解决问题。

Someone asked a similar question before, getting the following error when I run MSpec in Visual Studio 2010:

Could not load file or assembly 'Machine.Specifications.dll' or one of its dependencies. The system cannot find the file specified.

The solution in the other post was to download the .net4 specific version of MSpec. But, that's what I'm using, and it still doesn't work. I even re-downloaded the latest today, and built it with the build-4.0-release.cmd file. Replaced my reference, and still had the same problem.

The strange thing is that the first time I run MSpec, it works just fine. It's only when I try to re-run it that I get this error.

The tests still run just fine in the ReSharper test-runner. So, it's still usable. But, the ReSharper test-runner doesn't generate the Report.html file. That's really the only reason I want to get it to work. Is there a way to get ReSharper to generate the Report.html file instead? That would also solve the problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫轩蝶泪 2024-10-05 19:03:34

您似乎遇到了与我们在 GitHub 上讨论的相同问题。如果是这样,您所需要做的就是按照所描述的方式“解锁”您的Machine.Specifications.dll。希望这有帮助。

It seems that you have the same issue we were discussing on GitHub. If so, than all that you need is to "unblock" your Machine.Specifications.dll in the way described. Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文