Abstract controllers are ignored

Jan 10, 2015 at 2:14 PM
We have an assembly with common controllers, etc, and multiple client projects which call into that assembly.

The common stuff, eg controllers, are marked abstract, obviously.

Problem is T4MVC seems to ignore abstract controller classes. I assume this is by design.

How do I get it to recognise my abstract controllers? I need it to, because in that common assembly we also use T4MVC, and prefer to use MVC.Foo.Index() rather than "\foo\index" for example.
Jan 10, 2015 at 5:24 PM
It doesn't ignore abstract controllers, but processes them differently. I don't remember the details as it's been a while, but I know there was a fair bit of trickiness in handling them. You can search for GetAbstractControllers() in the .tt file.
Jan 30, 2015 at 3:36 PM
Edited Jan 30, 2015 at 3:38 PM
For future readers, ignore this.

The [T4MVC] attribute now handles the abstract controllers case.