Reference problems

gixslayer

Member
Joined
Nov 8, 2008
Messages
19
Programming Experience
Beginner
Hey, well i'm building an application. Which uses a class library i made earlier called InstallChecker.dll

If i add in a reference to it, it works fine. But as long as the dll is in the same folder as my exe. But i want my dll to be in a subfolder called System.

It crashes when i move it there. Any one knows how i can fix this?

Here is my exe code:
VB.NET:
Imports InstallChecker.Class1

Public Class Form1
    Dim Inst As New InstallChecker.Class1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If Inst.CheckInstall() = True Then
            MsgBox("OK")
        Else
            MsgBox("NOT OK")
        End If
    End Sub
End Class
 
You're giving yourself grief, why do you care if these files are in application folder or not? Have a look at this: <assemblyBinding> Element for <runtime> You also have to customize a setup project to deploy the referenced files.
 
Back
Top