static class Program
{
//设置引用程序集路径
static Program()
{
AppDomain.CurrentDomain.SetData("PRIVATE_BINPATH", "DevExpress;");
AppDomain.CurrentDomain.SetData("BINPATH_PROBE_ONLY", "DevExpress;");
var method = typeof(AppDomainSetup).GetMethod("UpdateContextProperty", BindingFlags.NonPublic | BindingFlags.Static);
var funsion = typeof(AppDomain).GetMethod("GetFusionContext", BindingFlags.NonPublic | BindingFlags.Instance);
method.Invoke(null, new object[] { funsion.Invoke(AppDomain.CurrentDomain, null), "PRIVATE_BINPATH", "DevExpress;" });
}
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}