S
Saul Behr
For all Microsoft's blah about C# and VB being completely mixable and
interchangeable, I recommend for anyone who can still take this
advice:
DO NOT MIX VB AND C# PROJECTS IN THE SAME SOLUTION!
The compiler simply goes to pieces when it is confronted with the
combination of a VB project (A) referencing a C# project (B) that
references another VB project (C)
If you have a class (D) in project B that inherits/implements a
class/interface (E) from C, then any attempt to reference class D from
project A will cause the compiler to fail: "Reference required to
assembly 'C' containing the implemented interface 'E'. Add one to your
project.
If you have an interface (F) in project B that inherits an interface
(G) from project C, then any attempt to implement that interface in a
class in project A is also doomed to failure. Even using that
oh-so-clever interface stub generator that VB provides, the very stub
it generates will cause a compiler error.
I've seen a lot of other threads about this. Yes, project A *does*
reference BOTH project B AND project C. Been there, done that. This
is simply a BUG in the .NET compiler, and you can test it for yourself
pretty easily if you don't believe me...
Regards,
Saul
interchangeable, I recommend for anyone who can still take this
advice:
DO NOT MIX VB AND C# PROJECTS IN THE SAME SOLUTION!
The compiler simply goes to pieces when it is confronted with the
combination of a VB project (A) referencing a C# project (B) that
references another VB project (C)
If you have a class (D) in project B that inherits/implements a
class/interface (E) from C, then any attempt to reference class D from
project A will cause the compiler to fail: "Reference required to
assembly 'C' containing the implemented interface 'E'. Add one to your
project.
If you have an interface (F) in project B that inherits an interface
(G) from project C, then any attempt to implement that interface in a
class in project A is also doomed to failure. Even using that
oh-so-clever interface stub generator that VB provides, the very stub
it generates will cause a compiler error.
I've seen a lot of other threads about this. Yes, project A *does*
reference BOTH project B AND project C. Been there, done that. This
is simply a BUG in the .NET compiler, and you can test it for yourself
pretty easily if you don't believe me...
Regards,
Saul