This repository contains a console application and a WebAPI project to demonstrate an issue with Handlebars.Net.Helpers where the DynamicLinq helpers are not registered correctly in a .NET 8.0 WebAPI project.
ConsoleApp
: Demonstrates correct registration of helpers.WebAPI
: Demonstrates the issue with helper registration.
- Clone the repository.
- Open the solution in Visual Studio or your preferred IDE.
- Build and run the console application project.
- Observe the console output showing the number of registered helpers.
- Build and run the WebAPI project.
- Observe the API response showing a different number of registered helpers.
Both projects should register the same number of helpers:
- 134 Block Helpers and 265 Helpers
- Console Application: 134 Block Helpers and 265 Helpers
- WebAPI Project: 97 Block Helpers and 193 Helpers
- .NET Version: 8.0
- Handlebars.Net Version: 2.1.6
- Handlebars.Net.Helpers Version: 2.4.3
- Handlebars.Net.Helpers.Core Version: 2.4.3
- Handlebars.Net.Helpers.DynamicLinq Version: 2.4.3
- Handlebars.Net.Helpers.Json Version: 2.4.3
- Operating System: Windows 11