locked
ProjectItemsEvents not raised for ASP.NET Core projects RRS feed

  • Question

  • In my package, I subscribe to the ProjectItemsEvents interface, via the EnvDTE80.Events2 interface as described by Carlos on this page.

    I have discovered that the events are not being fired when I work with an ASP.NET Core project.

    Is this an error, or is it by design. Is there another way to get the same events for and ASP.NET Core project?

    Phil

    Sunday, June 25, 2017 5:56 PM

All replies

  • Hi Phil Jollans,

    According to your description, it seems that it is a similar issue on the following thread:

    https://github.com/aspnet/Tooling/issues/104

    In addition, what version visual studio you are using?

    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, June 26, 2017 7:03 AM
  • Hi Cole,

    thanks for the reply. I am using Visual Studio 2017.

    I have tested a little bit more and it seems the problem is only with ASP.NET core projects. An ItemAdded event is generated when I add a View or a Controller to the project, but not when I add other kinds of file, like a Class or a Resource file.

    This is not a big problem for me, but it does look like an error in Visual Studio.

    Phil

    Monday, June 26, 2017 8:54 PM
  • Hi Phil Jollans,

    Based the document of projectitemsevents, I could not find related visual studio 2017 information about the events.

    https://msdn.microsoft.com/en-us/library/envdte.projectitemsevents.aspx

    I would suggest that you could post a feedback on the following link.

    https://developercommunity.visualstudio.com/content/problem/52417/debugger-output-says-an-event-was-called-with-wron.html

    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.

    Tuesday, June 27, 2017 7:42 AM