Reputation: 81
How can I add and create new razor pages and folders via code using Asp.NET Core?
Upvotes: 0
Views: 169
Reputation: 21918
According to your needs, I think you want a hint similar to the code generator.
You can use T4 Text Templates for code generation.
I suggest you read the code of Generator-ASP.NET-Core-MVC, it should help you.
Upvotes: 1