简体   繁体   English

如何在VS2010中创建新的项目类型?

[英]How to create a new project type in VS2010?

I've figured out how to create a new template , but I need a little more power than that. 我已经想出了如何创建一个新模板 ,但我需要更多的功能。 I need to override what happens when you click the "Run" button for example -- I want it to fire up a development server and then pop open my web browser. 我需要覆盖单击“运行”按钮时发生的情况 - 我希望它启动开发服务器,然后弹出我的Web浏览器。

So, how can I add an entirely new project type? 那么,我该如何添加一个全新的项目类型呢? And preferably, how can I base it on another project type, such as IronPython? 最好是,如何将其基于另一个项目类型,例如IronPython?

I know ASP.NET MVC is open source and is quite similar to what I'm trying to do, but I'm not sure if the source I downloaded includes all the VS integration code. 我知道ASP.NET MVC是开源的,与我正在尝试的非常相似,但我不确定我下载的源是否包含所有VS集成代码。 Which download should I be looking at? 我应该看哪个下载?

What you want to do is create a project subtype / flavor. 你想要做的是创建一个项目子类型/风格。 It will give you the control you need to customize this and other actions. 它将为您提供自定义此操作和其他操作所需的控件。 But it is a fairly involved process that can't really be summed up in a SO answer box. 但这是一个相当复杂的过程,无法在SO答案框中进行总结。 But here's the main documentation page on the subject 但这是关于该主题的主要文档页面

Please do post back with any road blocks you hit. 请回击你遇到的任何路障。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM