public BooLangProjectFactory(Package package) : base(package) { string booBinPath = (string)Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\VisualStudio\9.0Exp\Configuration\Packages\{55663be2-a969-4279-82c5-a6f27936f4f7}").GetValue("BooBinPath"); this.package = (ProjectPackage)package; this.BuildEngine.GlobalProperties["BoocToolPath"] = new BuildProperty("BoocToolPath", booBinPath); this.BuildEngine.GlobalProperties["BooBinPath"] = new BuildProperty("BooBinPath",booBinPath); }
public BooProjectNode(ProjectPackage package) { this.package = package; imageIndex = this.ImageHandler.ImageList.Images.Count; booFileNodeImageIndex = imageIndex + 1; foreach (Image img in imageList.Images) { this.ImageHandler.AddImage(img); } }
public BooProjectNode(ProjectPackage package, BooLangService.BooLangService languageService) { this.package = package; this.languageService = languageService; imageIndex = this.ImageHandler.ImageList.Images.Count; booFileNodeImageIndex = imageIndex + 1; foreach (Image img in imageList.Images) { this.ImageHandler.AddImage(img); } }
public BooLangProjectFactory(Package package) : base(package) { RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\BooLangStudio"); // The path should be in the registry, but if it's not then do your best by looking // at the location of the current assembly! string booBinPath = (string)(key != null ? key.GetValue("BooBinPath") : Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"..\Dependencies\boo\build\")); this.package = (ProjectPackage)package; this.BuildEngine.GlobalProperties["BoocToolPath"] = new BuildProperty("BoocToolPath", booBinPath); this.BuildEngine.GlobalProperties["BooBinPath"] = new BuildProperty("BooBinPath",booBinPath); this.BuildEngine.GlobalProperties["GenerateFullPaths"] = new BuildProperty("GenerateFullPaths", "True"); }
private IProjectEvents GetProjectEventsProvider() { ProjectPackage projectPackage = this.package as ProjectPackage; Debug.Assert(projectPackage != null, "Package not inherited from framework"); if (projectPackage != null) { foreach (SolutionListener listener in projectPackage.SolutionListeners) { IProjectEvents projectEvents = listener as IProjectEvents; if (projectEvents != null) { return(projectEvents); } } } return(null); }