简体   繁体   English

如何在重命名 Visual Studio 项目 (VSIX) 时收到通知?

[英]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.

相关问题 如何在 vsix 项目中获取和使用 Visual Studio 命令 - How to get and use Visual Studio command in vsix project 获取由Visual Studio在VSIX项目中存储的Nuget凭据 - Get Nuget credentials stored somewhere by Visual Studio in a VSIX project 如何创建Visual Studio 2017多模板VSIX项目? - How to create Visual Studio 2017 multi template VSIX project? VSIX Visual Studio 扩展项目模板创建 - VSIX Visual studio extension project template Creation 使用MEF和VSIX创建Visual Studio项目系统 - Creating Visual Studio project system with MEF and VSIX 在 Visual Studio 中为 Visual Studio 扩展 (VSIX) 获取选定的选项卡 - Get the selected tabs in Visual studio for Visual studio extension (VSIX) 如何解决 VSIX -Visual Studio 扩展项目中 Azure.Core.dll 的参考? - How to resolve reference for Azure.Core.dll in VSIX -Visual Studio Extension project? 默认情况下如何激活Visual Studio扩展VSIX C#项目的工具栏 - How to activate by default the toolbar for a Visual Studio extension VSIX C# project 如何在VSIX项目中的Visual Studio中打开生成报告摘要? - How can I open the Build Report Summary within Visual Studio in a VSIX project? 如何在Visual Studio 2017 VSIX C#项目中启用/禁用命令 - How can I enable/disable command in Visual Studio 2017 VSIX C# project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM