Skip to content
Mono.TextTemplating.Roslyn / 2.3.0-preview-0038-gade04fee1d

Mono.TextTemplating.Roslyn 2.3.0-preview-0038-gade04fee1d

Install from the command line:
Learn more about NuGet packages
$ dotnet add package Mono.TextTemplating.Roslyn --version 2.3.0-preview-0038-gade04fee1d

About this version

In-process Roslyn compiler for the Mono.TextTemplating T4 templating engine

This is useful for processes that use a hosted instance of Mono.TextTemplating to compile multiple templates. Only the first template will be affected by the startup overhead of the compiler, and compilation of subsequent templates will be much faster.

This can also be used to guarantee a specific version of the C# compiler rather than relying on the system version.

To enable the in-process C# compiler, use the TemplatingEngine.UseInProcessCompiler() extension method.