title: ASP.NET MVC 5 Custom Scaffolding Option [t4 templates]
body: <p>Currently , I am developing a framework , I want to add custom scaffolding option in visual studio menu.</p>
  
  <p><img src="https://i.stack.imgur.com/8HlDz.png" alt="Custom scaffolding option"></p>
  
  <p>By default <strong>"MVC5 Controller with views, using Entity Framework"</strong> option 3 from the dialog box chooses <strong>"CodeTemplates\MvcControllerWithContext\Controller.cs.t4"</strong> , that t4 again targets view t4 templates inside</p>
  
  <ul>
  <li>"CodeTemplates\MvcView\ModelMetadataFunctions.cs.include.cs.t4"</li>
  <li>"CodeTemplates\MvcView\Create.cs.t4"</li>
  <li>"CodeTemplates\MvcView\Edit.cs.cs.t4"</li>
  <li>"CodeTemplates\MvcView\Delete.cs.cs.t4"</li>
  <li>"CodeTemplates\MvcView\List.cs.cs.t4"</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/CXTTy.png" alt="Visualization"></p>
  
  <p>I have been modifying t4 templates almost a year, I haven't found a single piece of evidence that suggest that how it is targeting those views or how to add option in the scaffolding dialog. I have googled a lot , however haven't found anything close.</p>
  
  <p>In summary , <strong>I am only looking for the place where I can add or modify the locations for those t4 templates and add a reference of a new scaffold in the scaffolding dialog box</strong>.</p>
  
  <p>Any of the answer will be dearly appreciated. Thank you.</p>