public static ActionsModule CreateFromProject(string projectFile, string outputFile, LightningDevelopmentHandle lightningDevelopmentHandle) { var engine = new Microsoft.Build.Evaluation.Project(projectFile); engine.Build(); return CreateFromDll(outputFile, lightningDevelopmentHandle); }
public void Initialize(LightningDevelopmentHandle handle) { var t = new Thread(new ThreadStart(delegate { while (true) { try { fetchVSState(); } catch (Exception ex) { File.AppendAllText("log.txt", ex.ToString()); } Thread.Sleep(200); } })); t.IsBackground = true; t.Name = "FetchVSState"; t.Start(); }
public MainWindow() { InitializeComponent(); textBox1.KeyDown += new KeyEventHandler(textBox1_KeyDown); Loaded += new RoutedEventHandler(MainWindow_Loaded); KeyDown += new KeyEventHandler(MainWindow_KeyDown); Deactivated += new EventHandler(MainWindow_Deactivated); WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; this.WindowStyle = System.Windows.WindowStyle.None; ShowInTaskbar = false; Topmost = true; ResizeMode = System.Windows.ResizeMode.NoResize; executeSafe(() => { //actionsModule = ActionsModule.CreateFromProject("..\\src\\Modules\\Modules.csproj", AppDomain.CurrentDomain.BaseDirectory + "\\Modules.dll"); actionsModule = new CompositeActionsModule(); var lightningDevelopmentHandle = new LightningDevelopmentHandle(/*actionsModule*/); actionsModule.Submodules.Add(ActionsModule.CreateFromDll(Configuration.Get.ModulesDllPath, lightningDevelopmentHandle)); }); }
public void Initialize(LightningDevelopmentHandle handle) { }
public void Initialize(LightningDevelopmentHandle handle) { watcher.Init(); }
public static ActionsModule CreateFromDll(string dll, LightningDevelopmentHandle lightningDevelopmentHandle) { var ret = new ActionsModule(lightningDevelopmentHandle); ret.loadAssembly(Assembly.LoadFrom(dll)); return ret; }
public ActionsModule(LightningDevelopmentHandle lightningDevelopmentHandle) { handle = lightningDevelopmentHandle; }
public void Initialize(LightningDevelopmentHandle handle) { CorePlugin.WorkingDirectory.Changed += updateGitBasedir; // TODO: detect and log git repository locations }