e Is there any way where one can produce compile time errors if an action method is not available in the controller through using the Html.Action
?
For examp
T4MVC is a T4 template for ASP.NET MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places.
This does exactly what I require and removes the usage of 'magic strings' as opposed to strongly typed identifiers. Compile time errors are provided even in views if the <MvcBuildViews>true</MvcBuildViews>
is set to true.
Thanks @StuartLC for the tip!