locked
One package - multiple projects? RRS feed

  • Question

  • It appears each package can only support one project type because it can only support one project factory. Is this correct?
    Thursday, May 21, 2009 5:08 PM

Answers

  • http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.provideprojectfactoryattribute.aspx

    Says there can be multiple. I guess you just specify the attribute multiple times.
    • Marked as answer by Kudzu22 Thursday, May 21, 2009 7:45 PM
    Thursday, May 21, 2009 7:45 PM

All replies

  • http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.provideprojectfactoryattribute.aspx

    Says there can be multiple. I guess you just specify the attribute multiple times.
    • Marked as answer by Kudzu22 Thursday, May 21, 2009 7:45 PM
    Thursday, May 21, 2009 7:45 PM
  • Yes - I have one package which supports THREE project types (all written in MPF).
    Your later post about simply having multiple entries for ProvideProjectFactoryAttribute and ProvideProjectItemAttribute are spot on.  Similarly, the package.Initialize() will register all the project factories too.
    Regards,
    Reed Shilts
    • Proposed as answer by Reed Shilts Friday, May 22, 2009 1:41 PM
    Friday, May 22, 2009 1:41 PM