设计师自定义工具 [英] Custom Tool with designer
问题描述
你好CP,
我一直在为Visual Studio开发代码生成工具.
关于它的信息很多,但是如何创建一个GUI来配合它呢?
MSDataSetGenerator是一个自定义工具"(用于XSD文件),但与我在网络上找到的自定义工具教程不同,它具有GUI.
所以我想知道如何将GUI添加到代码生成工具中?
还是我完全看错了方向?
--edit--
构建了代码生成工具(针对.something文件类型)后,如何像MSDataSetGenerator一样将GUI/自定义设计器与其关联?
Hello CP,
I''ve been looking at making a code generation tool for Visual Studio.
There is quite some information on it, but how can I create a GUI to go with it?
The MSDataSetGenerator is a ''custom tool'' (for XSD files) but unlike custom tool tutorials I''ve found in the web, it has a GUI.
So I was wondering, how you can add a GUI to a code generation tool?
Or am I looking in the wrong direction completely?
--edit--
Having built a code generation tool (for the .something filetype), how can I associate a GUI/Custom designer to it like the MSDataSetGenerator has?
推荐答案
创建 ^ ]并使用它来生成代码.
您还可以将菜单添加到Visual Studio菜单栏 [
Create a custom msbuild task[^] and use this to generate the code.
You can also add a Menu to the Visual Studio Menu Bar[^], and use this to display your designer.
Best regards
Espen Harlinn
这篇关于设计师自定义工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!