TFS 自定义签入策略不在添加框中 [英] TFS Custom Check-In Policy is not in the Add box
问题描述
我已按照此网站上的步骤操作:http://msdn.microsoft.com/en-us/library/bb668980.aspx 以创建 TFS 自定义签入策略.我已经按照它的建议更新了注册表,除了 Visual Studio 11.0 而不是 8.0
I have followed the steps on this website: http://msdn.microsoft.com/en-us/library/bb668980.aspx to create a TFS Custom Check-In Policy. I have updated the registry as it suggests except to Visual Studio 11.0 instead of 8.0
在 Visual Studio 2012 -> 团队资源管理器 -> 设置 -> 源代码管理 -> 签入策略选项卡中单击添加.我看到 4 个政策,但我的未列出.
In Visual Studio 2012 -> Team Explorer -> Settings -> Source Control ->Check-In Policy Tab I click on Add. I see 4 policies, but mine is not listed.
我的计算机上安装了 VS 2012.我使用 VS2012 创建了策略 dll 并引用了 11.0 Microsoft.TeamFoundation.VersionControl.Client 程序集.
I have VS 2012 installed on my computer. I created the policy dll with VS2012 and referenced the 11.0 Microsoft.TeamFoundation.VersionControl.Client assembly.
请注意 TFS 2010 安装在源代码管理服务器上.
Please note TFS 2010 is installed on the source control server.
推荐答案
如果您的操作系统是 64 位,则必须在 Wow6432Node 下添加签入策略,而不是 MSDN 上规定的路径:
If your OS is 64-bit, you must add the checkin policy under the Wow6432Node instead of the path stated on MSDN:
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio11.0TeamFoundationSourceControlCheckin Policies
更新
另一种注册表路径,至少在通过扩展 (.vsix) 安装策略时使用
An alternative registry path, at least used when installing policies through an extension (.vsix) is
HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio11.0_ConfigTeamFoundationSourceControlCheckin Policies
这篇关于TFS 自定义签入策略不在添加框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!