c# - How to implement IVsStatusbar when making a Visual Studio Add-In -


i trying create visual studio add-in, , 1 of things need interact status bar. according msn: status bar should straightforward process. however, cannot resolve on ivsstatusbar object.

the example suggests following pretty standard process such as:

    ivsstatusbar statusbar = (ivsstatusbar)getservice(typeof(svsstatusbar)); 

but visual studio not resolve reference , tells me ivsstatusbar not exist. if right-click auto-resolve, tell me generate new class it.

i know requires microsoft.visualstudio.shell.interop added, still no luck. have tried v 10.0 , v 11.0 of dll, neither have worked. no longer exist in namespace? or there reference / object should using?

i should have of references need:

    using system;     using extensibility;     using envdte;     using envdte80;     using microsoft.visualstudio.commandbars;     using microsoft.visualstudio.shell.interop;     using system.resources;     using system.reflection;     using system.globalization;     using microsoft.visualstudio.shell; 

you need reference of versions of microsoft.visualstudio.shell.interop.xx.dll, not 1 of them. rather change interfaces on time, create new assembly added interfaces services implement in addition previous versions.

edit: note applies interop assemblies. other assemblies, such microsoft.visualstudio.shell, need reference version 10.0 (for visual studio 2010 or 2010+2012 extension) or version 11.0 (for visual studio 2012-only extension).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -