Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Situation
I create a JSON file from a legacy system of all the objects in a system (Data Tables, Screens e.t.c.). I have created a console application that parses this JSON file and creates new files for an Angular/WebAPI project (Data Models, WebAPI controllers for CRUD, Angular files e.t.c.).

At the moment, I then create a new Angular application and manually add these files into the project.

Problem
Is it possible to create a project template that will prompt the user for the location of the JSON file and then run my file generation code?

The only examples I can find for custom templates are very basic, adding files and exporting as a template.

I'm sure this is possible. When you create a new Web Application for example, a form is presented asking for project type, authentication type e.t.c., but I can't find any information on how to achieve this.

What I have tried:

Internet searches for Project Template examples. As mentioned above, they are very basic examples.
Posted
Updated 29-Nov-17 9:41am

 
Share this answer
 
You can do this with the Custom Wizard feature of Visual Studio, but the documentation is very poor, or non-existent. I wrote an article on the subject for VS 2008: Visual C++ Express, Custom Wizard[^] which may help to explain some of the requirements.
 
Share this answer
 
How to: Use Wizards with Project Templates | Microsoft Docs[^]

Thanks to Richard MacCutchan. Searched various terms in search engine. Never thought to use the term "Wizard".

Will work through this and report on my findings
 
Share this answer
 

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