Skip to content
This repository has been archived by the owner. It is now read-only.
T5 is T4 (Text Template Transformation Toolkit) for .NET Core
C# Other
  1. C# 99.4%
  2. Other 0.6%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Emulate logical call context to support parameter directive Dec 12, 2018
tests Add parameter expansion when evaluating include path Sep 12, 2018
.gitattributes Normalize line-endings Feb 2, 2018
.gitignore Ignore JetBrains Rider files Feb 5, 2018
.travis.yml Add CI configs Feb 6, 2018
LICENSE Add README Mar 16, 2017
README.md Fix version typo in README [ci skip] Jun 12, 2018
T5.TextTemplating.sln Add scripts/files as VS solution items Jun 12, 2018
appveyor.yml Add CI configs Feb 6, 2018
build.cmd
build.sh Add scripts to build, test & pack Feb 5, 2018
pack.cmd Add scripts to build, test & pack Feb 5, 2018
pack.sh Add scripts to build, test & pack Feb 5, 2018
test.cmd Add scripts to build, test & pack Feb 5, 2018
test.sh Add scripts to build, test & pack Feb 5, 2018

README.md

T5

Build Status Build Status
NuGet MyGet
NuGet MyGet

T5 is an open-source implementation of the T4 text templating engine for .NET Core based on and derived from Mono.TextTemplating.

Usage

The TextTransform tool can be installed into a .NET Core 2.0 project by adding a <DotNetCliToolReference> node to the project file, as shown below:

  <ItemGroup>
    <DotNetCliToolReference Include="T5.TextTransform.Tool"
                            Version="1.1.0-*" />
  </ItemGroup>

Set the Version attribute value to the desired version of the tool.

The reference will cause the tool to be installed whenever dotnet restore is run next. It can then be used as follows:

dotnet tt TEMPLATE

Replace TEMPLATE with the path to your T4 template.

For full help on usage, run:

dotnet tt --help

When you run dotnet tt, make sure that you do so from the project's directory set as your shell's current directory otherwise dotnet will complain with an error message along the lines of:

No executable found matching command "dotnet-tt"

Building

Make sure that the .NET SDK Core 2.0 is installed.

To build the project, run build.cmd on Windows or build.sh on macOS or a supported Linux distribution.

To run the unit tests, run test.cmd on Windows or test.sh on macOS or a supported Linux distribution. The test script builds the project before running the unit tests.

To build NuGet packages for distribution, run pack.cmd on Windows or pack.sh on macOS or a supported Linux distribution. The packaging script builds the project but does not run unit tests. The script accepts a single optional argument that is used as the version suffix of the packages, e.g. beta1.

You can’t perform that action at this time.