adoconnection / RazorEngineCore

.NET6 Razor Template Engine
MIT License
565 stars 84 forks source link

Dotnet 7/C#11 Support #121

Closed hughesjs closed 1 year ago

hughesjs commented 1 year ago

We're about to migrate our solutions over from Antaris' dead RazorEngine. This is primarily because I've just ran into an issue where it can't handle init properties on models... I guess its code generator is too old.

I just wanted to check whether you're planning to support dotnet 7 once it's released next month and how much work it would be for you to get that working? We're particularly wanting to make sure we'll be able to use required props once they're released.

adoconnection commented 1 year ago

I expect RazorEngineCore to work in net7 out of the box. In a past it only broke once when net5 was released, and the problem was very specific with single file deployments (see #38)

You are good to go with net7 and RazorEngineCore

hughesjs commented 1 year ago

Nice one, that's great to know, I've just got to the migration this sprint, so will let you know if I run into any issues :)