I created a c# dll project under Visual Studio 2010, with several public classes, and I would like to use its classes inside another dll project, but written in vb.net.
In the vb.net dll project, I referenced the built c# dll, but impossible to import the c# classes. The namespace of the c# dll is even not recognized.
What must I do to see my c# classes? If this is possible.
Example of class of my c# dll (namespace MyCSharpDll):
namespace MyCSharpNamespace {
public class MyCSharpClass {
public void Test() {}
}
}
Example in a file of my vb.net dll:
Imports MyCSharpDll.MyCSharpNamespace
VS2010 indicates an error saying that MyCSharpDll is unknown or no public member.
Thank you.
I think you should rewrite your imports
Imports MyCSharpNamespace
without 'MyCSharpDll' part
You asked: "I created a c# dll project under Visual Studio 2010, with several public classes, and I would like to use its classes inside another dll project, but written in vb.net."
YES you can do it.
Just add to that DLL reference and that's it!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With