locked
.NET Core project subtypes RRS feed

  • Question

  • I have a custom project type that add a new property page, this works fine with C# project types when I add my project GUID to the project the custom property page is displayed.

    Now I trying to get this working with .NET Core, but if I add my project GUI to the project nothing happens, running in the debugger I see that in this case ProjectFactory.PreCreateForOuter.

    I wondering if custom project flavors are expected to work with .NET Core projects.

    Monday, December 18, 2017 1:30 PM

Answers

  • .NET Core projects are implemented with the Common Project System (CPS).

    Project flavoring is essentially done via COM Aggregation and it was never supported in earlier versions of CPS. Though a CPS extension point for this was added to VS 2017 per the following:

       https://github.com/Microsoft/VSProjectSystem/blob/master/doc/extensibility/com_aggregation.md

    But it looks fairly limited. If there's a particular feature you want to add or override, you might want to try posting your question to  https://gitter.im/Microsoft/VSProjectSystem, as I don't think the CPS development team often monitors this particular forum.

    Sincerely,


    Ed Dore

    Wednesday, December 20, 2017 2:51 AM

All replies

  • Hi pepone.onrez,

    >>I wondering if custom project flavors are expected to work with .NET Core projects.

    Do you write a custom tool window and bind it related project. or others?

    Best regards,

    Zhanglong 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.

    Tuesday, December 19, 2017 7:58 AM
  • Hi,

    Not sure what you mean. I have a VSIX package that register a project factory that implements FlavoredProjectFactory, then I add the GUID used by the factory to the .NET Core project ProjectTypeGuids property.

    I will expect that the factory PreCreateForOuter was called when the project is initialized but it is not.

    The same factory works well when the base project is a .NET Framework Console application, and UWP Application but for some reason it doesn't work for .NET Core project types

    Tuesday, December 19, 2017 9:16 AM
  • .NET Core projects are implemented with the Common Project System (CPS).

    Project flavoring is essentially done via COM Aggregation and it was never supported in earlier versions of CPS. Though a CPS extension point for this was added to VS 2017 per the following:

       https://github.com/Microsoft/VSProjectSystem/blob/master/doc/extensibility/com_aggregation.md

    But it looks fairly limited. If there's a particular feature you want to add or override, you might want to try posting your question to  https://gitter.im/Microsoft/VSProjectSystem, as I don't think the CPS development team often monitors this particular forum.

    Sincerely,


    Ed Dore

    Wednesday, December 20, 2017 2:51 AM