gpt4 book ai didi

visual-studio-2010 - TFS2010 自定义 checkin 策略的注册表路径?

转载 作者:行者123 更新时间:2023-12-04 20:57:27 24 4
gpt4 key购买 nike

如何为 VS2010/TFS2010 注册自定义 checkin 策略?

2008 年的路径如下:
HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\TeamFoundation\SourceControl\Checkin Policies

但是对于 2010 年,路径在“TeamFoundation”之后结束,即使我应该已经从 Power Tools 获得了一些注册策略。

我只能找到这个 MSDN 博客:

http://blogs.msdn.com/b/jimlamb/archive/2010/03/31/how-to-implement-package-and-deploy-custom-check-in-policy-for-tfs-2010.aspx

但在那里他只展示了如何注册 VSIX pkgdef 文件(这对我来说并不完全有效)。我可以在 VS2010 中添加该策略,但是如果我尝试,我会收到“程序集未注册”错误:
enter image description here

http://dl.dropbox.com/u/974862/Office/checkin_error.JPG

有任何想法吗?

最佳答案

我在 MSDN 论坛中找到了答案:

Start Regedit.exe and locate the following key HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Checkin Policies (TFS2010) The registered policies are listed in the right pane. Right-click in the right-hand pane, point to New, and then click String Value. Type the name of your custom policy dynamic link library (DLL), without the DLL extension; CheckForCommentsPolicy in the above example. Important: The new string name must match your DLL filename exactly, without the DLL extension. Double-click the new string value and set its value to the fully qualified path and filename to the .dll containing your custom policy.



http://social.msdn.microsoft.com/Forums/en/tfsadmin/thread/490f393c-8a37-40ba-aef8-f95b5d736489

关于visual-studio-2010 - TFS2010 自定义 checkin 策略的注册表路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3932993/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com