使用 vsx 获取添加的项目信息

发布于 2024-07-23 02:51:02 字数 138 浏览 3 评论 0原文

我刚刚创建了一个事件处理程序来确定何时将新项目添加到解决方案资源管理器中; 但是,我无法获取该项目的属性(名称等)。

在事件处理程序方法中,我只有我的项目项。 有什么方法可以使用接口来获取我需要的信息吗?

谢谢你!

I just created an event handler to determine when a new item is added to the solution explorer; however, I'm unable to obtain the properties of the item(Name, etc).

In the event handler method, I just have my project item. Is there any way I could possibly use an interface to obtain the information I need?

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光与爱终年不遇 2024-07-30 02:51:02

Carlos Quintero 的以下文章详细解释了如何订阅 ProjectEvents 并获取信息。

HOWTO:在 Visual Studio 宏中初始化新事件

HOWTO:从 Visual Studio .NET 加载项获取 Project 和 ProjectItem 事件。

The following articles from Carlos Quintero explain in detail about how to subscribe and get information from the ProjectEvents.

HOWTO: Initializing new events in Visual Studio macros

HOWTO: Getting Project and ProjectItem events from a Visual Studio .NET add-in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文