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.
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.
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.
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.
来源:https://stackoverflow.com/questions/6141010/how-do-you-hook-an-editor-for-tfs-2010-wf-buildprocesstemplate-arguments-for-bui