statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.64k stars 235 forks source link

.NET 6 support #964

Closed petrsvihlik closed 2 years ago

petrsvihlik commented 2 years ago

Hey @daveaglick! Have you tried Statiq with .NET 6 already?

When I switch the target framework of my project to .NET 6, the generation starts failing with:

[CRIT] Object does not match target type.

[ERRO] XYZPipeline/Process » RenderRazor » [=> posts/mypost.html] Object does not match target type.

Is there anything I can do about it atm?

daveaglick commented 2 years ago

I love being able to say a problem is fixed as soon as it's reported! :)

We tracked a root cause for this in https://github.com/statiqdev/Statiq.Framework/issues/204 - it was a pretty interesting one due (partly) to an upstream bug in the .NET Razor engine itself. In any case, a fix is in main and has been confirmed, I just need to get the code to a releasable state due to some other concurrent work I'm doing. I'll likely have a release out this weekend or early next week at the latest.

petrsvihlik commented 2 years ago

Oh, that's perfect! Reading the discussion, it's an interesting problem indeed.

On Fri, Oct 1, 2021, 22:34 Dave Glick @.***> wrote:

I love being able to say a problem is fixed as soon as it's reported! :)

We tracked a root cause for this in statiqdev/Statiq.Framework#204 https://github.com/statiqdev/Statiq.Framework/issues/204 - it was a pretty interesting one due (partly) to an upstream bug in the .NET Razor engine itself. In any case, a fix is in main and has been confirmed, I just need to get the code to a releasable state due to some other concurrent work I'm doing. I'll likely have a release out this weekend or early next week at the latest.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/statiqdev/Statiq.Web/issues/964#issuecomment-932533613, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACK3FQJEY6WWA3CAAAAZQCLUEYLMRANCNFSM5FFOEP2Q .