locked
Select which project factory opens a given extension. RRS feed

  • Question

  • Hello,

    From MSDN:

    Project types are associated with a particular file name extension. When a user attempts to open an existing project file or attempts to create a new project by cloning a template, the IDE uses the extension on the file to determine the corresponding project GUID.

    As soon as the IDE determines whether it must create a new project or open an existing project of a particular type, the IDE uses the information in the system registry under [HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\Projects] to find which VSPackage implements the required project factory. The IDE loads this VSPackage. In the SetSitemethod, the VSPackage must register its project factory with the IDE by calling the RegisterProjectType method.

    Is it possible to override this behaviour and manually select which project factory is used, based on the template content?

    Thanks.

    Monday, September 9, 2013 8:51 AM

Answers

  • Hi,

    As shown above, the file name extension is determined by the IDE,so I think there is little possibility to implement what you need.

    Here is one related topic below:

    "Overriding" a built-in project type

     

    In addition, if you want to extend project systems,please refer to the following link:

    IDE-Defined Commands for Extending Project Systems

     

    Have a good day.

    Jane.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Ali.Alikhani Wednesday, September 11, 2013 6:02 AM
    • Marked as answer by Jane Wang - MSFT Tuesday, September 17, 2013 12:24 AM
    Tuesday, September 10, 2013 10:12 AM