Registering the global filters

May 24, 2012 at 8:04 AM

The following code comes default with the global.asax.cs when you create a new ASP.NET MVC3 project:

public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
     filters.Add(new HandleErrorAttribute());
}

I would like to create a bootstrapper task for this.  Is there an already built in task for this or do I need to go and create a custom taks for this, if custom, what does my method have to inherit from?