Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            string resource = "MoonSub.CookComputing.XmlRpcV2.dll";

            EmbeddedAssembly.Load(resource, "CookComputing.XmlRpcV2.dll");

            string resource2 = "MoonSub.Newtonsoft.Json.dll";

            EmbeddedAssembly.Load(resource2, "Newtonsoft.Json.dll");

            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;

            Options.LoadSettings();
            Application.Run(new MainForm());
        }
Beispiel #2
0
 private static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }