Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm required to implement project templates on similar lines as that of Visual Studio project selection.

i.e., an opportunity for a user to select what type of project he wants to work with, whether 64 or 32 bit, with or without MFC support...

While I can create single project templates, and I suppose I can also create a wizard which will allow a user to select the configuration of his project, how do i make Visual Studio choose that particular project template and load it?

Essentially, how does the project selector in Visual Studio work, and how can I replicate that?

Kindly advise.
Posted
Comments
Kornfeld Eliyahu Peter 13-Jan-15 3:59am    
Should it be part of Visual Studio?
Member 9378977 19-Jan-15 3:22am    
Yes, this should be part of Visual Studio.

 
Share this answer
 
Comments
Member 9378977 13-Jan-15 23:15pm    
Thank you...but,this uses HTML and javascript. Surely there could be an easier way to achieve this, without the jscript?
Richard MacCutchan 14-Jan-15 3:48am    
Yes, because that is how the project template system works.
Member 9378977 18-Jan-15 23:55pm    
Thank you. I hadn't realized. This solution certainly helps a lot. How would I then package and export this, so others can use it?
Richard MacCutchan 19-Jan-15 3:41am    
The same way I did in my article.
Member 9378977 19-Jan-15 4:01am    
I might have missed it, could you kindly elaborate? Also, would this work for VS 2013 Ultimate? I've made sure the tree structure and rest are the same, but after building, I do not see a matching wizard in my tree..
Visual Studio has a shortcut way to create template from existing project/file...
So do these:
1. Create and configure your project with all the files and references you want to be there from the beginning...
2. Open File/Export Template
3. Follow the wizard
4. Send out the created installer to all who need that project template...
 
Share this answer
 
Comments
Member 9378977 19-Jan-15 4:08am    
Needs to have a wizard which will integrate the right files in the new solution based on Wizard inputs. While I can integrate a wizard with an existing project template, I am not sure how I can make it modify the files in the solution and make it modify project settings,without changing the original project template.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900