protected override void Initialize() { base.Initialize(); var assembly = "XXProjectSupportAssemblyXX"; if (string.IsNullOrEmpty(assembly)) return; var assemblyFullPath = Path.Combine(VsUtils.GetPlaginPath(), @"Languages\XXProjectSupportAssemblyXX"); var projectSupport = new ProjectSupport("XXProjectSupportXX", "XXProjectSupportClassXX", Path.Combine(VsUtils.GetPlaginPath(), assemblyFullPath)); var languages = new [] { new LanguageInfo("XXLanguageFullNameXX", Path.Combine(VsUtils.GetPlaginPath(), @"Languages\XXProjectSupportAssemblyXX")) }; var config = new Config(projectSupport, languages); NitraCommonPackage.AddProjectType(config); }
protected override void Initialize() { base.Initialize(); var assembly = "XXProjectSupportAssemblyXX"; if (string.IsNullOrEmpty(assembly)) return; var assemblyFullPath = Path.Combine(VsUtils.GetPlaginPath(), @"Languages\XXProjectSupportAssemblyXX"); var projectSupport = new ProjectSupport("XXProjectSupportXX", "XXProjectSupportClassXX", Path.Combine(VsUtils.GetPlaginPath(), assemblyFullPath)); var path = Path.Combine(VsUtils.GetPlaginPath(), @"Languages\XXProjectSupportAssemblyXX"); var extensions = ImmutableHashSet.Create<string>(StringComparer.OrdinalIgnoreCase, XXFileExtensionsXX); var languages = new [] { new LanguageInfo("XXLanguageFullNameXX", path, extensions) }; var config = new Config(projectSupport, languages); NitraCommonPackage.AddProjectType(config); }
/// <summary>Record Constructor</summary> /// <param name="projectSupport"><see cref="ProjectSupport"/></param> /// <param name="languages"><see cref="Languages"/></param> public Config(ProjectSupport projectSupport, LanguageInfo[] languages) { ProjectSupport = projectSupport; Languages = languages; }