public Bootstrapper(IList<INinjectModule> dependentModules)
        {
            _dependentModules = dependentModules;
            Assembly assembly = Assembly.GetExecutingAssembly();
            FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
            string version = fvi.FileVersion;
            _log.Info("Starting VisualMutator version: " + version);
            _log.Info("Starting bootstrapper.");
            try
            {

                _log.Info("Configuring dependency container.");
                SetupDependencyInjection();

                _log.Info("Executing dependency injection.");
                _appController = _kernel.Get<ApplicationController>();

            }
            catch (Exception e)
            {
                _log.Error("Error during addin initialization",e);
                if (Debugger.IsAttached)
                {
                    Debugger.Break();
                }
                else
                {
                    if(_kernel != null)
                    {
                        _kernel.Get<IMessageService>().ShowFatalError(e);
                    }
                   // MessageBox.Show(e.ToString());
                }
            }
        }
        public Bootstrapper(Package package)
        {
            _package = package;


            Assembly assembly = Assembly.GetExecutingAssembly();
            FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
            string version = fvi.FileVersion;
            _log.Info("Starting VisualMutator version: " + version);
            _log.Info("Starting bootstrapper.");
            try
            {

                _log.Info("Configuring dependency container.");
                SetupDependencyInjection();

                _log.Info("Executing dependency injection.");
                _appController = _kernel.Get<ApplicationController>();

                VisualMutator_VSPackagePackage.MainControl = _appController.MainView;



            }
            catch (Exception e)
            {
                _log.Error("Error during addin initialization", e);
                if (Debugger.IsAttached)
                {
                    Debugger.Break();
                }
                else
                {
                    MessageBox.Show(e.ToString());
                }
            }



        }
        public Bootstrapper()
        {
         
            _log.Info("Starting bootstrapper.");

   
            try
            {

                _log.Info("Configuring dependency container.");
                SetupDependencyInjection();

                _log.Info("Executing dependency injection.");
                _appController = _kernel.Get<ApplicationController>();

              //  System.Configuration.Se

//ConfigurationManager.AppSettings.
             //   VisualMutator_VSPackagePackage.MainControl = Shell;



            }
            catch (Exception e)
            {
                _log.Error("Error during addin initialization",e);
                if (Debugger.IsAttached)
                {
                    Debugger.Break();
                }
                else
                {
                    MessageBox.Show(e.ToString());
                }
            }


            
        }