通过 SVN 实现跨多个环境的 NUnit 一致性
我们有多个贡献者在 Visual Studio 2010 中开发 C# 项目。我想使用 NUnit,但请确保我们的存储库中包含正确的版本。我知道这是可以做到的,我只是找不到好的参考资料。
我认为这与在解决方案中包含正确的 .dll 文件并以这种方式引用程序集有关。
提前致谢。
We have multiple contributors working on a C# project in Visual Studio 2010. I'd like to use NUnit, but ensure that the proper version of it is included in our repository. I know it can be done, I just can't find a good reference on it.
I think it has to do with including the right .dll files in the solution and referencing the assembly that way.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我不知道这方面的在线指南(如果有的话),但据我了解,该过程将与添加到源中而不是从外部引用的任何框架的过程非常相似。
因此,我会执行以下操作:
这可能是一个迭代过程。例如,如果您使用的 NUnit 二进制文件引用其他二进制文件,它会抱怨引用损坏。将这些额外的库一一添加,直到构建成功。当您尝试此操作时,请确保卸载官方 NUnit,以确保所有引用都是本地的。
希望这有帮助。
Well, I'm not aware about online guidelines for this (if any), but to my understanding the procedure will be quite similar to the same one for any framework which is added to the sources instead of being referenced from outside.
So, I would do the following:
This can be an iterative process. For instance, if NUnit binaries you use reference others, it will complain about broken reference. Add such extra libraries one by one until the build is successful. Make sure the official NUnit is uninstalled when you try this in order to be confident all references are local.
Hope this helps.