I want to basically add a new menu item to the context menu in the solution explorer and when the user clicks on it, I need to create a new window which gets filled in with stuff based on the project selected. Then based on what the user selects, I want to start Visual studio debugging session with certain arguments.
I looked at the Visual Studio DSL forum, but it does not look like if it is suitable for this and all other forums are about something else.
In short:
1. how do insert a new menu item to solution explorer context menu
2. how do I know currently selected project
3. how do I tell Visual Studio to attach to a certain process and start debugging it (not the project - but that will be good to know too)
Thanks
Pawan

Extensibility: how to write an add-in for VS2005
rjackb
check the docs on
Devenv /debugexe
at
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vscmds/html/cd700006-1648-418f-924b-4b1e5c1412ab.htm
Morbo
Get started in the "For add-in developers" section of my web site (below). You have stuff for several days/weeks.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
cmatt2
Hi
While this may not totally answer your question, I recently read a good article in the February edition of MSDN Magazine that discusses how to create an Add-In for a code converter. You can find the article here.
HTH
TinyTony
They just released the Visual Studio 2005 automation examples a couple of weeks ago...
http://www.microsoft.com/downloads/details.aspx FamilyId=79C7E038-8768-4E1E-87AE-5BBBE3886DE8&displaylang=en
They have an example that demonstrates a context menu with the Solution Explorer.
Not sure how you would attach the debugger to a specific process...
You may also want to consider automating the task using Visual Studio macros... they are easier to write and better documented. Here is a code snippet to attach to a process... this one was for automating the steps for attaching to the debugger and stepping into web service calls.
Sub StepIntoWS()
Try
'get all of the local processes running
Dim ps As EnvDTE.Processes = DTE.Debugger.LocalProcesses()
Dim p As EnvDTE.Process
For Each p In ps
'if we find an apsnet_wp.exe process running, attach to it
If p.Name.EndsWith("aspnet_wp.exe") = True Then
p.Attach()
Exit For
End If
Next
'now execute the step into
DTE.Debugger.StepInto(True)
Catch e As Exception
MessageBox.Show(e.Message)
End Try
End Sub
dcleary
Is there no way to use the extensibility to tell Visual Studio to start a give program and attach to it I want to run this external tool and provide it the selected project or c# file as the argument.
Thanks
Pawan