Reputation: 499
I'm having trouble adding dll to a vb.net project. The dll is written in c#.net, which shouldn't be a problem.
Here is what I do:
The second I build my project, the dll is no longer recognised. It is still checked when I look under Add / Add Reference though
If I don't write the Import statement and just use the classes I get an error with a tool tip that creates the Import statement correctly.
I really have no idea what the problem is.
If it helps, here is my code:
Import UserEngine
....
Private Function bLogin(sUser As String, sPassword As String) As Boolean
Dim login As UserLogin 'the class from the dll
login = New UserLogin
bLogin = login.login(sUser, sPassword)
End Function
Once I build the project, I get errors in the Import ...
line, the Dim ...
line and login = ...
line saying The type "UserLogin" is not defined
.
Upvotes: 0
Views: 2421
Reputation: 1911
Right click on dll in references and go to properties. Set copy local to true. If that is giving you problem you can add dll to your project by add existing item.
Upvotes: 1