Kevin Auds
Kevin Auds

Reputation: 174

How to remove comments created automatically from t4toolbox?

I am using t4toolbox extension (https://visualstudiogallery.msdn.microsoft.com/791817a4-eb9a-4000-9c85-972cc60fd5aa) to output js file. But I find some text block auto-generated in js files as:

// // This file was generated by T4 code generator XX.tt. // Any changes made to this file manually will be lost next time the file is regenerated. //

This comment does not be supported for javascript syntax. How to remove this text block from T4toolbox? Thanks!

Upvotes: 0

Views: 135

Answers (1)

Stargazer
Stargazer

Reputation: 472

Probably you found this one yourself, but it may prove useful to others.

In my template, all it took was remove or comment out the line

base.TransformText();

From the TransformText method. This solved the issue in my case.

Upvotes: 2

Related Questions