Target .Net Framework 4 in t4 templates
- by HeavyWave
We have a template that goes like this
<#@ template language="C#v3.5" #>
<#@ assembly name="System.dll" #>
<#@ assembly name="System.Core.dll" #>
<#@ assembly name="System.Data.Linq.dll" #>
It compiles and runs on .Net 3.5, but after we have switched to .Net 4 the template has stopped working, so I've tried using answer from here, but I get errors like this
Error 99 Compiling transformation: Metadata file 'System.Data.Linq.dll' could not be found
How do I correctly modify the template to run on .Net Framework 4?