Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

This link[^] is going to be your best source of support for NMock.
 
Share this answer
 
Comments
Richard A. Dalton 3-Nov-10 9:24am    
Yeah, that link is for NMock2 which isn't really developed any more. NMOck3 took over where that left off, but I think it's developed by different people.

Anyhoo, I've given up on this. It works with C#, can't get it working with VB.Net. Perhaps there's a way, but life's too short.

Back to Rhino Mocks I guess.

-Richard

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900