简体   繁体   English

_dispSolutionEvents_ProjectAddedEventHandler的替换

[英]Replacement for _dispSolutionEvents_ProjectAddedEventHandler

I am migrating an existing add-in to an extension targeting VS2017 . 我正在将现有加载项迁移到以VS2017为目标的扩展中。

In this process i started converting converting DTE events to IVsSolutionEvents . 在此过程中,我开始将转换DTE事件转换为IVsSolutionEvents Then i came across _dispSolutionEvents_ProjectAddedEventHandler event. 然后我遇到了_dispSolutionEvents_ProjectAddedEventHandler事件。 But i could not find an appropriate replacement in IVsSolutionEventsX . 但是我在IVsSolutionEventsX找不到合适的替代IVsSolutionEventsX

Does any one know its replacement or how can i get an event when a project is added in solution other than the DTE Event? 除了DTE事件以外,在解决方案中添加了项目时,有人知道它的替换吗?如何获得事件?

IVsSolutionEvents.OnAfterOpenProject具有fAdded参数,如果将项目添加到解决方案,则该参数为true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM