问题描述
当我展开Visual Studio中T4模板,我可以使用完整的C#3.0的语法,包括LINQ表达式,等等。当我展开它使用它TextTransform.exe抱怨LINQ表达式和其他新功能的Visual Studio之外的C#3.0 。 ?是否有TextTransform.exe的较新版本
我运行一个是:
C:\Program Files\Common Files\Microsoft Shared\TextTemplating\1.2\TextTransform.exe
1.2 TextTransform的版本与Visual Studio 2008中附带但是,它会使用C#编译器2.0版,除非你指定版本3.5 模板指令。 3.5是C#CodeDOM提供了C#3.0编译器的内部版本。
When I expand T4 templates inside Visual Studio, I can use the full C# 3.0 syntax, including LINQ expressions, etc. When I expand it outside Visual Studio using TextTransform.exe it complains about LINQ expressions and other new features of C# 3.0. Is there a newer version of TextTransform.exe?
The one I'm running is in:
C:\Program Files\Common Files\Microsoft Shared\TextTemplating\1.2\TextTransform.exe
1.2 is the version of TextTransform that shipped with Visual Studio 2008. However, it will use C# compiler version 2.0 unless you specify version 3.5 in the template directive. 3.5 is the internal version of the C# CodeDOM provider for C# 3.0 compiler.
这篇关于TextTransform.exe似乎只能接受C#的旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!