Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <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;
 }