T4MVC(2.6.02)の現在のビルドを、VS2010Beta2の.NET4に対してコンパイルされたASP.NETMVC2プロジェクトで動作させることができません。
1つのエラーがあります:
The C# 2.0 and C# 3.5 compilers are no longer supported. Templates will always be compiled with the version 4 compiler instead of 'v3.5' as specified.
変更することで簡単に修正できます
<#@ template language="C#v3.5" debug="true" hostspecific="true" #>
に
<#@ template language="C#" debug="true" hostspecific="true" #>
そして、.generated.cs
ファイルが作成されますが、コンパイルエラーが発生しT4MVC.cs
ます。
error CS0116: A namespace cannot directly contain members such as fields or methods.
他の誰かがこれを経験しましたか?