stevebot
stevebot

Reputation: 24005

How to specify output folder for T4 file

I noticed in Visual Studio, that in the properties for a T4 file, there is a 'Copy to Output directory option'. I have selected the "Copy if newer option", which is the behavior I would like for the generated output of the T4 file.

However, there is no property to specify the output directory for the T4 file. How do I specify the output directory in Visual Studio for a T4 file?

Upvotes: 0

Views: 2556

Answers (1)

podiluska
podiluska

Reputation: 51494

I think that option relates to publishing, and will apply to the template itself.

In order to manage the output locations of my T4 templates, I use T4Toolbox which has a Template class which has an Output.File property.

Upvotes: 2

Related Questions