Automate “Attach to Process” in Visual Studio 2012

2019-01-26 12:38发布

This question already has an answer here:

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)

1条回答
We Are One
2楼-- · 2019-01-26 13:18

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.

查看更多
登录 后发表回答