We have a set of T4 templates we have just migrated forward to VS 2010 and they compile but are no longer working the same.
In order to see what is actually going on under the hood it would be useful to see the temporary cs files that T4 generates to produce the actual T4 conversion.
As you're now using Visual Studio 2010, you can also change the custom tool on the template from TextTemplatingFileGenerator to TextTemplatingFilePreprocessor temporarily.
This will spit out the underlying code directly into your project instead of the regular template output.
If you set
<#@ template debug="true"#>
then the generated code will be left in your temp directory. On my Windows 7 system, that's C:\Users\John Saunders\AppData\Local\Temp
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With