Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handlebars.Net fails silently when used in .NET 8 Windows Service

Lukykl1 opened this issue · comments

Description

When using Handlebars.Net within a .NET 8 Windows service, the library fails to operate correctly and does not throw any exceptions. This issue was resolved by targeting the project to .NET 8, suggesting a compatibility issue with .NET 8 that should be addressed.

Steps to Reproduce

  1. Create a Windows service using .NET 8.
  2. Implement Handlebars.Net to render templates.
  3. Observe that the service fails to render templates and does not throw any exceptions.

Expected behavior

Handlebars.Net should either successfully render templates or throw an explicit exception detailing what went wrong.

Actual behavior

The library fails silently with no output or exceptions, making debugging difficult.

Possible Solution

Updating Handlebars.Net to explicitly support .NET 8 could resolve this issue. Perhaps there are underlying compatibility issues that need to be addressed.

Additional context

The problem was resolved by explicitly targeting the project to .NET 8, which is not initially apparent as a necessary step for compatibility.

Environment

  • Handlebars.Net version: latest
  • .NET version: .NET 8
  • Operating system: Windows 10/11