ytandeta

Hello guys,

I try to create VS2005 addin to Team Explorer right-click menu.
The idea is: When you open Source Control Explorer, choose the project and right-click on it you'll get the menu. You can choose: <Get Latest Version> and etc from this menu.
My purpose to add my own command (Ex: Custom Get) to this menu.
Most of the topics I've found in Google are describe how to add command to main command bar - like Tools-><Your command>, but I haven't found anything about right click menu.
Please help....

Thanks



Re: Visual Studio Extensibility VS 2005 Addins to right-click menu


Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

ytandeta

Thanks for help guys!!!

Unfortunately, I cannot run an addin I've created :(

I've placed myaddin.Addin file to [PersonalFolder]Visual Studio 2005\Addins with myaddin.dll, but ... When I remove

myaddin - For Testing.AddIn from this folder - nothing works :(

Any ideas

Thanks






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

Carlos Quintero MVP

See:

Why are there two .Addin files

http://blogs.msdn.com/craigskibo/archive/2004/07/30/202562.aspx






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

ytandeta

I thought that myaddin.Addin - For Testing it is really just for testing!!!
Should I placed test file to Addin directory together with a normal .Addin file





Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

Carlos Quintero MVP

During development the add-in wizard does the right thing and put the .addin files in the correct locations. So, if your add-in project is broken you can create a new one and see where the .addin files must be.

During deployment on the machine of the user, your setup must put an .addin file in one of the folders listed in the Tools, Options dialog, Environment, AddIn/Macros Security. Some folders are for all users, others are for the current user. And then the setup must adjust the location of the assembly inside the .addin file.






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

ytandeta

I didn't get the method how to get context menu and add the custom command to it :(
Addin wizard by default creates custom command in Tools menu bar:(:( and I don't see the way how to put my command to context menu :(





Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

Carlos Quintero MVP

Hi,

You are mixing questions (addin does not load, context menus...) in this thread... could you separate them If the problem is adding a context menu see:

HOWTO: Adding buttons, commandbars and toolbars to Visual Studio .NET from an add-in.

http://forums.microsoft.com/MSDN/AddPost.aspx PostID=932378&SiteID=1&ReturnUrl=






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

ytandeta

Hello guys...

I'm a little bit confuse with .Addins location !

I've placed my MyAddin.Addin xml file along with MyAddin.dll into

\Documents and Settings\<my name>\My Documents\Visual Studio 2005\Addins directory.

I've started VS 2005 and check in the addin in Addin Manager.

Then I've restarted VS 2005 again. However, I cannot see my addin....

Please HELP!!!






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

Carlos Quintero MVP

The folders where VS looks for .addin files are listed in the Tools, Options window, Environment, AddIns/Macros security.






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

ytandeta

I've put my Addin into the right directory.

Unfortunately, It doesn't help.

"c:\Documents and Settings\<user name>\My Documents\Visual Studio 2005\Addins\.."






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

Carlos Quintero MVP

Then you have to use FileMonitor from www.sysinternals.com to trace disk activity and discover why your add-in does not appear in the Add-In Manager




Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

ytandeta

Wow!! It's a lot of tools...

Which one do I need

Thanks






Re: Visual Studio Extensibility VS 2005 Addins to right-click menu


Re: Visual Studio Extensibility VS 2005 Addins to right-click menu

zen001

I have placed the addins in the right directory. I used filemon to confirm this. I click on Tools -> Addin Manager and I can see that devenv.exe opens/reads/closes the .addin files. But unfortunately, I still cannot see anything in the Addin-Manager.

Any ideas


Thanks,

System Info:
Visual Studio 2005 SP1
Windows 2003 SP2