Is there any documentation or tutorials on scaffolding it
Asp.net core. I want to add some custom code to views that am always repeating. I would like to be able to modify the controller dialog that appears to add two tick boxes there as well to allow for the new custom generators.
I know Microsoft done away with the super simple t4 generators for the new scaffolding GitHub project but the documentation in its use is very poor.
As Mike said, you could find the default template in `C:\Users\{username}\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\{Core Version}\Templates\`.
You could copy the Templates folder to your project and edit them as required.Then you could did the scaffold operation.
Here is what I try with an asp.net core mvc application.Because I do not use Identity,so I just copy the Templates folder to project with out Identity and Identity_Versioned folder:
Best Regards,
Rena
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
16 Points
131 Posts
Scaffolding custom views
Jul 16, 2020 05:27 PM|roguenidb|LINK
Is there any documentation or tutorials on scaffolding it
Asp.net core. I want to add some custom code to views that am always repeating. I would like to be able to modify the controller dialog that appears to add two tick boxes there as well to allow for the new custom generators.
I know Microsoft done away with the super simple t4 generators for the new scaffolding GitHub project but the documentation in its use is very poor.
All-Star
194428 Points
28074 Posts
Moderator
Re: Scaffolding custom views
Jul 17, 2020 05:46 AM|Mikesdotnetting|LINK
The templates are located at C:\Users\{username}\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\{Core Version}\Templates\.
You can edit them. I'm not sure about adding new ones.
Contributor
2690 Points
874 Posts
Re: Scaffolding custom views
Jul 17, 2020 06:31 AM|Rena Ni|LINK
Hi roguenidb,
As Mike said, you could find the default template in `C:\Users\{username}\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\{Core Version}\Templates\`.
You could copy the Templates folder to your project and edit them as required.Then you could did the scaffold operation.
Here is what I try with an asp.net core mvc application.Because I do not use Identity,so I just copy the Templates folder to project with out Identity and Identity_Versioned folder:
Best Regards,
Rena