I'm attempting to use the HandleError attribute like this:
[HandleError(ExceptionType = typeof(ItemNotFoundException), View = MVC.Shared.Views.ErrorPages.ItemNotFound)]
This results in the following compile error:
"An attribute argument must be a constant expression..."
The reason is that T4MVC generates readonly fields rather than constants for view names (such as "ItemNotFound" in this example).
I'd like to suggest that you use constants instead. If there is a good reason why you are not using constants, is there some way to generate an alternate set of view names that use constants? Or perhaps make it an option in the settings?