Create a ASP.NET MVC Web Application
Copy the CodeTemplates directory into the root of your MVC project.
By copying this directory into your root directory you will be overriding the default templates.
The CodeTemplates directory can be found here:
C#
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC
or
VB.NET
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\VisualBasic\Web\MVC
Highlight each t4 template and delete the “Custom Tool” properties.
Modify template(s)
Add new controller
Now you can see your custom created controller!!!
(This applies to the views as well)
0 comments:
Post a Comment