예제 #1
0
 void RunCommunicationThread()
 {
     try {
         host.Run(DataReceived);
     } catch (Exception ex) {
         ShowMessageBox(ex.ToString());
     } finally {
         lock (this) {
             requestProcessShutdown = true;
             Monitor.PulseAll(this);
         }
     }
 }
예제 #2
0
        internal static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomain_CurrentDomain_UnhandledException);

            if (args.Length == 3 && args[0] == "worker")
            {
                try {
                    host = new HostProcess(args[1], args[2]);
                    host.Run(new Program().DataReceived);
                } catch (Exception ex) {
                    ShowMessageBox(ex.ToString());
                }
            }
            else
            {
                Console.WriteLine("ICSharpCode.SharpDevelop.BuildWorker.exe is used to compile " +
                                  "MSBuild projects inside SharpDevelop.");
                Console.WriteLine("If you want to compile projects on the command line, use " +
                                  "MSBuild.exe (part of the .NET Framework)");
            }
        }