开发者

Is it possible to programatically access the call hierarchy in VS2010

开发者 https://www.devze.com 2022-12-11 03:49 出处:网络
Visual st开发者_如何学Goudio 2010 has added a call hierarchy function. Does anyone know if it is possible to access this from within a plugin?You can try adding a reference to \\Program Files\\Microso

Visual st开发者_如何学Goudio 2010 has added a call hierarchy function. Does anyone know if it is possible to access this from within a plugin?


You can try adding a reference to \Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Microsoft.VisualStudio.CallHierarchy.Package.Definitions.dll and importing the ICallHierarchy service.

ICallHierarchy allows you to:

public interface ICallHierarchy
{
    void AddRootItem(ICallHierarchyMemberItem item);
    void ShowToolWindow();
}

You might also need other Call Hierarchy .dlls:

  • Microsoft.VisualStudio.CallHierarchy.Package.Implementation.dll
  • Microsoft.VisualStudio.Language.CallHierarchy.dll
  • Microsoft.VisualStudio.Language.CallHierarchy.Implementation.dll
0

精彩评论

暂无评论...
验证码 换一张
取 消