Visual Studio 2010 可扩展性 - 自定义项目模板向导
我读过相当多的关于 VS2010 中可扩展性改进的故事,得到了很大的改进(即基于 MEF 等),但还没有亲自动手。我最近遇到了一个现实世界的场景,这让我想要深入研究,但令我惊讶的是没有找到很多关于启动和运行我想要构建的内容的有用信息。
我的团队在 Silverlight 上创建了我们自己的领域特定 UI 框架,我们希望打包一系列项目和项模板,作为我们产品附带的 SDK 的一部分进行共享。通过将某些内容导出到 zip 中以传统方式执行此操作非常简单,但我们希望在创建新项目时能够与 ASP.NET MVC 或 Silverlight 中获得的向导更加内联(即对话框/向导跳转)并要求您提供更多信息,并根据您的额外输入生成额外的项目、参考、代码等)。
这些功能是通过 VS2010 中的可扩展性模型公开的吗?如果有人能指出我的总体方向,我将不胜感激。谷歌今天没有为我提供任何信息:(
I've read a fair amount about the improvements of the extensibility story in VS2010 being much improved (i.e. MEF based, etc.), but have yet to get my hands dirty. I've recently ran across a real world scenario that's making me want to dive in, but I'm surprised to not find a lot of helpful info on getting up and running with what I want to build.
My team has created our own domain specific UI framework on Silverlight and we'd like to package up a series of Project and Item Templates to share as part of an SDK we ship with our product. Doing this in the traditional way by exporting something into a zip is pretty straightforward, but we'd like to have something more inline with the wizard you get in ASP.NET MVC or Silverlight when you create a new project (i.e. dialog/wizard jumps up and asks you for more info and generates additional projects, references, code, etc. based on your additional input).
Are these capabilities exposed through the extensibility model in VS2010? If anyone could point me in a general direction, I would appreciate it. Google isn't turning up anything for me today :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不确定您是否看过这篇文章: http://msdn .microsoft.com/en-us/library/xkh1wxd8.aspx。它详细介绍了 VS 2010 中的“如何:创建项目模板”。
I'm not sure if you have come across this article: http://msdn.microsoft.com/en-us/library/xkh1wxd8.aspx. It goes into detail on "How to: Create Project Templates" in VS 2010.
http://www.codeproject.com/KB/macros/VSExtnsnsTemplates2010.aspx
http://www.codeproject.com/KB/macros/VSExtnsnsTemplates2010.aspx
msdn 上的一些很棒的演练=> http://msdn.microsoft.com/en-us/library/dd885242.aspx
Some great walk-through on msdn => http://msdn.microsoft.com/en-us/library/dd885242.aspx
引自 MSDN:如何:使用向导与项目模板
Quote from MSDN: How to: Use Wizards with Project Templates