locked
GlobalProjectCollection and EnvDTE.Solution.AddFromFile. RRS feed

  • Question

  • hey,

    how to open projects loaded in ProjectCollection.GlobalProjectCollection in a solution using EnvDTE?

    Saturday, March 4, 2017 7:25 PM

All replies

  • Hi HAOUAT Mohamed,

    >>how to open projects loaded in ProjectCollection.GlobalProjectCollection in a solution using EnvDTE?

    Do you mean that you want to create a EnvDTE.Project object and load the file from ProjectCollection.GlobalProjectCollection object. if so, as far as I know, it have not a way to load project from ProjectCollection.GlobalProjectCollection directly. you could create new solution object and use AddFromFile method add related files. For more information, please refer to:

    https://msdn.microsoft.com/en-us/library/4y34x89h.aspx

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 6, 2017 6:50 AM