Hi Pedro,
this is a known issue of GAX and most probably will be fixed in a hotfix that should be available soon (we're working on it right now)
in the meantime what you can do is add the following redirects in you devenv.exe.config
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.TextTemplating" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.TextTemplating.VSHost" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>(it just applies for Vs2008)
those redirects fix the issue.
Regarding the template that you've posted remember that you should use just the assembly name or a path so when you put
<#@ Assembly Name="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>
should be
<#@ Assembly Name="System.Core.dll" #>
hope it helps
jose.
Jose Escrich - weblogs.asp.net/jescrich