P
Peter
Alex,
using System.Reflection;
namespace myApp
public class frmMain : System.Windows.Forms.Form
{
public frmMain()
{
InitializeComponent();
}
Assembly.LoadFrom("\path\to\MyLib.dll")
Assembly.LoadFrom("\path\to\MyOtherLib.dll")
Assembly.LoadFrom("\another path\to\YetAnotherLib.dll")
static void Main()
{
Application.Run(new frmMain());
}
}
with compiling I get a error "Invalid token '(' in class, struct, or
interface member declaration.
Assembly a = Assembly.LoadFrom("\path\to\MyLib.dll") is compiling ok
What could be wrong ?
Thanks Peter.
You don't even need to assign the result anywhere:
Assembly.LoadFrom("\path\to\MyLib.dll")
Assembly.LoadFrom("\path\to\MyOtherLib.dll")
Assembly.LoadFrom("\another path\to\YetAnotherLib.dll")
using System.Reflection;
namespace myApp
public class frmMain : System.Windows.Forms.Form
{
public frmMain()
{
InitializeComponent();
}
Assembly.LoadFrom("\path\to\MyLib.dll")
Assembly.LoadFrom("\path\to\MyOtherLib.dll")
Assembly.LoadFrom("\another path\to\YetAnotherLib.dll")
static void Main()
{
Application.Run(new frmMain());
}
}
with compiling I get a error "Invalid token '(' in class, struct, or
interface member declaration.
Assembly a = Assembly.LoadFrom("\path\to\MyLib.dll") is compiling ok
What could be wrong ?
Thanks Peter.
You don't even need to assign the result anywhere:
Assembly.LoadFrom("\path\to\MyLib.dll")
Assembly.LoadFrom("\path\to\MyOtherLib.dll")
Assembly.LoadFrom("\another path\to\YetAnotherLib.dll")