oformaniuk / Handlebars.Net

A real .NET Handlebars engine
MIT License
3 stars 1 forks source link

Support lower .NET Framework version net451 #22

Closed StefH closed 4 years ago

StefH commented 4 years ago

Is it possible to support also support net40 and net451 for this library? I depend on version 451.

HandleBars.Net

The https://www.nuget.org/packages/Handlebars.Net/1.9.0 did only have .NETFramework 4.0 as minimum requirement.

Since 1.9.3, this is moved to .NETFramework 4.5.2.

oformaniuk commented 4 years ago

I already have problems supporting net452 (at least from language feature perspective) 😞 In any case I'd think on what can be done here 😉

oformaniuk commented 4 years ago

List of concerns at the moment:

Once I get to my Windows workstation I’d be able to provide more on this.

StefH commented 4 years ago

I see. ( I did not know these two libraries yet... )

oformaniuk commented 4 years ago

@StefH I did some investigation and it seems that supporting net451 is possible (lower version would not fit in future plans). I would update ‘ExpressionShortcuts‘ to support is as well. However if you need it in Handlebars I’d kindly ask you to create a PR as I have other things planned. Acceptance criteria for the PR is to introduce thread-safe and fast ObjectPool implementation and use it as polyfill for net451.

StefH commented 4 years ago
oformaniuk commented 4 years ago

Yep, most probably I’ve missed it while was thinking more about net45 and lower 👍

Then the only thing needed is to add net451 as supported framework to Handlebars as I’ve already fixed ‘ExpressionShortcuts’.

StefH commented 4 years ago

https://github.com/zjklee/Handlebars.CSharp/pull/24