FXCop rule CA1014 tells you to mark your assembly as CLSCompliant. If you adhere to this, your T4MVC (as of build 2.4.01 at least) will throw compiler warnings saying stuff like
|is not CLS-Compliant.|
If you have 10 controllers and 50 views this will result in 61 warnings…
The reason is that these are public members that start with an underscore, which is a CLS no-no:
To solve this, edit the T4MVC.tt file to mark the code with a [CLSCompliant(false)] attribute. Once you start this, you’ll also find additional warnings from mebers that implement the now-explicitly-non-compliant members, but a few more [CLSCompliant(false)] attribute handles that. Full code in gist below.