Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            string resource1 = "VivecraftInstaller.ICSharpCode.SharpZipLib.dll";
            string resource2 = "VivecraftInstaller.Newtonsoft.Json.dll";

            EmbeddedAssembly.Load(resource1, "ICSharpCode.SharpZipLib.dll");
            EmbeddedAssembly.Load(resource2, "Newtonsoft.Json.dll");
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            var f = new frmMain();

            f.Show();
            Application.Run();
        }
Ejemplo n.º 2
0
 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }