Text Template Transformation Toolkit: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Rescuing orphaned refs ("autogenerated1" from rev 1131295407)
m Bot: http → https
 
(One intermediate revision by one other user not shown)
Line 22:
T4 uses a custom template format which can contain .NET code and [[string literal]]s in it, this is parsed by the T4 command line tool into .NET code, compiled and executed. The output of the executed code is the text file generated by the template.<ref name="Templatesza">{{citation|author=Web Templates|title=Website templates|url=http://www.websitetemplates.org.za/website-templates-type/|access-date=19 November 2013|year=2013|publisher=Website Templates South Africa|isbn=978-1-4251-3374-0}}</ref> By using the Text Transformation class, T4 can also be run entirely from within a .NET application, eliminating the need for the end user to have Visual Studio installed.
 
T4 is used within Microsoft in [[ASP.NET MVC]] for the creation of the views and controllers, [[ADO.NET Entity Framework]] for entity generation, and [[ASP.NET Dynamic Data]].<ref>{{cite web|url=http://blogs.msdn.com/b/davidebb/archive/2008/11/26/fun-with-t4-templates-and-dynamic-data.aspx |title=Fun with T4 templates and Dynamic Data - Angle Bracket Percent - Site Home - MSDN Blogs |publisher=Blogs.msdn.com |date=2008-11-26 |access-date=2012-05-17}}</ref> It is also used outside of Microsoft in projects such as SubSonic.<ref>{{cite web|author=|url=httphttps://gcapnias.wordpress.com/2009/01/12/subsonic-v3%e2%80%99s-t4-templates/ |title=SubSonic v3's T4 Templates « Daily Cycle |publisher=Gcapnias.wordpress.com |date=2009-01-12 |access-date=2012-05-17}}</ref>
 
T4 templating is supported in [[Visual Studio]], [[MonoDevelop]] and JetBrains Rider.<ref>{{Cite web|url=https://www.jetbrains.com/rider/|title = Rider: The Cross-Platform .NET IDE from JetBrains}}</ref>
Line 56:
* 2008: Microsoft includes it with Visual Studio 2008
* 2010: Microsoft includes it with Visual Studio 2010 which included significant new features to improve performance, usability for both template authors and tool builders and better integration into Visual Studio's DSL tools.<ref name="autogenerated1">{{cite web|url=http://blogs.msdn.com/b/garethj/archive/2010/04/15/what-s-new-in-t4-in-visual-studio-2010.aspx |title=What's new in T4 in Visual Studio 2010 - [Profoundly Esoteric Image&#93; - Site Home - MSDN Blogs |publisher=Blogs.msdn.com |date=2010-04-15 |access-date=2012-05-17}}</ref>
* 2015: Visual Studio 2015 Update 2 can use C# version 6.0 features<ref>{{Cite web|url=https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates|title = Code Generation and T4 Text Templates - Visual Studio (Windows)| date=12 January 2024 }}</ref>
* 2017: Open source version of engine released which supports [[.NET Core]]<ref>{{Cite web|url=https://github.com/mono/t4|title = Mono.TextTemplating| website=[[GitHub]] |date = 22 October 2021}}</ref>
* 2019: JetBrains adds support for T4 in Rider<ref>{{Cite web|url=https://github.com/jetbrains/fortea|title = ForTea| website=[[GitHub]] |date = 20 October 2021}}</ref>