开发者

Custom Project Templates with Wizard Visual Studio 2008

开发者 https://www.devze.com 2022-12-14 21:34 出处:网络
I want to create a custom project template with wizard i.e. when I cr开发者_JAVA技巧eate a new project, I will select my custom project template and it will immediatly show me the wizard or a screen w

I want to create a custom project template with wizard i.e. when I cr开发者_JAVA技巧eate a new project, I will select my custom project template and it will immediatly show me the wizard or a screen which takes some form of input and process that input and creates corresponding project. Is it possible to do that same? I have googled a lot but to no avail becoz I found most of the samples which just creates the template but not the wizard.

I want to develop a project template same as ASP.NET MVC, when we create a new ASP.NET MVC project it asks for the test cases an the stuff (A screen appears which asks for some input and based on that input it creates a MVC web application).


You have to create an assembly containing an implementation of Microsoft.VisualStudio.TemplateWizard.IWizard and installit in the GAC, then add a corresponding tag in the template description file.


MSDN documentation about VS Templates. In particular, how to create a wizard for template project customization.

And here's an old tutorial about how to create a simple VS Template.


You can use Castle MonoRail VS integration project as a sample https://svn.castleproject.org/svn/castle/trunk/Tools/VSNetWizard or via FishEye http://fisheye2.atlassian.com/browse/castleproject/trunk/Tools/VSNetWizards

0

精彩评论

暂无评论...
验证码 换一张
取 消