RuntimeT4Generator 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RuntimeT4Generator --version 0.2.0                
NuGet\Install-Package RuntimeT4Generator -Version 0.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RuntimeT4Generator" Version="0.2.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RuntimeT4Generator --version 0.2.0                
#r "nuget: RuntimeT4Generator, 0.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RuntimeT4Generator as a Cake Addin
#addin nuget:?package=RuntimeT4Generator&version=0.2.0

// Install RuntimeT4Generator as a Cake Tool
#tool nuget:?package=RuntimeT4Generator&version=0.2.0                

RuntimeT4Generator

This is a replacement of TextTemplatingFilePreprocessor.

Installation

Install via Nuget.

dotnet add package RuntimeT4Generator

How to use

<ItemGroup>
    
    <AdditionalFiles Include="A.tt" RuntimeT4Generator_Namespace="YourOwnNamespace" />
    
    <AdditionalFiles Include="B.tt" RuntimeT4Generator_TypeName="YourOwnClassName" />
    
    <AdditionalFiles Include="D.tt" RuntimeT4Generator_ParameterName="buffer" />
    
    <AdditionalFiles Include="E.tt" RuntimeT4Generator="" />
    
    <AdditionalFiles Include="E.tt" RuntimeT4Generator="Utf8, Utf16, StringBuilder" />
</ItemGroup>

You can use RuntimeT4Generator_Namespace, RuntimeT4Generator_TypeName and RuntimeT4Generator_ParameterName at the same time.

This source generator support the 3 types.

Type RuntimeT4Generator Value
System.StringBuilder "StringBuilder" or ""
System.StringBuilder "StringBuilder" or ""
ref Cysharp.Text.Utf16ValueStringBuilder "Utf16"
ref global::System.Runtime.CompilerServices.DefaultInterpolatedStringHandler "DefaultInterpolatedStringHandler"
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.20 778 1/12/2022
0.3.19 300 1/9/2022
0.3.18 294 1/9/2022
0.3.17 271 1/9/2022
0.3.16 320 1/9/2022
0.3.13 323 1/6/2022
0.3.12 306 1/6/2022
0.3.11 303 1/6/2022
0.3.10 312 1/6/2022
0.3.7 304 1/4/2022
0.3.6 311 1/4/2022
0.3.5 332 1/4/2022
0.3.4 331 1/4/2022
0.3.3 298 1/4/2022
0.3.2 353 1/4/2022
0.3.1 288 1/4/2022
0.3.0 278 1/4/2022
0.2.1 327 1/3/2022
0.2.0 320 1/3/2022
0.1.3 329 1/2/2022
0.1.2 353 12/29/2021
0.1.1 317 12/29/2021
0.1.0 257 12/29/2021
0.0.6 304 12/29/2021
0.0.5 294 12/29/2021 0.0.5 is deprecated because it has critical bugs.
0.0.4 311 12/29/2021 0.0.4 is deprecated because it has critical bugs.
0.0.3 278 12/22/2021
0.0.2 329 12/22/2021
0.0.1 307 12/21/2021