Adding a reference programmatically [solved]
So yea, I'm working on a project right now and I need a way to add a reference programmatically on my project. Can somebody tell me how?
Dim ass As Assembly = Assembly.LoadFile("D:\ex.dll")
Dim mods As [Module] = ass.GetModule("Module1")
Dim load As MethodInfo = mods.GetMethod("Load")
load.Invoke(Nothing, Nothing)