I made a new VS 2005 class library project and I added several VB.NET classes into it. However, when i compile the project and import the dll into my other projects, I cannot see my classes.
What do i do wrong, what should I do to add then in the compilation?
There are multiple reasons why that may happen, so without more information, it's impossible to say for sure why, but the most likely reasons which come to mind are:
Public
. If they are declared as Friend
(or as Private
if they are nested types), they will not be visible to other projects that consume that library. The classes should be declared like this: Public Class MyClass
Imports MyClassLibraryNamespace
(but with your actual namespace). To fully qualify the class name inline, you can do it like this: Dim myVariable As New MyClassLibraryNamespace.MyClass