RuntimeT4Generator 0.3.20
dotnet add package RuntimeT4Generator --version 0.3.20
NuGet\Install-Package RuntimeT4Generator -Version 0.3.20
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.3.20"> <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.3.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuntimeT4Generator, 0.3.20"
#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.3.20 // Install RuntimeT4Generator as a Cake Tool #tool nuget:?package=RuntimeT4Generator&version=0.3.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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="D.tt" RuntimeT4Generator_Modifier="partial struct" />
<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" |
T4Attribute has come since version 0.3.10
[RuntimeT4Generator.T4(kind:RuntimeT4Generator.Kind.Utf8)]
partial struct BigTemplate
{}
RuntimeT4Generator will search BigTemplate.tt under the project directory.
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.4 | 311 | 12/29/2021 | |
0.0.3 | 278 | 12/22/2021 | |
0.0.2 | 329 | 12/22/2021 | |
0.0.1 | 305 | 12/21/2021 |