Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>texttemplatingNew to Visual Studio Code? Get it now.
texttemplating

texttemplating

jacknq

|
7,374 installs
| (0) | Free
CSX (cs script) and T4 executions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TextTemplating

CSX (C# script, cs script) and T4 from vscode via .net cli command - design time transformation and possibility to use engine class for runtime transformation.

Execute from context menu from VSCode!

One of the very few tools that supports reflection and web projects! Compatible with .NET Core 7+ cs projects

Scaffolding for .NET Core without IDE. Command line tool and designtime transformation tool, based on roslyn, no mono or 3rdparty dependencies.

Support this project

paypal

Features

Generate any text, any code or script template, any language from your domain c# code, include it in your continous integration... very useful stuff! See DesignTimeSample etc.

features

Requirements

  1. Install .NET SDK 7+ or higher https://dotnet.microsoft.com/download/dotnet-core
  2. Install textemplating tool

Install locally - inside project folder

dotnet tool install TextTemplating.Tool

or Install globally

dotnet tool install --global TextTemplating.Tool

Add nuget package to csproj, if used with cs project

<PackageReference Include="TextTemplating.Core" Version="5.0.0" /> 

Usage

transform template on the fly

#locally
dotnet tt hello.csx
dotnet tt Person.tt
#globally 
tt hello.csx
tt Person.tt

# or 
 
dotnet tt trans -f Person.tt

Now you can use the dotnet tt command as a command line tool locally or just call tt globally to transform templates at design-time, with the specified command line arguments.

How to Use

Run dotnet tt -h to see the usage.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft