views:

22

answers:

2

I have a T4 template that geneates helpert code based on other code that is declared within my project. Because of this, I have to build my project before I run "Transform All Templates". Is it possible to have "Transform All Templates" run as a post-build-event upon a successful build?

+1  A: 

I've not really tried it myself but I think you want to look into this. You should be able to modify your project files to achieve what you want.

Aeka
+1  A: 

An easier solution may be to modify your templates A LA the T4 MVC templates so that they automatically mark themselves as dirty on build (check the docs page and search for AlwaysKeepTemplateDirty for details). You could probably edit your templates to have them do the same thing.

Will