Ejemplo n.º 1
0
        private void Merge(object sender, DoWorkEventArgs e)
        {
            object[] args = (object[] )e.Argument;

            worker = (BackgroundWorker)sender;
            ILMergeManager merger = new ILMergeManager();

            merger.OtherAssemblies = (List <string>)args[0];
            merger.PrimaryAssembly = (string)args[1];
            merger.OutputFile      = (string)args[2];
            merger.LogFile         = (string)args[3];

            merger.StatusChanged += new StatusEventHandler(merger_StatusChanged);
            if (!merger.CheckILMerge())
            {
                throw new Exception("Can't found ILMerge utility.");
            }
            merger.Merge();
        }
Ejemplo n.º 2
0
        private void Merge(object sender, DoWorkEventArgs e)
        {
            object[] args = (object[] )e.Argument;

            worker = (BackgroundWorker)sender;
            ILMergeManager merger = new ILMergeManager();
            merger.OtherAssemblies = (List<string>)args[0];
            merger.PrimaryAssembly = (string)args[1];
            merger.OutputFile = (string)args[2];
            merger.LogFile = (string)args[3];

            merger.StatusChanged += new StatusEventHandler(merger_StatusChanged);
            if (!merger.CheckILMerge())
                throw new Exception("Can't found ILMerge utility.");
               merger.Merge();
        }