Where can I find the project templates for ASP.NET MVC 1.0?

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-05-22T07:54:57Z Indexed on 2010/05/22 8:00 UTC
Read the original article Hit count: 130

I would like to edit the ASP.NET MVC templates for Visual Studio so that any new action or controller created has a specific piece of code within it by default.

For instance, I'd like to replace the generated:

    public ActionResult MyAction()
    {
        return View();
    }

with a specific coding standard we prefer to use within in my team. eg:

    public ActionResult About()
    { 
        try 
        {
             DoStuff();
             return View();
        }
        catch(Exception)
        {
             HandleException();
        }
    }

I've looked through the filesystem, but I cannot find anything specific that relates to the ASP.NET mvc templates. Anyone know where they are?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about c#