VS 2012 TFS 源代码管理资源管理器 - 将项目添加到右键单击菜单 [英] VS 2012 TFS Source Control Explorer - Add Item to Right Click Menu

查看:89
本文介绍了VS 2012 TFS 源代码管理资源管理器 - 将项目添加到右键单击菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个 PowerShell 脚本,它将单个文件作为参数并在后台运行与另一个文件的比较.我希望能够在 Team Foundation Server 的解决方案资源管理器中右键单击一个文件,然后选择该文件作为我的脚本的参数.我在 Windows 资源管理器中对文件做了完全相同的事情,但我不太清楚如何为 TFS 做这件事.

I have written a PowerShell script that takes a single file as an argument and runs a compare to another file in the background. I'd like to be able to right click a file in Team Foundation Server's Solution Explorer, and choose that file as the argument for my script. I've done the exact same thing for files in the Windows Explorer, but I can't quite figure out how to do it for TFS.

我认为要编辑的注册表项位于 HKCU\Software\Microsoft\VisualStudio\11.0\TeamFoundation\SourceControl\,但我添加了一个项目,方法与将其添加到Windows 资源管理器外壳,无济于事.有人能指出我正确的方向吗?

I thought the registry items to be edited would be located at HKCU\Software\Microsoft\VisualStudio\11.0\TeamFoundation\SourceControl\, but I added an item the same way I added it to the Windows Explorer shell, to no avail. Can anyone point me in the right direction?

推荐答案

有一个 SO 线程展示了如何使用选项 -> 外部工具和选项 -> 自定义上下文菜单在 Visual Studio 中严格执行此操作.

There is this SO thread that shows how to do this strictly in Visual Studio using Options -> External Tools and Options->Customizing the context menu.

添加项目添加到 Visual Studio 文件夹中的右键单击菜单

这篇关于VS 2012 TFS 源代码管理资源管理器 - 将项目添加到右键单击菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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