Get Visual Studio to run a T4 Template on every build

后端 未结 22 2750
余生分开走
余生分开走 2020-11-22 08:29

How do I get a T4 template to generate its output on every build? As it is now, it only regenerates it when I make a change to the template.

I have found other ques

22条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 08:56

    You just install NuGet Package: Clarius.TransformOnBuild

    Then, every time you click Rebuild project (or Solution), your .tt files will run

提交回复
热议问题