Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a custom project template in new Asp.Net MVC 3 project dialog?

I'm developing a plugin based application using MEF and Asp.NET MVC 3 and I want to create a custom project template to give third party developers when creating new plugins for application.

I can easily export it as a project template but since the host is developed in ASP.NET MVC 3, It seems more logical to be inside new Asp.Net MVC 3 project dialog.

enter image description here

Any ideas?

like image 326
Mehmetali Shaqiri Avatar asked May 26 '11 11:05

Mehmetali Shaqiri


1 Answers

After some digging and 'reflecting', I got a template to successfully show up in the dialog. Most of the credit goes to this post: Add custom viewengine to New project dialog?

The key to getting it working on my machine (64bit) was the registry path mentioned in the answer in that post. I also found via Reflector there is a SupportsHTML5 key too, if you need that.

Here is a screen shot of my template: enter image description here

and here are the registry keys (there is also a title and description at the MyOwnTemplate node)

enter image description here

like image 82
Jason Haley Avatar answered Nov 12 '22 05:11

Jason Haley