其他人对NMock3和VB有问题吗? [英] Anyone else having problems with NMock3 and VB?

查看:91
本文介绍了其他人对NMock3和VB有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在C#项目中使用NMock3,则可以正常工作.

如果我在Vb.Net项目中使用它,我会不断丢失它的类型.在我添加对NMock3的引用之后,像Mockery这样的类型看起来很好,但是每当我尝试构建或运行测试时,它都会一直显示为未知类型(带有弯曲的下划线).

如果再次添加引用,所有类型都将被识别(线条和错误消失),但是当我尝试构建时,我会收到错误(和线条下划线).

该引用实际上并没有删除,它仍然存在于引用对话框中,但是如果我进行构建,则会丢失类型.

仅影响Vb.Net.

VS 2010是否重要.

有人让NMock3在VB.Net中工作吗?

-Richard

If I use NMock3 in a C# project it works fine.

If I use it in a Vb.Net project I keep losing it''s types. The types like Mockery etc look fine after I add the reference to NMock3, but keep showing up as unknown types whenever I try to build or run tests (complete with squiggly underlines).

If add the reference again the types are all recognized (squiggly lines and errors disappear), but as soon as I try to build I get the errors (and squiggly underlines).

The reference doesn''t actually drop, it''s still there in the references dialog, but if I build I lose the Types.

Only affects Vb.Net.

VS 2010 if that matters.

Anyone got NMock3 working in VB.Net?

-Richard

推荐答案

此链接 [ ^ ]将是您对NMock的最佳支持来源.
This link[^] is going to be your best source of support for NMock.


这篇关于其他人对NMock3和VB有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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