using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace PluginExeDemo { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { if (args.Length <= 0) { MessageBox.Show("请输入启动参数"); Application.Exit(); return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(args[0])); } } }