I agree with GarethJ – in VS2010 it is much easier to regenerate tt templates on each build.
Oleg Sych’s blog describes how to do it. In short:
- Install Visual Studio SDK
- Install Visual Studio 2010 Modeling
and Visualization SDK - Open in text editor project file and
add to the end of file but before</Project>
That’s it. Open your project. On each build all *.tt templates will be reprocessed
<!-- This line could already present in file. If it is so just skip it -->
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- process *.tt templates on each build -->
<PropertyGroup>
<TransformOnBuild>true</TransformOnBuild>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets" />