How can I use T4 templates with MonoDevelop 2.2 on OSX

I understand that MonoDevelop supports MVC and uses the T4 implementation to generate code.

Is there a way to use T4 with my own templates?

I am using MonoDevelop 2.2 Alpha (MonoTouch pre-builds) on OSX Snow Leopard. Mono 2.4.2.3 is also installed (which is required for MonoTouch pre-builds).

I created a very simple .tt file as a test, but nothing happens during the build process, and there are no tool options when right-clicking.

+3
source share
3 answers

T4 ASP.NET MVC MonoDevelop. , .

, .app, TextTransform.exe . "" → " ", "".

+3
+1

Currently (with MonoDevelop 2.6), living is much easier, since the IDE has a lot of T4 support. However, there is one caveat. You cannot just add your existing T4 files to the project and get them automatically generated. You must go to the "Add / Files" dialog box, select "Templating" and "T4", and then copy the contents of your existing file to a new file.

+1
source

Source: https://habr.com/ru/post/1717114/


All Articles