Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automate "Attach to Process" in Visual Studio 2012 [duplicate]

I am developing a .NET DLL for software which is not part of my solution (don't have source).

I'd really like to somehow implement a key shortcut that automatically attaches the DLL to a specific executable (ideally waiting for the exe to start).

What is the best way to go about this?

If there's a way to leave VisualBasic out of the picture that would be an extra bonus. (No offense to VB fans but I just don't like it)

like image 211
Harald Avatar asked Feb 28 '13 07:02

Harald


1 Answers

Since macros don't exist in Visual Studio 2012, you will need to add an extension.

AttachTo is very good and lightweight. Search for it in Extensions and Updates (in Tools) in Visual Studio.

Adds "Attach to IIS", "Attach to IIS Express" and "Attach to NUnit" commands to Tools menu.

Now you can start debugging web site hosted in local IIS server or failing NUnit test quicker than before:)

AttachTo extension provides options to hide commands not relevant to you. You can also assign shortcut using Tools -> Options -> Keyboard.

like image 194
Dave New Avatar answered Nov 15 '22 11:11

Dave New