microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.69k stars 459 forks source link

How to create a project programmatically in C#? #4679

Open jhon65496 opened 1 year ago

jhon65496 commented 1 year ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

How to create a project programmatically in C#? I am interested in an example of C# code that will allow you to create any project from Template Studio templates programmatically.

Describe alternatives you've considered

No response

Additional context

No response

Applies to the following platforms:

mrlacey commented 1 year ago

The tests within this project do that.

However, I'd like to understand why you want this. Depending on what you're trying to do, this is unlikely to be the best way to achieve your goal.