Ilya Vasunin
Ilya Vasunin

Reputation: 81

Creating new pages via code (Asp.Net Core)

How can I add and create new razor pages and folders via code using Asp.NET Core?

Upvotes: 0

Views: 169

Answers (1)

Jason Pan
Jason Pan

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.

Example link and picture

ManageChangePassword.tt

enter image description here

Upvotes: 1

Related Questions