I'm building a NuGet package that delivers some T4 templates into the CodeTemplates directory. When I install the NuGet package, the T4 templates all have the Custom Tool property set to "TextTemplatingFileGenerator". This isn't right.
I know I can disable this by altering my registry so that new T4 templates aren't added this way, but since this is a NuGet package, that is not an option.
I've looked into PowerShell, but I'm having trouble understanding what I would do to achieve my goal.
I've looked at the .csproj file xml and found this:
<None Include="CodeTemplates\AddController\Controller.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Controller.cs</LastGenOutput>
</None>
If I remove "TextTemplatingFileGenerator" from this node, then the file will work as I desire.
Where should I go from here?