コード例 #1
0
ファイル: Program.cs プロジェクト: jrbudda/VivecraftInstaller
        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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jrbudda/VivecraftInstaller
 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }