clariuslabs / TransformOnBuild

Transform Text Templates On Build
Apache License 2.0
48 stars 17 forks source link

TransformOnBuild not working #38

Closed ericbrunner closed 8 years ago

ericbrunner commented 8 years ago

Hi,

I tried to let the T4 transformation happen on a Build or Rebuild from within VS2015 Community SP3 but the transformation didn't execute as expected. I made a sample project utilizing the www.reversepoco.com Tool for EF Code First from Database. The included .tt file should be transformed on every new Build or Rebuild but as mentioned something went wrong. Could you please take a look at the sample and let me know what is going wrong?

Sample

Screenshot transformonbuild

thanks,

kzu commented 8 years ago

You need to look at the T4 source. It may have been designed to only be run from within the IDE.

A detailed msbuild log will show you if/when the transforms are being invoked.

On Sun, Aug 14, 2016, 9:24 PM Eric Brunner notifications@github.com wrote:

Hi,

I tried to let the T4 transformation happen on a Build or Rebuild from within VS2015 Community SP3 but the transformation didn't execute as expected. I made a sample project utilizing the www.reversepoco.com https://github.com/sjh37/EntityFramework-Reverse-POCO-Code-First-Generator Tool for EF Code First from Database. The included .tt file should be transformed on every new Build or Rebuild but as mentioned something went wrong. Could you please take a look at the sample and let me know what is going wrong?

Sample https://github.com/ericbrunner/Code-First-Entity-Framework-Legacy-Databases

Screenshot [image: transformonbuild] https://cloud.githubusercontent.com/assets/6480047/17653094/1a783e64-628f-11e6-97b7-30aef73aaf20.png

thanks,

  • Eric

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clariuslabs/TransformOnBuild/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKW6wb2csYOxBQZGGyyp33hI4GKnaalks5qf7GugaJpZM4JkCMf .

/kzu from mobile

ericbrunner commented 8 years ago

Thank you for your reply. That .tt relies on DTE and can't be transformed outside VS. I currently got that information from the reversePoco creator. So it is no issue on your side.