Target .Net Framework 4 in t4 templates

Posted by HeavyWave on Stack Overflow See other posts from Stack Overflow or by HeavyWave
Published on 2010-05-06T01:03:34Z Indexed on 2010/05/06 1:08 UTC
Read the original article Hit count: 341

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about T4

Related posts about templates