Handlebars.MSBuild 1.0.0

dotnet add package Handlebars.MSBuild --version 1.0.0                
NuGet\Install-Package Handlebars.MSBuild -Version 1.0.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="Handlebars.MSBuild" Version="1.0.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 Handlebars.MSBuild --version 1.0.0                
#r "nuget: Handlebars.MSBuild, 1.0.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 Handlebars.MSBuild as a Cake Addin
#addin nuget:?package=Handlebars.MSBuild&version=1.0.0

// Install Handlebars.MSBuild as a Cake Tool
#tool nuget:?package=Handlebars.MSBuild&version=1.0.0                

Handlebars.MSBuild

When added to your project this exposes the ability to transform Handlebars (.hbs) templates as part of the build process.

<ItemGroup>
    <HandlebarsProperty Include="Name" Value="Byron" />
    <HandlebarsProperty Include="Age" Value="34" />
    
    <HandlebarsTemplate Include="Passport.hbs" />
    
    <HandlebarsTemplate Include="DriversLicense.hbs">
        <Content>
        <![CDATA[
            <License>
                <Name>{{Name}}</Name>
                <Age>{{Age}}</Age>
            </License>
        ]]>
        </Content>
    </HandlebarsTemplate>
</ItemGroup>

The templates will not be rendered anywhere unless you define one of the two properties.

OutputPath

<HandlebarsTemplate Include="Passport.hbs"  OutputPath="Passport.xml"/>

This will write the file relative to the Output directory where your project is building.

AddToCompilation

<HandlebarsTemplate Include="Passport.hbs"  AddToCompilation="true" />

This will transform the file and write it out to the IntermediateOutputPath and add it to the compilation process

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
1.0.0 38 1/12/2025
0.0.1 34 1/12/2025