自动化“附加到进程"在 Visual Studio 2012 中 [英] Automate "Attach to Process" in Visual Studio 2012

查看:45
本文介绍了自动化“附加到进程"在 Visual Studio 2012 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为不属于我的解决方案的软件开发 .NET DLL(没有源代码).

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

我真的很想以某种方式实现一个键快捷方式,自动将 DLL 附加到特定的可执行文件(理想情况下等待 exe 启动).

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?

如果有办法将 VisualBasic 排除在图片之外,那将是一个额外的好处.(无意冒犯 VB 粉丝,但我只是不喜欢它)

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)

推荐答案

由于 Visual Studio 2012 中不存在宏,因此您需要添加扩展.

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

AttachTo 非常好且轻巧.在 Visual Studio 的扩展和更新(在工具中)中搜索它.

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

添加附加到 IIS"、附加到 IIS Express"和附加到 NUnit"工具菜单中的命令.

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

现在您可以比以前更快地开始调试托管在本地 IIS 服务器中的网站或 NUnit 测试失败:)

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

AttachTo 扩展提供了隐藏与您无关的命令的选项.您还可以使用工具分配快捷方式 ->选项 ->键盘.

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

这篇关于自动化“附加到进程"在 Visual Studio 2012 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆