Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.25k stars 216 forks source link

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

Open Lukykl1 opened 5 months ago

Lukykl1 commented 5 months ago

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