如何为具有转换器的内置类型的TFS 2010 WF BuildBuildTemplate模板参数挂钩编辑器? [英] How do you hook an editor for TFS 2010 WF BuildProcessTemplate arguments for built-in types that have a converter?
问题描述
我已遵循 Team Foundation Server 2010本书的dictionary<string,string>
自定义编辑器,无法使用它.我还有另一个自定义
I've followed the Team Foundation Server 2010 book's custom editor for a dictionary<string,string>
and can't get it to go. I have another custom editor in the same assembly, and consumed by the same build template that works.
此 SO 对此有所提示是一个TypeConverter
问题,但是我认为自定义构建程序集的任何部分都不会在加载时运行.
This SO hints at it being a TypeConverter
issue, but I don't think any part of a custom build assembly is just run when it is loaded.
我正在获取默认的通用集合编辑器,而不是我的.
I'm getting the default generic Collection Editor instead of mine.
我尝试使用的代码更像我的凭据UITypeEditor
所使用的,然后尝试准确键入UITypeEditor
书中的内容.除非抛出异常,否则对话框本身并不重要,但我认为这会弹出可见的位置,而不仅仅是加载默认编辑器.
I have tried using code more like my credential UITypeEditor
uses, and then tried typing exactly what's in the book for a UITypeEditor
. The dialog itself should not matter unless it was throwing an exception, but I'd think that would popup somewhere visible rather than just loading the default editor.
推荐答案
可能是因为IDE无法找到您的自定义类型.我去年遇到了同样的问题-
It is probably because the IDE is not able to find your custom type. I hit the same issue last year - http://www.neovolve.com/post/2010/06/24/Full-support-for-custom-types-in-TFS-Build-2010-build-definition-editor.aspx. Try putting your custom assembly into the Visual Studio PrivateAssemblies directory and the recycle the IDE.
这篇关于如何为具有转换器的内置类型的TFS 2010 WF BuildBuildTemplate模板参数挂钩编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!