I have created a custom template as follows:
Scaffold CustomTemplate View Index
As a result, I now have a local T4 template:
I made some modifications to the template. My question is how to generate code only for the view. I have done the following which works but which in my opinion is overkill since all I want is for my view to be generated.
Scaffold Controller -ModelType Task -ControllerName TasksController -DbContextType TasksDbContext -Repository -Force