As part of my research into doing test driven development on the Windows Mobile platform, I tried to create a “smart device” project level reference.
(See the post Unit Testing Smart Device Projects for more information about using Microsoft Test and unit testing on Windows Mobile)
As I haven’t found the information anywhere else, I thought I’d post my problem and the solution:
When my test project was in Visual Basic, I got this brutal error message:
A reference to xxxxxxxxx could not be added:
A CSharp test project did manage to get to add the reference, but only after getting this message:
Does this mean I’ve finally found something CSharp can do better than VB.Net? Surely not!
After a great deal of messing around, I tried using the Microsoft Test Test Wizard to create the Visual Basic test project. This worked. The reason this worked was that it took a file reference instead.
So there’s your workaround. Use a file reference.