jehugaleahsa / mustache-sharp

An extension of the mustache text template engine for .NET.
The Unlicense
306 stars 78 forks source link

Errors when recompiling under .NET 3.5 #27

Closed codemaestro closed 10 years ago

codemaestro commented 10 years ago

Hi Travis!

I need to define a target framework of .NET 3.5, (possibly even lower) for use in a current project. I was able to find and correct (maybe wrongly) two of the three errors I encountered:

The ones I fixed:

The one I can't:

What is the desired effect of the use of Enumerable.Zip in this context, and would it be easy enough to work around it?

Thanks, -Tony

codemaestro commented 10 years ago

Just after I hit I found I can implement a static class like this: http://www.blackwasp.co.uk/LinqZip35.aspx

Can you help verify that the "patches" I made will work as intended?

Thanks, -Tony

jehugaleahsa commented 10 years ago

Hey @codemaestro. It sounds like everything you did will make the code .NET 3.5 compatible. I don't have any future plans to migrate back to .NET 3.5, but your changes may be useful to someone else who has to support .NET 3.5. Feel free to reply with a link to your fork, if you have one.

codemaestro commented 10 years ago

Hi Travis @jehugaleahsa . I encountered bugs with trying to recreate the same behaviour, so I switched to Nustache, a different mustache-like library that worked under .NET 3.5. While it implements mustache differently than yours, I was able to get it to do what I needed.

I will be deleting my fork.