English 中文(简体)
Is it possible to programatically access the call hierarchy in VS2010
原标题:

Visual studio 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 FilesMicrosoft Visual Studio 10.0Common7IDEMicrosoft.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




相关问题
LINQ to SQL Table Extensibility Methods

If I have a LINQ to SQL table that has a field called say Alias. There is then a method stub called OnAliasChanging(string value); What I want to do is to grab the value, check the database whether ...

How to design an extensible CMS for Google App Engine?

I am a fan of the extensibility of the CMSes. You can upload some code (usually PHP), authorize it from the CMS admin panel and it s running. I wonder if it is possible in Google App Engine. I haven ...

MVC - Creating new Views without adding Actions to Controller

I m working on a mini CMS-like application using asp.net MVC 1.0 (I will upgrade it once 2.0 is released). Once feature I want, that is pretty vital to a CMS, is the ability for an admin to add pages ...

How can I provide an API stub for an MEF component?

The Visual Studio 2010 SDK ships with many assemblies like Microsoft.VisualStudio.Text.Data and Microsoft.VisualStudio.Text.UI that are just stubs. To write an extension for Visual Studio, you ...

Architecture for extension/plugin communication

Once the problem of loading plugins is solved (in .NET through MEF in out case), the next step to solve is the communication with them. The simple way is to implement an interface and use the plugin ...

Resources for programming a system that supports plugins

I need resources -preferably a text- about programming systems that supports plugins or extensibility and other related detailed stuff, like handling permissions and resources for those plugins

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

热门标签