Skip to content

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

Description

@Lukykl1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions