Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.22k stars 213 forks source link

[Question] Is Native AOT supported? #571

Open jonas-stjernquist opened 4 months ago

jonas-stjernquist commented 4 months ago

Does Handlebars.NET have support for publishing the application with Native AOT?

<PropertyGroup>
    <PublishAot>true</PublishAot>
</PropertyGroup>

If not would it be a suitable future feature in the road map?

Seems like the current use of System.Reflection is a stopper.

https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net7%2Cwindows

oformaniuk commented 3 months ago

I do not think it is possible due to heavy use of Expression Trees.