I am adding tests to the NerdDinner DinnersController class, and when I create the constructors needed to do Constructor Injection I get a conflict with the T4MVC-generated constructor (specifically, the base constructor). It looks like the base constructor is not generated if one already exists -- is this true? If so, what do I need to do to re-generate the T4MVC files?
Thanks, Dave
Right-click on the T4MVC.tt
file in Solution Explorer, then click Run Custom Tool. This will regenerate the files.
https://marketplace.visualstudio.com/items?itemName=BennorMcCarthy.AutoT4MVC
Click the link above, or if it disappears, in Visual Studio (2015):
AutoT4MVC
Your templates should now rebuild automatically every time you build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With