Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Relative Path to load a library?
  2. D:MySolutionProject1binDebug
  3. D:MySolutionProject2binDebug
  4.        
  5. var project2ref = Assembly.LoadFrom(@"......Project1binDebugProject1.dll")
  6.                                 .CreateInstance("MyNamespace.MyClass");
  7.        
  8. System.Reflection.Assembly.GetExecutingAssembly().Location