[英]How to get notified when a Visual Studio project is renamed (VSIX)?
I'm building a Visual Studio extension and I need to get notification when a project is renamed.我正在构建一个 Visual Studio 扩展,我需要在重命名项目时收到通知。
Tried using DTE2.Events2.SolutionEvents
and also tried IVsSolutionEvents
.尝试使用
DTE2.Events2.SolutionEvents
并尝试IVsSolutionEvents
。
Both of them work fine for C#, VB.NET, and F# projects, but not for C++ projects.它们都适用于 C#、VB.NET 和 F# 项目,但不适用于 ZF6F87C9FDCF18B3C3FC9Z7F3 项目。
Is there another way to handle project rename events?还有另一种处理项目重命名事件的方法吗? Or something specific for C++ projects?
或者特定于 C++ 项目的东西?
Thanks.谢谢。
Have you taken a look at the IVsSolutionEvents4
interface and its OnAfterRenameProject
method?您是否
IVsSolutionEvents4
接口及其OnAfterRenameProject
方法?
For an implementation you can take a look at my DulcisX
framework.对于实现,您可以查看我的
DulcisX
框架。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.