Is it possible to have a T4 template that automatically picks up all assembly references (and their dependencies) of the parent project?
All examples I have seen use <#@ assembly #> or <#@ VolatileAssembly #> to manually define references, so for example I end up having to reference System.Core both in the project and the template. I want to avoid this duplication: I only want to define references in the project, not the template.
This should also add a reference to the project itself, allow referencing additional assemblies in the template, and shadow copy whenever necessary to avoid assembly locking.
It seems this was possible before VS2010, is it possible to re-implement/restore that behavior?