Search code examples
c#unit-testingt4mvc

How can I get T4MVC to regenerate the .generated.cs files?


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


Solution

  • Right-click on the T4MVC.tt file in Solution Explorer, then click Run Custom Tool. This will regenerate the files.